Skip to Content
API ReferenceAudit Logs

Search Audit Logs

POST
/api/v1/audit-logs/search

Requires permission audit_log_read=view

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
page_number?Page Number
Range0 < value
Default1
datetime_from?|null
datetime_to?|null
action_types?array<>|null
object_types?array<>|null
object_id?integer|null
employee_ids?array<integer>|null
is_system?boolean|null
include_details?Include Details
Defaultfalse

Response Body

Successful Response

application/json
  1. response
items*array<>
metadata*
Example Request
curl -X POST 'https://api.skailer.com/api/v1/audit-logs/search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "items": [    {      "id": 0,      "datetime_created_at": "string",      "action_type": "string",      "details_type": "string",      "employee_id": 0,      "object_type": "string",      "object_id": 0,      "is_system": true,      "details": {},      "impersonator_employee_id": 0    }  ],  "metadata": {    "page_number": 1,    "total_pages": 0,    "items": 0,    "items_per_page": 0,    "total_items": 0  }}