Skip to main content
Salfio Docs

Search documentation

Type to search this documentation.

List activities for a client

GET/clients/{clientId}/activitiesList activities for a client

Returns the client's activities (emails, meetings, notes, chats) ordered by most-recent first.

Pagination. Offset-based: cursor is the integer offset of the next page encoded as a decimal string (e.g. "20"). This differs from /clients, whose cursor is a base64-encoded UUID — the two endpoints paginate differently and their cursors are not interchangeable.

Filters. type, source, from, to, and includeArchived are all applied server-side. from/to bound the activity's occurredAt (inclusive) and accept an ISO-8601 date (2026-01-01) or an RFC 3339 datetime. Archived activities are hidden unless includeArchived=true. Unknown enum values, unparseable dates, or a non-boolean includeArchived return 400 invalid_argument.

List responses omit content for cost reasons — fetch the single-resource endpoint to get message bodies.

Parameters

limitintegerquery

default 20 · maximum 100 · minimum 1

cursorstringquery

Decimal-string offset of the next page (from a prior response's `meta.cursor`).

typestringquery

one of "email", "meeting", "note", "chat"

one of "email", "meeting", "note", "chat"

sourcestringquery

one of "manual", "gmail", "outlook", "fireflies"

one of "manual", "gmail", "outlook", "fireflies"

fromstringquery

Only activities whose `occurredAt` is on/after this instant. ISO-8601 date or RFC 3339 datetime.

tostringquery

Only activities whose `occurredAt` is on/before this instant. ISO-8601 date or RFC 3339 datetime.

includeArchivedbooleanquery

When true, archived activities are included. Defaults to false.

default false

clientIdstring · uuidpathrequired

Client UUID.

Responses

200Page of activities.application/json

Headers

X-RateLimit-Limit

The request cap for the tighter of the per-organization / per-endpoint windows that applied to this request.

X-RateLimit-Remaining

Requests remaining in the current window.

X-RateLimit-Reset

Unix timestamp (seconds) when the current window resets.

value
allOf · 2 options
Option 1objectEnvelope
datavaluerequired

The response payload — shape depends on the endpoint.

metaobjectrequired

Pagination metadata — populated on list endpoints, empty on single-resource endpoints.

Show child attributes
cursornull | string

Opaque cursor to pass to the next request.

hasMoreboolean | null

True when further pages of results are available.

Option 2object
dataarray of object
Show child attributes
Show array items

A communication event linked to a client. Projected from Salfio's Conversation + messages + conversation_clients model family. The `clientId` is the "primary" client derived from the junction table — a conversation linked to multiple clients is surfaced once per linked client (from the list endpoints of each). `content` is the full concatenated body of all messages on the conversation, joined by `\n\n---\n\n` — single-resource GETs never truncate it. It is returned only on single-resource GETs; list endpoints omit it for response-size reasons. Webhook delivery payloads cap `content` at 10 KiB (with a `[content truncated at 10 KiB]` marker) — fetch the activity by ID when you need the full text. `immutable` is derived server-side: non-`manual` sources are always immutable on the v1 surface (per the spec source/operation matrix).

archivedAtnull | string · date-time
clientIdstring · uuidrequired
contentstringrequired

Full concatenated message bodies (single-resource GETs only; capped at 10 KiB in webhook deliveries).

createdAtstring · date-timerequired
idstring · uuidrequired
immutablebooleanrequired

True when the activity's source prevents it from being edited or hard-deleted via the API.

occurredAtstring · date-timerequired
participantsarray of string · emailrequired
Show child attributes
sourcestringrequired

one of "manual", "gmail", "outlook", "fireflies"

subjectnull | string
typestringrequired

one of "email", "meeting", "note", "chat"

updatedAtstring · date-timerequired
Example response
{
  "data": [
    {
      "archivedAt": "2026-06-09T00:00:00Z",
      "clientId": "00000000-0000-0000-0000-000000000000",
      "content": "string",
      "createdAt": "2026-06-09T00:00:00Z",
      "id": "00000000-0000-0000-0000-000000000000",
      "immutable": true,
      "occurredAt": "2026-06-09T00:00:00Z",
      "participants": [
        "user@example.com"
      ],
      "source": "fireflies",
      "subject": "string",
      "type": "chat",
      "updatedAt": "2026-06-09T00:00:00Z"
    }
  ],
  "meta": {
    "cursor": "string",
    "hasMore": true
  }
}
400Request body / query parameters failed validation.application/json
objectErrorEnvelope
errorobjectrequired
Show child attributes
codestringrequired

Machine-readable error category.

one of "unauthorized", "forbidden", "not_found", "invalid_argument", "conflict", "rate_limited", "internal_error", "not_implemented"

detailsobject

Optional per-code context (field names, retry windows, …).

messagestringrequired

Human-readable description — intended for operator logs, not end-user display.

Example response
{
  "error": {
    "code": "invalid_argument",
    "message": "limit must be an integer between 1 and 100"
  }
}
401Missing or invalid bearer token. The message is intentionally opaque — do not rely on it to distinguish "missing" from "invalid".application/json
objectErrorEnvelope
errorobjectrequired
Show child attributes
codestringrequired

Machine-readable error category.

one of "unauthorized", "forbidden", "not_found", "invalid_argument", "conflict", "rate_limited", "internal_error", "not_implemented"

detailsobject

Optional per-code context (field names, retry windows, …).

messagestringrequired

Human-readable description — intended for operator logs, not end-user display.

Example response
{
  "error": {
    "code": "unauthorized",
    "message": "Authentication required"
  }
}
404The referenced resource does not exist, or belongs to a different organization than the one owning the API key. The public API does not distinguish between these cases — both return 404 to avoid leaking cross-tenant existence. application/json
objectErrorEnvelope
errorobjectrequired
Show child attributes
codestringrequired

Machine-readable error category.

one of "unauthorized", "forbidden", "not_found", "invalid_argument", "conflict", "rate_limited", "internal_error", "not_implemented"

detailsobject

Optional per-code context (field names, retry windows, …).

messagestringrequired

Human-readable description — intended for operator logs, not end-user display.

Example response
{
  "error": {
    "code": "not_found",
    "message": "client not found"
  }
}
429Per-organization or per-endpoint rate limit exceeded.application/json

Headers

Retry-After

Seconds the client should wait before retrying.

objectErrorEnvelope
errorobjectrequired
Show child attributes
codestringrequired

Machine-readable error category.

one of "unauthorized", "forbidden", "not_found", "invalid_argument", "conflict", "rate_limited", "internal_error", "not_implemented"

detailsobject

Optional per-code context (field names, retry windows, …).

messagestringrequired

Human-readable description — intended for operator logs, not end-user display.

Example response
{
  "error": {
    "code": "rate_limited",
    "details": {
      "retry_after_seconds": 30
    },
    "message": "Rate limit exceeded"
  }
}

Documentation menu