Sample - Twilio API
GET/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json

Get a notification

Retrieves one notification belonging to the account used for the request. Use Sid to identify the notification and inspect its error details, generated request information, timestamps, and response data.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
AccountSidstringrequired
The SID of the account that created the notification. Must be a 34-character SID matching the `AC` account identifier format.
Sidstringrequired
The unique SID of the notification to retrieve. Must be a 34-character SID beginning with `NO`.

1 status code
200Returns the notification object, including its account and call SIDs, API version, error code and message, log level, timestamps, request method and URL, request variables, response body, and response headers.
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource.
api_versionstringoptional
The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls.
call_sidstringoptional
The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with.
date_createdstringoptional
The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
date_updatedstringoptional
The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
error_codestringoptional
A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors).
logstringoptional
An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING.
message_datestringoptional
The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`.
message_textstringoptional
The text of the notification.
more_infostringoptional
The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors).
request_methodstringoptional
The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers.
Allowed:GETPOST
request_urlstringoptional
The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called.
request_variablesstringoptional
The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API.
response_bodystringoptional
The HTTP body returned by your server.
response_headersstringoptional
The HTTP headers returned by your server.
sidstringoptional
The unique string that that we created to identify the Notification resource.
uristringoptional
The URI of the resource, relative to `https://api.twilio.com`.

Error handling

AccountSid must be a 34-character SID beginning with AC, and Sid must be a 34-character notification SID beginning with NO. Both identifiers must identify the notification resource to retrieve.