Create an API key

Create a new API key within the authenticated organization.

POST/org/api_keys

Create a new API key within the authenticated organization.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response

application/json

API key created successfully

API key returned immediately after creation. Includes the plaintext key once.

curl -X POST "https://example.com/org/api_keys" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string",  "name": "string",  "created_at": "2019-08-24T14:15:22Z",  "created_by": {    "id": "string",    "email": "user@example.com",    "name": "string"  },  "expires_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "project_id": "string",  "project_name": "string",  "masked_key": "string",  "key": "string"}