{"componentChunkName":"component---src-templates-api-page-tsx","path":"/api/projects/create-a-new-client-key/","result":{"data":{"openApi":{"id":"31079244-6971-5945-953b-301787293852","path":{"description":"Create a new client key bound to a project.  The key's secret and public key are generated by the server.","method":"post","operationId":"Create a New Client Key","summary":null,"tags":["Projects"],"apiPath":"/api/0/projects/{organization_slug}/{project_slug}/keys/","readableUrl":"/api/projects/create-a-new-client-key/","parameters":[{"schema":{"type":"string","format":null,"enum":null},"name":"organization_slug","in":"path","description":"The slug of the organization the client keys belong to.","required":true},{"schema":{"type":"string","format":null,"enum":null},"name":"project_slug","in":"path","description":"The slug of the project the client keys belong to.","required":true}],"responses":[{"content":{"content_type":"application/json","example":"{\n  \"browserSdk\": {\n    \"choices\": [\n      [\n        \"latest\",\n        \"latest\"\n      ],\n      [\n        \"4.x\",\n        \"4.x\"\n      ]\n    ]\n  },\n  \"browserSdkVersion\": \"4.x\",\n  \"dateCreated\": \"2018-11-06T21:20:07.941Z\",\n  \"dsn\": {\n    \"cdn\": \"https://sentry.io/js-sdk-loader/cec9dfceb0b74c1c9a5e3c135585f364.min.js\",\n    \"csp\": \"https://sentry.io/api/2/csp-report/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364\",\n    \"minidump\": \"https://sentry.io/api/2/minidump/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364\",\n    \"public\": \"https://cec9dfceb0b74c1c9a5e3c135585f364@sentry.io/2\",\n    \"secret\": \"https://cec9dfceb0b74c1c9a5e3c135585f364:4f6a592349e249c5906918393766718d@sentry.io/2\",\n    \"security\": \"https://sentry.io/api/2/security/?sentry_key=cec9dfceb0b74c1c9a5e3c135585f364\"\n  },\n  \"id\": \"cec9dfceb0b74c1c9a5e3c135585f364\",\n  \"isActive\": true,\n  \"label\": \"Fabulous Key\",\n  \"name\": \"Fabulous Key\",\n  \"projectId\": 2,\n  \"public\": \"cec9dfceb0b74c1c9a5e3c135585f364\",\n  \"rateLimit\": null,\n  \"secret\": \"4f6a592349e249c5906918393766718d\"\n}","schema":"{\n  \"type\": \"object\",\n  \"required\": [\n    \"browserSdk\",\n    \"browserSdkVersion\",\n    \"dateCreated\",\n    \"dsn\",\n    \"id\",\n    \"isActive\",\n    \"label\",\n    \"name\",\n    \"projectId\",\n    \"public\",\n    \"rateLimit\",\n    \"secret\"\n  ],\n  \"properties\": {\n    \"browserSdk\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"choices\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"array\",\n            \"items\": {\n              \"type\": \"string\"\n            }\n          }\n        }\n      }\n    },\n    \"browserSdkVersion\": {\n      \"type\": \"string\"\n    },\n    \"dateCreated\": {\n      \"type\": \"string\"\n    },\n    \"dsn\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"cdn\",\n        \"csp\",\n        \"minidump\",\n        \"public\",\n        \"secret\",\n        \"security\"\n      ],\n      \"properties\": {\n        \"cdn\": {\n          \"type\": \"string\"\n        },\n        \"csp\": {\n          \"type\": \"string\"\n        },\n        \"minidump\": {\n          \"type\": \"string\"\n        },\n        \"public\": {\n          \"type\": \"string\"\n        },\n        \"secret\": {\n          \"type\": \"string\"\n        },\n        \"security\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"id\": {\n      \"type\": \"string\"\n    },\n    \"isActive\": {\n      \"type\": \"boolean\"\n    },\n    \"label\": {\n      \"type\": \"string\"\n    },\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"projectId\": {\n      \"type\": \"integer\"\n    },\n    \"public\": {\n      \"type\": \"string\"\n    },\n    \"rateLimit\": {\n      \"type\": \"string\",\n      \"nullable\": true\n    },\n    \"secret\": {\n      \"type\": \"string\"\n    }\n  }\n}"},"description":"Success","status_code":"201"},{"content":null,"description":"Bad Input","status_code":"400"},{"content":null,"description":"Forbidden","status_code":"403"},{"content":null,"description":"The requested resource does not exist","status_code":"404"}],"requestBody":{"content":{"content_type":"application/json","schema":"{\n  \"required\": [\n    \"name\"\n  ],\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"The name for the new key.\",\n      \"example\": \"Fabulous Key\"\n    }\n  }\n}"},"required":true},"security":[{"auth_token":["project:write"]}]}}},"pageContext":{"id":"31079244-6971-5945-953b-301787293852","title":"Create a New Client Key"}},"staticQueryHashes":["1218203755","1222113826","1222113826","1766336459","2158593473","3990806462","4015007367","4192517163"]}