agent

List your organization's API keys

Changed on

Your organization's API keys: name, first characters, state, when created and when last used. Never the key itself. Any member can read them once the organization has developer access. Usage over the last 30 days, per key and per day, is included only for an owner or admin (seat.canManage); otherwise it is null. Keys are created and revoked in the browser, not here.

Needs an organization grant in the X-Cardog-Agent-Grant header, sent by the person it was created for or by the agent itself. Costs 0 credits.

get/v2/agent/org/keys

Request

  • Base URL
    https://api.cardog.app
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Headers

X-Cardog-Agent-Grant, string required

An organization session token from POST /v2/agent/session, opened from an organization workspace and created for you. Required.

Response

The keys and your seat

AgentOrgKeys required
seat, object required

Who the session acts as

keys, object[] required

The organization's API keys. Creating and revoking keys is done in the workspace, not here.

usage, object nullable required

API key usage over the last 30 days. Null when you cannot see usage.

Changes