Skip to content
This site documents the main branch, which may hold changes not yet released. Latest release: v0.3.0 (changelog).

Resend: a message of the workspace by its id

GET
/emails/{id}
curl --request GET \
--url http://localhost:3000/emails/example \
--header 'Authorization: Bearer <token>'
id
required
string

The email.

Media typeapplication/json
object
object
required
string
Allowed value: email
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
message_id
required
string
to
required
Array<string>
from
required
string
created_at
required
string
subject
required
string
html
required
string | null
text
required
string | null
bcc
required
Array<string>
cc
required
Array<string>
reply_to
required
Array<string>
last_event
required
string
Allowed values: bounced canceled clicked complained delivered delivery_delayed failed opened queued scheduled sent suppressed
scheduled_at
required
string | null
tags
required
Array<object>
object
name
required
string
value
required
string

Example

{
"object": "email",
"last_event": "bounced"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: unauthorized

Media typeapplication/json
object
statusCode
required
integer
>= -9007199254740991 <= 9007199254740991
name
required
string
Allowed values: missing_api_key validation_error missing_required_field invalid_attachment invalid_parameter invalid_idempotency_key invalid_idempotent_request concurrent_idempotent_requests restricted_api_key not_found rate_limit_exceeded application_error service_unavailable
message
required
string

Example

{
"name": "missing_api_key"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: unauthorized

Media typeapplication/json
object
statusCode
required
integer
>= -9007199254740991 <= 9007199254740991
name
required
string
Allowed values: missing_api_key validation_error missing_required_field invalid_attachment invalid_parameter invalid_idempotency_key invalid_idempotent_request concurrent_idempotent_requests restricted_api_key not_found rate_limit_exceeded application_error service_unavailable
message
required
string

Example

{
"name": "missing_api_key"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

WWW-Authenticate
required

Sent with every 401.

string
Allowed value: Bearer

Sent with every 401.

Error: forbidden

Media typeapplication/json
object
statusCode
required
integer
>= -9007199254740991 <= 9007199254740991
name
required
string
Allowed values: missing_api_key validation_error missing_required_field invalid_attachment invalid_parameter invalid_idempotency_key invalid_idempotent_request concurrent_idempotent_requests restricted_api_key not_found rate_limit_exceeded application_error service_unavailable
message
required
string

Example

{
"name": "missing_api_key"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: not_found

Media typeapplication/json
object
statusCode
required
integer
>= -9007199254740991 <= 9007199254740991
name
required
string
Allowed values: missing_api_key validation_error missing_required_field invalid_attachment invalid_parameter invalid_idempotency_key invalid_idempotent_request concurrent_idempotent_requests restricted_api_key not_found rate_limit_exceeded application_error service_unavailable
message
required
string

Example

{
"name": "missing_api_key"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: validation_error

Media typeapplication/json
object
statusCode
required
integer
>= -9007199254740991 <= 9007199254740991
name
required
string
Allowed values: missing_api_key validation_error missing_required_field invalid_attachment invalid_parameter invalid_idempotency_key invalid_idempotent_request concurrent_idempotent_requests restricted_api_key not_found rate_limit_exceeded application_error service_unavailable
message
required
string

Example

{
"name": "missing_api_key"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: internal_error

Media typeapplication/json
object
statusCode
required
integer
>= -9007199254740991 <= 9007199254740991
name
required
string
Allowed values: missing_api_key validation_error missing_required_field invalid_attachment invalid_parameter invalid_idempotency_key invalid_idempotent_request concurrent_idempotent_requests restricted_api_key not_found rate_limit_exceeded application_error service_unavailable
message
required
string

Example

{
"name": "missing_api_key"
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.