---
title: "Create a signing key"
method: POST
path: "/access-control/signing-key"
tags: ["accessControl"]
---

# Create a signing key

`POST /access-control/signing-key`

The publicKey is a representation of the public key, encoded as base 64 and is passed as a string, and  the privateKey is displayed only on creation. This is the only moment where the client can save the private key, otherwise it will be lost. Remember to decode your string when signing JWTs.
Up to 10 signing keys can be generated, after that you must delete at least one signing key to create a new one.

## Response `200`

Success

- SigningKey
  - `id` string
  - `name` string — Name of the signing key
  - `userId` string
  - `createdAt` number — Timestamp (in milliseconds) at which the signing-key was created
  - `lastSeen` number — Timestamp (in milliseconds) at which the signing-key was last used
  - `publicKey` string, required
  - `disabled` boolean — Disable the signing key to allow rotation safely
  - `projectId` string — The ID of the project

## Other responses

- `default` — Error

## Changes

- **2024-06-11** `7c015b7e287c` — 1 info
  - added the optional property `projectId` to the response with the `200` status
- **2024-06-11** `8ccb056ca148` — 1 warning
  - removed the optional property `projectId` from the response with the `200` status
- **2024-06-11** `7c015b7e287c` — 1 info
  - added the optional property `projectId` to the response with the `200` status
- **2024-06-11** `8ccb056ca148` — 1 warning
  - removed the optional property `projectId` from the response with the `200` status
- **2024-06-06** `03d095353d75` — 1 info
  - added the optional property `projectId` to the response with the `200` status

[Full history](https://skmtc.dev/livepeer/apis/livepeer-api-reference/changes/access-control/signing-key/post.md)

---

[API](https://skmtc.dev/livepeer/apis/livepeer-api-reference.md) · [All operations](https://skmtc.dev/livepeer/apis/livepeer-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/livepeer/livepeer-api-reference/revisions/0d7e15217608/schema)
