Get Webhook
POST
https://webhooks.smartsuite.com/smartsuite.webhooks.engine.Webhooks/GetWebhook
Gets a webhook.
Example Request
curl -X POST https://webhooks.smartsuite.com/smartsuite.webhooks.engine.Webhooks/GetWebhook \
-H "Authorization: Token YOUR_API_KEY" \
-H "ACCOUNT-ID: WORKSPACE_ID" \
-H "Content-Type: application/json" \
--data '{
"webhook_id": "{{webhook_id}}"
}'
Request Body
| Param | Type | Optional | Description |
|---|---|---|---|
| webhook_id | string | No | Id of the webhook you want to retrieve. |
Response
Returns the webhook wrapped in a webhook object, as in the example below. An unknown webhook_id returns 404.
| Param | Type | Description |
|---|---|---|
| webhook_id | string | Webhook Id |
| locator | locator object | Contains workspace and Solution information |
| filter | filter object | Scope of the events to watch. See the filter object below. |
| kinds | array of strings | One of the following types of events:
|
| created_at | created_at object | Created time information |
| updated_at | updated_at object | Updated time information |
| notification_status | notification_status object | Webhook notification status |
| system_status | system_status object | Webhook status |
locator object
| Param | Type | Description |
|---|---|---|
| locator.account_id | string | The Workspace Id |
| locator.solution_id | string | The Solution Id |
| locator.application_id | string | The Table (App) Id, where applicable |
filter object
| Param | Type | Optional | Description |
|---|---|---|---|
| solution | object | Yes* | Pass an empty object to filter at the Solution level |
| applications | applications filter object | Yes* | Object containing application (table) ids to filter by |
| application | application fields filter object | Yes* | Object containing one Table (App) Id (application_id) and the fields to watch (field_ids) |
Filter: Solution level - no tables/fields
"filter": {
"solution": {}
}
Filter: Table (application) level
"filter": {
"applications": {
"application_ids": ["some application id"]
}
}
Filter: Field level
"filter": {
"application": {
"application_id": "some application id",
"field_ids": [
"some field id 1",
"some field id 2"
]
}
}
created_at object
| Param | Type | Description |
|---|---|---|
| by | string | Creating user name |
| at | string | ISO date created |
updated_at object
| Param | Type | Description |
|---|---|---|
| by | string | Updating user name |
| at | string | ISO date updated |
notification_status object
| Param | Type | Description |
|---|---|---|
| enabled | notification_enabled object | Enables webhook notifications |
| disabled | object | Pass an empty object to turn webhook notifications off. Events are still collected and can be read with List Events. |
notification_enabled object
| Param | Type | Description |
|---|---|---|
| url | string | The webhook notification URL |
system_status object
| Param | Type | Description |
|---|---|---|
| enabled | enabled object | if exists, webhook is enabled |
| disabled | disabled object | if exists, webhook is disabled |
enabled_object object
| Param | Type | Description |
|---|---|---|
| expires_at | string | ISO date when webhook expires |