This API allows you to retrieve metadata about a specific message sent via our API via its id. The most common use case for this API is to check on the status of a message.
How It Works
To use this API, you must save the id field in the response returned when making an API call to send the Gov.sg message.
Example Response
{"id":"505","recipient":"+6581489408","template_id":"1","params": {"topic":"document collection","agency":"Open Government Products","timeslot":"1-3PM","officer_name":"John Tan","recipient_name":"Stanley Nguyen","officer_designation":"Reception Officer" },"language_code":"en_GB","created_at":"2023-07-31T16:39:59.631Z","updated_at":"2023-07-31T16:40:02.558Z","accepted_at":"2023-07-31T16:40:01.526Z","sent_at":"2023-07-31T16:40:01.000Z","delivered_at":"2023-07-31T16:40:02.000Z","read_at":null,"errored_at":null,"error_code":null,"error_description":null,"status":"DELIVERED"}
UNSENT - initial state of a newly created transactional GovSG message (this status is not returned in the course of a successful request to send a GovSG message)
ACCEPTED - Message has been accepted by our service provider (this status is returned in the course of a successful request to send a GovSG message)
SENT - the send request was successfully forwarded to our service provider and our service provider will attempt to deliver the message to the recipientβs phone number (API user can check this and all subsequent statuses via the /transactional/govSG/{messageId} endpoint)
DELIVERED - the service provider has successfully delivered the message to the recipient's phone number
READ - the recipient has received the message and viewed it
ERROR - an error happened when the service provider is trying to deliver the message