Skip to main content
BlueAI
Home/Other/Events

Events Data Structures

Events represent actions that occurred within the system (e.g., resource creation, updates, deletions). Use the Events API to list and retrieve events in your organization.

|

Event object

Events represent actions that occurred within the system (e.g., resource creation, updates, deletions). Use the Events API to list and retrieve events in your organization.

Fields

NameTypeRequiredDescription
id
stringRequiredUnique identifier for the event (evt_ prefix)
object
stringRequiredObject type (always "event")
type
stringRequiredEvent type (e.g. invoice.created, crm.deal.updated)
organization_id
stringRequiredID of the organization where the event occurred
data
objectRequiredResource data at the time of the event
previous_attributes
object | nullOptionalFor update events, the previous attribute values
request_id
string | nullOptionalID of the API request that triggered the event
created_at
string (ISO 8601)RequiredTimestamp when the event occurred
{
  "id": "evt_a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "object": "event",
  "type": "invoice.created",
  "organization_id": "org_abc123",
  "data": {
    "id": "inv_def456",
    "object": "invoice",
    "status": "draft",
    "total_amount": 110000
  },
  "previous_attributes": null,
  "request_id": "req_xyz789",
  "created_at": "2026-01-15T10:30:00Z"
}

Event Types

Below is a list of currently supported event types. These values are set in the type field of an event.

TypeDescription
invoice.createdAn invoice was created
invoice.updatedAn invoice was updated
invoice.deletedAn invoice was deleted
invoice.approvedAn invoice was approved
invoice.sentAn invoice was sent to the customer
invoice.paidAn invoice was marked as paid
invoice.cancelledAn invoice was cancelled
crm.deal.createdA CRM deal was created
crm.deal.updatedA CRM deal was updated
crm.deal.deletedA CRM deal was deleted
crm.deal.stage_updatedA CRM deal stage was updated
crm.company.createdA CRM company was created
crm.company.updatedA CRM company was updated
crm.company.deletedA CRM company was deleted
crm.contact.createdA CRM contact was created
crm.contact.updatedA CRM contact was updated
crm.contact.deletedA CRM contact was deleted
crm.activity.createdA CRM activity was created
crm.activity.deletedA CRM activity was deleted
attendance.record.clocked_inA clock-in was recorded
attendance.record.clocked_outA clock-out was recorded
mail.campaign.sentA mail campaign was sent
forms.response.submittedA form response was submitted
customer.createdA customer was created
customer.updatedA customer was updated
customer.deletedA customer was deleted
conversion.completedA document conversion was completed

Endpoints

GET/api/v1/events

List events in your organization. Results are returned in reverse chronological order.

Query Parameters

typestringFilter by event type (e.g. invoice.created)
limitintegerNumber of results (default: 20, max: 100)
starting_afterstringEvent ID for cursor-based pagination
GET/api/v1/events/{id}

Retrieve a specific event by ID.

Path Parameters

idstringID of the event to retrieve (evt_ prefix)