Skip to Content

Update a webhook

You're viewing API version 2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.
PATCH
/api/v1/webhooks/{id}

Update webhook properties. All fields are optional - only provided fields will be updated.

Plan Requirement: Requires SOLO plan or higher.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Path Parameters

id*string

Header Parameters

authorization*string

Bearer token for API authentication

Idempotency-Key?string

Makes retries safe. A retry with the same key and the same request replays the stored response for 24 hours (header Idempotent-Replayed: true); the same key with a different request returns 400.

Lengthlength <= 255

Request Body

Body

application/json
  1. body

Update webhook request

webhookUrl?string

URL that will receive webhook events

Formaturi
eventTriggers?array<>

List of event types to subscribe to

Items1 <= items
secret?|

Signing key for this endpoint, used for the X-Sajn-Signature header

enabled?boolean

Whether this webhook is active

failureNotificationEmail?|

Email address that will be notified if webhook delivery fails

Match^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail

Response Body

Webhook response

application/json
  1. response

Webhook response

id*string

Unique webhook identifier

webhookUrl*string

URL that receives webhook events

secret*|

Signing key for this endpoint. Deliveries carry X-Sajn-Signature: t=,v1=<hex hmac-sha256 over ".">

enabled*boolean

Whether this webhook is active

failureNotificationEmail*|

Email address that receives a notification if webhook delivery fails

eventTriggers*array<string>

List of event types this webhook subscribes to

createdAt*string

Date and time when webhook was created

Formatdate-time
updatedAt*string

Date and time when webhook was last updated

Formatdate-time
Example Request
curl -X PATCH 'https://app.sajn.se/api/v1/webhooks/string' \  -H 'authorization: string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "webhookUrl": "string",  "secret": "string",  "enabled": true,  "failureNotificationEmail": "string",  "eventTriggers": [    "string"  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}

Was this page helpful?