To obtain session details for fetching reports and dashboards

POST /v1/Insights/Session

To obtain session details for fetching reports and dashboards

Headers

  • Authorization string

    The Authorization HTTP request header

Responses

  • 201 application/json

    Created

    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
    • workspace_id string | null

      Unique ID to identify the user's workspace

    • session_expiry string | null

      The session expiry date and time, given in ISO 8601 format.

    • session_id string | null

      The unique ID for the session

    • base_url string | null

      The base URL to fetch reports and dashboards

    • url string(uri) | null

      The URL of this resource.

POST /v1/Insights/Session
curl \
 --request POST 'https://flex-api.twilio.com/v1/Insights/Session' \
 --user "username:password" \
 --header "Authorization: string"
Response examples (201)
{
  "url": "https://flex-api.twilio.com/v1/Insights/Session",
  "base_url": "https://analytics.ytica.com/",
  "session_id": "-----BEGIN PGP MESSAGE-----\n\nwcBMA11tX1FL13rp……kHXd\n=vOBk\n-----END PGP MESSAGE-----\n",
  "workspace_id": "clbi1eelh1x8z4.......ijpnyu",
  "session_expiry": "2022-09-27T09:28:01Z"
}