Skip to main content

List activities

Retrieves a paginated, filterable list of activity log entries. Standard users see only their own activities. Admin users see all activities and can filter by user.
string
required
activities
string
required
all
object

Common enum values

The following tables list the most commonly used values for the filter and data fields. These are not exhaustive — custom values may appear as new features are added. activity_type values action values category values

Response

Activity[]
Array of activity records.
number
Total number of matching activities.
number
The limit that was applied.
number
The offset that was applied.

Get activity

Retrieves a single activity record by ID. Standard users can only access their own activities.
string
required
activities
string
required
get
string
required
The activity ID.

Response

Activity
The requested activity object. See Activity object for field details.

Create activity

Creates a new activity record. Restricted to admin users and service-role callers.
string
required
activities
string
required
create
object
required
Only admin users (internal_* role) and service-role callers can create activities. Standard users receive a 403 FORBIDDEN error.

Response (status 201)

Activity
The newly created activity object.

Weekly summary

Returns 7-day outcome tiles: conversations handled, after-hours coverage, attention count (escalations + low sentiment + negative feedback), and silent genie count. Includes prior-week deltas.
string
required
activities
string
required
weekly-summary
object
object
Current and previous week conversation counts with percentage delta.
object
Count of conversations that occurred outside business hours.
object
Aggregated attention count (escalations + low sentiment + negative feedback).
object
Count of genies with no recent conversations.

Needs attention

Returns the prioritised list of issues from the last 7 days: escalated conversations, low-sentiment conversations, negative feedback, and silent genies. Up to 10 items per bucket.
string
required
activities
string
required
needs-attention
object
object[]
Conversations with human escalation requests.
object[]
Conversations with a sentiment score below 0.4.
object[]
Conversations with negative caller feedback.
object[]
Genies with no conversations in the last 7 days.

Conversation digest

Synthesises a genie-voiced story across the user’s analysed conversations for a given period, plus decision-shaped highlights (wins, opportunities, recurring themes, things to revisit). Returns hasEnoughData: false when there isn’t enough analysed material.
Backed by a language model call. Cache on the client — the dashboard caches for 30 minutes.
string
required
activities
string
required
conversation-digest
object
boolean
false when there is insufficient analysed conversation material to generate a meaningful digest.
string
Genie-voiced narrative summarising the period.
object
Decision-shaped highlights — wins, opportunities, recurring themes, and things to revisit.

Forbidden actions

The update and delete actions are not permitted on activities. All callers — including admin users — receive a 403 FORBIDDEN error.
Activity records are immutable once created. The update and delete actions return 403 FORBIDDEN for all callers, including admin users and service-role tokens. This is by design — audit logs must remain tamper-proof. If you need to correct an activity, create a new compensating entry instead.