AgentMail integration (Communication, Productivity). Imported from open-connector.
https://api.agentmail.to/v0/inboxes
| Param | Type | Required | Description |
|---|---|---|---|
| username | string | optional | Inbox username. AgentMail generates one when omitted. |
| domain | string | optional | Verified domain used by the inbox. Defaults to agentmail.to. |
| display_name | string | optional | Display name shown for the inbox. |
| client_id | string | optional | Client-side identifier associated with the inbox. |
| metadata | object | optional | Custom metadata attached to the inbox. |
/v0/inboxes
| Param | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/inboxes/{inbox_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
/v0/inboxes/{inbox_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| display_name | string | optional | Display name shown for the inbox. |
| metadata | object | optional | — |
/v0/inboxes/{inbox_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
/v0/inboxes/{inbox_id}/threads
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| labels | array | optional | Labels used to filter or apply to a record. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
| include_spam | boolean | optional | Whether spam threads should be included in the result. |
| include_blocked | boolean | optional | Whether blocked threads should be included in the result. |
| include_unauthenticated | boolean | optional | Whether unauthenticated threads should be included in the result. |
| include_trash | boolean | optional | Whether trash threads should be included in the result. |
| senders | array | optional | Sender addresses used to filter threads. |
| recipients | array | optional | Recipient addresses used to filter threads. |
| subject | array | optional | Subject filters used by AgentMail. |
/v0/inboxes/{inbox_id}/threads/search
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| q | string | required | Search query. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
/v0/inboxes/{inbox_id}/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| thread_id | string | required | The AgentMail thread identifier. |
/v0/inboxes/{inbox_id}/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| thread_id | string | required | The AgentMail thread identifier. |
| add_labels | array | optional | Labels used to filter or apply to a record. |
| remove_labels | array | optional | Labels used to filter or apply to a record. |
/v0/inboxes/{inbox_id}/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| thread_id | string | required | The AgentMail thread identifier. |
| permanent | boolean | optional | Whether the thread should be permanently deleted. |
/v0/inboxes/{inbox_id}/threads/{thread_id}/attachments/{attachment_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| thread_id | string | required | The AgentMail thread identifier. |
| attachment_id | string | required | The AgentMail attachment identifier. |
/v0/inboxes/{inbox_id}/messages
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| labels | array | optional | Labels used to filter or apply to a record. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
| include_spam | boolean | optional | Whether spam messages should be included in the result. |
| include_blocked | boolean | optional | Whether blocked messages should be included in the result. |
| include_unauthenticated | boolean | optional | Whether unauthenticated messages should be included in the result. |
| include_trash | boolean | optional | Whether trash messages should be included in the result. |
| from | string | optional | Sender address used to filter messages. |
| to | string | optional | Recipient address used to filter messages. |
| subject | array | optional | Subject filters used by AgentMail. |
/v0/inboxes/{inbox_id}/messages/search
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| q | string | required | Search query. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
/v0/inboxes/{inbox_id}/messages/{message_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| message_id | string | required | The AgentMail message identifier. |
/v0/inboxes/{inbox_id}/messages/{message_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| message_id | string | required | The AgentMail message identifier. |
| add_labels | array | optional | Labels used to filter or apply to a record. |
| remove_labels | array | optional | Labels used to filter or apply to a record. |
/v0/inboxes/{inbox_id}/messages/batch-get
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| message_ids | array | optional | Message IDs to fetch. |
/v0/inboxes/{inbox_id}/messages/{message_id}/attachments/{attachment_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| message_id | string | required | The AgentMail message identifier. |
| attachment_id | string | required | The AgentMail attachment identifier. |
/v0/inboxes/{inbox_id}/messages/{message_id}/raw
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| message_id | string | required | The AgentMail message identifier. |
/v0/inboxes/{inbox_id}/messages/send
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| labels | array | optional | Labels used to filter or apply to a record. |
| reply_to | string | optional | Email address or email address list. |
| to | string | optional | Email address or email address list. |
| cc | string | optional | Email address or email address list. |
| bcc | string | optional | Email address or email address list. |
| subject | string | optional | Subject line of the message. |
| text | string | optional | Plain text body of the message. |
| html | string | optional | HTML body of the message. |
| attachments | array | optional | Attachments to include in the message. |
| headers | object | optional | Custom message headers to include in the outbound message. |
/v0/inboxes/{inbox_id}/messages/{message_id}/reply
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| message_id | string | required | The AgentMail message identifier. |
| labels | array | optional | Labels used to filter or apply to a record. |
| reply_to | string | optional | Email address or email address list. |
| to | string | optional | Email address or email address list. |
| cc | string | optional | Email address or email address list. |
| bcc | string | optional | Email address or email address list. |
| reply_all | boolean | optional | Whether to reply to all recipients of the original message. |
| text | string | optional | Plain text body of the reply. |
| html | string | optional | HTML body of the reply. |
| attachments | array | optional | Attachments to include in the reply. |
| headers | object | optional | Custom message headers to include in the outbound message. |
/v0/inboxes/{inbox_id}/messages/{message_id}/reply-all
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| message_id | string | required | The AgentMail message identifier. |
| labels | array | optional | Labels used to filter or apply to a record. |
| reply_to | string | optional | Email address or email address list. |
| text | string | optional | Plain text body of the reply. |
| html | string | optional | HTML body of the reply. |
| attachments | array | optional | Attachments to include in the reply. |
| headers | object | optional | Custom message headers to include in the outbound message. |
/v0/inboxes/{inbox_id}/messages/{message_id}/forward
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| message_id | string | required | The AgentMail message identifier. |
| labels | array | optional | Labels used to filter or apply to a record. |
| reply_to | string | optional | Email address or email address list. |
| to | string | optional | Email address or email address list. |
| cc | string | optional | Email address or email address list. |
| bcc | string | optional | Email address or email address list. |
| subject | string | optional | Subject line of the forwarded message. |
| text | string | optional | Plain text body of the forwarded message. |
| html | string | optional | HTML body of the forwarded message. |
| attachments | array | optional | Attachments to include in the forwarded message. |
| headers | object | optional | Custom message headers to include in the outbound message. |
/v0/inboxes/{inbox_id}/drafts
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| labels | array | optional | Labels used to filter or apply to a record. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/inboxes/{inbox_id}/drafts
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| labels | array | optional | Labels used to filter or apply to a record. |
| reply_to | string | optional | Email address or email address list. |
| to | string | optional | Email address or email address list. |
| cc | string | optional | Email address or email address list. |
| bcc | string | optional | Email address or email address list. |
| subject | string | optional | Subject line of the draft. |
| text | string | optional | Plain text body of the draft. |
| html | string | optional | HTML body of the draft. |
| attachments | array | optional | Attachments to include in the draft. |
| in_reply_to | string | optional | The AgentMail message identifier. |
| send_at | string | optional | Time at which AgentMail should schedule the draft to send. |
| client_id | string | optional | Client-side identifier associated with the draft. |
/v0/inboxes/{inbox_id}/drafts/{draft_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| draft_id | string | required | The AgentMail draft identifier. |
/v0/inboxes/{inbox_id}/drafts/{draft_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| draft_id | string | required | The AgentMail draft identifier. |
| reply_to | string | optional | Email address or email address list. |
| to | string | optional | Email address or email address list. |
| cc | string | optional | Email address or email address list. |
| bcc | string | optional | Email address or email address list. |
| subject | string | optional | Subject line of the draft. |
| text | string | optional | Plain text body of the draft. |
| html | string | optional | HTML body of the draft. |
| send_at | string | optional | Time at which AgentMail should schedule the draft to send. |
/v0/inboxes/{inbox_id}/drafts/{draft_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| draft_id | string | required | The AgentMail draft identifier. |
/v0/inboxes/{inbox_id}/drafts/{draft_id}/attachments/{attachment_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| draft_id | string | required | The AgentMail draft identifier. |
| attachment_id | string | required | The AgentMail attachment identifier. |
/v0/inboxes/{inbox_id}/drafts/{draft_id}/send
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| draft_id | string | required | The AgentMail draft identifier. |
| add_labels | array | optional | Labels used to filter or apply to a record. |
| remove_labels | array | optional | Labels used to filter or apply to a record. |
/v0/inboxes/{inbox_id}/lists/{direction}/{type}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
/v0/inboxes/{inbox_id}/lists/{direction}/{type}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
| reason | string | optional | Reason for adding the list entry. |
/v0/inboxes/{inbox_id}/lists/{direction}/{type}/{entry}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
/v0/inboxes/{inbox_id}/lists/{direction}/{type}/{entry}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
/v0/inboxes/{inbox_id}/metrics
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| event_types | array | optional | Metric event types to query. |
| start | string | optional | Start timestamp for the metrics query. |
| end | string | optional | End timestamp for the metrics query. |
| period | integer | optional | Period in seconds for each metrics bucket. |
| limit | integer | optional | Maximum number of items to return. |
| descending | boolean | optional | Whether metrics should be sorted in descending timestamp order. |
/v0/inboxes/{inbox_id}/events
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/inboxes/{inbox_id}/api-keys
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
/v0/inboxes/{inbox_id}/api-keys
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| name | string | optional | Name of the API key. |
| permissions | object | optional | Granular AgentMail API key permissions. |
/v0/inboxes/{inbox_id}/api-keys/{api_key_id}
| Param | Type | Required | Description |
|---|---|---|---|
| inbox_id | string | required | The AgentMail inbox identifier. |
| api_key_id | string | required | The AgentMail API key identifier. |
/v0/threads
| Param | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| labels | array | optional | Labels used to filter or apply to a record. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
| include_spam | boolean | optional | Whether spam threads should be included in the result. |
| include_blocked | boolean | optional | Whether blocked threads should be included in the result. |
| include_unauthenticated | boolean | optional | Whether unauthenticated threads should be included in the result. |
| include_trash | boolean | optional | Whether trash threads should be included in the result. |
| senders | array | optional | Sender addresses used to filter threads. |
| recipients | array | optional | Recipient addresses used to filter threads. |
| subject | array | optional | Subject filters used by AgentMail. |
/v0/threads/search
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | required | Search query. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
/v0/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| thread_id | string | required | The AgentMail thread identifier. |
/v0/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| thread_id | string | required | The AgentMail thread identifier. |
| add_labels | array | optional | Labels used to filter or apply to a record. |
| remove_labels | array | optional | Labels used to filter or apply to a record. |
/v0/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| thread_id | string | required | The AgentMail thread identifier. |
| permanent | boolean | optional | Whether the thread should be permanently deleted. |
/v0/threads/{thread_id}/attachments/{attachment_id}
| Param | Type | Required | Description |
|---|---|---|---|
| thread_id | string | required | The AgentMail thread identifier. |
| attachment_id | string | required | The AgentMail attachment identifier. |
/v0/drafts
| Param | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| labels | array | optional | Labels used to filter or apply to a record. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/drafts/{draft_id}
| Param | Type | Required | Description |
|---|---|---|---|
| draft_id | string | required | The AgentMail draft identifier. |
/v0/drafts/{draft_id}/attachments/{attachment_id}
| Param | Type | Required | Description |
|---|---|---|---|
| draft_id | string | required | The AgentMail draft identifier. |
| attachment_id | string | required | The AgentMail attachment identifier. |
/v0/webhooks
| Param | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/webhooks
| Param | Type | Required | Description |
|---|---|---|---|
| url | string | required | Webhook endpoint URL. |
| event_types | array | required | Event types this webhook should receive. |
| pod_ids | array | optional | Pod IDs subscribed to the webhook. |
| inbox_ids | array | optional | Inbox IDs subscribed to the webhook. |
| client_id | string | optional | Client-side identifier associated with the webhook. |
/v0/webhooks/{webhook_id}
| Param | Type | Required | Description |
|---|---|---|---|
| webhook_id | string | required | The AgentMail webhook identifier. |
/v0/webhooks/{webhook_id}
| Param | Type | Required | Description |
|---|---|---|---|
| webhook_id | string | required | The AgentMail webhook identifier. |
| add_inbox_ids | array | optional | Inbox IDs to subscribe to the webhook. |
| remove_inbox_ids | array | optional | Inbox IDs to unsubscribe from the webhook. |
| add_pod_ids | array | optional | Pod IDs to subscribe to the webhook. |
| remove_pod_ids | array | optional | Pod IDs to unsubscribe from the webhook. |
| event_types | array | optional | Full replacement list of event types for the webhook. |
/v0/webhooks/{webhook_id}
| Param | Type | Required | Description |
|---|---|---|---|
| webhook_id | string | required | The AgentMail webhook identifier. |
/v0/domains
| Param | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/domains
| Param | Type | Required | Description |
|---|---|---|---|
| domain | string | optional | Domain name to add to AgentMail. |
| feedback_enabled | boolean | optional | Whether bounce and complaint notifications are sent to inboxes. |
/v0/domains/{domain_id}
| Param | Type | Required | Description |
|---|---|---|---|
| domain_id | string | required | The AgentMail domain identifier. |
/v0/domains/{domain_id}
| Param | Type | Required | Description |
|---|---|---|---|
| domain_id | string | required | The AgentMail domain identifier. |
| feedback_enabled | boolean | optional | Whether bounce and complaint notifications are sent to inboxes. |
/v0/domains/{domain_id}
| Param | Type | Required | Description |
|---|---|---|---|
| domain_id | string | required | The AgentMail domain identifier. |
/v0/domains/{domain_id}/zone-file
| Param | Type | Required | Description |
|---|---|---|---|
| domain_id | string | required | The AgentMail domain identifier. |
/v0/domains/{domain_id}/verify
| Param | Type | Required | Description |
|---|---|---|---|
| domain_id | string | required | The AgentMail domain identifier. |
/v0/lists/{direction}/{type}
| Param | Type | Required | Description |
|---|---|---|---|
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
/v0/lists/{direction}/{type}
| Param | Type | Required | Description |
|---|---|---|---|
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
| reason | string | optional | Reason for adding the list entry. |
/v0/lists/{direction}/{type}/{entry}
| Param | Type | Required | Description |
|---|---|---|---|
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
/v0/lists/{direction}/{type}/{entry}
| Param | Type | Required | Description |
|---|---|---|---|
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
/v0/metrics
| Param | Type | Required | Description |
|---|---|---|---|
| event_types | array | optional | Metric event types to query. |
| start | string | optional | Start timestamp for the metrics query. |
| end | string | optional | End timestamp for the metrics query. |
| period | integer | optional | Period in seconds for each metrics bucket. |
| limit | integer | optional | Maximum number of items to return. |
| descending | boolean | optional | Whether metrics should be sorted in descending timestamp order. |
/v0/api-keys
| Param | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/api-keys
| Param | Type | Required | Description |
|---|---|---|---|
| name | string | optional | Name of the API key. |
| permissions | object | optional | Granular AgentMail API key permissions. |
/v0/api-keys/{api_key_id}
| Param | Type | Required | Description |
|---|---|---|---|
| api_key_id | string | required | The AgentMail API key identifier. |
/v0/pods
| Param | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/pods
| Param | Type | Required | Description |
|---|---|---|---|
| name | string | optional | Name of the pod. |
| client_id | string | optional | Client-side identifier associated with the pod. |
/v0/pods/{pod_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
/v0/pods/{pod_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
/v0/pods/{pod_id}/inboxes
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/pods/{pod_id}/inboxes
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| username | string | optional | Inbox username. AgentMail generates one when omitted. |
| domain | string | optional | Verified domain used by the inbox. Defaults to agentmail.to. |
| display_name | string | optional | Display name shown for the inbox. |
| client_id | string | optional | Client-side identifier associated with the inbox. |
| metadata | object | optional | Custom metadata attached to the inbox. |
/v0/pods/{pod_id}/inboxes/{inbox_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| inbox_id | string | required | The AgentMail inbox identifier. |
/v0/pods/{pod_id}/inboxes/{inbox_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| inbox_id | string | required | The AgentMail inbox identifier. |
| display_name | string | optional | Display name shown for the inbox. |
| metadata | object | optional | — |
/v0/pods/{pod_id}/inboxes/{inbox_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| inbox_id | string | required | The AgentMail inbox identifier. |
/v0/pods/{pod_id}/threads
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| labels | array | optional | Labels used to filter or apply to a record. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
| include_spam | boolean | optional | Whether spam threads should be included in the result. |
| include_blocked | boolean | optional | Whether blocked threads should be included in the result. |
| include_unauthenticated | boolean | optional | Whether unauthenticated threads should be included in the result. |
| include_trash | boolean | optional | Whether trash threads should be included in the result. |
| senders | array | optional | Sender addresses used to filter threads. |
| recipients | array | optional | Recipient addresses used to filter threads. |
| subject | array | optional | Subject filters used by AgentMail. |
/v0/pods/{pod_id}/threads/search
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| q | string | required | Search query. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
/v0/pods/{pod_id}/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| thread_id | string | required | The AgentMail thread identifier. |
/v0/pods/{pod_id}/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| thread_id | string | required | The AgentMail thread identifier. |
| add_labels | array | optional | Labels used to filter or apply to a record. |
| remove_labels | array | optional | Labels used to filter or apply to a record. |
/v0/pods/{pod_id}/threads/{thread_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| thread_id | string | required | The AgentMail thread identifier. |
| permanent | boolean | optional | Whether the thread should be permanently deleted. |
/v0/pods/{pod_id}/threads/{thread_id}/attachments/{attachment_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| thread_id | string | required | The AgentMail thread identifier. |
| attachment_id | string | required | The AgentMail attachment identifier. |
/v0/pods/{pod_id}/drafts
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| labels | array | optional | Labels used to filter or apply to a record. |
| before | string | optional | Only include records before this ISO 8601 timestamp. |
| after | string | optional | Only include records after this ISO 8601 timestamp. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/pods/{pod_id}/drafts/{draft_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| draft_id | string | required | The AgentMail draft identifier. |
/v0/pods/{pod_id}/drafts/{draft_id}/attachments/{attachment_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| draft_id | string | required | The AgentMail draft identifier. |
| attachment_id | string | required | The AgentMail attachment identifier. |
/v0/pods/{pod_id}/domains
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
| ascending | boolean | optional | Whether results should be sorted in ascending timestamp order. |
/v0/pods/{pod_id}/domains
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| domain | string | optional | Domain name to add to AgentMail. |
| feedback_enabled | boolean | optional | Whether bounce and complaint notifications are sent to inboxes. |
/v0/pods/{pod_id}/domains/{domain_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| domain_id | string | required | The AgentMail domain identifier. |
/v0/pods/{pod_id}/domains/{domain_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| domain_id | string | required | The AgentMail domain identifier. |
| feedback_enabled | boolean | optional | Whether bounce and complaint notifications are sent to inboxes. |
/v0/pods/{pod_id}/domains/{domain_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| domain_id | string | required | The AgentMail domain identifier. |
/v0/pods/{pod_id}/domains/{domain_id}/zone-file
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| domain_id | string | required | The AgentMail domain identifier. |
/v0/pods/{pod_id}/domains/{domain_id}/verify
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| domain_id | string | required | The AgentMail domain identifier. |
/v0/pods/{pod_id}/lists/{direction}/{type}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
/v0/pods/{pod_id}/lists/{direction}/{type}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
| reason | string | optional | Reason for adding the list entry. |
/v0/pods/{pod_id}/lists/{direction}/{type}/{entry}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
/v0/pods/{pod_id}/lists/{direction}/{type}/{entry}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| direction | string | required | Direction of the list entry. |
| type | string | required | Type of list entry. |
| entry | string | required | The email address or domain list entry. |
/v0/pods/{pod_id}/metrics
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| event_types | array | optional | Metric event types to query. |
| start | string | optional | Start timestamp for the metrics query. |
| end | string | optional | End timestamp for the metrics query. |
| period | integer | optional | Period in seconds for each metrics bucket. |
| limit | integer | optional | Maximum number of items to return. |
| descending | boolean | optional | Whether metrics should be sorted in descending timestamp order. |
/v0/pods/{pod_id}/api-keys
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| limit | integer | optional | Maximum number of items to return. |
| page_token | string | optional | Pagination token for the next page of results. |
/v0/pods/{pod_id}/api-keys
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| name | string | optional | Name of the API key. |
| permissions | object | optional | Granular AgentMail API key permissions. |
/v0/pods/{pod_id}/api-keys/{api_key_id}
| Param | Type | Required | Description |
|---|---|---|---|
| pod_id | string | required | The AgentMail pod identifier. |
| api_key_id | string | required | The AgentMail API key identifier. |
/v0/organizations
/v0/auth/me