Skip to Content

VendorWebhooksApi

All URIs are relative to https://business.apis.kesk.app/v1 

MethodHTTP requestDescription
createVendorWebhookPOST /vendors/{vendor_id}/webhooksCreate a new webhook
deleteVendorWebhookDELETE /vendors/{vendor_id}/webhooks/{webhook_id}Delete a webhook
getVendorWebhookGET /vendors/{vendor_id}/webhooks/{webhook_id}Get a specific webhook
listVendorWebhookEventsGET /vendors/{vendor_id}/webhooks/eventsList available webhook events
listVendorWebhooksGET /vendors/{vendor_id}/webhooksList webhooks for a vendor
regenerateVendorWebhookSecretPOST /vendors/{vendor_id}/webhooks/{webhook_id}/regenerate_secretRegenerate webhook secret
updateVendorWebhookPUT /vendors/{vendor_id}/webhooks/{webhook_id}Update a webhook
validateVendorWebhookUrlPOST /vendors/{vendor_id}/webhooks/validate_urlValidate a webhook URL

createVendorWebhook

VendorWebhookWithSecretResponse createVendorWebhook(vendor_id, CreateVendorWebhookRequest)

Create a new webhook

Creates a new webhook for the vendor. Returns the webhook details including the secret, which is only shown once at creation time.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
CreateVendorWebhookRequestCreateVendorWebhookRequest

Return type

VendorWebhookWithSecretResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

deleteVendorWebhook

MessageResponse deleteVendorWebhook(vendor_id, webhook_id)

Delete a webhook

Permanently deletes a webhook. This will stop all event deliveries to the webhook URL.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
webhook_idLong[default to null]

Return type

MessageResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getVendorWebhook

VendorWebhookResponse getVendorWebhook(vendor_id, webhook_id)

Get a specific webhook

Retrieves details of a specific webhook by its ID.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
webhook_idLong[default to null]

Return type

VendorWebhookResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listVendorWebhookEvents

WebhookEventsResponse listVendorWebhookEvents(vendor_id)

List available webhook events

Returns a list of all available webhook event types that can be subscribed to.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]

Return type

WebhookEventsResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listVendorWebhooks

PaginatedResponse_VendorWebhookResponse listVendorWebhooks(vendor_id, page, per_page)

List webhooks for a vendor

Retrieves a paginated list of webhooks registered for the specified vendor.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
pageInteger[optional] [default to null]
per_pageInteger[optional] [default to null]

Return type

PaginatedResponse_VendorWebhookResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

regenerateVendorWebhookSecret

RegenerateWebhookSecretResponse regenerateVendorWebhookSecret(vendor_id, webhook_id)

Regenerate webhook secret

Generates a new secret for the webhook. The old secret will be invalidated immediately. The new secret is only shown once.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
webhook_idLong[default to null]

Return type

RegenerateWebhookSecretResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

updateVendorWebhook

VendorWebhookResponse updateVendorWebhook(vendor_id, webhook_id, UpdateVendorWebhookRequest)

Update a webhook

Updates an existing webhook’s details. Note that the secret cannot be changed through this endpoint; use the regenerate secret endpoint instead.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
webhook_idLong[default to null]
UpdateVendorWebhookRequestUpdateVendorWebhookRequest

Return type

VendorWebhookResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

validateVendorWebhookUrl

ValidateWebhookUrlResponse validateVendorWebhookUrl(vendor_id, ValidateWebhookUrlRequest)

Validate a webhook URL

Tests if a webhook URL is reachable and responds correctly. Sends a test POST request to the URL and reports the response.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
ValidateWebhookUrlRequestValidateWebhookUrlRequest

Return type

ValidateWebhookUrlResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8