Get workspace AI credits
Enterprise Only
This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.
Retrieve the current AI credit balance and availability status for a workspace.
Method: GET
URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/workspaces/{workspaceUuid}/ai-credits
Authorization: Bearer <token>
Response:
- 200
- 401
- 403
- 404
{
"available": true,
"balance": 35,
"low": false
}
| Key | Format | Description |
|---|---|---|
available | boolean | Whether the workspace has AI credits available for use. |
balance | integer | null | Current credit balance. null if no AI credit record exists. |
low | boolean | true when balance is between 1 and 10 (inclusive). |
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "Workspace not found."
}