Zerokit
Emails

Retrieve email

Fetch a single email by ID. Returns 404 if the email belongs to another workspace or has been deleted.

GET
/emails/{id}

Fetch a single email by ID. Returns 404 if the email belongs to another workspace or has been deleted.

Authorization

bearerAuth
AuthorizationBearer <token>

Workspace-scoped API key issued via the dashboard. Send as Authorization: Bearer zk_live_... on every request.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/emails/email_2bV4dXyZ8AfQpkw7Lp"
{
  "id": "email_2bV4dXyZ8AfQpkw7Lp",
  "organizationId": "string",
  "apiKeyId": "string",
  "from": "Acme <[email protected]>",
  "to": [
    "[email protected]"
  ],
  "subject": "string",
  "status": "queued",
  "provider": "ses",
  "providerMessageId": "010f01...",
  "errorMessage": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "sentAt": "2019-08-24T14:15:22Z",
  "failedAt": "2019-08-24T14:15:22Z"
}
{
  "error": "The from domain is not verified for this organization."
}
{
  "error": "Not found"
}