---
title: "List your organization's API keys"
method: GET
path: "/v2/agent/org/keys"
tags: ["agent"]
---

# List your organization's API keys

`GET /v2/agent/org/keys`

## Request

- Base URL: `https://api.cardog.app`
- URL: `https://api.cardog.app/v2/agent/org/keys`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

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.

## Headers

- `X-Cardog-Agent-Grant` string, required

## Response `200`

The keys and your seat

- AgentOrgKeys
  - `seat` object, required: Who the session acts as
    - `organization` object, required: The organization the session works in
      - `slug` string, required: The organization's short name, e.g. "example-dealer"
      - `name` string, required: The organization's name to show, e.g. "Example Dealer Group"
      - `class` string, required: The kind of organization, e.g. "dealer"
    - `role` string, required: The member's current role, e.g. "admin"
    - `canManage` boolean, required: True for an owner or admin, who can create and revoke keys and see usage
  - `keys` object[], required: The organization's API keys. Creating and revoking keys is done in the workspace, not here.
    - `id` string, required: The key's ID. Never the key itself.
    - `name` string, nullable, required: The name given to the key, e.g. "prod"
    - `start` string, nullable, required: The key's first characters, e.g. "crdg_org_b2", as the developer page shows them
    - `enabled` boolean, required: False when the key is turned off
    - `createdAt` string, required: When the key was created, ISO 8601
    - `lastUsedAt` string, nullable, required: When the key was last used, ISO 8601. Null when never used.
    - `expiresAt` string, nullable, required: When the key expires, ISO 8601. Null when it does not expire.
    - `credits30d` integer, nullable, required: Credits the key spent in the last 30 days. Null when you cannot see usage.
  - `usage` object, nullable, required: API key usage over the last 30 days. Null when you cannot see usage.
    - `days` 30, required: Always 30
    - `credits` integer, required: Credits spent by the organization's keys
    - `units` integer, required: Units used: one per VIN on per-VIN endpoints such as batch decode, one per call otherwise
    - `byDay` object[], required: Totals per day
      - `day` string, required: The day, YYYY-MM-DD (UTC)
      - `credits` integer, required: Credits spent that day
      - `units` integer, required: Units used that day

## Other responses

- `401`: No valid API key or session
- `404`: Resource not found
- `429`: Per-minute rate limit exceeded
- `500`: Internal error
- `503`: Temporarily unavailable (`unavailable`); retry with backoff

## Changes

- **2026-11-21** `54b50dbab002`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cardog/apis/cardog-api-v2/changes/v2/agent/org/keys/get.md)

---

[API](https://skmtc.dev/cardog/apis/cardog-api-v2.md) - [All operations](https://skmtc.dev/cardog/apis/cardog-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/cardog/apis/cardog-api-v2/revisions/016058226dc5?raw)
