Treffer Logo treffer Docs

Account

Credit balance

Read your current credit balance.

GET https://api.treffer.io/v1/account/credits

Cost

Free

On a miss

Not applicable

Rate limit

60 per minute

Example request

curl 'https://api.treffer.io/v1/account/credits' \
  -H 'X-API-Key: YOUR_API_KEY'
import requests

response = requests.get(
    "https://api.treffer.io/v1/account/credits",
    headers={"X-API-Key": "YOUR_API_KEY"},
    timeout=30,
)
print(response.json())

Response

This endpoint returns account data directly, without the found envelope the lookups use.

Field Type Description
credit_balance integer Credits you can still spend.

Example response

{
  "credit_balance": 8450
}

Errors

Failures use the shared error shape. See Errors for every code.

Privacy Policy Terms of Service Imprint