---
title: "Return named API key for the agent ID"
method: GET
path: "/agent_api_keys/name/{name}"
tags: ["Agent APIKeys"]
---

# Return named API key for the agent ID

`GET /agent_api_keys/name/{name}`

Return named API key for the agent ID.

## Path parameters

- `name` string, required

## Query parameters

- `agent_id` string, nullable
- `agent_name` string, nullable
- `api_key_type` 'internal' | 'external' | 'github' | 'slack'

## Response `200`

Successful Response

- AgentAPIKey
  - `agent_id` string, required — The UUID of the agent
  - `api_key_type` 'internal' | 'external' | 'github' | 'slack', required
  - `created_at` string, date-time, required — When the agent API key was created
  - `id` string, required — The unique identifier of the agent API key.
  - `name` string, nullable, required — The optional name of the agent API key.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/terminaluse/apis/sb0-api.md) · [All operations](https://skmtc.net/terminaluse/apis/sb0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/terminaluse/sb0-api/versions/f24a474dc415/schema)
