Autional Autional
API Reference GitHub autional.com →

POST /admin/oauth/clients/{client_id}/secrets

Creates a new secret for a specified client (secret_value returned once). Supports up to 2 active secrets.

OAuth Client Management `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
client_id path string Yes Client ID

Responses

StatusDescriptionSchema
201New secret (includes secret_value, returned once)dto.CreateClientSecretDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated: provide a valid Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissions: administrator role requiredgitee_com_linmes_authms_base_dto.SimpleResponse
404Client not found or does not belong to the current tenantgitee_com_linmes_authms_base_dto.SimpleResponse
409Conflict: maximum number of secrets reached (max 2)gitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CreateClientSecretDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.CreateClientSecretResponse No
message string No
timestamp string No

dto.CreateClientSecretResponse

OAuth client secret creation result, secret_value is returned only once in this response

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-04-15T10:30:00Z
secret_id string No secret-abc123
secret_value string No sec_xyz789...
status string No active

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No