List notifications with cursor pagination
const url = 'https://your-notavia-host/v1/notifications?status=queued&limit=20';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://your-notavia-host/v1/notifications?status=queued&limit=20' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”Paginated list of notifications.
object
object
Notification channel identifier.
object
object
object
A step in the message’s life: Queued, Sending, Sent, Retrying, Failed, Delivered, Bounced, Complained, DeliveryDelayed, Opened, Clicked, FailedOver, AttemptFailed. FailedOver means a provider refused the message and the next provider in your chain was tried; AttemptFailed means a provider refused it and there was nowhere left to go. Deliberately an open string, not an enum — new values are added over time and must not break a generated client.
Metadata for files that were attached to this email notification.
Bytes are purged after delivery; the purged flag indicates whether
this has occurred. Omitted when the notification had no attachments.
object
Original file name.
MIME type of the file.
File size in bytes.
True when the attachment bytes have been deleted from ephemeral storage after delivery. The metadata fields (filename, content_type, size_bytes) are always retained.
Example
{ "data": [ { "status": "queued", "channel": "email", "events": [ { "type": "FailedOver" } ] } ]}Validation or request error.
object
object
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}Missing or invalid credentials.
object
object
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}Credentials do not have the required scope.
object
object
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}