Check your API key
GET
/api/v1/whoami
const url = 'https://trongas.ai/api/v1/whoami';const options = {method: 'GET', headers: {'X-Api-Key': '<X-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”OK
object
name
required
string
prefix
required
string
scope
required
string
maxSpendPerDayTrx
required
null | string
spentTodayTrx
required
string
createdAt
required
string format: date-time
object
name
required
string
prefix
required
string
scope
required
string
maxSpendPerDayTrx
required
null | string
spentTodayTrx
required
string
createdAt
required
string format: date-time
Examplegenerated
{ "name": "example", "prefix": "example", "scope": "example", "maxSpendPerDayTrx": "example", "spentTodayTrx": "example", "createdAt": "2026-04-15T12:00:00Z"}object
name
required
string
prefix
required
string
scope
required
string
maxSpendPerDayTrx
required
null | string
spentTodayTrx
required
string
createdAt
required
string format: date-time
Examplegenerated
{ "name": "example", "prefix": "example", "scope": "example", "maxSpendPerDayTrx": "example", "spentTodayTrx": "example", "createdAt": "2026-04-15T12:00:00Z"}