TelefonAIv1
Account

Usage in the current period — the SAME numbers as on the subscription page

Usage in the current period — the SAME numbers as on the subscription page. may_take_calls is the field that matters: it answers «is the assistant picking up right now», so you do not have to derive it from plan, status and usage yourself. Money is in minor units, and the seconds are the numbers the calculation actually ran on, so you can round as you like. sms is the SMS allowance in SEGMENTS, counted exactly as sending enforces it: the package plus purchased extra messages. Check remaining_segments before a large send-out rather than finding an empty pool through a 402. With your own SMS provider, remaining_segments is null — the pool does not apply. two_way_number is the number patients reply to when two-way is on.

GET/v1/usage

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Request

curl --request GET \
  --url "https://api.telefonai.dk/v1/usage" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Success.

object

401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}