---
title: "Get Key"
method: GET
path: "/api/v1/idps/credentials/keys/{keyId}"
tags: ["IdentityProvider"]
---

# Get Key

`GET /api/v1/idps/credentials/keys/{keyId}`

## Request

- Base URL: `https://your-subdomain.okta.com`
- URL: `https://your-subdomain.okta.com/api/v1/idps/credentials/keys/{keyId}`
- Auth: API key in header `Authorization`

Gets a specific IdP Key Credential by `kid`

## Path parameters

- `keyId` string, required

## Response `200`

Success

- JsonWebKey
  - `_links` object
  - `alg` string
  - `created` string, date-time
  - `e` string
  - `expiresAt` string, date-time
  - `key_ops` string[]
  - `kid` string
  - `kty` string
  - `lastUpdated` string, date-time
  - `n` string
  - `status` string
  - `use` string
  - `x5c` string[]
  - `x5t` string
  - `x5t#S256` string
  - `x5u` string

---

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