Retrieve a list of notifications belonging to the account used to make the request

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

[DEPRECATED] Log entries

Retrieve a list of notifications belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Notification resources to read.

Query parameters

  • Log integer

    Only read notifications of the specified log level. Can be: 0 to read only ERROR notifications or 1 to read only WARNING notifications. By default, all notifications are read.

  • MessageDate string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • MessageDate< string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • MessageDate> string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • notifications array[object]
      Hide notifications attributes Show notifications attributes array[object]
      • account_sid string | null

        The SID of the Account that created the 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 generate the notification

      • call_sid string | null

        The SID of the Call the 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 RFC 2822 date and time in GMT that the resource was created

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

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

      • error_code string | null

        A unique error code corresponding to the notification

      • log string | null

        An integer log level

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

        The date the notification was generated

      • message_text string | null

        The text of the notification

      • more_info string(uri) | null

        A URL for more information about the error code

      • request_method string(http-method) | null

        HTTP method used with the request url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • request_url string(uri) | null

        URL of the resource that generated the notification

      • sid string | null

        The unique string that identifies the resource

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

      • uri string(uri) | null

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

    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Notifications.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Notifications.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "notifications": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "error_code": "string",
      "log": "string",
      "message_date": "string",
      "message_text": "string",
      "more_info": "https://example.com",
      "request_method": "HEAD",
      "request_url": "https://example.com",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "notifications": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "error_code": "string",
      "log": "string",
      "message_date": "string",
      "message_text": "string",
      "more_info": "https://example.com",
      "request_method": "HEAD",
      "request_url": "https://example.com",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}