get
https://{host}/api/v2/organizations/credits
Get Organization Credits
Retrieve the current credit balance for your main organization, including total, used, and remaining credits. This endpoint is useful for monitoring usage and ensuring your organization stays within its credit limits.
Request
- Method: GET
- URL:
{{host}}/api/v2/organizations/credits - Authentication: Requires a valid
user-tokenvariable set in your environment. Thehostvariable must also be defined. - Request Body: None
Response
A successful response returns a JSON object with the following structure:
{
"total_credits": 10000,
"used_credits": 2500,
"remaining_credits": 7500
}Error Response Example
If authentication fails or required variables are missing, you may receive an error response such as:
{
"error": "Unauthorized",
"message": "Missing or invalid user-token."
}Usage Notes
- Ensure both
hostanduser-tokenvariables are set in your environment before sending the request. - This endpoint does not require any parameters or a request body.
- The response values are numeric and represent your organization's credit status.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
