Emails API — Agentuity Documentation

Emails API

Send and receive emails with managed addresses and webhook destinations

Send and receive emails with managed addresses and webhook destinations.

https://catalyst-usw.agentuity.cloud

Authentication

All requests require a Bearer token. Pass your SDK key in the Authorization header.

HeaderValue
AuthorizationBearer YOUR_SDK_KEY

You can find your SDK key in the Agentuity Console under your project settings.


Address Management

Create Address

Create a managed address at the @agentuity.email domain.

POST/email/addresses
https://catalyst-usw.agentuity.cloud/email/addresses

Request Body

Address creation payload.

FieldTypeDescription
local_partstringLocal part before `@agentuity.email`

Response

Created EmailAddress object.

StatusDescription
200Address created
401Unauthorized

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/email/addresses' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "local_part": "support"
}'

List Addresses

List managed email addresses.

GET/email/addresses
https://catalyst-usw.agentuity.cloud/email/addresses

Response

Array of EmailAddress objects.

StatusDescription
200Addresses returned
401Unauthorized

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/addresses' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Address

Get a managed address by ID (eaddr_...).

GET/email/addresses/{id}
https://catalyst-usw.agentuity.cloud/email/addresses/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesAddress ID (`eaddr_...`)

Response

EmailAddress object.

StatusDescription
200Address returned
401Unauthorized
404Address not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/addresses/eaddr_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Connection Config

Get IMAP/POP3 connection settings and credentials for an address.

GET/email/addresses/{id}/connection
https://catalyst-usw.agentuity.cloud/email/addresses/{id}/connection

Parameters

path
NameTypeRequiredDescription
idstringYesAddress ID

Response

Connection configuration including IMAP and POP3 details.

StatusDescription
200Connection config returned
401Unauthorized
404Address not found

Response Fields

FieldTypeDescription
emailstringThe full email address these settings are for.
imapobjectIMAP protocol connection settings.
imap.hoststringThe mail server hostname.
imap.portnumberThe mail server port number.
imap.tlsstringTLS mode (e.g., `'starttls'`, `'ssl'`, `'none'`).
imap.usernamestringThe authentication username (typically the address ID).
imap.passwordstringThe authentication password.
pop3objectPOP3 protocol connection settings.
pop3.hoststringThe mail server hostname.
pop3.portnumberThe mail server port number.
pop3.tlsstringTLS mode (e.g., `'starttls'`, `'ssl'`, `'none'`).
pop3.usernamestringThe authentication username (typically the address ID).
pop3.passwordstringThe authentication password.

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/addresses/eaddr_abc123/connection' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Delete Address

Delete a managed email address.

DELETE/email/addresses/{id}
https://catalyst-usw.agentuity.cloud/email/addresses/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesAddress ID

Response

Empty response on success.

StatusDescription
200Address deleted
401Unauthorized

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/email/addresses/eaddr_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Email Destinations

Create Destination

Create an inbound webhook destination for an address.

POST/email/addresses/{addressId}/destinations
https://catalyst-usw.agentuity.cloud/email/addresses/{addressId}/destinations

Parameters

path
NameTypeRequiredDescription
addressIdstringYesAddress ID

Request Body

Destination creation payload.

FieldTypeDescription
typestringDestination type (`url`)
configobjectDestination config including URL

Response

Created EmailDestination object.

StatusDescription
200Destination created
401Unauthorized

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/email/addresses/eaddr_abc123/destinations' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "url",
  "config": {
    "url": "https://example.com/email-hook",
    "method": "POST"
  }
}'

List Destinations

List inbound destinations for an address.

GET/email/addresses/{addressId}/destinations
https://catalyst-usw.agentuity.cloud/email/addresses/{addressId}/destinations

Parameters

path
NameTypeRequiredDescription
addressIdstringYesAddress ID

Response

Array of EmailDestination objects.

StatusDescription
200Destinations returned
401Unauthorized

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/addresses/eaddr_abc123/destinations' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Delete Destination

Delete an inbound destination.

DELETE/email/addresses/{addressId}/destinations/{destinationId}
https://catalyst-usw.agentuity.cloud/email/addresses/{addressId}/destinations/{destinationId}

Parameters

path
NameTypeRequiredDescription
addressIdstringYesAddress ID
destinationIdstringYesDestination ID

Response

Empty response on success.

StatusDescription
200Destination deleted
401Unauthorized

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/email/addresses/eaddr_abc123/destinations/edst_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Sending Email

Send Email

Send an email from an owned address. Delivery is asynchronous and total payload (including attachments) is capped at 25MB.

POST/email/outbound/send
https://catalyst-usw.agentuity.cloud/email/outbound/send

Request Body

Outbound email payload.

FieldTypeDescription
fromstringThe sender email address (must be owned by the organization)
tostring[]The recipient email addresses
subjectstringThe email subject
textstringPlain text email body (optional)
htmlstringHTML email body (optional)
attachmentsobject[]File attachments (optional)
attachments[].filenamestringThe filename for the attachment
attachments[].contentstringThe base64-encoded content of the attachment
attachments[].contentTypestringThe MIME content type of the attachment (optional)
headersobjectCustom email headers (e.g., In-Reply-To, References for threading) (optional)

Response

Created EmailOutbound object with initial pending status.

StatusDescription
200Outbound email accepted
401Unauthorized

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/email/outbound/send' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "from": "support@agentuity.email",
  "to": [
    "user@example.com"
  ],
  "subject": "Welcome!",
  "text": "Thanks for joining Agentuity."
}'

Inbound Email

List Inbound

List inbound emails, optionally filtered by address.

GET/email/inbound
https://catalyst-usw.agentuity.cloud/email/inbound

Parameters

query
NameTypeRequiredDescription
address_idstringNoFilter by address ID

Response

Array of EmailInbound objects.

StatusDescription
200Inbound emails returned
401Unauthorized

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/inbound?address_id=eaddr_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Inbound

Get a specific inbound email by ID (einb_...).

GET/email/inbound/{id}
https://catalyst-usw.agentuity.cloud/email/inbound/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesInbound email ID (`einb_...`)

Response

EmailInbound object.

StatusDescription
200Inbound email returned
401Unauthorized
404Inbound email not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/inbound/einb_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Delete Inbound

Delete an inbound email record.

DELETE/email/inbound/{id}
https://catalyst-usw.agentuity.cloud/email/inbound/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesInbound email ID

Response

Empty response on success.

StatusDescription
200Inbound email deleted
401Unauthorized

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/email/inbound/einb_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Outbound Email

List Outbound

List outbound emails, optionally filtered by address.

GET/email/outbound
https://catalyst-usw.agentuity.cloud/email/outbound

Parameters

query
NameTypeRequiredDescription
address_idstringNoFilter by address ID

Response

Array of EmailOutbound objects.

StatusDescription
200Outbound emails returned
401Unauthorized

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/outbound?address_id=eaddr_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Outbound

Get an outbound email by ID (eout_...).

GET/email/outbound/{id}
https://catalyst-usw.agentuity.cloud/email/outbound/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesOutbound email ID (`eout_...`)

Response

EmailOutbound object including delivery status and error details.

StatusDescription
200Outbound email returned
401Unauthorized
404Outbound email not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/outbound/eout_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Delete Outbound

Delete an outbound email record.

DELETE/email/outbound/{id}
https://catalyst-usw.agentuity.cloud/email/outbound/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesOutbound email ID

Response

Empty response on success.

StatusDescription
200Outbound email deleted
401Unauthorized

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/email/outbound/eout_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Activity

Get Activity

Get daily inbound/outbound activity over a date window.

GET/email/activity/{date}
https://catalyst-usw.agentuity.cloud/email/activity/{date}

Parameters

path
NameTypeRequiredDescription
datestringYesDate for activity lookup (YYYY-MM-DD format)
query
NameTypeRequiredDescription
daysnumberNoRange in days (7–365, default: 7)

Response

Activity time series grouped by date.

StatusDescription
200Activity returned
401Unauthorized

Response Fields

FieldTypeDescription
activityobject[]Array of daily activity data points, ordered chronologically.
activity[].datestringThe date in `YYYY-MM-DD` format.
activity[].inboundnumberNumber of inbound emails received on this date.
activity[].outboundnumberNumber of outbound emails sent on this date.
daysnumberThe number of days of data returned.

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/email/activity/2026-02-28?days=30' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'