---
title: "Get Api Key By Id"
method: GET
path: "/api_keys/{api_key_id}"
tags: ["api_keys"]
---

# Get Api Key By Id

`GET /api_keys/{api_key_id}`

## Request

- Base URL: `https://api.robopost.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robopost.app/api_keys/{api_key_id}`
- Auth: HTTP bearer

Retrieves a single API key by its ID.

## Path parameters

- `api_key_id` string, required

## Response `200`

Successful Response

- APIKeyRead
  - `_id` string
  - `team_id` string
  - `user_id` string
  - `name` string, required
  - `key` string
  - `is_deleted` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `404`: API key not found
- `422`: Validation Error

---

[API](https://skmtc.dev/robopost/apis/robopost-api.md) · [All operations](https://skmtc.dev/robopost/apis/robopost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/robopost/apis/robopost-api/revisions/46b1cafa8808?raw)
