Events APIs
Get an Excel file with the user events logged in Spark. This is equivalent to the Event viewer Download Events.
Authorization
Bearer {token}accessible from Authorization - Bearer token or systematically via Client Credentials.The request headers should include a key for
Authorizationwith the valueBearer {token}.
POST log job
POST log jobReturns: status response with id of the requested job.
POST /{tenant}/api/v4/events/downloadPath parameters
tenant *
Tenant is part of your Log in to Spark URL and also available in the User menu.
Request body
Content-Type: application/json
page_no
Page number of the list to get.
pageSize
Number of records per page.
sort_column
String defining the sort column.
Example: -updated
sort_order
asc or desc sets the sort order for the sort_column.
Example: desc
search
Array of search filter objects. Search filter objects can include:
column Name of the column to filter. Columns include folderId, event_types (Array), service_name, user_name , event_start_date, event_end_date,
value Value of the column to filter.
operator Applies to numeric properties.
Example 1:
{"column": "folderId", "value": "8bc193d8-5f82-49d1-8da8-d689f6ab163f"}
Example 2:
{
"column": "event_types",
"value": ["PublishEngine", "DownloadEngine"]"
}
Example 3:
{"column": "event_end_date", "value", "2026-03-02T15:08:00.000Z"}
Sample request
Sample response
HTTP 200 OK Content-Type: application/json
GET log job status
GET log job statusReturns: status response and download_url to download the ZIP file.
Authorization
Follows from Authorization above.
Path parameters
{tenant} *
Tenant is part of your Log in to Spark URL and also available in the User menu.
{jobId} *
job_id associated from POST log job.
Sample response
HTTP 200 OK Content-Type: application/json
Last updated
