Skip to main content
POST
/
b2b
/
webhooks
Register Webhook
curl --request POST \
  --url https://nexus.kraken.com/b2b/webhooks \
  --header 'API-Key: <api-key>' \
  --header 'API-Sign: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://your-domain.com/webhooks/payward",
  "enabled": true,
  "events": [
    "quote.executed"
  ]
}
'
{
  "result": {
    "webhook": {
      "id": "WHTEST-XXXXX-EXAMPLE",
      "url": "https://your-domain.com/webhooks/payward",
      "enabled": false,
      "subscribed_events": [],
      "available_events": [
        "custom_order.executed",
        "custom_order.execution_failed",
        "custom_order.cancelled",
        "quote.executed",
        "quote.execution_failed",
        "quote.cancelled",
        "reward.paid",
        "user.verified",
        "user.closed",
        "user.disabled",
        "deposit.status_updated",
        "withdrawal.status_updated"
      ],
      "created_at": "2023-01-01T00:00:00Z",
      "updated_at": "2023-01-01T00:00:00Z"
    },
    "secret": "dGVzdC1zZWNyZXQtcGxlYXNlLWlnbm9yZQ=="
  }
}

Documentation Index

Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

API-Key
string
header
required

The "API-Key" header should contain your API key.

API-Sign
string
header
required

Authenticated requests should be signed with the "API-Sign" header, using a signature generated with your private key, nonce, encoded payload, and URI path.

Headers

Payward-Version
enum<string>
default:2025-04-15

The target version of the Embed API to use. The API version name is based on the date when the API version was released. For example, the API version 2025-04-15 was released on April 15, 2025.

Available options:
2025-04-15

Body

application/json
url
string<uri>
required

The HTTPS URL where webhook events will be sent. This endpoint must be publicly accessible and respond to POST requests.

Maximum string length: 2048
Example:

"https://your-domain.com/webhooks/payward"

enabled
boolean
default:false

Whether the webhook is enabled. Defaults to false. Disabled webhooks will not receive any events until enabled.

Example:

true

events
string[]

List of event types to subscribe to. Defaults to [] (no events). Use this to configure which events trigger webhook notifications.

Maximum array length: 50
Maximum string length: 100
Pattern: ^[a-zA-Z0-9._]+$
Example:
["quote.executed"]

Response

Webhook registered successfully

result
object