List sent email
const url = 'https://api.nsin.ir/domains/example.com/email-routing/sent?page=1&per_page=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.nsin.ir/domains/example.com/email-routing/sent?page=1&per_page=50' \ --header 'Authorization: Bearer <token>'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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The domain name (for example example.com) — not a numeric id.
Example
example.comQuery Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”A page of sent mail.
object
One recipient of one sent message.
object
Shared by the recipients of one send.
The sender address.
This row’s recipient.
queued with attempts above 0 is a soft failure waiting for its next try.
Delivery attempts so far.
The receiving server’s last reply code. 0 before the first attempt.
The receiving server’s last reply text.
TLS version of the last delivery connection
When a soft failure is tried again.
Example
{ "data": [ { "status": "queued" } ]}Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}