Autional Autional
API Reference GitHub autional.com →

POST /admin/secrets

Admin creates a new secret.

Secret Service `bearerAuth` application/json

Request Body

Schema: gitee_com_linmes_authms_micro-services_secret-service_internal_handler_dto.StoreSecretRequest

FieldTypeRequiredExampleConstraintsDescription
key string Yes length: ?–512
value string Yes
description string No length: ?–1024
expires_at string No
metadata object No
notify_before integer No

Responses

StatusDescriptionSchema
201Created secretdto.DataResponse-gitee_com_linmes_authms_micro-services_secret-service_internal_handler_dto_SecretResponse
400Invalid request parametersdto.SimpleResponse
401Unauthenticateddto.SimpleResponse
403Forbiddendto.SimpleResponse
500Internal server errordto.SimpleResponse

Referenced Schemas

dto.DataResponse-gitee_com_linmes_authms_micro-services_secret-service_internal_handler_dto_SecretResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data gitee_com_linmes_authms_micro-services_secret-service_internal_handler_dto.SecretResponse No
message string No
timestamp string No

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No

gitee_com_linmes_authms_micro-services_secret-service_internal_handler_dto.SecretResponse

FieldTypeRequiredExampleConstraintsDescription
app_id string No app_xyz
created_at string No 2025-01-15T10:30:00Z
description string No JWT signing key
expires_at string No
id string No sec_abc123
key string No jwt_secret
metadata object No
notify_before integer No
status string No active
updated_at string No 2025-01-15T10:30:00Z
version integer No 1