List metric

GET /v1/Voice/{CallSid}/Metrics

TODO: Resource-level docs

Path parameters

  • CallSid string Required

Query parameters

  • Edge string

    Values are unknown_edge, carrier_edge, sip_edge, sdk_edge, or client_edge.

  • Direction string

    Values are unknown, inbound, outbound, or both.

  • 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

  • 200

    OK

    Hide response attributes Show response attributes object
    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri)
      • page integer
      • page_size integer
      • previous_page_url string(uri)
      • url string(uri)
    • metrics array[object]
      Hide metrics attributes Show metrics attributes array[object]
      • account_sid string | null

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

      • call_sid string | null

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

      • carrier_edge
      • client_edge
      • direction string | null

        Values are unknown, inbound, outbound, or both.

      • edge string | null

        Values are unknown_edge, carrier_edge, sip_edge, sdk_edge, or client_edge.

      • sdk_edge
      • sip_edge
      • timestamp string | null
GET /v1/Voice/{CallSid}/Metrics
curl \
 -X GET https://insights.twilio.com/v1/Voice/{CallSid}/Metrics \
 --user "username:password"
Response examples (200)
{
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  },
  "metrics": [
    {
      "account_sid": "string",
      "call_sid": "string",
      "direction": "unknown",
      "edge": "unknown_edge",
      "timestamp": "string"
    }
  ]
}
Response examples (200)
{
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  },
  "metrics": [
    {
      "account_sid": "string",
      "call_sid": "string",
      "direction": "unknown",
      "edge": "unknown_edge",
      "timestamp": "string"
    }
  ]
}