メール

メールを検索

事件の履歴を一つのメールで受け取る

GET/emails/:id
1curl -X GET 'https://sendtern.com/emails/47be30ca-24b7-48fb-b35d-ff287b89e66d' \
2  -H 'Authorization: Bearer st_your_api_key'
応答
1{
2  "id": "47be30ca-24b7-48fb-b35d-ff287b89e66d",
3  "object": "email",
4  "from": "hello@mail.example.com",
5  "to": [
6    "recipient@example.com"
7  ],
8  "subject": "Hello",
9  "last_event": "delivered",
10  "mode": "live",
11  "created_at": "2026-11-22T09:00:00.000Z",
12  "events": [
13    {
14      "kind": "delivered",
15      "created_at": "2026-11-22T09:00:01.000Z",
16      "detail": "250 2.0.0 OK"
17    }
18  ]
19}

Returns the email, its current status and every delivery event. Requires a Full access key.

パスパラメータ

idstring必要なのは

The email id, for example 47be30ca-24b7-48fb-b35d-ff287b89e66d.