Simplifyd Cloud
SmailAPI ReferenceEmailsGet Email

Get Email

Retrieve the status and details of a single email send.

GET /api/v1/emails/:id

Returns a single email record by ID. Authenticate with an X-API-Key header.

Path parameters

ParameterTypeDescription
idstringThe email ID returned from Send Email

Response

Returns 200 OK with an email object:

FieldTypeDescription
idstringUnique email ID
statusstring"queued", "sent", or "failed"
fromstringSender address
tostringPrimary recipient address
subjectstringSubject line
created_atstringISO 8601 timestamp
{
  "email": {
    "id": "em_01hx...",
    "status": "sent",
    "from": "noreply@yourdomain.com",
    "to": "user@example.com",
    "subject": "Your order has shipped",
    "created_at": "2024-01-15T10:30:00Z"
  }
}

Code examples

curl https://api.smail.dev/api/v1/emails/em_01hx... \
  -H "X-API-Key: sk_live_..."
const { email } = await smail.emails.get("em_01hx...");
console.log("Status:", email.status);
email, err := client.Emails.Get(ctx, "em_01hx...")
fmt.Println("Status:", email.Status)

Error responses

StatusErrorDescription
401unauthorizedMissing or invalid API key
404not foundEmail ID does not exist or belongs to another account