Top up the balance
Adds credit by charging the workspace’s saved default card (cards are added only in the dashboard). Needs an API key or agent sign-in with the billing permission, which a workspace owner or manager turns on in the dashboard’s API keys page with daily and monthly caps (UTC; declined and cancelled top-ups do not count). Every outcome answers 200 with a status. The same idempotency_key answers the same top-up with its current status and the header Idempotent-Replayed: true, so re-send the request to read a processing or requires_action top-up; it never charges twice.
Authorizations
Use a Runcrate API key with the rc_live_* prefix as the bearer token. Create one at https://www.runcrate.ai/dashboard/api-keys.
Headers
May be sent instead of idempotency_key in the body; if both are sent they must match.
255Body
Amount to add, in USD: 20 to 10,000, in dollars and cents.
20 <= x <= 1000050
Names this top-up: 1 to 255 printable ASCII characters, no spaces (a UUID per top-up works). Required here unless sent as the Idempotency-Key header; if both are sent they must match. The same key answers the same top-up with its current status and never charges twice.
1 - 255^[\x21-\x7e]+$"nightly-1"
Response
The top-up and its status. On a replay of an earlier key, its current status, with Idempotent-Replayed: true.