Skip to main content
PATCH
/
v1
/
billing
/
balance
Update credit balance threshold
curl --request PATCH \
  --url https://api.runflow.io/v1/billing/balance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "low_balance_threshold": 1,
  "updated_at": "2023-11-07T05:31:56Z"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "balance": "<string>",
  "low_balance_threshold": "<string>",
  "low_balance_notified_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.runflow.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Headers

X-Organization-Id
string | null

Body

application/json

PATCH body for /billing/balance — threshold fields only.

low_balance_threshold
Required range: x >= 0
updated_at
string<date-time> | null

Response

The updated credit balance.

Response shape.

id
string<uuid> | null
org_id
string<uuid> | null
balance
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
low_balance_threshold
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
low_balance_notified_at
string<date-time> | null
created_at
string<date-time> | null
updated_at
string<date-time> | null