Socotra
API ReferenceConfiguration and Development API

Webhooks API

ActionEndpoint
Fetch a WebhookGET/event/{tenantLocator}/webhooks/{webhookLocator}
Fetch All WebhooksGET/event/{tenantLocator}/webhooks/list
Create a WebhookPOST/event/{tenantLocator}/webhooks
Update a WebhookPATCH/event/{tenantLocator}/webhooks/{webhookLocator}
Unsuspend WebhookPATCH/event/{tenantLocator}/webhooks/{webhookLocator}/unsuspend
Delete a WebhookDELETE/event/{tenantLocator}/webhooks/{webhookLocator}

Fetch a Webhook

Fetch a WebhookfetchWebhook
GET/event/{tenantLocator}/webhooks/{webhookLocator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
webhookLocatorpathulidYes
Security Group:webhooks
Permission:
read

Fetch All Webhooks

Fetch All WebhooksfetchWebhooks
GET/event/{tenantLocator}/webhooks/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
offsetqueryinteger?No
countqueryinteger?No
namequerystring?No
enabledqueryboolean?No
suspendedqueryboolean?No
activequeryboolean?No
eventTypesquerystring[]?No
extendedqueryboolean?No
Security Group:webhooks
Permissions:
read,list
WebhookListResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsWebhookResponse[]
WebhookResponse

Required properties

PropertyTypeDescription
locatorulid
namestring
enabledboolean
endpointEndpointResponse
failureHandlingFailureHandlingResponse
suspendedboolean
suspendedAtdatetime
eventTypesstring[]
EndpointResponse

Required properties

PropertyTypeDescription
hmacEnabledboolean
secretstring
secureSslboolean
tagstring
urlstring
headersmap<string, string[]>

Create a Webhook

Create a WebhookcreateWebhook
POST/event/{tenantLocator}/webhooks

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Security Group:webhooks
Permission:
write
CreateWebhookRequest

Required properties

PropertyTypeDescription
namestring
enabledboolean
endpointCreateEndpointRequest
failureHandlingFailureHandlingCreateRequest
eventTypesstring[]

Optional properties

PropertyTypeDescription
useAutomationPluginboolean?
CreateEndpointRequest

Required properties

PropertyTypeDescription
urlstring

Optional properties

PropertyTypeDescription
hmacEnabledboolean?
secretstring?
secureSslboolean?
tagstring?
headersmap<string, string[]>?

Update a Webhook

Update a WebhookupdateWebhook
PATCH/event/{tenantLocator}/webhooks/{webhookLocator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
webhookLocatorpathulidYes
Security Group:webhooks
Permission:
write

This endpoint follows Socotra Insurance Suite's add-remove semantics for updates: removals happen first, followed by additions. This means that addition takes precedence over removal if a request includes some item in both "remove" and "add".

UpdateWebhookRequest

Required properties

PropertyTypeDescription
namestring
enabledboolean
endpointUpdateEndpointRequest
failureHandlingFailureHandlingUpdateRequest
removeFailureHandlingboolean
addEventTypesstring[]
removeEventTypesstring[]
UpdateEndpointRequest

Required properties

PropertyTypeDescription
urlstring
addHeadersmap<string, string[]>
removeHeadersstring[]

Optional properties

PropertyTypeDescription
hmacEnabledboolean?
secretstring?
secureSslboolean?
tagstring?

Unsuspend Webhook

Unsuspend WebhookunsuspendWebhook
PATCH/event/{tenantLocator}/webhooks/{webhookLocator}/unsuspend

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
webhookLocatorpathulidYes
Response:void
Security Group:webhooks
Permission:
write

Delete a Webhook

Delete a WebhookdeleteWebhook
DELETE/event/{tenantLocator}/webhooks/{webhookLocator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
webhookLocatorpathulidYes
Response:void
Security Group:webhooks
Permission:
write

See Also

On this page