POST
/
billing
/
balance
/
auto-top-up
/
enable
Enable Auto Top Up
curl --request POST \
  --url https://api.contextual.ai/v1/billing/balance/auto-top-up/enable \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 20,
  "balance_threshold": 5
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to POST /billing/balance/auto-top-up/enable request If no amount is provided, then the default amount is 20. If no balance threshold is provided, then the default balance threshold is 5.

Response

Successful Response

The response is of type object.