Skip to content

Check your API key

GET
/api/v1/whoami
curl --request GET \
--url https://trongas.ai/api/v1/whoami \
--header 'X-Api-Key: <X-Api-Key>'

Name, scope (read / purchase / full), daily spend limit and how much of it is spent today (UTC) for the API key used on this request. Call it first: a 401 means the key is wrong or revoked; otherwise you know what the key may do before trying. Charges nothing.

OK

object
name
required
string
prefix
required
string
scope
required
string
maxSpendPerDayTrx
required
null | string
spentTodayTrx
required
string
createdAt
required
string format: date-time