cURL
curl --request POST \ --url https://api.openmail.sh/v1/inboxes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "mailboxName": "<string>", "displayName": "<string>" } '
{ "id": "<string>", "address": "jsmith@example.com", "displayName": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Create a new email inbox. Optionally set a sender display name.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Inbox local part (default: random)
3 - 30
Sender display name shown in the From header
200
Inbox created
OpenMail inbox ID
Full email address
Sender display name
Was this page helpful?