Webhooks and events
POST/v1/webhook-endpoints/{ep_id}/rotate-secret

Rotate webhook signing secret

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/webhook-endpoints/{ep_id}/rotate-secret" \  -H "Cookie: <console session cookie>"

Replaces the endpoint's signing secret at once; the old secret stops signing new deliveries. Requires developer:manage. The new secret is shown once.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/webhook-endpoints/{ep_id}/rotate-secretBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • ep_idstringrequired

    Webhook endpoint id (we_...).

Requires permissiondeveloper:manage
Held by owner, admin, developer, merchant_owner, merchant_developer, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

ep_id*Ep Id

Webhook endpoint id (we_...).

Response Body

Success.

application/json
  1. response
secret*Secret

Secret shown once. Store it; Abazi keeps only a hash.

endpoint*
[key: string]?any