Get credit usage for an agent in a space
Get credit usage for an agent in a space.
workflows:read
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The Admin API version to use for this request.
2026-06-01 Query Parameters
Response
Whether more billing periods are available.
All-time count of finished (success or failure) runs for this agent.
Agent status; same values as the list-agents endpoint's 'status' field.
active, credit_limit, deleted, disabled_by_notion, disabled_due_to_lack_of_editors, disabled_due_to_lack_of_full_access_members, disabled_from_agent_settings, disabled_from_api, disabled_from_workspace_settings, failure_limit, internal_error, mark_session_failed_autopause, needs_review, run_limit, runaway_credit_usage, tool_unavailable, workspace_credit_limit All-time premium AI credits consumed by this agent across every period.
Custom agents vs database (autofill) agents.
custom, database_autofill Enforced per-agent credit limit, if one is configured.
Epoch ms of the agent's most recent premium-credit usage; omitted if the agent has never consumed credits.