---
title: "List organization human API keys"
method: GET
path: "/api/v0/organization/api-keys"
tags: ["Organization"]
---

# List organization human API keys

`GET /api/v0/organization/api-keys`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/organization/api-keys`
- Auth: HTTP bearer

Returns the human (non-service-account) Factory API keys of the organization, active and inactive: ordinary user keys plus human-owned restricted compliance-export keys, which carry a `purpose` marker. Requires the Owner role of the root organization; a selected sub-organization is rejected. Each item carries `userId` (its human owner), `fingerprint`, `isRevoked`, `expiresAt`, and `revokedAt` so clients can split them into active/inactive views. Secret key material is never returned.

## Query parameters

- `limit` integer: Maximum number of items to return (1-100)
- `cursor` string: Cursor for pagination

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- ListOrganizationApiKeys200ResponseBody
  - `apiKeys` object[], required: Human (non-service-account) Factory API keys of the organization, active and inactive
    - `id` string, required: API key ID
    - `name` string, required: Human-readable name for the key
    - `fingerprint` string, required: Non-reversible suffix for display
    - `createdAt` number, required: Unix epoch milliseconds when the key was created
    - `expiresAt` number: Unix epoch milliseconds when the key expires, if set
    - `isRevoked` boolean, required: Whether the key has been revoked
    - `revokedAt` number: Unix epoch milliseconds when the key was revoked, if revoked
    - `lastAuthenticatedAt` number: Unix epoch milliseconds of the most recent observed successful validation of this key's credential. Absent on keys never observed since tracking began: absent means unknown, not never used.
    - `createdWithAuthTracking` boolean: Creation-context marker: true only when this key was minted by a tracking-enabled backend on a selected personal or service-account path. Absent on legacy rows and keys with unknown history - it is creation context, not tracking capability.
    - `userId` string, required: WorkOS user ID of the human who owns the key
    - `purpose` 'complianceExport': Present only on restricted keys, so clients can distinguish them from ordinary keys. `compliance-export` is the only purpose today; more purposes may be added, and a value a client does not know is a restricted key of an unknown kind
  - `pagination` object, required
    - `hasMore` boolean, required: Whether there are more items after this page
    - `nextCursor` string, nullable, required: Cursor to use for the next page, null if no more pages

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-26** `01fc57b2148d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/organization/api-keys/get.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
