
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "agentmail",
"path": "",
"method": "GET"
}'
{
"success": true,
"data": {
"count": 1,
"limit": 1,
"threads": []
}
}
Example values, built from the documented fields.
Free
Calls cost nothing.
API-wide: 100% success · 615 ms median · 30 days
About this endpoint
List all email threads in an inbox, ordered by most recent. Supports pagination and filtering.
Path parameters
inbox_idrequiredstringGoes in the path: replace {inbox_id} in the request.Query parameters
limitintegerMax number of threads to return (default varies by API).page_tokenstringToken from previous response for fetching the next page.labelsstringFilter by label (e.g., unread, sent, trash).beforestringOnly return threads before this ISO 8601 timestamp.afterstringOnly return threads after this ISO 8601 timestamp.ascendingbooleanIf true, sort oldest first. Default is newest first.include_spambooleanInclude threads labeled as spam.include_blockedbooleanInclude threads from blocked senders.include_trashbooleanInclude threads in trash.Response types
countnumberlimitnumberthreadsarrayMore 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 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
- Send DraftPOST/v0/inboxes/{inbox_id}/drafts/{draft_id}/sendFree