Skip to main content
POST
/
partner
/
webhooks
/
config
/
regenerate-secret
Regenerate webhook secret
curl --request POST \
  --url https://m2m-backend-qa.up.railway.app/partner/webhooks/config/regenerate-secret \
  --header 'X-API-Key: <api-key>'
{
  "webhookSecret": "whsec_abc123def456ghi789",
  "message": "Copy this secret now. You will not be able to see it again."
}

Authorizations

X-API-Key
string
header
required

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

Response

Webhook secret regenerated — copy the secret now, it will not be shown again

webhookSecret
string
required

The new webhook secret (only shown once)

Example:

"whsec_abc123def456ghi789"

message
string
required

Warning message about secret visibility

Example:

"Copy this secret now. You will not be able to see it again."