Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Billing

Set the org's auto-recharge policy

Command line

The orl CLI wraps this endpoint:

orl billing auto-recharge update --amount-cents <amount-cents> --enabled --threshold-cents <threshold-cents>
PUT
/v1/orgs/{orgId}/billing/auto-recharge
AuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

In: header

Path Parameters

orgId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/orgs/string/billing/auto-recharge" \  -H "Content-Type: application/json" \  -d '{    "enabled": true,    "thresholdCents": 0,    "amountCents": 0  }'
{  "enabled": true,  "thresholdCents": 0,  "amountCents": 0}