LineDevelopers

Rotate the signing secret

POST/api/v1/webhooks/{webhookId}/rotate-secret

The new secret appears once. For 24 hours each delivery also carries a signature for the previous secret.

Bearer key, test or live

Parameters

webhookIdstring · uuidpathrequired

Responses

200The webhook and its new secret.
404The webhook is absent or inaccessible.
Plus 400, 401, 403, 429, 503. See Errors.
curl -X POST 'https://staging.useline.io/api/v1/webhooks/9a3d5e71-2c4b-4f8e-a6d0-7b1c3e5f9a24/rotate-secret' \
  -H "Authorization: Bearer $LINE_API_KEY"