Ugrás a fő tartalomhoz

API-kulcs létrehozása

POST/api/v1/user/api-keys

Create a new API key for the user's selected organization.

cURL példa

curl -X POST \
  'http://localhost:8000/api/v1/user/api-keys' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Paraméterek

NévHelyTípusLeírás
authorizationheaderobject
X-API-Keyheaderobject

Kérés törzse

application/json
Séma megtekintése
{
  "$ref": "#/components/schemas/CreateAPIKeyRequest"
}

Válaszok

200Successful Response
application/json
Séma megtekintése
{
  "$ref": "#/components/schemas/CreateAPIKeyResponse"
}
404Not found
422Validation Error
application/json
Séma megtekintése
{
  "$ref": "#/components/schemas/HTTPValidationError"
}