---
title: "Get Api Key"
method: GET
path: "/v1/orgs/{org_id}/api-keys/{key_id}"
tags: ["api-keys"]
---

# Get Api Key

`GET /v1/orgs/{org_id}/api-keys/{key_id}`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/orgs/{org_id}/api-keys/{key_id}`
- Auth: none declared

Own key for a member, any for an admin.

## Path parameters

- `key_id` string, required
- `org_id` string, required

## Response `200`

Successful Response

- ApiKeyOut: Listing shape — no secret.
  - `uuid` string, required
  - `prefix` string, required
  - `last4` string, required
  - `name` string, required
  - `scopes` string[], required
  - `projects` string[]
  - `org_wide` boolean
  - `version_uuid` string, nullable
  - `env_type` 'prod' | 'dev'
  - `ip_allowlist` string[]
  - `origin_allowlist` string[]
  - `created_by_uuid` string, nullable, required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, nullable, required
  - `revoked_at` string, date-time, nullable, required
  - `last_used_at` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

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