cURL
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 }
Returns the current webhook configuration for the authenticated partner, including the webhook URL and a masked preview of the secret.
Your partner API key. Use m2m_test_* keys for the sandbox environment.
m2m_test_*
Webhook configuration retrieved
The configured webhook URL
"https://api.example.com/webhooks/m2m"
Preview of the webhook secret (masked)
"whsec_****abc123"
Whether a webhook secret has been generated
true