Reference/api-keys

Create Api Key

Create Api Key Dashboard access token (JWT); API keys are not accepted. Request examples use snake_case; schemas may also display accepted camelCase aliases. Replace resource placeholders with accessible IDs. See the guides for runtime model constraints and workflows.

POST/v1/projects/{project_id}/api-keys
Open playground
Dashboard access token (JWT); API keys are not accepted. See authentication.

Authorizations

Dashboard access token (JWT); API keys are not accepted.

Path Parameters

project_idstringrequired

Body (application/json)

namestringrequired
environmentstringoptionaldefault: production
keyTypestringoptionaldefault: standard

Response

201 - application/json
Successful Response
No detailed response model is declared for this operation. See its guide for response fields and lifecycle behavior.
Request Example
curl --fail-with-body -X POST "https://api.apimarketplace.com/v1/projects/PROJECT_ID/api-keys" -H "Authorization: Bearer $ACCESS_TOKEN" -H 'Content-Type: application/json' --data '{"name": "Example character"}'