Create Secret Key

POST
/api/v1/api-keys

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name*string
projectId*string

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/api-keys" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "projectId": "string"  }'
{  "end": "string",  "id": "string",  "isPublic": true,  "name": "string",  "prefix": "string",  "projectId": "string",  "rawKey": "string"}
{  "_tag": "Api/ActionForbiddenError",  "message": "string"}
{  "_tag": "Api/ApiKeyServiceError",  "cause": "string"}