cURL
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" }
Creates a new email inbox for receiving and sending messages
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Inbox created successfully
The response is of type object.
object