Skip to content
TipPage Docs
Esc
navigateopen⌘Jpreview

Rotate the signing secret

Mints a new whsec_ and returns it once. The old secret stops validating immediately. Requires webhooks:manage.

POST/webhook-endpoints/{endpointId}/rotate-secret
Authorization
AuthorizationBearer token (tp_live_...) · headerrequired
A TipPage API key, created in Dashboard → Settings → Developer.
Path parameters
endpointIdstringrequired
Webhook endpoint id (`we_...`).
Responses
200The new secret - shown only here.
secretstring
401Missing or invalid API key (`missing_api_key` / `invalid_api_key`).
errorstringrequired
Human-readable message.
codestring
Machine-readable code (e.g. `missing_scope`, `not_in_queue`).
403The key lacks the required scope (`missing_scope`).
errorstringrequired
Human-readable message.
codestring
Machine-readable code (e.g. `missing_scope`, `not_in_queue`).
required_scopestring
404No such resource.
errorstringrequired
Human-readable message.
codestring
Machine-readable code (e.g. `missing_scope`, `not_in_queue`).
429Rate limit exceeded - check the `RateLimit-*` headers.
errorstring
Request
curl -X POST "https://api.tippage.com/v1/webhook-endpoints/string/rotate-secret" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "secret": "whsec_1a2b3c..."
}