Skip to main content

List Events

POST

https://webhooks.smartsuite.com/smartsuite.webhooks.engine.Webhooks/ListEvents

Lists all SmartSuite Webhooks

Example Request
curl -X POST https://webhooks.smartsuite.com/smartsuite.webhooks.engine.Webhooks/ListEvents \
-H "Authorization: Token YOUR_API_KEY" \
-H "ACCOUNT-ID: WORKSPACE_ID" \
-H "Content-Type: application/json" \
--data '{
"webhook_id": "{{webhook_id}}",
"page_size": "50",
"page_token": ""
}'

Request Body

ParamTypeOptionalDescription
webhook_idstringYesSpecifies a webhook Id to return events for.
page_sizestringYesNumber of records per page
page_tokenstringYesUse next_page_token to fetch the next page of events

Response

ParamTypeDescription
eventsarray of event objectsArray of events
next_page_tokenstringToken used to request the next page of event data

event object structure

ParamTypeDescription
webhook_idstringThe event's webhook Id
locatorlocator objectNo
event_idstringThe event's Id
kindstringThe event type
event_atdatetimeEvent's ISO datetime
record_event_dataevent data objectEvent's record data
ctxctx objectinformation about the event

locator object

ParamTypeDescription
locator.account_idobjectNo
locator.solution_idobjectNo
locator.application_idobjectNo

event_data object

ParamTypeDescription
record_idstringThe record Id
locatorlocator objectContains workspace and Solution information
datafield data objectEvent data
previousfield data objectPrior values of fields when event type is RECORD_UPDATED

field data object

ParamTypeDescription
1-n... field_slugfield objectSmartSuite field objects and their data

ctx object

ParamTypeDescription
change_idstringid of the change event
change_sizenumbersize of the change event
batch_idstringid of the event batch
batch_sizenumbersize of the event batch
sourcestringSource of the change event
handlerstringchange event handler name

Example Response - 200
{
"events": [
{
"webhook_id": "2f7cc6e0-b709-4b04-964a-3706c89c78e3",
"locator": {
"account_id": "WORKSPACE_ID",
"solution_id": "63b87cad645b3949631b55bf"
},
"event_id": "2f7cc6e0-b709-4b04-964a-3706c89c78e3.994",
"kind": "RECORD_CREATED",
"event_at": "2023-06-21T21:14:06.263Z",
"record_event_data": {
"record_id": "6493681eba09b400816eb754",
"locator": {
"account_id": "WORKSPACE_ID",
"solution_id": "63b87cad645b3949631b55bf",
"application_id": "63b87cad645b3949631b55c1"
},
"data": {
"last_updated": {
"on": "2023-06-21T21:14:06.247000Z",
"by": "63a1f65723aaf6bcb564b1f1"
},
"due_date": {
"is_overdue": false,
"status_updated_on": "2023-06-21T21:14:06.248000Z",
"from_date": {
"date": null,
"include_time": false
},
"to_date": {
"date": null,
"include_time": false
},
"status_is_completed": false
},
"description": {
"data": {
"type": "doc",
"content": []
},
"preview": "",
"html": "<div class=\"rendered\">\n \n</div>"
},
"deleted_by": null,
"title": "test",
"priority": "",
"application_id": "63b87cad645b3949631b55c1",
"followed_by": [],
"application_slug": "ssb9kaxn",
"deleted_date": {
"date": null,
"include_time": false
},
"comments_count": 0,
"autonumber": 2,
"ranking": {
"default": "aagckvkhyq"
},
"id": "6493681eba09b400816eb754",
"first_created": {
"on": "2023-06-21T21:14:06.247000Z",
"by": "63a1f65723aaf6bcb564b1f1"
},
"assigned_to": [],
"status": {
"updated_on": "2023-06-21T21:14:06.248000Z",
"value": "backlog"
}
},
"previous": {}
},
"ctx": {
"change_id": "ba1ffa93-0c51-48ab-aff2-64d9128d6c35",
"change_size": 1,
"batch_id": "65832e55206fdfd247b84abd",
"batch_size": 1,
"source": "UNKNOWN",
"handler": "INTERACTIVE"
}
}
],
"next_page_token": "8991625"
}