Skip to content
Sendtier Docs
API reference

Get one email with its events

Source: OpenAPI (openapi/openapi.yaml).

curl -X GET "https://api.sendtier.example/emails/string" \  -H "Authorization: Bearer st_live_REPLACE_ME"
{  "id": "string",  "status": "queued",  "status_detail": "string",  "created_at": "2019-08-24T14:15:22Z",  "from": "string",  "to": [    "string"  ],  "subject": "string",  "test_mode": true,  "html": "string",  "text": "string",  "tags": {    "property1": "string",    "property2": "string"  },  "scheduled_at": "2019-08-24T14:15:22Z",  "events": [    {      "type": "email.queued",      "occurred_at": "2019-08-24T14:15:22Z",      "data": {}    }  ]}
GET
/emails/{email_id}

Authorization

headerAuthorizationBearer <token>

API key: st_live_... or st_test_...

Path Parameters

email_id*string

Response Body

The email.

application/json
  1. response
id*string
status*EmailStatus
Value in"queued""scheduled""sent""delayed""delivered""bounced""complained""failed""canceled"
status_detail?string

Provider detail for the current status, truncated to 500 characters when present.

Lengthlength <= 500
created_at*string
Formatdate-time
from*string
to*array<string>
subject*string
test_mode*boolean
html?string
text?string
tags?
scheduled_at?string
Formatdate-time
events*array<>