Publish Event

Generic event publishing endpoint for all entity types.

Creates an event with source='user' to track user-driven actions. Publishes via the centralized EventPublisher.

post/events/publish

Request

  • Base URL: https://api.every.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.every.ai/events/publish
  • Auth: none declared

Query parameters

user_idstring
org_idstring

Request body

entity_typestring required

The type of entity (e.g., 'client', 'payment', 'expense')

entity_idstring required

The ID of the entity

event_typestring required

The type of event to create

event_messagestring required

The event message

metadataobject

Optional event metadata (can include turn_id if needed)

invoice_idstring nullable

Optional invoice ID to link this event to an invoice

change_typestring nullable

Type of change (create, update, delete)

thread_idstring nullable

Thread ID for agent chat context

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 54 revisions of this API.