Skip to main content

Email Status

Track the delivery status of your transactional emails. List all sent emails with aggregate status counts, or get per-recipient delivery details for a specific email.

List Emails

Retrieve a paginated list of transactional emails sent by your organization.

Endpoint

GET /email

Query Parameters

ParameterTypeDefaultDescription
pagenumber1Page number
limitnumber20Results per page

Response

{
"data": [
{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"from": "noreply@yourdomain.com",
"from_name": "My App",
"subject": "Welcome to our platform",
"category": "welcome",
"status": {
"sent": 1,
"delivered": 1,
"opened": 0,
"bounced": 0,
"complained": 0
},
"created_at": "2026-03-08T12:00:00.000Z"
}
],
"meta": {
"total": 42,
"page": 1,
"limit": 20,
"totalPages": 3,
"hasNextPage": true,
"hasPrevPage": false
}
}

Status Fields

FieldDescription
sentMessages accepted by the mail provider
deliveredMessages confirmed delivered to the recipient's inbox
openedUnique opens tracked
bouncedMessages that bounced (hard or soft)
complainedRecipients who marked the email as spam
tip

The subject field returns null if the email content has been purged (content retention policy).


Examples

curl "https://api.arsel.sa/api/v1/email?page=1&limit=10" \
-H "Authorization: Bearer be_your_api_key"

Get Email Details

Retrieve detailed delivery status for a specific email, including per-recipient tracking.

Endpoint

GET /email/:id

Path Parameters

ParameterTypeDescription
idstringThe email ID returned from POST /email/send

Response

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"from": "noreply@yourdomain.com",
"from_name": "My App",
"to": [
{
"email": "user@example.com",
"status": "delivered",
"timestamp": "2026-03-08T12:00:05.000Z"
},
{
"email": "other@example.com",
"status": "bounced",
"timestamp": "2026-03-08T12:00:03.000Z"
}
],
"subject": "Welcome to our platform",
"html": "<h1>Welcome!</h1><p>Thanks for signing up.</p>",
"text": null,
"reply_to": null,
"category": "welcome",
"attachments": [
{
"filename": "guide.pdf",
"size": 204800,
"content_type": "application/pdf"
}
],
"created_at": "2026-03-08T12:00:00.000Z"
}

Recipient Status Values

StatusDescription
sentAccepted by the mail provider, delivery pending
deliveredConfirmed delivered to the recipient's inbox
openedRecipient opened the email
clickedRecipient clicked a link in the email
bouncedDelivery failed (address doesn't exist or mailbox full)
complainedRecipient reported the email as spam
rejectedThe mail provider rejected the message
unsubscribedRecipient unsubscribed via the email's unsubscribe link
render_failureThe email template failed to render

Examples

curl "https://api.arsel.sa/api/v1/email/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key"