Partner Webhooks

Update a Webhook Header

PATCH
/v1/partners/webhooks/{webhookId}/headers

Authorization

bearerAuth
AuthorizationBearer <token>

Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.

In: header

Path Parameters

webhookId*string

Request Body

application/json

headers?array<>

Header credentials are optional for webhooks

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/partners/webhooks/string/headers" \  -H "Content-Type: application/json" \  -d '{    "headers": [      {        "name": "Authorization",        "value": "c3BpbndoZWVsdsOk"      }    ]  }'
{  "status": {    "code": 200,    "desc": "success"  },  "data": {    "webhookId": "5e92c9f3-d2ba-4a36-9133-a9c6df65615e",    "url": "https://webhook.site/272fe518-0a3e-4c68-98e4-31a6664e36aecdd",    "eventType": "USER_PAYMENT_STATUS",    "isEnabled": true,    "headers": [      {        "name": "Authorization",        "value": "c3BpbndoZWVsOkhUOX"      }    ]  }}