---
title: "Get an API key."
method: GET
path: "/organizations/api-keys/{id}"
tags: ["Organizations"]
---

# Get an API key.

`GET /organizations/api-keys/{id}`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/organizations/api-keys/{id}`
- Auth: HTTP bearer

The operation enforces organization ownership or platform-admin authorization and returns state suitable for membership, billing, and support workflows.

## Path parameters

- `id` string, required

## Response `200`

The API key detail was successfully retrieved.

- OrganizationApiKeyPreviewResponse: Safe identifying and usage metadata for an organization API key. This model never contains the secret credential.
  - `id` string: Unique identifier of the API key.
  - `name` string: Human-readable name of the API key.
  - `organization` IdNamePair: User summary connected to this automation configuration response.
    - `id` string, required
    - `name` string, required
  - `enabled` boolean: Whether the API key can currently authenticate requests.
  - `preview` string, nullable: Masked value that can be used to identify the key without revealing its secret.
  - `permissions` string[], nullable: Permission slugs granted to the API key.
  - `issuedAt` string, date-time, nullable: Date and time when the API key was issued.
  - `firstUsedAt` string, date-time, nullable: Date and time when the API key was first used.
  - `lastUsedAt` string, date-time, nullable: Date and time when the API key was last used.
  - `expiresAt` string, date-time, nullable: Date and time when the API key expires, or null when it does not expire.
  - `totalUses` integer: Total number of tracked uses.
  - `createdAt` string, date-time: Date and time when Leadping began tracking the API key.
  - `modifiedAt` string, date-time: Date and time when the tracked API-key metadata was last modified.

## Other responses

- `400`: The request contains invalid values or fails validation.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The API key was not found.
- `429`: The client or account rate limit was exceeded. Retry after the interval in the Retry-After header.
- `500`: An unexpected error prevented the server from completing the request.

## Changes

- **2026-11-11** `81aed8c9afb7`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/organizations/api-keys/:id/get.md)

---

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