# Get all available number types (paginated).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v1",
    "title": "Channels API"
  },
  "paths": {
    "/channels/v1/accounts/{accountId}/phonenumbers/numbertypes": {
      "get": {
        "tags": [
          "PhoneNumbers"
        ],
        "summary": "Get all available number types (paginated).",
        "operationId": "PhoneNumbers_GetNumberTypesAsync",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "The account identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "numberTypeId",
            "in": "query",
            "description": "The number type identifier.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "The currency.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "The country.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "The category.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "description": "The purpose.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "skip",
            "in": "query",
            "description": "The skip.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "The take.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.Sms.ApiNumberTypeResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.Sms.ApiNumberTypeResponse"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "components": {
    "schemas": {
      "CM.Platform.Channels.Models.Pricing.ApiProductPricing": {
        "required": [
          "currencyIsoCode",
          "supportsMonthlySubscription",
          "monthlyPricePlanId",
          "supportsYearlySubscription",
          "yearlyPricePlanId",
          "isCountryFallback"
        ],
        "type": "object",
        "properties": {
          "currencyIsoCode": {
            "type": "string"
          },
          "supportsMonthlySubscription": {
            "type": "boolean"
          },
          "monthlyPrice": {
            "format": "double",
            "type": "number"
          },
          "monthlySetupFee": {
            "format": "double",
            "type": "number"
          },
          "monthlyPricePlanId": {
            "format": "int32",
            "type": "integer"
          },
          "monthlyPricingActiveSinceUtc": {
            "format": "date-time",
            "type": "string"
          },
          "supportsYearlySubscription": {
            "type": "boolean"
          },
          "yearlyPrice": {
            "format": "double",
            "type": "number"
          },
          "yearlySetupFee": {
            "format": "double",
            "type": "number"
          },
          "yearlyPricePlanId": {
            "format": "int32",
            "type": "integer"
          },
          "yearlyPricingActiveSinceUtc": {
            "format": "date-time",
            "type": "string"
          },
          "isOverride": {
            "type": "boolean"
          },
          "isCountryFallback": {
            "type": "boolean"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.Sms.ApiNumberTypeResponse": {
        "required": [
          "id",
          "purpose",
          "country",
          "category",
          "noticePeriodDays",
          "keywordNoticePeriodDays",
          "numberRequestProcessingDays",
          "requiredCapability"
        ],
        "type": "object",
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "purpose": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "productPricing": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.Pricing.ApiProductPricing"
          },
          "noticePeriodDays": {
            "format": "int32",
            "type": "integer"
          },
          "keywordNoticePeriodDays": {
            "format": "int32",
            "type": "integer"
          },
          "numberRequestProcessingDays": {
            "format": "int32",
            "type": "integer"
          },
          "requiredCapability": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 190,
      "2": 212,
      "3": 166,
      "4": 50,
      "5": 7,
      "6": 123,
      "7": 0,
      "8": 17,
      "9": 137,
      "10": 237,
      "11": 0
    }
  }
}
```