Retrieve a list of all Policys

GET /v1/Policies

TODO: Resource-level docs

Retrieve a list of all Policys.

Query parameters

  • 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
    • results array[object]
      Hide results attributes Show results attributes
      • friendly_name string | null

        A human-readable description of the Policy resource

      • The sid of a Policy object that dictates requirements

      • sid string | null

        The unique string that identifies the Policy resource

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

      • url string(uri) | null

        The absolute URL of the Policy resource

GET /v1/Policies
curl \
 -X GET https://trusthub.twilio.com/v1/Policies \
 --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"
  },
  "results": [
    {
      "friendly_name": "string",
      "sid": "string",
      "url": "https://example.com"
    }
  ]
}