Skip to main content
POST
Create Account List Entry
Adds one address or domain to an account-wide allow or block list and returns the created entry. 🔴 This is a standing rule that changes mail handling for every inbox in the account, including other callers’ — the inbox-scoped post_agentmail_inbox_list_entry affects only one inbox and is almost always the one you want. Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created.

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

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.

reason
string

Reason for adding the entry.

read_only
boolean

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