/api/post-v1-projects-projectuuid-api-keys-1cde77f211
Войти
Все методы Api KeyApiKeyController
manifest 0.0.0.118 • 1 июн. 2026 г., 13:50
POST/v1/projects/{projectUuid}/api-keysAuthenticated

POST api keys

Создаёт новый API key проекта.

Operation ID
ApiKeyController.createApiKey.POST.v1_projects__projectUuid__api-keys
Handler
cdp.gateway.cdp_gateway.api.api_key.controller.ApiKeyController#createApiKey
Consumes
Produces
Параметры1
Request bodyCreateProjectApiKeyRequestDTO
Response bodyResponseWrapper<CreateProjectApiKeyResponseDTO>
Request map

Маршрут и контракт запроса

POST/v1/projects/{projectUuid}/api-keys
Path segments
v1projects{projectUuid}api-keys
Security
isAuthenticated()
Parameters

Параметры

ИмяИсточникТипОбязательныйNullableSchema
projectUuid
pathStringДаНет
Request / Response

Тела запроса и ответа

Request bodyCreateProjectApiKeyRequestDTO
Nullable: Нет
CreateProjectApiKeyRequestDTO
object • CreateProjectApiKeyRequestDTO
name
String
required • not-null
NotBlank
scopes
List<String>
required • not-null
NotEmpty
expiresAt
String
optional • nullable
rateLimitPerMinute
Integer
optional • nullable
Min
Response bodyResponseWrapper<CreateProjectApiKeyResponseDTO>
Nullable: Нет
ResponseWrapper<CreateProjectApiKeyResponseDTO>
object • ResponseWrapper<CreateProjectApiKeyResponseDTO>
success
boolean
required • not-null
data
T
optional • nullable
error
CdpErrorResponse
optional • nullable • schema=CdpErrorResponse
CdpErrorResponse
object • CdpErrorResponse
errorId
String
required • not-null
code
String
required • not-null
message
String
required • not-null
details
Map<String, Object>
optional • not-null
fieldErrors
List<CdpFieldError>
optional • not-null
timestamp
long
optional • not-null
meta
Map<String, Object>
optional • not-null