palbaseDocs

Palbase Calls · API

POST/calls/settings/hook-secret

A new hook secret

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/calls/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`)

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation RotateCallHookSecret of calls's contract.