Inboxes

Receive inbound email

An inbox is the destination for inbound email. Each inbox is created inside a folder and gets a unique generated address that can receive mail from any sender.

List inboxes

get

Returns all inboxes in a folder.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
folder_idintegerRequired

Inbound folder ID

Example: 1
Responses
200

List of inboxes

application/json
idintegerOptionalExample: 1
namestringOptionalExample: Support tickets
addressstring · emailOptional

Generated inbound address. Mail sent to this address is delivered to the inbox.

Example: [email protected]
get
/api/inbound/folders/{folder_id}/inboxes
cURL

Create an inbox

post

Create a new inbox in a folder. Mailtrap generates the inbox address automatically based on the name.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
folder_idintegerRequired

Inbound folder ID

Example: 1
Body
namestring · max: 100RequiredExample: Support tickets
Responses
post
/api/inbound/folders/{folder_id}/inboxes
cURL

Get an inbox

get

Returns a single inbox.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
folder_idintegerRequired

Inbound folder ID

Example: 1
inbox_idintegerRequired

Inbound inbox ID

Example: 1
Responses
200

Inbox details

application/json
idintegerOptionalExample: 1
namestringOptionalExample: Support tickets
addressstring · emailOptional

Generated inbound address. Mail sent to this address is delivered to the inbox.

Example: [email protected]
get
/api/inbound/folders/{folder_id}/inboxes/{inbox_id}
cURL

Delete an inbox

delete

Permanently delete an inbox and all its received messages.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
folder_idintegerRequired

Inbound folder ID

Example: 1
inbox_idintegerRequired

Inbound inbox ID

Example: 1
Responses
delete
/api/inbound/folders/{folder_id}/inboxes/{inbox_id}
cURL

No content

Update an inbox

patch

Rename an inbox. The generated address does not change.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
folder_idintegerRequired

Inbound folder ID

Example: 1
inbox_idintegerRequired

Inbound inbox ID

Example: 1
Body
namestring · max: 100RequiredExample: Support tickets
Responses
200

Inbox updated

application/json
idintegerOptionalExample: 1
namestringOptionalExample: Support tickets
addressstring · emailOptional

Generated inbound address. Mail sent to this address is delivered to the inbox.

Example: [email protected]
patch
/api/inbound/folders/{folder_id}/inboxes/{inbox_id}
cURL

Last updated

Was this helpful?