Skip to main content
PATCH
TypeScript SDK

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 API version to use for this request. The latest version is 2026-03-11.

Available options:
2026-03-11

Path Parameters

agent_id
required

The ID of the custom agent (a UUID). The personal agent (Notion AI) is not supported by this endpoint.

Body

application/json
credit_limit
number | null
required

The per-agent credit limit as a non-negative integer, or null to clear the limit.

Response

agent_id
string<uuid>
required
credit_limit
integer | null
required

The agent's editor-set per-agent credit limit; null when no limit applies.

last_edited_time
string
required

ISO 8601 timestamp of when the agent was last edited.