Skip to main content
GET
/
partner
/
webhooks
/
config
Get webhook configuration
curl --request GET \
  --url https://m2m-backend-qa.up.railway.app/partner/webhooks/config \
  --header 'X-API-Key: <api-key>'
{
  "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.

Response

Webhook configuration retrieved

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