À quoi sert la ressource « Interactions CRM » ?
Journal des INTERACTIONS avec un tiers ou une piste : appel, e-mail, réunion, démonstration — contenu, résultat, engagements et suite à donner
Quels endpoints sont disponibles ?
| Méthode | Adresse | Action |
|---|---|---|
| GET | /api/v1/interactions et /{id} | lire (liste paginée ou un élément par identifiant) |
| POST | /api/v1/interactions | créer un élément |
| PUT | /api/v1/interactions/{id} | remplacer un élément |
| PATCH | /api/v1/interactions/{id} | modifier certains champs |
| DELETE | /api/v1/interactions/{id} | supprimer un élément |
Quels champs contient la ressource « Interactions CRM » ?
| Champ | Type et description |
|---|---|
| id | string |
| tenantId | string |
| entityId | string |
| type | string |
| date | ISO8601 |
| summary | string — résumé de l’interaction |
| content | string — corps de l’interaction (compte rendu) |
| userId | string |
| leadId | string |
| projectId | string |
| documentId | string |
| campaignId | string |
| contractId | string |
| ticketId | string |
| sentimentScore | number |
| satisfactionLevel | number |
| priority | Low|Medium|High|Normale|Haute|Urgente |
| duration | number |
| isPrivate | boolean |
| outcome | string |
| internalNote | string |
| customerEffortScore | number |
| npsScore | number |
| engagementLevel | string |
| followUpDate | string |
| isFollowUpRequired | boolean |
| nextActionType | string |
| nextActionAssignedTo | string |
| escalationRequired | boolean |
| escalationReason | string |
| preparationNotes | string |
| objectiveAchieved | boolean |
| agendaProvided | boolean |
| meetingLink | string |
| location | string |
| attendeesCount | number |
| internalAttendees | string[] |
| externalAttendees | string[] |
| channel | string |
| ipAddress | string |
| browser | string |
| recordingUrl | string |
| transcriptUrl | string |
| topicsDiscussed | string[] |
| questionsAsked | string |
| objectionsRaised | string |
| competitorsMentioned | string[] |
| budgetDiscussed | boolean |
| timelineDiscussed | boolean |
| decisionMakerPresent | boolean |
| actionItems | string |
| roadblocks | string |
| resourcesShared | string[] |
| productDemoGiven | boolean |
| featuresShowcased | string[] |
| category | string |
| subCategory | string |
| tags | string[] |
| timeSpentPrep | number |
| timeSpentFollowUp | number |
| costOfInteraction | number |
| language | string |
| commitmentsMade | string |
| commitmentsReceived | string |
| documentUrls | { name: string, url: string, size?: number, type?: string }[] |
| clientId | string |
| contactId | string |
| interactionCost | number |
Comment filtrer, trier et paginer ?
Exemple de lecture filtrée et triée : GET /api/v1/interactions?filter[entityId]=…&sort=type:desc&limit=50.
Le filtre est une égalité stricte sur un champ déclaré, le tri s’écrit champ:asc ou champ:desc, la page contient 50 éléments par défaut et 200 au plus, un champ inconnu renvoie une erreur 400 plutôt qu’un résultat faux.
Quelles autorisations faut-il ?
- Une offre qui inclut l’API publique : Enterprise.
- Une clé d’API créée dans Système › Intégrations, envoyée dans l’en-tête Authorization: Bearer, limitée au dossier qui l’a émise.
- Une portée accordée à la clé pour cette ressource : lecture, écriture et suppression.