List sent email
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
Mail sent from this domain with the send endpoint, newest first, one
row per recipient, with the receiving server's answer. Rows are kept
30 days; the text of a message is never kept. Requires domain.view.
Path parameters
- domainstringrequiredpath
The domain name (for example
example.com) — not a numeric id.
Query parameters
- pageintegerqueryDefault:
1 - per_pageintegerqueryDefault:
50
Responses
200A page of sent mail.
Content type: application/json
- dataarray of EmailSentMessage
Item fields
- idinteger
- group_idstring
Shared by the recipients of one send.
- fromstring
The sender address.
- from_namestring
- tostring
This row's recipient.
- subjectstring
- statusstring
queuedwithattemptsabove 0 is a soft failure waiting for its next try.One of:"queued""sending""sent""failed" - attemptsinteger
Delivery attempts so far.
- smtp_codeinteger
The receiving server's last reply code. 0 before the first attempt.
- responsestring
The receiving server's last reply text.
- tlsstring
TLS version of the last delivery connection
- created_atstring (date-time)
- sent_atstring | null (date-time)
- next_try_atstring | null (date-time)
When a soft failure is tried again.
- totalinteger
- pageinteger
- per_pageinteger
{
"data": [
{
"id": 0,
"group_id": "string",
"from": "string",
"from_name": "string",
"to": "string",
"subject": "string",
"status": "queued",
"attempts": 0,
"smtp_code": 0,
"response": "string",
"tls": "string",
"created_at": "2026-01-01T00:00:00Z",
"sent_at": "2026-01-01T00:00:00Z",
"next_try_at": "2026-01-01T00:00:00Z"
}
],
"total": 0,
"page": 0,
"per_page": 0
}401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}429The key exceeded its request budget (300 requests per minute by default).
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/domains/example.com/email-routing/sent" \
-H "Authorization: Bearer $NSIN_API_KEY"