Creates a new API key for the project
post
/v1/projects/{ref}/api-keysOAuth scopes
- secrets:write
Path parameters
- refRequiredstring
Project ref
Query parameters
- revealOptionalboolean
Boolean string, true or false
Body
- typeRequiredenum
- nameRequiredstring
- descriptionOptionalstring
- secret_jwt_templateOptionalobject
Response codes
- 201
- 401
- 403
- 429
Response (201)
1{2 "api_key": "lorem",3 "id": "lorem",4 "type": "legacy",5 "prefix": "lorem",6 "name": "lorem",7 "description": "lorem",8 "hash": "lorem",9 "secret_jwt_template": {10 "property1": null,11 "property2": null12 },13 "inserted_at": "2021-12-31T23:34:00Z",14 "updated_at": "2021-12-31T23:34:00Z"15}