Fetch call notification

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json

Error notifications for calls

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Call Notification resource to fetch.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

  • CallSid string Required

    The Call SID of the Call Notification resource to fetch.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CA[0-9a-fA-F]{32}$.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Call Notification resource to fetch.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^NO[0-9a-fA-F]{32}$.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the Call Notification resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • api_version string | null

      The API version used to create the Call Notification resource.

    • call_sid string | null

      The SID of the Call the Call Notification resource is associated with.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CA[0-9a-fA-F]{32}$.

    • date_created string(date-time-rfc-2822) | null

      The date and time in GMT that the resource was created specified in RFC 2822 format.

    • date_updated string(date-time-rfc-2822) | null

      The date and time in GMT that the resource was last updated specified in RFC 2822 format.

    • error_code string | null

      A unique error code for the error condition that is described in our Error Dictionary.

    • log string | null

      An integer log level that corresponds to the type of notification: 0 is ERROR, 1 is WARNING.

    • message_date string(date-time-rfc-2822) | null

      The date the notification was actually generated in RFC 2822 format. Message buffering can cause this value to differ from date_created.

    • message_text string | null

      The text of the notification.

    • more_info string(uri) | null

      The URL for more information about the error condition. This value is a page in our Error Dictionary.

    • request_method string(http-method) | null

      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.

      Values are GET or POST.

    • request_url string(uri) | null

      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_variables string | null

      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_body string | null

      The HTTP body returned by your server.

    • response_headers string | null

      The HTTP headers returned by your server.

    • sid string | null

      The unique string that that we created to identify the Call Notification resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^NO[0-9a-fA-F]{32}$.

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com.

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json
curl \
 --request GET 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json' \
 --user "username:password"
Response examples (200)
{
  "log": "1",
  "sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "more_info": "https://www.twilio.com/docs/errors/15003",
  "error_code": "15003",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "api_version": "2008-08-01",
  "request_url": "",
  "date_created": "Tue, 18 Aug 2015 08:46:56 +0000",
  "date_updated": "Tue, 18 Aug 2015 08:46:57 +0000",
  "message_date": "Tue, 18 Aug 2015 08:46:56 +0000",
  "message_text": "statusCallback=http%3A%2F%2Fexample.com%2Ffoo.xml&ErrorCode=15003&LogLevel=WARN&Msg=Got+HTTP+404+response+to+http%3A%2F%2Fexample.com%2Ffoo.xml",
  "response_body": "",
  "request_method": null,
  "response_headers": "",
  "request_variables": ""
}