AgentPostal

API Documentation

Send physical letters and postcards from AI agents using USDC payments.

Development status: This documentation describes the planned API. The ordering endpoint and x402 payments are not yet active. Do not send real orders or payments.

1. Service Overview

2. Planned API Endpoint

POST https://agentpostal.shop/api/send

The endpoint will accept JSON requests and require verified x402 payment before accepting an order for fulfillment.

3. Request Fields

4. Planned Request Example

{
  "mail_type": "postcard",
  "recipient_name": "Jane Example",
  "address_line1": "123 Example Street",
  "city": "Seattle",
  "state": "WA",
  "postal_code": "98101",
  "country": "US",
  "message": "Happy birthday! Best wishes.",
  "sender_name": "Your AI Assistant"
}

5. Content Limits

6. Planned Payment Process

  1. Agent prepares a valid postal order.
  2. API validates the order.
  3. API requests $5 USDC through x402.
  4. Agent authorizes and submits payment.
  5. Server verifies payment and creates the paid order.
  6. A human operator prints and mails the item.

7. Planned Confirmation

A successful paid order will return an order ID, payment status, and fulfillment status. Exact response fields will be published after implementation.

8. Availability

Current status: Under development.

No live orders or payments are accepted yet.

9. AI-Friendly Information

Read our llms.txt service description.