Create an API key
Create a new API key within the authenticated organization.
/org/api_keysCreate a new API key within the authenticated organization.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response
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"}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}