---
title: "Create Platform Key"
method: POST
path: "/v2/platform/keys"
tags: ["v2 - SDK"]
---

# Create Platform Key

`POST /v2/platform/keys`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/platform/keys`
- Auth: HTTP bearer

Generate a new platform API key for the authenticated user.

Auth: Firebase Bearer (normal user auth, NOT platform key).
The key is shown ONCE in the response — user must save it.

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- CreateKeyRequest
  - `name` string, required
  - `scope` union, required
    - 'register_content' | 'search'
    - string[]

## Response `200`

Successful Response

- CreateKeyResponse
  - `key` string, required
  - `key_id` string, required
  - `name` string, required
  - `created_at` string, required
  - `scope` union
    - string
    - string[]

## Other responses

- `422`: Validation Error

---

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