Generate webhook token
POST /api/webhooks/config/generate-secretGenerates 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.
Responses
Section titled “Responses”| Status | Description | Schema |
|---|---|---|
201 | — | GenerateSecretResponseDto |
Example
Section titled “Example”curl -X POST https://api.neike.dev/api/webhooks/config/generate-secret \ -H "x-neike-api-key: whk_live_…"GenerateSecretResponseDto
Section titled “GenerateSecretResponseDto”| Field | Type | Description | |
|---|---|---|---|
webhook_secret | string | required | Generated token. It is shown only ONCE: copy it and put it in your backend. Afterwards only the masked hint remains. Example: "whsec_abc123…". |