POST
/
v1
/
inboxes
/
Create a new inbox
curl --request POST \
  --url https://api.distranmail.com/v1/inboxes/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "EMAIL_INBOX",
  "email": "support@company.com",
  "metadata": {
    "department": "Support",
    "team": "Customer Success"
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "EMAIL_INBOX",
  "status": "ACTIVE",
  "email": "jsmith@example.com",
  "display_name": "<string>",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201
application/json

Inbox created successfully

The response is of type object.