Browse

Balance and API keys. Returns the credit balance and a summary of the account API keys. Never returns a full key.

GET https://YOUR_API_HOST/v1/account

Credits

Free. This endpoint never spends credits.

Example request

Terminal
curl https://YOUR_API_HOST/v1/account \
  -H "Authorization: Bearer $LOOKVALID_API_KEY"

Response

FieldTypeNotes
accountobject-
account.idstring-
account.namestring-
account.created_atstringFormat: date-time.
balanceobject-
balance.grantedinteger-
balance.spentinteger-
balance.reservedintegerCredits held by lookups still in flight.
balance.availableintegerCredits you can spend now.
keysarray of object-
keys[].idstringPublic key id. The key itself is never returned.
keys[].prefixstring-
keys[].namestring-
keys[].created_atstringFormat: date-time.
keys[].revokedboolean-
keys[].revoked_atstring or nullFormat: date-time.

Response shape

Each value is a stand-in that shows the field type.

{
  "account": {
    "id": "string",
    "name": "string",
    "created_at": "string"
  },
  "balance": {
    "granted": 0,
    "spent": 0,
    "reserved": 0,
    "available": 0
  },
  "keys": [
    {
      "id": "string",
      "prefix": "string",
      "name": "string",
      "created_at": "string",
      "revoked": false,
      "revoked_at": "string"
    }
  ]
}

Errors

  • 401 unauthorized: The API key is missing, malformed, revoked or unknown.
  • 429 rate_limited: Too many requests for this API key.