Activity Logs

get_activity_logs

Get list of activity logs for the authenticated user's organization

Parameters

pageinteger[1, 9007199254740991]1

Page number for pagination

limitinteger[1, 100]10

Number of items per page

relationsArray<string>createdByemployee
entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATE

Filter by entity type

entityIdstring<uuid>

Filter by entity ID

actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Filter by action type

actorTypestringSystemUserAgent

Filter by actor type (System, User or Agent)

createdByUserIdstring<uuid>

Filter by user who performed the action

employeeIdstring<uuid>

Filter by employee context

startDatestring<date-time>

Filter logs from this date (ISO format)

endDatestring<date-time>

Filter logs until this date (ISO format)

sortBystringcreatedAtupdatedAtentityactioncreatedAt

Sort logs by field

sortOrderstringASCDESCDESC

Sort order

get_activity_log_count

Get activity log count in the authenticated user's organization

Parameters

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATE

Filter by entity type

entityIdstring<uuid>

Filter by entity ID

actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Filter by action type

actorTypestringSystemUserAgent

Filter by actor type (System, User or Agent)

createdByUserIdstring<uuid>

Filter by user who performed the action

employeeIdstring<uuid>

Filter by employee context

startDatestring

Filter logs from this date (ISO format)

endDatestring

Filter logs until this date (ISO format)

get_activity_log

Get a specific activity log by ID

Parameters

idstring<uuid>required

The activity log ID

relationsArray<string>

Relations to include (e.g., ["createdBy", "employee"])

create_activity_log

Create a new activity log entry in the authenticated user's organization

Body

application/json
log_dataobjectrequired

The data for creating the activity log

Show child attributes
entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATErequired
entityIdstring<uuid>required
actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTEDrequired
dataobject
Show child attributes
[key: string]any
previousValuesobject
Show child attributes
[key: string]any
updatedFieldsArray<string>
actorTypestringSystemUserAgent
createdByUserIdstring<uuid>
employeeIdstring<uuid>
employeeobject
Show child attributes
[key: string]any

get_activity_logs_by_entity

Get activity logs for a specific entity

Parameters

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATErequired

The entity type

entityIdstring<uuid>required

The entity ID

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

relationsArray<string>createdByemployee
actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Filter by action type

actorTypestringSystemUserAgent

Filter by actor type (System, User or Agent)

createdByUserIdstring<uuid>

Filter by user who performed the action

employeeIdstring<uuid>

Filter by employee context

startDatestring

Filter logs from this date (ISO format)

endDatestring

Filter logs until this date (ISO format)

sortBystringcreatedAtupdatedAtentityactioncreatedAt

Sort logs by field

sortOrderstringASCDESCDESC

Sort order

get_activity_logs_by_user

Get activity logs created by a specific user

Parameters

userIdstring<uuid>required

The user ID

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATE

Filter by entity type

actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Filter by action type

startDatestring

Filter logs from this date (ISO format)

endDatestring

Filter logs until this date (ISO format)

relationsArray<string>

Relations to include

get_my_activity_logs

Get activity logs created by the current authenticated user

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATE

Filter by entity type

actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Filter by action type

startDatestring

Filter logs from this date (ISO format)

endDatestring

Filter logs until this date (ISO format)

relationsArray<string>

Relations to include

get_recent_activity_logs

Get recent activity logs for the authenticated user's organization

Parameters

limitnumber20

Maximum number of recent logs

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATE

Filter by entity type

actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Filter by action type

hoursnumber24

Get logs from the last N hours

relationsArray<string>

Relations to include

get_activity_log_statistics

Get activity log statistics for the authenticated user's organization

Parameters

startDatestring

Start date for statistics (ISO format)

endDatestring

End date for statistics (ISO format)

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATE

Filter by entity type

actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Filter by action type

groupBystringentityactionuserdatehourentity

Group statistics by

userIdstring<uuid>

Filter by specific user ID

delete_activity_logs

Delete activity logs based on criteria (for cleanup purposes)

Parameters

olderThanDaysnumber

Delete logs older than N days

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATE

Delete logs for specific entity type

entityIdstring<uuid>

Delete logs for specific entity ID

actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Delete logs for specific action type

confirmbooleanrequired

Confirmation flag - must be true to proceed with deletion

search_activity_logs

Search activity logs by metadata or data content

Parameters

querystringrequired

Search query for data content

limitnumber20

Maximum number of results

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATE

Filter by entity type

actionstringCREATEDUPDATEDDELETEDVIEWEDASSIGNEDCOMPLETEDAPPROVEDREJECTED

Filter by action type

startDatestring

Filter logs from this date (ISO format)

endDatestring

Filter logs until this date (ISO format)

get_activity_timeline

Get activity timeline for a specific entity

Parameters

entitystringUSEREMPLOYEETASKPROJECTGOALINVOICEEXPENSEDEALCANDIDATErequired

The entity type

entityIdstring<uuid>required

The entity ID

limitnumber50

Maximum number of timeline entries

startDatestring

Timeline start date (ISO format)

endDatestring

Timeline end date (ISO format)

includeRelatedbooleanfalse

Include related entity activities

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey