API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · activities

Activity Schema

ID du schéma
activity
Collection
activities
Autorisations
  • Lireactivity_view
  • Créeractivity_create
  • Modifieractivity_edit
  • Supprimeractivity_delete

Champs

Activity Schema

activities4 autorisations

Schema for universal communication/activity log entries

activityTypestringobligatoire

Type of activity

MEETINGCALLEMAILNOTEDOCUMENTSTATUS_CHANGEOTHER
subjectstringobligatoire

Activity subject/title

1–500 caractères
bodystringfacultatif

Activity description/notes (plain text or markdown)

max. 200000 caractèresnullable
htmlBodystringfacultatif

Rich text body (HTML)

nullable
occurredAtdatetimeobligatoire

When the activity occurred (ISO 8601)

durationMinutesintegerfacultatif

Duration in minutes (for meetings, calls)

≥ 0nullable
directionstringfacultatif

Communication direction (for calls/emails)

INBOUNDOUTBOUND
nullable
partyIduuidfacultatif

Linked company/organization (for CRM timeline)

nullable
contactPartyIduuidfacultatif

Linked contact person

nullable
performedByIduuidfacultatif

User who performed the activity

nullable
participantIdsuuid[]facultatif

Internal user participants

Par défaut : []nullable
externalParticipantsobject[]facultatif

External attendees (name + contact info)

Par défaut : []nullable
namestringobligatoire
1–200 caractères
emailstringfacultatif
max. 254 caractèresnullable
phonestringfacultatif
max. 50 caractèresnullable
isInternalbooleanfacultatif

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

Par défaut : falsenullable
entityTypestringfacultatif

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

nullable
entityIduuidfacultatif

Primary linked entity ID

nullable
linkedEntitiesobject[]facultatif

Additional linked entities beyond the primary

Par défaut : []nullable
entityTypestringobligatoire
min. 1 caractères
entityIduuidobligatoire
rolestringfacultatif
max. 100 caractèresnullable
sourceTypestringfacultatif

How this activity was created

manualphone_callcalendar_eventemail_messagesystem
nullable
sourceEntityIduuidfacultatif

ID of the source entity that generated this activity

nullable
outcomestringfacultatif

Outcome/result of the activity

max. 1000 caractèresnullable
followUpDatedatetimefacultatif

Scheduled follow-up date

nullable
tagsstring[]facultatif

Tags

Par défaut : []nullable
followUpTaskIduuidfacultatif

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[]facultatif

File attachments

Par défaut : []nullable
fileIdstringobligatoire
fileNamestringobligatoire
mimeTypestringfacultatif
sizeBytesintegerfacultatif
customerSentimentstringfacultatif

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

positiveneutralnegativenull
nullable
customerRatingintegerfacultatif

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

1 – 5nullable
feedbackNotestringfacultatif

Free-text note accompanying customer sentiment/rating

max. 1000 caractèresnullable
sentimentSourcestringfacultatif

Whether sentiment was captured manually or detected by AI

manualai_detectednull
nullable
aiSentimentConfidencenumberfacultatif

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

0 – 1nullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/activities — Liste, paginée et filtrable
  • GET /api/v1/activities/<id> — Une entité
  • POST /api/v1/activities — Créer
  • PATCH /api/v1/activities/<id> — Mise à jour partielle
  • DELETE /api/v1/activities/<id> — Suppression logique
  • GET /api/v1/activities/<id>/timeline — Audit et activités

Recherche