Create a New Client Key

POST /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/keys/

Create a new client key bound to a project. The key's secret and public key are generated by the server.

Path Parameters

organization_id_or_slug (string)

The ID or slug of the organization the resource belongs to.

project_id_or_slug (string)

The ID or slug of the project the resource belongs to.

Body Parameters

name (string)

The optional name of the key. If not provided it will be automatically generated.

rateLimit (object)

Applies a rate limit to cap the number of errors accepted during a given time window. To disable entirely set rateLimit to null.

    "rateLimit": {
        "window": 7200, // time in seconds
        "count": 1000 // error cap


<auth_token> requires one of the following scopes:
  • project:admin
  • project:write
curl{organization_id_or_slug}/{project_id_or_slug}/keys/ \
 -H 'Authorization: Bearer <auth_token>' \
 -H 'Content-Type: application/json' \
 -d '{}'
  "id": "60120449b6b1d5e45f75561e6dabd80b",
  "name": "Liked Pegasus",
  "label": "Liked Pegasus",
  "public": "60120449b6b1d5e45f75561e6dabd80b",
  "secret": "189485c3b8ccf582bf5e12c530ef8858",
  "projectId": 4505281256090153,
  "isActive": true,
  "rateLimit": {
    "window": 7200,
    "count": 1000
  "dsn": {
    "secret": "",
    "public": "",
    "csp": "",
    "security": "",
    "minidump": "",
    "nel": "",
    "unreal": "",
    "cdn": "",
    "crons": ""
  "browserSdkVersion": "7.x",
  "browserSdk": {
    "choices": [
  "dateCreated": "2023-06-21T19:50:26.036254Z",
  "dynamicSdkLoaderOptions": {
    "hasReplay": true,
    "hasPerformance": true,
    "hasDebug": true