Skip to main content
POST
POST /v1/webhook-endpoints
Creates an endpoint and returns it with a one-time signing_secret (whsec_…) and status 201. Store the secret right away: a retry with the same Idempotency-Key returns 200 with "replayed": true and doesn’t return the secret again. New endpoints start paused and unverified. Before Prava delivers events:
  1. Verify the endpoint so Prava knows your receiver controls the URL.
  2. Update it with "enabled": true.

Authorizations

Authorization
string
header
required

Your secret key: sk_test_* (sandbox) or sk_live_* (production).

Headers

Idempotency-Key
string
required
Pattern: ^[A-Za-z0-9_-]{8,120}$

Body

application/json
name
string
required
Required string length: 1 - 80
url
string<uri>
required

Public HTTPS port 443, no query, userinfo or redirects.

Maximum string length: 2048
events
enum<string>[]
required
Required array length: 1 - 16 elements
Available options:
payment.credentials_ready,
payment.succeeded,
payment.failed,
card_enrollment.completed,
card_enrollment.failed,
card_enrollment.cancelled,
card_enrollment.expired,
mandate.created,
mandate.creation_failed,
mandate.creation_cancelled,
mandate.creation_expired,
mandate.paused,
mandate.resumed,
mandate.cancelled,
mandate.expired,
quote.request_failed

Response

Successful operation; endpoints never include stored signing secrets.

endpoint
object
required
replayed
boolean
required

A retry with the same Idempotency-Key. The secret isn't returned again.