Fetch event

GET /v1/Events/{Sid}

Debugger events

Path parameters

  • Sid string Required

    The SID of the Event resource to fetch.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AE[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 Event resource.

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

    • actor_sid string | null

      The SID of the actor that caused the event, if available. This can be either a User ID (matching the pattern ^US[0-9a-fA-F]{32}$) or an Account SID (matching the pattern ^AC[0-9a-fA-F]{32}$). If the actor's SID isn't available, this field will be null.

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

    • actor_type string | null

      The type of actor that caused the event. Can be: user for a change made by a logged-in user in the Twilio Console, account for an event caused by an API request by an authenticating Account, twilio-admin for an event caused by a Twilio employee, and so on.

    • description string | null

      A description of the event. Can be null.

    • event_data

      An object with additional data about the event. The contents depend on event_type. For example, event-types of the form RESOURCE.updated, this value contains a resource_properties dictionary that describes the previous and updated properties of the resource.

    • event_date string(date-time) | null

      The date and time in GMT when the event was recorded specified in ISO 8601 format.

    • event_type string | null

      The event's type. Event-types are typically in the form: RESOURCE_TYPE.ACTION, where RESOURCE_TYPE is the type of resource that was affected and ACTION is what happened to it. For example, phone-number.created. For a full list of all event-types, see the Monitor Event Types.

    • resource_sid string | null

      The SID of the resource that was affected.

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

    • resource_type string | null

      The type of resource that was affected. For a full list of all resource-types, see the Monitor Event Types.

    • sid string | null

      The unique string that we created to identify the Event resource.

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

    • source string | null

      The originating system or interface that caused the event. Can be: web for events caused by user action in the Twilio Console, api for events caused by a request to our API, or twilio for events caused by an automated or internal Twilio system.

    • source_ip_address string | null

      The IP address of the source, if the source is outside the Twilio cloud. This value is null for events with source of twilio

    • url string(uri) | null

      The absolute URL of the resource that was affected. Can be null.

GET /v1/Events/{Sid}
curl \
 --request GET 'https://monitor.twilio.com/v1/Events/{Sid}' \
 --user "username:password"
Response examples (200)
{
  "sid": "AEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://monitor.twilio.com/v1/Events/AEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "links": {
    "actor": "https://monitor.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "resource": "https://monitor.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "source": "api",
  "actor_sid": "USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "actor_type": "account",
  "event_data": {
    "friendly_name": {
      "updated": "Mr. Friendly",
      "previous": "SubAccount Created at 2014-10-03 09:48 am"
    }
  },
  "event_date": "2014-10-03T16:48:25Z",
  "event_type": "account.updated",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "description": null,
  "resource_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "resource_type": "account",
  "source_ip_address": "10.86.6.250"
}