Update webhook

Update the webhook for the authenticated account

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Update an existing webhook's callback URL, secret, or both.

Example Request

curl -X PUT https://api.neutron.me/api/v2/webhook/01e2a3dc-0c34-4e14-92e4-b270c4778d95 \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -d '{
    "callback": "https://yourapp.com/webhooks/v2/neutron",
    "secret": "new-webhook-secret"
  }'

Request Body

FieldTypeRequiredDescription
callbackstringNew callback URL
secretstringNew secret for signature verification

You can update either field independently or both at once.

Common Use Cases

ScenarioUpdate
Migrating to a new serverChange callback URL
Rotating secretsChange secret (update your verification code to match)
Moving to a new endpoint versionChange callback to /v2/webhooks

Important

  • After updating the secret, immediately update your server's verification code to use the new secret — events sent after the update will be signed with the new secret
  • Get your webhook ID from List Webhooks if you don't have it

Related

Path Params
string
required

The unique identifier of the webhook

Body Params
string
string

Secret used to generate the signature in the webhook calls

Responses

401

Unauthorized - Invalid or missing authentication credentials

404

Not Found - The requested webhook does not exist

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json