Skip to main content
POST
Create Inbox List Entry
Adds one address or domain to an inbox’s allow or block list and returns the created entry. This changes which mail the inbox will accept or send from that point on, so it is a standing rule rather than a one-off action. Writes to the shared AgentMail workspace: Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, and what you write here is visible and editable by the next caller. Remove one with delete_agentmail_inbox_list_entry.

Example

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer authentication

Path Parameters

inbox_id
string
required

The ID of the inbox.

direction
enum<string>
required

Direction of list entry.

Available options:
send,
receive,
reply
type
enum<string>
required

Type of list entry.

Available options:
allow,
block

Body

application/json
entry
string
required

Email address or domain to add.

reason
string

Reason for adding the entry.

Response

Response with status 200

entry
string
required

Email address or domain of list entry.

organization_id
string
required

ID of organization.

direction
enum<string>
required

Direction of list entry.

Available options:
send,
receive,
reply
list_type
enum<string>
required

Type of list entry.

Available options:
allow,
block
entry_type
enum<string>
required

Whether the entry is an email address or domain.

Available options:
email,
domain
created_at
string<date-time>
required

Time at which entry was created.

pod_id
string
required

ID of pod.

reason
string

Reason for adding the entry.

read_only
boolean

Whether the entry is read-only and cannot be deleted via the API.

inbox_id
string

ID of inbox, if entry is inbox-scoped.