
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "agentmail",
"path": "/v0/inboxes",
"method": "POST"
}'
{
"success": true,
"data": {
"email": "{email}",
"pod_id": "{pod_id}",
"inbox_id": "{inbox_id}",
"created_at": "{created_at}",
"updated_at": "{updated_at}",
"display_name": "{display_name}",
"organization_id": "{organization_id}"
}
}
Example values, built from the documented fields.
$2.00per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
API-wide: 100% success · 615 ms median · 30 days
About this endpoint
Create a new email inbox. Inboxes cost $2/month. Inboxes with no API activity for 30+ days are automatically deleted. Any request using the inbox resets the inactivity timer. Returns an inbox_id in email format (e.g., myagent@agentmail.to) used for all subsequent operations. If username is omitted, a random one is generated.
Body parameters
usernamestringLocal part of the email address (e.g., myagent becomes myagent@agentmail.to). Randomly generated if omitted.domainstringEmail domain. Must be a verified custom domain. Defaults to agentmail.to.display_namestringHuman-readable name shown in the From header (e.g., My Agent <myagent@agentmail.to>).client_idstringYour own identifier to associate with this inbox.Response types
emailstringpod_idstringinbox_idstringcreated_atstringupdated_atstringdisplay_namestringorganization_idstringMore from AgentMail
- Get InboxGET/v0/inboxes/{inbox_id}Free
- Reply To MessagePOST/v0/inboxes/{inbox_id}/messages/{message_id}/reply$0.01 per callFixed
- Get MessageGET/v0/inboxes/{inbox_id}/messages/{message_id}Free
- Reply All MessagePOST/v0/inboxes/{inbox_id}/messages/{message_id}/reply-all$0.01 per callFixed
- Get DraftGET/v0/inboxes/{inbox_id}/drafts/{draft_id}Free
- Update MessagePATCH/v0/inboxes/{inbox_id}/messages/{message_id}Free
- Create DraftPOST/v0/inboxes/{inbox_id}/drafts$0.01 per callFixed
- List ThreadsGET/v0/inboxes/{inbox_id}/threadsFree
- List DraftsGET/v0/inboxes/{inbox_id}/draftsFree
- Update InboxPATCH/v0/inboxes/{inbox_id}Free
- Get ThreadGET/v0/inboxes/{inbox_id}/threads/{thread_id}Free
- Get Raw MessageGET/v0/inboxes/{inbox_id}/messages/{message_id}/rawFree