Request more credits
POST/credits/request
Emails the installation's administrators a request for more credits for the caller's organization, with the current balance and the optional amount and reason; credits are added by them, not by this call. Login tokens only: API keys get 401. 404 when the caller has no organization, 503 when credit requests are not configured, 502 when the email could not be sent.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 502
- 503
OK
Validation error: the request is invalid and nothing was changed.
Missing, invalid, expired or revoked credential, or a credential this endpoint does not accept.
The credential may not do this (for example a run token outside its own run, or a caller without an organization), or the installation is read-only because its license is not valid (code: license_read_only).
The caller has no organization.
Rate limited: retry after the number of seconds in the Retry-After header.
The email could not be sent; retry later.
Credit requests are not configured on this installation.