Skip to main content
POST
/
v1
/
inboxes
/
{id}
/
send
Send email
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"
}

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string
required

Unique key for idempotent sends (e.g. UUID)

Path Parameters

id
string
required

Body

application/json
to
string<email>
required
subject
string
required
Minimum string length: 1
body
string
required
Minimum string length: 1
bodyHtml
string
threadId
string

Thread ID for replies

Response

Email sent (or idempotent replay)

messageId
string
threadId
string
providerMessageId
string
status
enum<string>
Available options:
pending,
sent,
failed