EndpointsLink a billing account

Billing accounts

Link a billing account

Needs billing.associations.create on the account too. The account must be in the Workspace Organization and not CLOSED; a PENDING account may be linked and enables billing once it is ACTIVE.

PUT/workspaces/{id}/billing_info
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

idstringrequired

Required string length: 1 - 53

Body

application/json
billing_accountstring | nullrequired

Pattern: ^billingAccounts\/bac_[A-Za-z0-9]+$

Example: "billingAccounts/bac_4kQ9mXr2Tz7Lw1"

Response

application/json

WorkspaceBillingInfo

namestringrequired

Example: "workspaces/ws_j572abc/billingInfo"

workspace_idstringrequired

Required string length: 2 - 53

billing_accountstring | nullrequired

Pattern: ^billingAccounts\/bac_[A-Za-z0-9]+$

Example: "billingAccounts/bac_4kQ9mXr2Tz7Lw1"

billing_enabledbooleanrequired