SalesOS.

Webhooks

Webhook subscription management

Get all webhooks for current user

GET
/api/webhooks

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

Query Parameters

isActiveboolean
curl -X GET "https://www.salesos.org/api/api/webhooks?isActive=true" \
  -H "Authorization: Bearer <token>"

Create a new webhook

POST
/api/webhooks

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

Request Body

application/jsonRequired
nameRequiredstring

Webhook name

descriptionstring

Webhook description

urlRequiredstring

Webhook endpoint URL

eventsRequiredarray<string>

Events to subscribe to

headersobject

Custom headers to send with requests

isActiveboolean

Is webhook active

Default: true
retryAttemptsnumber

Number of retry attempts on failure

Default: 3
retryDelaySecondsnumber

Delay between retries in seconds

Default: 60
curl -X POST "https://www.salesos.org/api/api/webhooks" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": "string",
    "url": "string",
    "events": [
      "lead.created",
      "opportunity.won"
    ],
    "headers": {},
    "isActive": true,
    "retryAttempts": 3,
    "retryDelaySeconds": 60
  }'

Get list of available webhook events

GET
/api/webhooks/events

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

curl -X GET "https://www.salesos.org/api/api/webhooks/events" \
  -H "Authorization: Bearer <token>"

Get webhook statistics

GET
/api/webhooks/stats

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

curl -X GET "https://www.salesos.org/api/api/webhooks/stats" \
  -H "Authorization: Bearer <token>"

Get a webhook by ID

GET
/api/webhooks/{id}

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

Path Parameters

idRequiredstring
curl -X GET "https://www.salesos.org/api/api/webhooks/<string>" \
  -H "Authorization: Bearer <token>"

Update a webhook

PATCH
/api/webhooks/{id}

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

Request Body

application/jsonRequired
namestring

Webhook name

descriptionstring

Webhook description

urlstring

Webhook endpoint URL

eventsarray<string>

Events to subscribe to

headersobject

Custom headers to send with requests

isActiveboolean

Is webhook active

retryAttemptsnumber

Number of retry attempts on failure

retryDelaySecondsnumber

Delay between retries in seconds

Path Parameters

idRequiredstring
curl -X PATCH "https://www.salesos.org/api/api/webhooks/<string>" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": "string",
    "url": "string",
    "events": [
      "string"
    ],
    "headers": {},
    "isActive": true,
    "retryAttempts": 0,
    "retryDelaySeconds": 0
  }'

Delete a webhook

DELETE
/api/webhooks/{id}

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

Path Parameters

idRequiredstring
curl -X DELETE "https://www.salesos.org/api/api/webhooks/<string>" \
  -H "Authorization: Bearer <token>"

Regenerate webhook secret

POST
/api/webhooks/{id}/regenerate-secret

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

Path Parameters

idRequiredstring
curl -X POST "https://www.salesos.org/api/api/webhooks/<string>/regenerate-secret" \
  -H "Authorization: Bearer <token>"

Send a test webhook delivery

POST
/api/webhooks/{id}/test

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

Path Parameters

idRequiredstring
curl -X POST "https://www.salesos.org/api/api/webhooks/<string>/test" \
  -H "Authorization: Bearer <token>"

Get webhook delivery logs

GET
/api/webhooks/{id}/deliveries

Authorization

AuthorizationRequiredBearer <token>

Enter your JWT token

In: header

Path Parameters

idRequiredstring

Query Parameters

successboolean
eventstring
pagenumber
limitnumber
curl -X GET "https://www.salesos.org/api/api/webhooks/<string>/deliveries?success=true&event=%3Cstring%3E&page=0&limit=0" \
  -H "Authorization: Bearer <token>"