cURL
curl --request POST \ --url https://api.openmail.sh/v1/inboxes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "externalId": "<string>", "username": "<string>" } '
{ "id": "<string>", "address": "jsmith@example.com", "externalId": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Create a new email inbox. Optionally link to an external ID (e.g. your user ID) for mapping.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Your ID for this inbox (e.g. user ID)
Inbox local part (default: random)
3 - 30
Inbox created
openmail inbox ID
Full email address
Your external ID