Phone & voice · Voice

Estimate call cost

Estimates a call cost.

GEThttps://api.pozy.ai/v1/voice/calls/estimate
getVoiceCallEstimate

Guide: Voice calls

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the messages resource group disabled get 403 resource_group_disabled. Authentication

Query parameters

NameTypeNotes
torequiredstring
fromstring
minutesintegerDefault 11 to 120
recordingboolean
transcriptionboolean

Example

curl -X GET "https://api.pozy.ai/v1/voice/calls/estimate?to=%2B14155550123" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • destinationCountrystring

    Can be null.

  • minutesinteger
  • perMinuteUsdnumber
  • breakdownobject
    • carrierCostUSDnumber
    • recordingCostUSDnumber
    • transcriptionCostUSDnumber
    • brandedCallUSDnumber
    • billableCostUSDnumber
    • totalCostUSDnumber
200 response
{
  "destinationCountry": "string",
  "minutes": 1,
  "perMinuteUsd": 12.5,
  "breakdown": {
    "carrierCostUSD": 12.5,
    "recordingCostUSD": 12.5,
    "transcriptionCostUSD": 12.5,
    "brandedCallUSD": 12.5,
    "billableCostUSD": 12.5,
    "totalCostUSD": 12.5
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Voice