Skip to main content
POST
/
v1
/
webhooks
Create webhook endpoint
curl --request POST \
  --url https://api-sandbox.superbank.com/v1/webhooks \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "url": "https://your-app.com/webhooks/superbank",
  "events": [
    "payment.created",
    "payment.updated"
  ]
}
'
{}

Authorizations

X-Api-Key
string
header
required

Body

application/json
url
string
required

HTTPS URL to receive webhook notifications

Example:

"https://your-app.com/webhooks/superbank"

events
enum<string>[]
required

Event types to subscribe to

Available options:
account.created,
account.updated,
payment.created,
payment.updated
Example:
["payment.created", "payment.updated"]

Response

Webhook endpoint created successfully

The response is of type object.