Skip to documentation
Dashboard
Emails

Retrieve an email

Retrieve the current normalized state and delivery timestamps for a message.

GET/api/v1/emails/{messageId}
On this page

Authentication

Send a RouteKite API key as a Bearer token. This endpoint requires the email:read or email:send scope.

Required headers
NameTypeRequirementDescription
AuthorizationstringRequiredBearer API key with the required workspace scope.Example: Bearer rk_your_key

Path parameters

Path parameters
NameTypeRequirementDescription
messageIduuidRequiredThe ID returned by the send endpoint.Example: 7dd5da7f-40b0-4c29-bb78-7e0d95ef9eb7

Response

Response fields
NameTypeRequirementDescription
iduuidAlwaysThe RouteKite message identifier.
stateenumAlwaysThe normalized delivery state.
purposeenumAlwaysTransactional for public API messages.
from_emailemailAlwaysThe Sending Address used for delivery.
from_namestring | nullAlwaysThe configured sender name.
reply_to_emailemail | nullAlwaysThe per-message reply address, or null when the Sending Address default is used.
to_emailemailAlwaysThe recipient address.
subjectstringAlwaysThe submitted subject.
queued_atdate-time | nullAlwaysWhen delivery processing began.
submitted_atdate-time | nullAlwaysWhen the receiving delivery network accepted the message.
delivered_atdate-time | nullAlwaysWhen delivery was confirmed.
terminal_atdate-time | nullAlwaysWhen a final outcome was recorded.
failure_codestring | nullAlwaysA stable failure category when available.
failure_messagestring | nullAlwaysA readable delivery explanation when available.
created_atdate-timeAlwaysWhen the message was created.

Behavior

The message must belong to the key's workspace. email:read or email:send can retrieve it.

Errors

StatusCodeWhat it meansWhat to do
401UNAUTHORIZEDThe key is invalid.Check the Bearer header.
403FORBIDDENThe key cannot read status.Use email:read or email:send.
404NOT_FOUNDThe message is unavailable in this workspace.Check the ID and workspace.
500INTERNAL_ERRORStatus could not be loaded.Retry after a short delay.