curl --request GET \
--url https://api.example.com/v2/notifications/{id}{
"id": "<string>",
"reference": "<string>",
"email_address": "<string>",
"phone_number": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"line_3": "<string>",
"line_4": "<string>",
"line_5": "<string>",
"line_6": "<string>",
"postcode": "<string>",
"type": "<string>",
"status": "<string>",
"template": {
"template.id": "<string>",
"template.version": 123,
"template.uri": "<string>"
},
"body": "<string>",
"subject": "<string>",
"created_at": "<string>",
"sent_at": "<string>",
"completed_at": "<string>",
"scheduled_for": "<string>",
"estimated_delivery": "<string>",
"postage": "<string>",
"one_click_unsubscribe_url": "<string>",
"cost_in_pounds": 123,
"cost_details": {},
"is_cost_data_ready": true
}curl --request GET \
--url https://api.example.com/v2/notifications/{id}{
"id": "<string>",
"reference": "<string>",
"email_address": "<string>",
"phone_number": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"line_3": "<string>",
"line_4": "<string>",
"line_5": "<string>",
"line_6": "<string>",
"postcode": "<string>",
"type": "<string>",
"status": "<string>",
"template": {
"template.id": "<string>",
"template.version": 123,
"template.uri": "<string>"
},
"body": "<string>",
"subject": "<string>",
"created_at": "<string>",
"sent_at": "<string>",
"completed_at": "<string>",
"scheduled_for": "<string>",
"estimated_delivery": "<string>",
"postage": "<string>",
"one_click_unsubscribe_url": "<string>",
"cost_in_pounds": 123,
"cost_details": {},
"is_cost_data_ready": true
}Get the status and details of a notification by its ID.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.
sms, email, letter.created - The notification is being processedsending - The notification is being sentdelivered - The notification was successfully deliveredsent - The notification was sent internationally (SMS only)pending - The notification is pendingtemporary-failure - The notification failed but may be retriedpermanent-failure - The notification permanently failedtechnical-failure - A technical error occurredaccepted - The letter has been accepted for printing (maps to created or sending)received - The letter has been received by the postal service (maps to delivered)pending-virus-check - The letter is being scanned for viruses (precompiled only)virus-scan-failed - The letter failed virus scanning (precompiled only)validation-failed - The letter failed validationtechnical-failure - A technical error occurredfirst, second, economy, europe, rest-of-world.curl -X GET https://api.notifications.service.gov.uk/v2/notifications/740e5834-3a29-46b4-9a6f-16142fde533a \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "740e5834-3a29-46b4-9a6f-16142fde533a",
"reference": "appointment-reminder-123",
"email_address": null,
"phone_number": "+447700900123",
"line_1": null,
"line_2": null,
"line_3": null,
"line_4": null,
"line_5": null,
"line_6": null,
"postcode": null,
"type": "sms",
"status": "delivered",
"template": {
"id": "f33517ff-2a88-4f6e-b855-c550268ce08a",
"version": 1,
"uri": "https://api.notifications.service.gov.uk/services/8b3aa916-e138-4d4b-8c96-da8b6ddfe9a2/templates/f33517ff-2a88-4f6e-b855-c550268ce08a"
},
"body": "Hello John Smith, your appointment is on 12 March 2024.",
"subject": null,
"created_at": "2024-03-03T10:30:00.000000Z",
"sent_at": "2024-03-03T10:30:02.000000Z",
"completed_at": "2024-03-03T10:30:05.000000Z",
"scheduled_for": null,
"postage": null,
"one_click_unsubscribe_url": null,
"cost_in_pounds": 0.016,
"cost_details": {},
"is_cost_data_ready": true
}
{
"id": "950e5834-3a29-46b4-9a6f-16142fde533b",
"reference": "email-confirmation-456",
"email_address": "user@example.gov.uk",
"phone_number": null,
"line_1": null,
"line_2": null,
"line_3": null,
"line_4": null,
"line_5": null,
"line_6": null,
"postcode": null,
"type": "email",
"status": "delivered",
"template": {
"id": "f33517ff-2a88-4f6e-b855-c550268ce08a",
"version": 1,
"uri": "https://api.notifications.service.gov.uk/services/8b3aa916-e138-4d4b-8c96-da8b6ddfe9a2/templates/f33517ff-2a88-4f6e-b855-c550268ce08a"
},
"body": "Dear Jane Doe, your reference number is REF-12345.",
"subject": "Confirmation for Jane Doe",
"created_at": "2024-03-03T11:15:00.000000Z",
"sent_at": "2024-03-03T11:15:01.000000Z",
"completed_at": "2024-03-03T11:15:10.000000Z",
"scheduled_for": null,
"postage": null,
"one_click_unsubscribe_url": null,
"cost_in_pounds": 0.00,
"cost_details": {},
"is_cost_data_ready": true
}
{
"id": "a60e5834-3a29-46b4-9a6f-16142fde533c",
"reference": "letter-ref-789",
"email_address": null,
"phone_number": null,
"line_1": "The Occupier",
"line_2": "123 High Street",
"line_3": "London",
"line_4": null,
"line_5": null,
"line_6": null,
"postcode": "SW1A 1AA",
"type": "letter",
"status": "accepted",
"template": {
"id": "f33517ff-2a88-4f6e-b855-c550268ce08a",
"version": 1,
"uri": "https://api.notifications.service.gov.uk/services/8b3aa916-e138-4d4b-8c96-da8b6ddfe9a2/templates/f33517ff-2a88-4f6e-b855-c550268ce08a"
},
"body": "Dear John Smith,\n\nYour reference number is ABC123.",
"subject": "Your reference number",
"created_at": "2024-03-03T09:00:00.000000Z",
"sent_at": null,
"completed_at": null,
"scheduled_for": null,
"estimated_delivery": "2024-03-06T16:00:00.000000Z",
"postage": "second",
"one_click_unsubscribe_url": null,
"cost_in_pounds": 0.69,
"cost_details": {},
"is_cost_data_ready": true
}
{
"status_code": 400,
"errors": [
{
"error": "ValidationError",
"message": "notification_id is not a valid UUID"
}
]
}
{
"status_code": 404,
"errors": [
{
"error": "NoResultFound",
"message": "No result found"
}
]
}