Mailboxes

A mailbox is a real email address your agents can read. Every message delivered to `{name}@agents.aiqaramba.com` is stored against the matching mailbox and exposed via the API. Attach a mailbox to a test or a test run to grant that run read access to the inbox, useful for magic links, verification codes, and signup confirmations. Mailboxes are read-only: there is no API to send mail.

Overview

A mailbox is a real, deliverable email address you create on the platform ({name}@agents.aiqaramba.com). Anything sent to that address is stored against the mailbox and can be read back through the API. Mailbox names are unique across the entire platform on a first-come-first-served basis.

Mailboxes are read-only: the platform receives mail, it never sends mail. There is no API to compose or dispatch a message.

Attaching mailboxes

Attach a mailbox to a test or directly to a one-off test run. Every run with an attached mailbox is told which addresses it has access to and is given the ability to read the inbox while it works. Test runs without any attached mailbox have no email access at all; attachment is the gate.

How a mailbox is used during a run is decided contextually by the run's prompt. A prompt that says “confirm your account through the verification email” will most likely have the agent check the inbox; one that doesn't mention email is unlikely to touch the mailbox.

GET /api/v1/mailboxes

List mailboxes

Parameters

ParameterTypeInRequiredDescription
limitintegerqueryNoMaximum number of results to return.

Example Request

curl
curl "http://app.aiqaramba.com/api/v1/mailboxes" \
  -H "Authorization: Bearer $AIQA_API_KEY"

Status Codes

CodeDescription
200The authenticated tenant's mailboxes, newest first.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
500The server could not complete the request.

Response Fields (200)

FieldTypeDescription
mailboxesobject[]
mailboxes[].namestring
mailboxes[].addressstring
mailboxes[].tenant_iduuid
mailboxes[].created_atdate-time
POST /api/v1/mailboxes

Create a mailbox

Reserves a globally unique mailbox name and returns its deliverable address.

Request Body (application/json)

FieldTypeRequiredDescription
namestringYesName to normalize and reserve as the address local-part.

Example Request

curl
curl -X POST "http://app.aiqaramba.com/api/v1/mailboxes" \
  -H "Authorization: Bearer $AIQA_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "<string>"
  }'

Status Codes

CodeDescription
201Mailbox created.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
409The request conflicts with the current resource state.
500The server could not complete the request.

Response Fields (201)

FieldTypeDescription
namestring
addressstring
tenant_iduuid
created_atdate-time
GET /api/v1/mailboxes/{name}

Get a mailbox

Parameters

ParameterTypeInRequiredDescription
namestringpathYesGlobally unique mailbox name.

Example Request

curl
curl "http://app.aiqaramba.com/api/v1/mailboxes/<name>" \
  -H "Authorization: Bearer $AIQA_API_KEY"

Status Codes

CodeDescription
200Mailbox found.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
404The requested resource does not exist.
500The server could not complete the request.

Response Fields (200)

FieldTypeDescription
namestring
addressstring
tenant_iduuid
created_atdate-time
DELETE /api/v1/mailboxes/{name}

Delete a mailbox

Deletes the mailbox, its stored emails, and its agent and test attachments.

Parameters

ParameterTypeInRequiredDescription
namestringpathYesGlobally unique mailbox name.

Example Request

curl
curl -X DELETE "http://app.aiqaramba.com/api/v1/mailboxes/<name>" \
  -H "Authorization: Bearer $AIQA_API_KEY"

Status Codes

CodeDescription
204Mailbox deleted.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
404The requested resource does not exist.
500The server could not complete the request.
GET /api/v1/mailboxes/{name}/emails

List emails received by a mailbox

Returns the most recently received messages first.

Parameters

ParameterTypeInRequiredDescription
limitintegerqueryNoMaximum number of results to return.
namestringpathYesGlobally unique mailbox name.

Example Request

curl
curl "http://app.aiqaramba.com/api/v1/mailboxes/<name>/emails" \
  -H "Authorization: Bearer $AIQA_API_KEY"

Status Codes

CodeDescription
200Emails received by the mailbox.
400The request is malformed or failed validation.
401Authentication is missing or invalid.
404The requested resource does not exist.
500The server could not complete the request.

Response Fields (200)

FieldTypeDescription
emailsobject[]
emails[].iduuid
emails[].senderstring
emails[].recipientstring
emails[].subjectstring
emails[].body_textstring
emails[].body_htmlstring
emails[].received_atdate-time
emails[].created_atdate-time