Public developer API

POST /v1/virtual-numbers/price

Checks the current stock and price for a service, country and optional operator. This does not move wallet funds.

Access

A project-specific API key (Authorization: Bearer dapi_live_...) and its Business ID (X-Business-Id). Rate limited per business (120 calls a minute by default).

Body

FieldTypeRequiredDescription
productstringyesVirtual-number service slug.
countrystringyesCountry slug.
operatorstringnoSelect a specific available operator.

Example request

curl --request POST \
  --url 'https://production.dutchapi.co/v1/virtual-numbers/price' \
  --header 'X-Business-Id: YOUR_BUSINESS_ID' \
  --header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET' \
  --header 'Content-Type: application/json' \
  --data '{"product":"whatsapp","country":"united_states"}'

Response 200

{
  "data": {
    "product": "whatsapp",
    "country": "united_states",
    "operator": "Carrier A",
    "providerPrice": 1.2,
    "serviceFee": 0.8,
    "totalUsd": 2,
    "currency": "USD"
  }
}

Errors

StatuserrorMeaning
403insufficient_scopeThis project key is not allowed to do that.
400virtual_number_selection_requiredChoose a valid service and country.
404virtual_number_unavailableNo numbers are available for this service and country.

Related references

Browse the complete endpoint directory, the developer portal and the security and controls guide.