Autional Autional
API Reference GitHub autional.com →

POST /admin/tenants/{tenant_id}/webhooks/{hook_id}/rotate-secret

Generate a new webhook signing key; the old key becomes invalid immediately

Tenant Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Tenant ID
hook_id path string Yes Webhook ID

Responses

StatusDescriptionSchema
200New keydto.RotateSecretDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthorizedgitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissionsgitee_com_linmes_authms_base_dto.SimpleResponse
404Webhook not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.RotateSecretDetailResponse

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

dto.RotateSecretResponse

FieldTypeRequiredExampleConstraintsDescription
secret string No whsec_new_generated_secret

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No