Skip to main content

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:

{
"available": true,
"balance": 35,
"low": false
}
KeyFormatDescription
availablebooleanWhether the workspace has AI credits available for use.
balanceinteger | nullCurrent credit balance. null if no AI credit record exists.
lowbooleantrue when balance is between 1 and 10 (inclusive).