Rates

Search voice termination rates by destination prefix

Returns the voice termination rates from the latest call plan of the given tech prefix whose destination prefix begins with prefix — e.g. 1212 returns New York City destinations. Use it to look up the price of a specific country or number range without fetching the whole plan. Use current as the id to refer to the customer's default tech prefix; returns 404 when the tech prefix is not assigned to the account.

get/rates/{id}/search

Request

  • Base URL
    https://api.commpeak.com/portal
  • URL
    https://api.commpeak.com/portal/rates/{id}/search
  • Auth
    API key in header Authorization

Path parameters

idstring required

Tech prefix (or "current" for the customer's default prefix).

Query parameters

prefixstring required

Destination prefix to filter rates by (begins with).

Response

Successful Response

Example response

{
  "rates": [
    {
      "block": "6/6",
      "destination": "United States - Fixed - USA Fixed/mobile",
      "prefix": "1",
      "price": 0.00675
    },
    {
      "block": "6/6",
      "destination": "United States - Fixed - New York",
      "prefix": "1212",
      "price": 0.00675
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.