Get all webhooks
Retrieves a list of all webhooks with optional pagination
Offset value (must be 0 or a positive integer)
Limit count (must be 0 or a positive integer)
Webhooks retrieved successfully
Id is the unique identifier for the webhook.
URL contains the webhook URL
Enabled is the value of the webhook enable/disable
CreatedAt is the timestamp when the webhook was created.
UpdatedAt is the timestamp when the webhook was last updated.
Subscriptions is a list of NATS subject filter patterns associated with the webhook.
Status value
Status description
TotalItems is the total number of items across all sets
Invalid pagination parameters
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Internal server error
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
curl -X GET \
"https://{instance}.kiteworks.com/webhooks" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/webhooks"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Create a new webhook
Creates a new webhook based on the body content
Webhook payload
URL contains the webhook URL
Token contains the webhook Token (optional; if provided must not be empty or whitespace-only)
Secret contains the webhook Secret
Enabled is the value of the webhook enable/disable (default is true when omitted)
Subscriptions is a list of NATS subject filter patterns associated with the webhook. Each entry must be non-empty and contain only letters, numbers, dot, asterisk, underscore, hyphen, and optionally end with >.
Webhook created successfully
Id is the unique identifier for the webhook.
URL contains the webhook URL
Enabled is the value of the webhook enable/disable
CreatedAt is the timestamp when the webhook was created.
UpdatedAt is the timestamp when the webhook was last updated.
Subscriptions is a list of NATS subject filter patterns associated with the webhook.
Status value
Status description
Invalid input data
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Internal server error
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
curl -X POST \
"https://{instance}.kiteworks.com/webhooks" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhook",
"token": "my-token",
"secret": "my-secret",
"enabled": true,
"subscriptions": [
"filesystem.file.create",
"filesystem.>"
]
}'import requests
url = "https://{instance}.kiteworks.com/webhooks"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"url": "https://example.com/webhook",
"token": "my-token",
"secret": "my-secret",
"enabled": true,
"subscriptions": [
"filesystem.file.create",
"filesystem.>"
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Get a specific webhook
Retrieves a specific webhook by its ID
ID of the webhook
Webhook retrieved successfully
Id is the unique identifier for the webhook.
URL contains the webhook URL
Enabled is the value of the webhook enable/disable
CreatedAt is the timestamp when the webhook was created.
UpdatedAt is the timestamp when the webhook was last updated.
Subscriptions is a list of NATS subject filter patterns associated with the webhook.
Status value
Status description
Invalid input data
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Webhook is not found
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Internal server error
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
curl -X GET \
"https://{instance}.kiteworks.com/webhooks/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of the webhook
url = f"https://{{instance}}.kiteworks.com/webhooks/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Update a webhook
Updates an existing webhook
ID of the webhook
Updated webhook payload
URL contains the webhook URL
Token contains the webhook Token (optional; if provided must not be empty or whitespace-only)
Secret contains the webhook Secret
Enabled is the value of the webhook enable/disable (default is true when omitted)
Subscriptions is a list of NATS subject filter patterns associated with the webhook. Each entry must be non-empty and contain only letters, numbers, dot, asterisk, underscore, hyphen, and optionally end with >.
Webhook updated successfully
Id is the unique identifier for the webhook.
URL contains the webhook URL
Enabled is the value of the webhook enable/disable
CreatedAt is the timestamp when the webhook was created.
UpdatedAt is the timestamp when the webhook was last updated.
Subscriptions is a list of NATS subject filter patterns associated with the webhook.
Status value
Status description
Invalid input data
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Not found - webhook with Id could not be found
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Conflict - webhook instance is modified since operation started
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Internal server error
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
curl -X PUT \
"https://{instance}.kiteworks.com/webhooks/:id" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhook",
"token": "my-token",
"secret": "my-secret",
"enabled": true,
"subscriptions": [
"filesystem.file.create",
"filesystem.>"
]
}'import requests
id = "VALUE" # ID of the webhook
url = f"https://{{instance}}.kiteworks.com/webhooks/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"url": "https://example.com/webhook",
"token": "my-token",
"secret": "my-secret",
"enabled": true,
"subscriptions": [
"filesystem.file.create",
"filesystem.>"
]
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Partially update a webhook
Updates specific fields of an existing webhook without requiring all fields to be present
ID of the webhook
Partial webhook payload with only the fields to update
URL contains the webhook URL
Token contains the webhook Token (if provided must not be empty or whitespace-only)
Secret contains the webhook Secret
Enabled is the value of the webhook enable/disable
Subscriptions is a list of NATS subject filter patterns associated with the webhook.
Webhook updated successfully
Id is the unique identifier for the webhook.
URL contains the webhook URL
Enabled is the value of the webhook enable/disable
CreatedAt is the timestamp when the webhook was created.
UpdatedAt is the timestamp when the webhook was last updated.
Subscriptions is a list of NATS subject filter patterns associated with the webhook.
Status value
Status description
Invalid input data
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Not found - webhook with Id could not be found
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Conflict - webhook instance is modified since operation started
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Internal server error
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
curl -X PATCH \
"https://{instance}.kiteworks.com/webhooks/:id" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhook",
"token": "my-token",
"secret": "my-secret",
"enabled": true,
"subscriptions": [
"filesystem.file.create",
"filesystem.>"
]
}'import requests
id = "VALUE" # ID of the webhook
url = f"https://{{instance}}.kiteworks.com/webhooks/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"url": "https://example.com/webhook",
"token": "my-token",
"secret": "my-secret",
"enabled": true,
"subscriptions": [
"filesystem.file.create",
"filesystem.>"
]
}
response = requests.patch(url, headers=headers, json=payload)
print(response.json())Delete a webhook
Deletes an existing webhook by its ID
ID of the webhook
Webhook deleted successfully
Invalid input data (missing or invalid ID)
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Not Found
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
Internal server error
Code is the HTTP status code returned by the API.
Message is a human-readable message in the format "[StatusText] detail" explaining the result.
curl -X DELETE \
"https://{instance}.kiteworks.com/webhooks/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of the webhook
url = f"https://{{instance}}.kiteworks.com/webhooks/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())