Api Endpoint

Orthogonal

Create a new draft in an inbox

Open interactive test console

Offering

Provider
Orthogonal
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Infrastructure
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://np.orthogonal.com/agentmail/v0/inboxes/%7Binbox_id%7D/drafts
MIME type
application/json
First seen
2026-10-16T01:50:03.832Z
Last seen
Tags
X402, paid-api, orthogonal-proxy, agentmail, data-apis, Email, AI-agents, inbox, Messaging

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
10000 atomic units
Atomic price: 10000 · Network: eip155:5042 · Asset: 0x3600000000000000000000000000000000000000 · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xaA4a75114b5BdA671844ae10256d2B048dF8fdc3"
  },
  {
    "scheme": "exact",
    "network": "eip155:5042",
    "asset": "0x3600000000000000000000000000000000000000",
    "amount": "10000",
    "payTo": "0xaA4a75114b5BdA671844ae10256d2B048dF8fdc3"
  }
]

Observed health

Status
Healthy
Latest latency
92 ms
Average latency
123 ms
HTTP status
204
Last checked
Reachability
100% over 11 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "body": {
    "type": "object",
    "title": "CreateDraftRequest",
    "properties": {
      "cc": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "title": "DraftCc",
        "description": "Addresses of CC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
      },
      "to": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "title": "DraftTo",
        "description": "Addresses of recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
      },
      "bcc": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "title": "DraftBcc",
        "description": "Addresses of BCC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
      },
      "html": {
        "type": "string",
        "title": "DraftHtml",
        "description": "HTML body of draft."
      },
      "text": {
        "type": "string",
        "title": "DraftText",
        "description": "Plain text body of draft."
      },
      "labels": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "title": "DraftLabels",
        "description": "Labels of draft."
      },
      "send_at": {
        "type": "string",
        "title": "DraftSendAt",
        "format": "date-time",
        "description": "Time at which to schedule send draft."
      },
      "subject": {
        "type": "string",
        "title": "DraftSubject",
        "description": "Subject of draft."
      },
      "reply_to": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "title": "DraftReplyTo",
        "description": "Reply-to addresses. In format `username@domain.com` or `Display Name <username@domain.com>`."
      },
      "client_id": {
        "type": "string",
        "title": "DraftClientId",
        "description": "Client ID of draft."
      },
      "attachments": {
        "type": "array",
        "items": {
          "type": "object",
          "title": "SendAttachment",
          "properties": {
            "url": {
              "type": "string",
              "description": "URL to the attachment."
            },
            "content": {
              "type": "string",
              "description": "Base64 encoded content of attachment."
            },
            "filename": {
              "type": "string",
              "title": "AttachmentFilename",
              "description": "Filename of attachment."
            },
            "content_id": {
              "type": "string",
              "title": "AttachmentContentId",
              "description": "Content ID of attachment."
            },
            "content_type": {
              "type": "string",
              "title": "AttachmentContentType",
              "description": "Content type of attachment."
            },
            "content_disposition": {
              "enum": [
                "inline",
                "attachment"
              ],
              "type": "string",
              "title": "AttachmentContentDisposition",
              "description": "Content disposition of attachment."
            }
          }
        },
        "description": "Attachments to include in draft."
      },
      "in_reply_to": {
        "type": "string",
        "title": "DraftInReplyTo",
        "description": "ID of message being replied to."
      }
    }
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json",
  "pathParams": {
    "type": "object",
    "required": [
      "inbox_id"
    ],
    "properties": {
      "inbox_id": {
        "$ref": "#/components/schemas/type_inboxes:InboxId",
        "description": "path parameter"
      }
    }
  }
}

Output schema

{
  "type": "object",
  "title": "Draft",
  "required": [
    "inbox_id",
    "draft_id",
    "labels",
    "updated_at",
    "created_at"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "DraftCc",
      "description": "Addresses of CC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
    },
    "to": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "DraftTo",
      "description": "Addresses of recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
    },
    "bcc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "DraftBcc",
      "description": "Addresses of BCC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
    },
    "html": {
      "type": "string",
      "title": "DraftHtml",
      "description": "HTML body of draft."
    },
    "text": {
      "type": "string",
      "title": "DraftText",
      "description": "Plain text body of draft."
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "DraftLabels",
      "description": "Labels of draft."
    },
    "preview": {
      "type": "string",
      "title": "DraftPreview",
      "description": "Text preview of draft."
    },
    "send_at": {
      "type": "string",
      "title": "DraftSendAt",
      "format": "date-time",
      "description": "Time at which to schedule send draft."
    },
    "subject": {
      "type": "string",
      "title": "DraftSubject",
      "description": "Subject of draft."
    },
    "draft_id": {
      "type": "string",
      "title": "DraftId",
      "description": "ID of draft."
    },
    "inbox_id": {
      "type": "string",
      "title": "InboxId",
      "description": "The ID of the inbox."
    },
    "reply_to": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "DraftReplyTo",
      "description": "Reply-to addresses. In format `username@domain.com` or `Display Name <username@domain.com>`."
    },
    "client_id": {
      "type": "string",
      "title": "DraftClientId",
      "description": "Client ID of draft."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Time at which draft was created."
    },
    "references": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of previous messages in thread."
    },
    "updated_at": {
      "type": "string",
      "title": "DraftUpdatedAt",
      "format": "date-time",
      "description": "Time at which draft was last updated."
    },
    "attachments": {
      "type": "array",
      "items": {
        "type": "object",
        "title": "Attachment",
        "required": [
          "attachment_id",
          "size"
        ],
        "properties": {
          "size": {
            "type": "integer",
            "title": "AttachmentSize",
            "description": "Size of attachment in bytes."
          },
          "filename": {
            "type": "string",
            "title": "AttachmentFilename",
            "description": "Filename of attachment."
          },
          "content_id": {
            "type": "string",
            "title": "AttachmentContentId",
            "description": "Content ID of attachment."
          },
          "content_type": {
            "type": "string",
            "title": "AttachmentContentType",
            "description": "Content type of attachment."
          },
          "attachment_id": {
            "type": "string",
            "title": "AttachmentId",
            "description": "ID of attachment."
          },
          "content_disposition": {
            "enum": [
              "inline",
              "attachment"
            ],
            "type": "string",
            "title": "AttachmentContentDisposition",
            "description": "Content disposition of attachment."
          }
        }
      },
      "title": "DraftAttachments",
      "description": "Attachments in draft."
    },
    "in_reply_to": {
      "type": "string",
      "title": "DraftInReplyTo",
      "description": "ID of message being replied to."
    },
    "send_status": {
      "enum": [
        "scheduled",
        "sending",
        "failed"
      ],
      "type": "string",
      "title": "DraftSendStatus",
      "description": "Schedule send status of draft."
    }
  }
}