Palbase Messaging · API
POST
/messaging/settings/hook-secretMake the hook's secret anew
The hook's signing secret made anew, given here once; the old one signs nothing more.
Called by your server, with the project's secret key.
curl
curl -X POST "https://<your-ref>.palbase.studio/messaging/settings/hook-secret" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The settings, with the new secret
401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)
403Not the project's secret key (`secret_key_required`)
409The project has no hook (`no_hook`)
429Over the project's request limit; Retry-After says when to try again
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation RotateHookSecret of messaging's contract.