Fetch task statistics

GET /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics

TODO: Resource-level docs

Path parameters

  • AssistantSid string Required

    The SID of the Assistant that is the parent of the resource to fetch.

  • TaskSid string Required

    The SID of the Task that is associated with the resource to fetch.

Responses

  • OK

    Hide response attributes Show response attributes 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}$.

    • assistant_sid string | null

      The SID of the Assistant that is the parent of the Task associated with the resource

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

    • fields_count integer | null

      The total number of Fields associated with the Task

    • samples_count integer | null

      The total number of Samples associated with the Task

    • task_sid string | null

      The SID of the Task for which the statistics were collected

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

    • url string(uri) | null

      The absolute URL of the TaskStatistics resource

GET /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics
curl \
 -X GET https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "assistant_sid": "string",
  "fields_count": 42,
  "samples_count": 42,
  "task_sid": "string",
  "url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "assistant_sid": "string",
  "fields_count": 42,
  "samples_count": 42,
  "task_sid": "string",
  "url": "https://example.com"
}