cURL
curl --request POST \ --url https://api.openmail.sh/v1/inboxes/{id}/send \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: <idempotency-key>' \ --data ' { "to": "jsmith@example.com", "subject": "<string>", "body": "<string>", "bodyHtml": "<string>", "threadId": "<string>" } '
{ "messageId": "<string>", "threadId": "<string>", "providerMessageId": "<string>", "status": "pending" }
Send an email from an inbox. Requires Idempotency-Key header. Use threadId to reply to an existing thread.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Unique key for idempotent sends (e.g. UUID)
1
Thread ID for replies
Email sent (or idempotent replay)
pending
sent
failed