Skip to content

Get Balance

GET https://api.echovalue.dev/token

Returns remaining credits and token metadata.

Headers:

HeaderDescription
x-tokenYour API token

200 OK — JSON object.

{
"wallet": 12345,
"created": "2023-08-09T15:40:09.77Z",
"hash": "a1b2c3d4e5f6..."
}
FieldTypeDescription
walletintegerRemaining credit balance
createdstring (ISO 8601)Date when the token was created
hashstringSHA256 hash of your token

Response headers:

HeaderDescription
x-balanceWallet balance after this call
x-costCredits consumed

See Response Headers for details.

StatusMeaning
200Balance returned
401Invalid token
402Insufficient credits
  • hash is the SHA256 hash of the wallet token and can be used for identification in downstream payloads.
Terminal window
curl 'https://api.echovalue.dev/token' \
-H 'x-token: mytoken'