---
title: "Get Agent API Keys"
method: GET
path: "/api/v1/organizations/users/{userId}/agents/{agentId}/api-keys"
---

# Get Agent API Keys

`GET /api/v1/organizations/users/{userId}/agents/{agentId}/api-keys`

## Request

- Base URL: `https://api.skyfire.xyz`
- URL: `https://api.skyfire.xyz/api/v1/organizations/users/{userId}/agents/{agentId}/api-keys`
- Auth: API key in header `skyfire-api-key`

As an Organization Admin, list the API keys of an agent belonging to a user in your organization.

## Path parameters

- `userId` string, uuid, required
- `agentId` string, uuid, required

## Query parameters

- `pageSize` integer
- `pageCursor` string

## Response `200`

Ok

- object
  - `data` object[], required
    - `id` string, required: Unique identifier of the API key. Use this ID to activate or deactivate the key.
    - `lastFour` string, required: Last four characters of the key, for identification. The full key is never returned.
    - `active` boolean, required: Whether the key currently authenticates.
    - `notes` string: The label provided at creation. Omitted when none was set.
    - `createdAt` string, required: When the key was created. e.g. `"2026-08-28T17:04:11.000Z"`.
  - `nextPageCursor` string: Present when more keys remain. Pass it back as `pageCursor` to fetch the next page.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity

## Changes

- **2026-11-03** `22cbec9d7630`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/changes/api/v1/organizations/users/:userId/agents/:agentId/api-keys/get.md)

---

[API](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis.md) - [All operations](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/revisions/22cbec9d7630?raw)
