Skip to main content

WebhooksApi

MethodHTTP requestDescription
createWebhookUsingPOSTPOST /api/web/v1/webhooksRegister a webhook
deleteWebhookUsingDELETEDELETE /api/web/v1/webhooks/{id}Delete a webhook
getWebhooksUsingGETGET /api/web/v1/webhooksList webhooks
readWebhookUsingGETGET /api/web/v1/webhooks/{id}Get a webhook by id
testWebhookUsingPOSTPOST /api/web/v1/webhooks/test/{id}Test a webhook
updateWebhookUsingPUTPUT /api/web/v1/webhooks/{id}Update a webhook

createWebhookUsingPOST

Webhook createWebhookUsingPOST(webhookParms)

Register a webhook

Register a webhook with callback URL, webhook events etc. Caller is required to have WEBHOOKS:ADD permission.

Parameters

NameTypeDescriptionNotes
webhookParmsWebhookParms

Return type

Webhook

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

deleteWebhookUsingDELETE

deleteWebhookUsingDELETE(id)

Delete a webhook

Delete a registered webhook by ID. Caller is required to have WEBHOOKS:REMOVE permission.

Example

Parameters

NameTypeDescriptionNotes
idStringThe UUID of the webhook to be deleted.

Return type

null (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

getWebhooksUsingGET

List<Webhook> getWebhooksUsingGET()

List webhooks

Return a list of webhooks. Caller is required to have WEBHOOKS:VIEW permission.

Example

Parameters

This endpoint does not need any parameter.

Return type

List<Webhook>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

readWebhookUsingGET

Webhook readWebhookUsingGET(id)

Get a webhook by id

Get the specified webhook. Caller is required to have WEBHOOKS:VIEW permission.

Example

Parameters

NameTypeDescriptionNotes
idStringThe UUID of the webhook.

Return type

Webhook

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

testWebhookUsingPOST

testWebhookUsingPOST(id)

Test a webhook

Sends a dummy payload to the registered webhook callback URL. Use this to ensure your API is ready to start accepting webhook notifications. Caller is required to have WEBHOOKS:EDIT permission.

Example

Parameters

NameTypeDescriptionNotes
idStringThe UUID of the webhook to test.

Return type

null (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

updateWebhookUsingPUT

Webhook updateWebhookUsingPUT(id, webhookParms)

Update a webhook

Update a webhook with callback URL, webhook events etc. Caller is required to have WEBHOOKS:EDIT permission.

Example

Parameters

NameTypeDescriptionNotes
idStringThe UUID of the webhook to be updated.
webhookParmsWebhookParms

Return type

Webhook

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-