Skip to content

Generate webhook token

POST /api/webhooks/config/generate-secret

Generates a random token (whsec_…) and stores it encrypted as webhook_secret. This is the ONLY response that carries the token in clear text: copy it and put it in your backend.

StatusDescriptionSchema
201—GenerateSecretResponseDto
Terminal window
curl -X POST https://api.neike.dev/api/webhooks/config/generate-secret \
-H "x-neike-api-key: whk_live_…"
FieldTypeDescription
webhook_secretstringrequiredGenerated token. It is shown only ONCE: copy it and put it in your backend. Afterwards only the masked hint remains. Example: "whsec_abc123…".