API / Reference / Activity Events
List company activity events
GET
https://api.light.inc/v1/activity-events
Returns a paginated list of company activity events across supported record types, newest first. Requires COMPANY_ADMIN or AUDITOR. Supports filtering by record, action, actor, correlation ID and time.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Query parameters
-
filterstringFilter string in the format
field:operator:value. To provide multiple filters, separate them with commas.Available operators:
eq,ne,in,not_in,gt,gte,lt,lte.- For
inandnot_inoperators, provide multiple values separated by the pipe character (|).
Available fields:
action,actorId,correlationId,createdAt,entityId,entityType. - For
-
limitinteger · int32Maximum number of items to return. Default is 50, maximum is 200.
-
cursorstringThe cursor position to start returning results from. Omit it, or provide
0, for the initial request. For subsequent requests, usenextCursorfrom the previous response to navigate. Cursor values are opaque and should not be constructed manually. This endpoint paginates by cursor only and has nooffsetparameter.
Response
-
recordsarray of objectList of records for the current page
-
idstring · uuidUnique identifier of the event. Ids are time-ordered, so a later event always has a greater id.
-
entityTypestringType of the record the event belongs to
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
AI_AGENTAI_ARTIFACTASSISTANT_INSTRUCTIONBANK_ACCOUNTBANK_PAYMENTCARDCARD_INTENTCARD_TRANSACTIONCONTRACTCREDIT_NOTECUSTOMERCUSTOMER_CREDITDEFERRED_ENTRYDOCUMENT_TEMPLATEFX_REVALUATIONHUBSPOT_CONNECTIONINTERCOMPANY_JOURNAL_ENTRYINVOICE_PAYABLEINVOICE_RECEIVABLEJOURNAL_ENTRYLCI_MEMORYPRODUCTPURCHASE_ORDERPURCHASE_REQUESTSALESFORCE_CONNECTIONSKILLUSER_REIMBURSEMENT_CONFIGVENDORWORKFLOWYEAR_CLOSING_ENTRY -
entityIdstring · uuidID of the record the event belongs to
-
actionstringWhat was done to the record
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACTIVATEADD_TO_PAYMENT_BATCHAGENT_REVIEWAPPLY_CREDIT_NOTEAPPLY_CUSTOMER_CREDITAPPROVEAPPROVE_PAYMENTARCHIVEATTACH_FILECANCELCANCEL_TERMINATIONCLEARCLOSECONFIRM_GOODS_RECEIPTCREATEDECLINE_APPROVALDECLINE_PAYMENTDELETEFAILFLAG_GOODS_RECEIPT_ISSUEINITIATE_PAYMENTLOCKMARK_AS_PAIDMARK_AS_PAID_IN_STRIPEMARK_AS_PARTIALLY_PAIDMATCH_BILLMATCH_PURCHASE_ORDEROPENPARTIALLY_CLEARPAUSE_PAYMENTPAYPOSTPUBLISHRECONCILEREMOVE_CREDIT_NOTEREMOVE_CUSTOMER_CREDITRENEWRESETRESUME_PAYMENTREVERSE_CLEARINGREVERTSCHEDULE_TERMINATIONSEND_CUSTOMER_CREDITSEND_DUNNING_EMAILSEND_INVOICESEND_PURCHASE_ORDERSUBMIT_FOR_APPROVALTERMINATETRIGGER_SYNCUNARCHIVEUNMATCH_BILLUNMATCH_PURCHASE_ORDERUNRECONCILEUPDATE -
actorobjectWho did it
-
idstring · uuidID of the principal that acted
-
typestringKind of principal that acted
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
AI_AGENTINTEGRATIONLIGHT_TEAMSYSTEMUSER -
namestringDisplay name of the actor
-
rolesarray of stringRoles the actor held when the event was recorded, without Light-internal roles. Null for events recorded before roles were captured.
One of
SUPERUSERREIMBURSEMENTCARDHOLDERCONTROLLERCOMPANY_ADMINVENDOR_MANAGEMENTINVOICE_APPROVERAP_PREPARATIONAP_CLERKAR_CLERKPURCHASE_REQUESTERREPORT_VIEWERAUDITOR
-
-
correlationIdstring · uuidID of the operation this event belongs to, e.g. an approval run or an assistant tool call. Events sharing it were caused by that one operation.
-
createdAtstring · date-timeTimestamp when the event happened
-
changesarray of objectField changes recorded with the event, each with the value before and after
-
objectTypestringWhether the changed field belongs to the record itself or to one of its lines
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
HEADERLINE -
objectIdstring · uuidID of the record or line the field belongs to
-
objectPositioninteger · int32Position of the line within the record, for line fields
-
fieldstringMachine name of the changed field
-
fieldLabelstringHuman-readable label of the changed field
-
oldValueobjectA field value, discriminated by
type: TEXT, DATE, ENUM, MONEY, REFERENCE or REFERENCE_LIST-
typestringrequired
-
-
newValueobjectA field value, discriminated by
type: TEXT, DATE, ENUM, MONEY, REFERENCE or REFERENCE_LIST-
typestringrequired
-
-
-
-
hasMorebooleanBoolean flag indicating if there are more records available
-
nextCursorstringCursor for fetching the next page
-
prevCursorstringCursor for fetching the previous page