Skip to content

Response Headers

The OpenAPI specification defines these headers on wallet-consuming endpoints:

HeaderTypeDescription
x-costintegerCredits deducted from your wallet for this request
x-balanceintegerCredits remaining in your wallet after this request

These headers appear on wallet-consuming endpoints such as key-value operations, webhook management endpoints, token balance/settings endpoints, and other endpoints that explicitly emit them in the OpenAPI file. GET /token/logs remains free, but the current OpenAPI file declares x-cost on its 200 response.

Terminal window
# Use -i to show response headers
curl -i 'https://api.echovalue.dev/kv/default/mykey' \
-H 'x-token: mytoken'
# Output includes:
# x-cost: 1
# x-balance: 99