---
title: "Register a Public Key"
method: POST
path: "/accounts/{{account_id}}/keys"
tags: ["Key"]
---

# Register a Public Key

`POST /accounts/{{account_id}}/keys`

Register a Public Key with Brightcove's Playback Authorization Service

## Path parameters

- `account_id` string, required

## Headers

- `Content-Type` string, required
- `Authorization` string, required

## Request body

- CreateAKeybody
  - `value` string — The publisher will generate a public-private key pair and provide the public key to Brightcove

## Response `201`

201

- OneKeyResponse
  - `id` string, required — Unique identifier for your registered public key
  - `type` 'public' | 'private', required — Type of key
  - `value` string, required — The value of your public key
  - `created_at` string, required — Date timestamp for when your public key was registered with Brightcove

## Other responses

- `400` — NOT_AVAILABLE: The resource you are requesting is temporarily unavailable
- `401` — UNAUTHORIZED: Authentication failed; check to make sure your policy key is correct
- `404` — RESOURCE_NOT_FOUND: The api could not find the resource you requested
- `500` — UNKNOWN: Issue in Brightcove system; try again later. TIMEOUT: Server likely too busy; try again later.

## Changes

- **2023-03-26** `553d8996cd0e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/brightcovelearning/apis/key-api-reference/changes/accounts/:{account_id}/keys/post.md)

---

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