GET/desearch/balance

    Get your balance

    What your account can still spend, in US dollars. Free, and not counted as usage. It includes charges from the last minute that are not settled yet, and top-ups (card, TAO, Gamma) as soon as they are credited. When the balance cannot cover a request, that request returns `402` with `{"detail": "Insufficient balance"}`. To keep an account funded automatically, read this on a schedule and top up below a threshold.

    Base URL

    https://api.desearch.ai

    Implementation guidance

    Use Get your balance when your application needs what your account can still spend, in US dollars. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.

    Send requests to GET /desearch/balance with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.

    Responses

    200Successful Response
    401Unauthorized
    403The API key is not linked to a company
    503Balance unavailable
    Authorization

    Your API key is sent in the Authorization header.

    Request
    curl -X GET "https://api.desearch.ai/desearch/balance" \
      -H "Authorization: YOUR_API_KEY" \
      -H "Content-Type: application/json"
    GET /desearch/balance
    ResponseSchema
    {
      "balance_usd": 12.5,
      "currency": "USD"
    }
    Status codes200401422429500