API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · activities

Activity Schema

Schema ID
activity
Collection
activities
Permissions
  • Readactivity_view
  • Createactivity_create
  • Editactivity_edit
  • Deleteactivity_delete

Fields

Activity Schema

activities4 permissions

Schema for universal communication/activity log entries

activityTypestringrequired

Type of activity

MEETINGCALLEMAILNOTEDOCUMENTSTATUS_CHANGEOTHER
subjectstringrequired

Activity subject/title

1–500 characters
bodystringoptional

Activity description/notes (plain text or markdown)

max 200000 charactersnullable
htmlBodystringoptional

Rich text body (HTML)

nullable
occurredAtdatetimerequired

When the activity occurred (ISO 8601)

durationMinutesintegeroptional

Duration in minutes (for meetings, calls)

≥ 0nullable
directionstringoptional

Communication direction (for calls/emails)

INBOUNDOUTBOUND
nullable
partyIduuidoptional

Linked company/organization (for CRM timeline)

nullable
contactPartyIduuidoptional

Linked contact person

nullable
performedByIduuidoptional

User who performed the activity

nullable
participantIdsuuid[]optional

Internal user participants

Default: []nullable
externalParticipantsobject[]optional

External attendees (name + contact info)

Default: []nullable
namestringrequired
1–200 characters
emailstringoptional
max 254 charactersnullable
phonestringoptional
max 50 charactersnullable
isInternalbooleanoptional

Marks an internal activity (e.g. internal meeting). Internal activities are hidden from customer-facing/external activity feeds.

Default: falsenullable
entityTypestringoptional

Primary linked entity type (e.g. project, ticket, opportunity)

nullable
entityIduuidoptional

Primary linked entity ID

nullable
linkedEntitiesobject[]optional

Additional linked entities beyond the primary

Default: []nullable
entityTypestringrequired
min 1 characters
entityIduuidrequired
rolestringoptional
max 100 charactersnullable
sourceTypestringoptional

How this activity was created

manualphone_callcalendar_eventemail_messagesystem
nullable
sourceEntityIduuidoptional

ID of the source entity that generated this activity

nullable
outcomestringoptional

Outcome/result of the activity

max 1000 charactersnullable
followUpDatedatetimeoptional

Scheduled follow-up date

nullable
tagsstring[]optional

Tags

Default: []nullable
followUpTaskIduuidoptional

UUID of the task that was auto-created from `followUpDate`. The dialog syncs this task (title/dueDate/cancellation) whenever the activity is saved. Cleared when the user removes the follow-up date.

nullable
attachmentsobject[]optional

File attachments

Default: []nullable
fileIdstringrequired
fileNamestringrequired
mimeTypestringoptional
sizeBytesintegeroptional
customerSentimentstringoptional

Captured customer sentiment for this interaction. Feeds the Customer Health Score.

positiveneutralnegativenull
nullable
customerRatingintegeroptional

Customer satisfaction rating (1–5 stars). Feeds the Customer Health Score.

1 – 5nullable
feedbackNotestringoptional

Free-text note accompanying customer sentiment/rating

max 1000 charactersnullable
sentimentSourcestringoptional

Whether sentiment was captured manually or detected by AI

manualai_detectednull
nullable
aiSentimentConfidencenumberoptional

Confidence score 0–1 for AI-detected sentiment (Phase 2)

0 – 1nullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/activities — List, paginated + filterable
  • GET /api/v1/activities/<id> — Single entity
  • POST /api/v1/activities — Create
  • PATCH /api/v1/activities/<id> — Partial update
  • DELETE /api/v1/activities/<id> — Soft delete
  • GET /api/v1/activities/<id>/timeline — Audit + activities

Search