PearPear

Create API key

Create a scoped API key; the raw secret is returned only once at creation

POST
/api-keys
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Create a new API key

Response Body

application/json

curl -X POST "https://example.com/api-keys" \  -H "Content-Type: application/json" \  -d '{    "label": "string"  }'
{  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",  "label": "string",  "scope": "read",  "key": "string"}