Activity Log

Search activity log for activities/emails/calls

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.

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

Request body

employerIdstring

Employer ID

customerIdstring

Customer ID

leadIdstring

Lead ID

workflowIdstring

Workflow ID

meetingIdstring

Meeting ID

logTypesinteger[]

Activity Log Types:<br/>1 - Activity (logType 1)<br/>2 - Email (logType 2)<br/>3 - Call (logType 3)

dateStartstring

Start date (inclusive)

dateEndstring

End date (exclusive)

authorsstring[]

Author IDs

textstring

Text search

pageinteger

Page number

pageSizeinteger

Page size

Example request

{
  "employerId": "123e4567-e89b-12d3-a456-426614174000",
  "customerId": "123e4567-e89b-12d3-a456-426614174000",
  "leadId": "123e4567-e89b-12d3-a456-426614174000",
  "workflowId": "123e4567-e89b-12d3-a456-426614174000",
  "meetingId": "123e4567-e89b-12d3-a456-426614174000",
  "logTypes": [
    1,
    2,
    3
  ],
  "dateStart": "2024-01-01T00:00:00Z",
  "dateEnd": "2024-12-31T23:59:59Z",
  "authors": [
    "123e4567-e89b-12d3-a456-426614174000"
  ],
  "text": "meeting notes",
  "page": 1,
  "pageSize": 20
}

Response

OK

hasNextPageboolean
totalElementsinteger

Changes

No recorded changes to this operation across all 1 revision of this API.