List Notifications
Notifications
List Notifications
GET
List Notifications
Get a paginated list of all notifications sent by your service.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alphagov/notifications-api/llms.txt
Use this file to discover all available pages before exploring further.
Query Parameters
Filter notifications by the reference you provided when sending. Returns all notifications with this reference.
Filter notifications by status. You can provide multiple status values. Possible values:For SMS and Email:
createdsendingsentdeliveredpendingfailedtechnical-failuretemporary-failurepermanent-failure
accepted- Letter accepted for printingreceived- Letter received by postal servicecancelledpending-virus-checkvirus-scan-failedvalidation-failedtechnical-failurereturned-letter
Filter notifications by type. You can provide multiple types. Possible values:
sms, email, letter.A notification UUID. Returns the next page of notifications older than this notification. Use this for pagination.
Set to
true or True to include notifications sent via CSV upload jobs. By default, only API-sent notifications are returned.Response
An array of notification objects. Each notification has the same structure as returned by the Get Notification endpoint.
Example Request
Example Request with Pagination
Example Response
Example Response (No More Results)
Error Responses
400 Bad Request
Invalid status valuePagination
The API returns a maximum number of notifications per request (typically 250). To retrieve all notifications:- Make an initial request without the
older_thanparameter - Check if the response includes a
links.nextURL - If present, extract the
older_thanvalue from the next URL - Make another request with the
older_thanparameter - Repeat until no
links.nextis present in the response
Notes
- Notifications are returned in reverse chronological order (newest first)
- The API retains notifications for 7 days
- By default, only API-sent notifications are returned. Use
include_jobs=trueto include bulk upload notifications - Multiple status or template_type values can be provided by repeating the parameter:
?status=delivered&status=sent