List company activity events
https://api.light.inc/v1/activity-events
Returns a paginated list of company activity events across supported record types, newest first by default. Use sort=createdAt:asc for oldest first or sort=createdAt:desc for newest first. Keep the same sort and filters when following a cursor. 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. -
sortstringSort string in the format
field:direction. To provide multiple sort fields, separate them with commas.Available directions:
asc,desc.Available fields:
createdAt.
Response
-
recordsarray of objectList of records for the current page
-
idstring · uuidUnique identifier of the event
-
entityTypestringType of the record the event belongs to
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACCOUNTING_PERIODAI_AGENTAI_ARTIFACTAPI_KEYASSISTANT_INSTRUCTIONBANK_ACCOUNTBANK_PAYMENTCARDCARD_INTENTCARD_TRANSACTIONCOMPANYCONTRACTCREDIT_NOTECUSTOMERCUSTOMER_CREDITCUSTOM_PROPERTY_GROUPDEFERRED_ENTRYDOCUMENT_TEMPLATEFX_REVALUATIONHUBSPOT_CONNECTIONINTERCOMPANY_JOURNAL_ENTRYINVOICE_PAYABLEINVOICE_RECEIVABLEJOURNAL_ENTRYLCI_MEMORYLEDGER_ACCOUNTLEDGER_TAXPRODUCTPURCHASE_ORDERPURCHASE_REQUESTSALESFORCE_CONNECTIONSKILLUSERUSER_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_PAYMENTARCHIVEARCHIVE_FILEATTACH_FILECANCELCANCEL_TERMINATIONCLEARCLOSECOMPLETE_TASKCONFIRM_GOODS_RECEIPTCREATEDECLINE_APPROVALDECLINE_PAYMENTDELETEFAILFLAG_GOODS_RECEIPT_ISSUEINITIATE_PAYMENTLINK_INTERCOMPANY_DOCUMENTLOCKMARK_AS_PAIDMARK_AS_PAID_IN_STRIPEMARK_AS_PARTIALLY_PAIDMATCH_BILLMATCH_PURCHASE_ORDEROPENPARTIALLY_CLEARPAUSE_PAYMENTPAYPOSTPOST_ELIMINATIONPUBLISHREASSIGNRECONCILERELEASE_PAYMENT_HOLDREMOVE_CREDIT_NOTEREMOVE_CUSTOMER_CREDITRENEWREOPEN_TASKRESETRESUME_PAYMENTREVERSE_CLEARINGREVERTSCHEDULE_TERMINATIONSEND_CUSTOMER_CREDITSEND_DUNNING_EMAILSEND_INVOICESEND_PURCHASE_ORDERSUBMIT_FOR_APPROVALSUBMIT_SELF_BILLED_EINVOICETERMINATETRIGGER_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
REIMBURSEMENTCARDHOLDERCONTROLLERCOMPANY_ADMINVENDOR_MANAGEMENTINVOICE_APPROVERAP_PREPARATIONAP_CLERKAR_CLERKPURCHASE_REQUESTERREPORT_VIEWERAUDITOR
-
-
appobjectThe App Store app the actor made the change through. Null unless an app made the change.
-
slugstringSlug of the app, e.g. german-mileage
-
-
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
-
-
-
filesarray of objectFiles an ATTACH_FILE or ARCHIVE_FILE event is about. Left out for other actions.
-
attachmentIdstring · uuidID of the attachment, usable with the attachments API. Null on events recorded before the id was kept.
-
fileNamestringName of the file
-
-
-
hasMorebooleanBoolean flag indicating if there are more records available
-
nextCursorstringCursor for fetching the next page
-
prevCursorstringCursor for fetching the previous page