Skip to main content
Salfio Docs

Search documentation

Type to search this documentation.

Create a manual activity

POST/clients/{clientId}/activitiesCreate a manual activity

Creates a manual activity for the client. The server always forces source to manual — activities created through the API are manual by definition (the source/operation matrix only permits creating manual activities). A request body that sets source to anything other than manual is rejected with 400 invalid_argument rather than silently overridden.

participants is a flat list of email addresses, stored email-only (no display name, no automatic linking to existing contacts). occurredAt defaults to the current time when omitted.

Parameters

clientIdstring · uuidpathrequired

Client UUID.

Request body

required
application/json
objectActivityCreate

Request body for creating a manual activity. The server forces `source` to `manual`; when present it must equal `manual`.

contentstring

Free-text body, stored as the activity's single message. Optional.

occurredAtstring · date-time

When the activity occurred. Defaults to now when omitted.

participantsarray of string · email

Email-only participant list (no display names, no contact linking).

Show child attributes
sourcestring

Optional; must be `manual` if provided. The server forces `manual` regardless.

one of "manual"

subjectnull | string
typestringrequired

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

Example request
{
  "content": "string",
  "occurredAt": "2026-06-09T00:00:00Z",
  "participants": [
    "user@example.com"
  ],
  "source": "manual",
  "subject": "string",
  "type": "chat"
}

Responses

201The created activity (content included).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
dataobject

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).

Show child attributes
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