Skip to main content
PUT
/
partner
/
webhooks
/
config
Update webhook URL
curl --request PUT \
  --url https://m2m-backend-qa.up.railway.app/partner/webhooks/config \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "webhookUrl": "https://api.example.com/webhooks/m2m"
}
'
{
  "webhookUrl": "https://api.example.com/webhooks/m2m",
  "webhookSecretPreview": "whsec_****abc123",
  "hasWebhookSecret": true
}

Authorizations

X-API-Key
string
header
required

Your partner API key. Use m2m_test_* keys for the sandbox environment.

Body

application/json
webhookUrl
string

Webhook URL to receive event notifications

Example:

"https://api.example.com/webhooks/m2m"

Response

Webhook configuration updated

webhookUrl
object
required

The configured webhook URL

Example:

"https://api.example.com/webhooks/m2m"

webhookSecretPreview
string
required

Preview of the webhook secret (masked)

Example:

"whsec_****abc123"

hasWebhookSecret
boolean
required

Whether a webhook secret has been generated

Example:

true