Skip to the documentation
API

Send a draft

Pass the id as `draftId`. The draft supplies the content, the request supplies the envelope.

POSTapi.openemail.uk/emails

Runs the real call against your workspace, with your own key.

POST /emails

Pass the id as draftId. The draft supplies the content, the request supplies the envelope.

Example

Needs emails:send.

curl
curl -X POST "$OE/emails" -H "$AUTH" -H "Content-Type: application/json" \  -d '{    "from": "[email protected]",    "to": ["[email protected]"],    "draftId": "draft-fdc85673-…"  }'
Response
{ "object": "email", "id": "msg_c5f21cc6…", "status": "sent" }

The envelope built here is what goes on the wire.