---
title: "Search activity log for activities/emails/calls"
method: POST
path: "/activity-log/search"
tags: ["Activity Log"]
---

# Search activity log for activities/emails/calls

`POST /activity-log/search`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/activity-log/search`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.surense.com/oauth/token`

Search activity log for activities, emails, and calls with filtering and pagination.

Exactly one of `employerId`, `customerId`, `leadId`, `workflowId` or `meetingId` must be given. The caller must be allowed to read that entity: it is fetched from its own service with the caller's token, so the matching read scope (`employers:read`, `customers:read`, `leads:read`, `workflows:read` or `meetings:read`) and access rules apply. Answers `404` when the entity does not exist in the account.

## Request body

- SearchActivityLogsRequest: Request to search activity log for activities, emails, and calls
  - `employerId` string: Employer ID
  - `customerId` string: Customer ID
  - `leadId` string: Lead ID
  - `workflowId` string: Workflow ID
  - `meetingId` string: Meeting ID
  - `logTypes` integer[]: Activity Log Types:<br/>1 - Activity (logType 1)<br/>2 - Email (logType 2)<br/>3 - Call (logType 3)
  - `dateStart` string: Start date (inclusive)
  - `dateEnd` string: End date (exclusive)
  - `authors` string[]: Author IDs
  - `text` string: Text search
  - `page` integer: Page number
  - `pageSize` integer: Page size

## Response `200`

OK

- PaginatedSearchResponseActivityLogValue
  - `results` ActivityLogValue[]
    - `id` integer
    - `logType` 1 | 2 | 3
    - `logId` string, uuid
    - `leadId` string, uuid
    - `customerId` string, uuid
    - `workflowId` string, uuid
    - `employerId` string, uuid
    - `activityDate` string, date-time
    - `author` string, uuid
  - `hasNextPage` boolean
  - `totalElements` integer

---

[API](https://skmtc.dev/surense/apis/activity-log-api.md) - [All operations](https://skmtc.dev/surense/apis/activity-log-api/llms.txt) - [OpenAPI document](https://skmtc.dev/surense/apis/activity-log-api/revisions/49e2b9f5a668?raw)
