Skip to main content
GET
Get credit usage for agents in a space
The organization bot token must have the following scopes:
  • workflows:read

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Notion-Version
enum<string>
required

The Admin API version to use for this request.

Available options:
2026-06-01

Path Parameters

space_id
string<uuid>
required

Query Parameters

cursor
string

Cursor for the agent page. Nested cursors continue one agent's billing periods through the single-agent endpoint.

page_size
integer

Number of agents per page. Defaults to 100, maximum 100.

Required range: 1 <= x <= 100
include_deleted
enum<string>

Set to "true" to include soft-deleted agents and their retained credit usage; included deleted agents have status "deleted". Omit this parameter or set it to "false" to return only live agents. Permanently deleted tombstones are never returned.

Available options:
false,
true
credit_usage_time_from
string

Epoch ms, inclusive. When either bound is set, an agent is returned only if its latest credit usage is inside the [from, to] window; agents with no in-window usage are excluded entirely, and last_credit_usage_time on each result reflects the most recent credit usage within the window.

credit_usage_time_to
string

Epoch ms, inclusive. See credit_usage_time_from for the window semantics.

Response

has_more
boolean
required

Whether more agents are available.

results
object[]
required

The page of agents with their credit usage, up to 100 agents per request. Every agent starts at its most recent billing period; a nested result's next_cursor paginates that agent's billing periods through the single-agent credit-usage endpoint.

next_cursor
string

Cursor to pass as cursor on the next request to fetch the next page of agents; omitted when has_more is false.