Skip to content

Get an email log

GET
/emails/{id}
curl --request GET \
--url https://mail.teamander.com/v1/emails/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
--header 'Authorization: Bearer <token>'
id
required

Resource identifier

string
Example
a1b2c3d4-e5f6-7890-abcd-ef1234567890

The email log

Media typeapplication/json
object
id
required
string
recipient_email
required
string
sender_email
required
string
template_id
required
string
nullable
subject
required
string
status
required
string
smtp_provider
required
string
smtp_response
required
string
nullable
error_message
required
string
nullable
attempts
required
integer
sent_at
required
string
nullable
created_at
required
string
Examplegenerated
{
"id": "example",
"recipient_email": "example",
"sender_email": "example",
"template_id": "example",
"subject": "example",
"status": "example",
"smtp_provider": "example",
"smtp_response": "example",
"error_message": "example",
"attempts": 1,
"sent_at": "example",
"created_at": "example"
}

Missing or invalid API key

Media typeapplication/json
object
error
required
string
message
string
Example
{
"error": "Invalid API key"
}

Not found

Media typeapplication/json
object
error
required
string
message
string
Example
{
"error": "not_found"
}