Sonetel Country API

The Country API from Sonetel — 1 operation(s) for country.

Operations 1

GET /country Inventory - Phone number support by country #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-account-get-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-account-put-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-account-data-mgr-call-rec-settings-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-user-get-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-user-call-settings-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-user-update-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-single-phone-number-subscription-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-list-phnum-subscriptions-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-call-recording-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-call-recording-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-voiceapp-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-create-prompt-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-requested-by-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-file-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-write-to-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-account-context-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-file-input-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sonetel/refs/heads/main/json-schema/sonetel-file-with-id-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sonetel:sonetel-country-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sonetel-country-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonetel Country API
  version: '2.0'
  contact:
    email: api.support@sonetel.com
  termsOfService: https://sonetel.com/en/help/help-topics/terms-conditions/terms-conditions/
  description: 'Operations tagged Country across 2 of this provider''s published API definitions: phone_numbers.yaml, sonetel-phone-numbers-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://public-api.sonetel.com/
  description: Production
tags:
- name: Country
paths:
  /country:
    get:
      summary: Inventory - Phone number support by country
      description: '# Inventory - Phone number support by country


        This endpoint provides an overview of the different types of phone numbers available across the world.


        It allows you to filter the response by number type, country name, phone number support and other properties listed below.


        To filter the response just add one or more of the query parameters to the API call. For example, to get a list of all the countries from where we offer mobile numbers use `GET /country?type=mobile`.


        This endpoint does not return information about the actual phone numbers available for purchase. Use `/numberstocksummary` and `/availablephonenumber` endpoints to get the details such as how many numbers are available, what do they cost and the actual list of phone numbers.'
      operationId: get-country
      parameters:
      - name: country
        in: query
        description: The three letter country ISO code.
        schema:
          type: string
          examples:
          - GBR, DEU, USA
      - name: name
        in: query
        description: The name of the country. Allows string wildcard search.
        schema:
          type: string
          examples:
          - australia, united*
      - name: country_code
        in: query
        description: The telephony country code as per ITU standards.
        schema:
          type: string
          examples:
          - 32, 91, 49
      - name: phnum_support
        in: query
        description: Add this flag to search for countries where phone numbers are available for purchase.
        schema:
          type: string
          enum:
          - 'yes'
          - 'no'
      - name: freetest
        in: query
        description: Flag to limit the results to countries where free test phone numbers are available.
        schema:
          type: string
          enum:
          - 'yes'
          - 'no'
      - name: type
        in: query
        description: Limit the response to a certain phone number type such as geographic or mobile. This is a multi-value filter.
        schema:
          type: string
          enum:
          - mobile
          - national
          - tollfree
          - geographic
      - name: sms_support
        in: query
        description: Flag to limit the results to countries where phone numbers support SMS
        schema:
          type: string
          enum:
          - 'yes'
          - 'no'
      - name: order_type
        in: query
        description: Limit results to number types that match this order_type (s). Multiple order types can be specified comma separated. Possible values `select-order`, `online-order`, `offline-order`.
        schema:
          type: string
          examples:
          - online-order,select-order
      - name: freeplan
        in: query
        description: Flag to limit the results to countries where numbers are available free with [Sonetel's Premium and Business plans](https://www.sonetel.com/plans)
        schema:
          type: boolean
      responses:
        '200':
          $ref: '#/components/responses/Country-response'
      security: []
      servers:
      - url: https://public-api.sonetel.com/
        description: Production
      tags:
      - Country
    servers:
    - url: https://public-api.sonetel.com/
      description: Production
components:
  responses:
    Country-response:
      description: Example response
      content:
        application/json:
          schema:
            type: object
            properties:
              resource:
                type: string
                description: Name of the resource accessed
                minLength: 1
              status:
                type: string
                description: Status of the response
                minLength: 1
              response:
                type: array
                description: The response object - contains a list of countries.
                minItems: 1
                uniqueItems: true
                items:
                  type: object
                  properties:
                    country:
                      type: string
                      description: The 3 letter ISO code of the country. For example, GBR for United Kingdom.
                      minLength: 1
                    country_code:
                      type: string
                      description: The telephone country code assigned to the user as per ITU standards.
                      minLength: 1
                    vat_applicable:
                      type: boolean
                      description: Boolean flag indicating whether VAT is applicable for this country or not. Only applicable for countries that are part of the European Union.
                    phonenumbers:
                      type: array
                      description: Information about phone number types available from this country.
                      minItems: 1
                      uniqueItems: true
                      items:
                        type: object
                        properties:
                          phnum_support:
                            type: string
                            enum:
                            - 'yes'
                            - 'no'
                            description: Flag that indicates whether this phone number type is supported in this country.
                            readOnly: true
                          type:
                            type: string
                            enum:
                            - national
                            - geographic
                            - tollfree
                            - mobile
                            description: Indicates the type of phone number such as mobile or tollfree.
                            readOnly: true
                          freetest:
                            type: string
                            description: Flag specifying if numbers of this type are available for free test in this country
                          freeplan:
                            type: boolean
                            description: Indicates whether the phone number can be assigned for free with the [Premium or Business plan](https://sonetel.com/plans)
                            default: true
                          fax_support:
                            type: string
                            description: Flag that specifies if this type of number can receive Fax. Not applicable to new phone numbers.
                            readOnly: true
                            x-deprecated: true
                          sms_support:
                            type: string
                            description: Flag that specifies if phone numbers of this type can receive SMS
                          addr_req:
                            type: string
                            description: Specifies if there are any local address and ID requirements to fulfill in order to use this type of phone number.
                          addr_proof:
                            type: string
                            description: A flag that specifies if an address proof is required to be submitted for this type of phone number.
                          access_restrictions:
                            type: string
                            description: Specifies the phone number reachability from different networks
                          restrictions_desc:
                            type: string
                            description: A general text specifying restrictions applicable to numbers of the specific type within the country.
                          order_type:
                            type: string
                            enum:
                            - select-order
                            - online-order
                            - offline-order
                            description: 'The order and purchase method available for this number type.


                              `select-order` number types can be browsed via the [Available phone number API](reference/Phone Numbers.yaml/paths/~1numberstocksummary~1{country}~1availablephonenumber/get), and a phone number of choice can be ordered instantly and purchased via the API


                              `online-order` number types cannot be browsed via the API but order and purchase can be done instantly for these numbers. A number is automatically assigned to your account


                              `offline-order` number types can be ordered and purchased via the API. Sonetel team then manually assigns a number to your account. This may take up to 48-72 hours.'
                    vat_percent:
                      type: string
                      description: Specifies the VAT that will be charged for customers that are from this country. Only applicable for countries that are part of the European Union.
                      minLength: 1
                    name:
                      type: string
                      description: The name of the country.
                      minLength: 1
                    description:
                      type: string
                      description: General text containing additional information about the country. For example, are phone numbers available for free with Premium or not.
                      minLength: 1
                    currency:
                      type: string
                      description: The currency set for the Sonetel prepaid account if the customer is from this country.
                      minLength: 1
                    time_zone:
                      type: string
                      description: The default timezone for accounts & users that set their location to this country.
                      minLength: 1
            x-examples:
              example-1:
                resource: string
                status: string
                response:
                - country: string
                  country_code: string
                  vat_applicable: true
                  phonenumbers:
                  - {}
                  vat_percent: string
                  name: string
                  description: string
                  currency: string
                  time_zone: string
          examples:
            /country?country=GBR:
              value:
                resource: country
                response:
                - country: GBR
                  country_code: '44'
                  vat_applicable: false
                  phonenumbers:
                  - phnum_support: 'yes'
                    freetest: 'yes'
                    fax_support: 'no'
                    sms_support: 'no'
                    addr_req: none
                    access_restrictions: ''
                    addr_proof: 'no'
                    restrictions_desc: ''
                    type: geographic
                    order_type: online-order
                  - phnum_support: 'yes'
                    freetest: 'yes'
                    fax_support: 'no'
                    sms_support: 'no'
                    addr_req: none
                    access_restrictions: ''
                    addr_proof: 'no'
                    restrictions_desc: ''
                    type: national
                    order_type: select-order
                  - phnum_support: 'yes'
                    freetest: 'no'
                    fax_support: 'no'
                    sms_support: 'no'
                    addr_req: none
                    access_restrictions: payphone
                    addr_proof: 'no'
                    restrictions_desc: ''
                    type: tollfree
                    order_type: online-order
                  - phnum_support: 'yes'
                    freetest: 'no'
                    fax_support: 'no'
                    sms_support: 'yes'
                    addr_req: none
                    access_restrictions: ''
                    addr_proof: 'no'
                    restrictions_desc: ''
                    type: mobile
                    order_type: offline-order
                  business_pkg_support: 'yes'
                  vat_percent: '0'
                  name: United Kingdom
                  description: If you are on Premium, all types of numbers can be subscribed for free.<br>If you want a free number, select a City, National or Mobile number and use our free chat function at your website.
                  currency: EUR
                  time_zone: GMT
                status: success
x-refined-from:
- phone_numbers.yaml
- sonetel-phone-numbers-openapi.yml