Skip to main content
POST
Add Credits

Authorizations

Authorization
string
header
required

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

Body

application/json

Request to add credits to an organization.

credits
integer
required

Number of credits to add. Must be positive.

Examples:

1000

10000

100000

Response

Successful Response

Response after adding credits.

previous_balance
integer
required

Credit balance before addition

credits_added
integer
required

Number of credits added

new_balance
integer
required

Credit balance after addition

previous_tier
enum<string>
required

Account tier before addition

Available options:
build,
scale,
enterprise,
free,
pro,
team
new_tier
enum<string>
required

Account tier after addition (may auto-upgrade)

Available options:
build,
scale,
enterprise,
free,
pro,
team
tier_upgraded
boolean
required

Whether tier was automatically upgraded