Get a session by ID

GET /v1/Sessions/{id}

get a session

Path parameters

  • id string Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string

      The Session ID.

    • account_sid string

      The SID of the Account that created the Session resource.

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

    • assistant_id string

      The Assistant ID.

      Format should match the following pattern: ^aia_asst_.+$.

    • verified boolean

      True if the session is verified.

    • identity string

      The unique identity of user for the session.

    • date_created string(date-time)

      The date and time in GMT when the Session was created specified in ISO 8601 format.

    • date_updated string(date-time)

      The date and time in GMT when the Session was last updated specified in ISO 8601 format.

GET /v1/Sessions/{id}
curl \
 --request GET 'https://assistants.twilio.com/v1/Sessions/{id}' \
 --user "username:password"
Response examples (200)
{
  "id": "string",
  "account_sid": "string",
  "assistant_id": "string",
  "verified": true,
  "identity": "string",
  "date_created": "2025-05-04T09:42:00Z",
  "date_updated": "2025-05-04T09:42:00Z"
}