POST
/v1/projects/{project_id}/keysCreate a Project KeyCreates a new API key with specified settings for the project
Parameters
project_idstringpathrequiredThe unique identifier of the project
Request body
API key settings
application/json
valueCreateKeyV1Request
CreateKeyV1Request
oneOf · 2 options
Option 1value
Any type
Option 2value
Any type
nullResponses
objectCreateKeyV1Response
CreateKeyV1Response
API key created
api_key_idstringThe unique identifier of the API key
commentstringA comment for the API key
expiration_datestring · date-timeThe expiration date of the API key
keystringThe API key
scopesarray of stringThe scopes for the API key
Show child attributes
tagsarray of stringThe tags for the API key
Show child attributes
{
"api_key_id": "string",
"comment": "string",
"expiration_date": "2026-06-09T00:00:00Z",
"key": "string",
"scopes": [
"string"
],
"tags": [
"string"
]
}valueErrorResponse
ErrorResponse
oneOf · 3 options
Option 1stringErrorResponseTextError
ErrorResponseTextError
Option 2objectErrorResponseLegacyError
ErrorResponseLegacyError
err_codestringThe error code
err_msgstringThe error message
request_idstringThe request ID
Option 3objectErrorResponseModernError
ErrorResponseModernError
categorystringThe category of the error
detailsstringA description of the error
messagestringA message about the error
request_idstringThe unique identifier of the request
{
"err_code": "string",
"err_msg": "string",
"request_id": "string"
}