Autional Autional
API Reference GitHub autional.com →

POST /auth/api-keys

Create a new API Key, return the raw Key only once

API Key `bearerAuth` application/json

Request Body

Schema: dto.CreateApiKeyRequest

FieldTypeRequiredExampleConstraintsDescription
name string Yes
environment string No enum: `live`, `test`
expires_at string No
scopes array of

string

No

Responses

StatusDescriptionSchema
201Creation successful, returning raw Key (only once)

Referenced Schemas

dto.CreateApiKeyResponse

FieldTypeRequiredExampleConstraintsDescription
created_at string No
environment string No
expires_at string No
id string No
name string No
raw_key string No
scopes array of

string

No
status string No

gitee_com_linmes_authms_micro-services_identity-service_internal_handler_dto.DataResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data object No
message string No