Events

This resource represents an audit log entry that records an action taken within a workspace. Each entry captures who performed an action, when it occurred, and from where (source).

Note that List Audit Log Entries is available for all workspaces. Creating custom audit log entries via customEvent.* is an action only available on the Enterprise plan.

Properties

id string
The unique identifier for this item.

createdAt string
The date this item was created in RFC3339 format.

object string
The object type of this resource.

eventType string
The type of action that was recorded. See Event Types for the full set of values.

eventDescription string
A human-readable description of the event.

source web / platform / automation / system
Where the event originated:

SourceDescription
webAction performed by a user via the Assembly webapp (dashboard or client portal).
platformAction performed via the Platform API using an API key.
automationAction performed by an automation/workflow.
systemAction performed by the system (webhooks, background jobs).

actorId string (optional)
The ID of the user who performed the action. This will be empty for actions not attributable to a user.

actorType internalUser / clientUser (optional)
The type of entity the actorId refers to.

companyId string (optional)
The ID of the company associated with the event, if applicable.

automationId string (optional)
The ID of the automation that triggered the event. This is populated when source is automation.

userAgent string (optional)
The browser/client user agent string of the request origin.

ip string (optional)
The IP address of the request origin.

context object (optional)
Event-specific metadata. The shape of this object varies by eventType.

Event Types

The eventType property is one of the following values, grouped by category.

Authentication

Event TypeDescription
userLoggedInUser logged in
userLoggedOutUser logged out
userLoginSucceededUser login succeeded
userLoginFailedUser login failed
passwordResetPassword reset
passwordChangedPassword changed
googleDelinkedGoogle account delinked
magicLinkSentMagic link sent

Session

Event TypeDescription
sessionStartedSession started
sessionEndedSession ended

Workspace Settings

Event TypeDescription
workspaceMfaEnabledWorkspace MFA enabled
workspaceMfaDisabledWorkspace MFA disabled

Client

Event TypeDescription
clientCreatedClient created
clientActivatedClient activated
clientUpdatedClient updated
clientDeletedClient deleted
clientInvitedClient invited
clientCustomFieldsUpdatedClient custom fields updated

Company

Event TypeDescription
companyCreatedCompany created
companyUpdatedCompany updated
companyDeletedCompany deleted
companyCustomFieldsUpdatedCompany custom fields updated

File

Event TypeDescription
fileCreatedFile created
fileUpdatedFile updated
fileDeletedFile deleted
fileDownloadedFile downloaded
fileBatchDownloadedFiles batch downloaded
fileBatchDeletedFiles batch deleted

Folder

Event TypeDescription
folderCreatedFolder created
folderUpdatedFolder updated
folderDeletedFolder deleted

Link

Event TypeDescription
linkCreatedLink created
linkUpdatedLink updated
linkDeletedLink deleted

Invoice

Event TypeDescription
invoiceCreatedInvoice created
invoiceUpdatedInvoice updated
invoiceDeletedInvoice deleted
invoicePaidInvoice paid
invoiceVoidedInvoice voided
invoiceDownloadedInvoice downloaded
refundRequestedRefund requested

Payment

Event TypeDescription
paymentSucceededPayment succeeded
paymentFailedPayment failed

Subscription

Event TypeDescription
subscriptionCreatedSubscription created
subscriptionCancelledSubscription cancelled

Product & Price

Event TypeDescription
productCreatedProduct created
productUpdatedProduct updated
priceCreatedPrice created

Message

Event TypeDescription
messageSentMessage sent
messageChannelCreatedMessage channel created
messageChannelDeletedMessage channel deleted

Task

Event TypeDescription
taskCreatedTask created
taskUpdatedTask updated
taskDeletedTask deleted
taskArchivedTask archived
taskCompletedTask completed

Contract

Event TypeDescription
contractRequestedContract requested
contractCompletedContract signed
contractDownloadedContract downloaded

Form

Event TypeDescription
formCreatedForm created
formEditedForm edited
formAssignedForm assigned
formResponseCompletedForm response completed

Note

Event TypeDescription
noteCreatedNote created
noteUpdatedNote updated
noteDeletedNote deleted

Internal User

Event TypeDescription
internalUserCreatedInternal user created
internalUserDeletedInternal user deleted
internalUserAccessLevelChangedInternal user access level changed
internalUserClientVisibilitySetInternal user client visibility set

API Key

Event TypeDescription
apiKeyCreatedAPI key created
apiKeyDeletedAPI key deleted

Custom

Event TypeDescription
customEvent.*Custom events created via the Platform API. Event types are prefixed with customEvent. (e.g. customEvent.userOnboarded). Requires Enterprise plan.

{
  "id": "bb9405f0-8644-4bb8-bbc8-84a1a05dcc01",
  "object": "auditLogEntry",
  "createdAt": "2024-02-22T18:17:01.577287641+05:30",
  "eventType": "invoicePaid",
  "eventDescription": "Invoice paid",
  "source": "web",
  "actorId": "5d686cec-6ef8-4394-a62c-0c2fde950669",
  "actorType": "clientUser",
  "companyId": "d15b1422-2e57-42f3-a0ac-0a726d6e1b42",
  "context": {
    "invoiceId": "3a5981d8-6619-4dc6-b9b9-a791d275bd5c",
    "amount": 12000
  },
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
  "ip": "203.0.113.42"
}
{
  "id": "f0c2a1d4-1b3e-4f9a-9c7d-2e8b6a4c1f00",
  "object": "auditLogEntry",
  "createdAt": "2024-02-22T18:17:01.577287641+05:30",
  "eventType": "clientInvited",
  "eventDescription": "Client invited",
  "source": "automation",
  "automationId": "9a1f2b3c-4d5e-6f70-8192-a3b4c5d6e7f8",
  "companyId": "d15b1422-2e57-42f3-a0ac-0a726d6e1b42",
  "context": {
    "clientId": "5d686cec-6ef8-4394-a62c-0c2fde950669"
  }
}