ドキュメント本文へスキップ
API

下書きを送信する

id を `draftId` として渡します。内容は下書きが、封筒はリクエストが提供します。

POSTapi.openemail.uk/emails

実際の呼び出しを、ご自身のキーで自分のワークスペースに対して実行します。

POST /emails

id を draftId として渡します。内容は下書きが、封筒はリクエストが提供します。

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-…"  }'
レスポンス
{ "object": "email", "id": "msg_c5f21cc6…", "status": "sent" }

ここで組み立てられた封筒が、実際に送出されるものです。