Skip to main content
GET
/
v1
/
usage
Get Usage Route
curl --request GET \
  --url https://api.example.com/v1/usage
{
  "data": {
    "source": "<string>",
    "period": {
      "from": "2023-12-25",
      "to": "2023-12-25"
    },
    "credits": {
      "tts_remaining": 123,
      "asr_remaining": 123
    },
    "requests": {
      "tts_count": 123,
      "asr_count": 123,
      "tts_characters_processed": 123,
      "asr_seconds_processed": 123
    }
  },
  "success": true
}

Query Parameters

source
string
default:all
Pattern: ^(web|api_key|all)$
api_key_id
string<uuid> | null
from
string<date> | null
to
string<date> | null

Response

Successful Response

data
UsageData · object
required
success
boolean
default:true