Skip to main content
POST
/
billing
/
topup
Top up credits
curl --request POST \
  --url https://www.dench.com/api/v1/billing/topup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "requestId": "string",
  "amountUsd": 0
}
'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "code": "<string>",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Body

application/json
requestId
string
required

Idempotency key (1-200 of [A-Za-z0-9:_-]).

amountUsd
number
required

USD amount, $5 to $1000.

Response

Successful response