Skip to main content

List all requirement types

GET 
/requirement_types

List all requirement types ordered by created_at descending

Request

Query Parameters

    filter[name][contains] string

    Filters requirement types to those whose name contains a certain string.

    sort[] string

    Possible values: [created_at, name, updated_at]

    Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a - in front of the field name.

Responses

200: Successful response

Response Headers

    500: Unexpected error

    Response Headers

      Request samples


      curl -L 'https://api.telnyx.com/v2/requirement_types' \
      -H 'Accept: application/json' \
      -H 'Authorization: Bearer <TOKEN>'

      Response samples


      {
      "data": [
      {
      "acceptance_criteria": {
      "time_limit": [
      "Current and not expired"
      ],
      "locality_limit": [
      "Issued by the same country that the phone number belongs to"
      ],
      "acceptable_values": [
      [
      "US"
      ]
      ],
      "max_length": 20,
      "min_length": 16,
      "acceptable_characters": "abcdef0123456789"
      },
      "description": [
      "Proves the customer has a physical address in the same locality as the phone number"
      ],
      "example": [
      "Utility bill, internet bill, phone bill, or lease"
      ],
      "type": [
      "document"
      ],
      "name": [
      "Proof of Address"
      ],
      "record_type": [
      "requirement_type"
      ],
      "id": [
      "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
      ],
      "created_at": [
      "2021-04-09T22:25:27.521Z"
      ],
      "updated_at": [
      "2021-04-12T20:20:20.020Z"
      ]
      }
      ],
      "meta": {
      "total_pages": [
      3
      ],
      "total_results": [
      55
      ],
      "page_number": [
      2
      ],
      "page_size": [
      25
      ]
      }
      }