---
search:
  tags:
    - OAuth applications
    - POST
seo:
  description: >-
    Registers a public key the application signs… Reference for the POST
    /organizations/{organizationId}/oauth-clients/{clientId}/keys endpoint in
    the Auth API.
sidebar:
  label: Register a public key
  badge: POST
title: Register a public key
type: openapi-operation
---
Registers a public key the application signs its token requests with (`private_key_jwt`), for example to rotate keys. Requires organization:update. A key already registered for the application, even revoked, is refused (409), as are more than 5 active keys.

`POST /organizations/{organizationId}/oauth-clients/{clientId}/keys`

**Request body** (`application/json`, required)

- `jwk` (public_jwk, required) — A public signing key (RFC 7517) - EC P-256, P-384 or P-521, Ed25519 (OKP), or RSA of 2048 bits or more. Private members are refused; use, when present, must be sig.

Request body example:

```json
{
  "jwk": {}
}
```

**Responses**

- `201` — The registered key.
- `default` — The request failed.

Response example, 201:

```json
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "kid": "string",
  "jwk": {},
  "created_at": "2019-08-24T14:15:22Z",
  "revoked_at": "2019-08-24T14:15:22Z"
}
```
