Skip to main content
Staffify Docs
Updated
Docs/Workspace API/Activities

Activities timeline

A single chronological feed over CRM touches and Advanced Booking audit events. Replace 10 separate queries (contact + deals + invoices + mails + calls + workorders + ...) with one API call. Filter by parent, date range or activity type. Scope: platform.activities.read.

Endpoint

GET /api/workspace/v1/activities

Query parameters

  • parent_type + parent_id — scope to one parent. Must be provided together.
  • from + to — ISO 8601 timestamps, inclusive window.
  • types — comma-separated whitelist (max 20 values).
  • source — crm, hub or all (default).
  • limit — 1-200, default 50.
  • starting_after — ISO timestamp from previous next_cursor. Returns rows strictly older than this.

Example

curl "https://app.staffifyai.com/api/workspace/v1/activities?parent_type=contact&parent_id=1893&from=2026-01-01T00:00:00Z&limit=50" \
  -H "Authorization: Bearer $STAFFIFY_API_KEY"

Supported parents

parent_typesourceDescription
contactcrmCRM contact-touch log (calls, emails, chats, deal changes, imports, merges).
dealcrmCRM deal lifecycle (created, stage_changed, won, lost, pipeline_moved).
bookinghubAdvanced Booking entry audit (created, status changes, assignment, invoiced).
customerhubAdvanced Booking customer touches.
invoicehubAdvanced Booking invoice audit (sent, paid, voided).
quotehubAdvanced Booking quote audit.
servicehubService catalog edits.
team_memberhubTeam member lifecycle.
settingshubTenant settings changes.
flowhubAutomation flow run audit.
campaignhubMarketing campaign audit.
segmenthubSegment edits.
systemhubSystem-level events (cron, platform migrations).

Activity object

FieldTypeDescription
idstringPrefixed with source — e.g. crm_1234 or hub_5678. Globally unique.
source'crm' | 'hub'Which underlying log this came from.
typestringCRM: call, email, deal_stage_changed, ... Hub: booking_created, invoice_sent, ...
parent_typestring | nullResolved parent class (see table above).
parent_idinteger | nullPrimary key of the parent resource.
actor_typestringuser | customer | ai | system. Hub rows carry this natively. CRM rows always return system.
actor_idinteger | nullUser id when applicable.
timestampstring (ISO)When the activity happened.
summarystring | nullHuman-readable one-liner. Only CRM rows carry this field.
payloadobject | nullParsed from metadata (CRM) or payload_json (hub). Free-form, type-specific.
Activities timeline - Workspace API - Staffify