Skip to content

Get the credit balance

GET
/v1/credits
curl --request GET \
--url https://deeperesearch.com/v1/credits \
--header 'Authorization: Bearer <token>'

Available credit, credit held by running research, and any debt.

The balance

Media typeapplication/json
object
available_usd
required

US dollars

number
held_usd
required

Held for research that is still running

number
debt_usd
required

Owed after a run cost more than its hold; research can’t start while above zero

number

Example generated

{
"available_usd": 1,
"held_usd": 1,
"debt_usd": 1
}

Missing or invalid API key (unauthorized)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

Rate limit, spending limit or quota reached (rate_limited, limit_reached, quota_exceeded). See Retry-After.

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}