Rotate the signing secret
POST
/api/v1/webhooks/{webhookId}/rotate-secretThe new secret appears once. For 24 hours each delivery also carries a signature for the previous secret.
Bearer key, test or live
Parameters
webhookIdstring · uuidpathrequiredResponses
200The webhook and its new secret.404The webhook is absent or inaccessible.curl -X POST 'https://staging.useline.io/api/v1/webhooks/9a3d5e71-2c4b-4f8e-a6d0-7b1c3e5f9a24/rotate-secret' \ -H "Authorization: Bearer $LINE_API_KEY"