Événements des contacts

Ce que les contacts ont fait dans vos systèmes, et les types d’activité qui l’affichent.

Valeurs des exemples

Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.

GET/v1/contact-events

Liste les événements de contact, par contact, nom, canal ou date.

ListerEn cas de succès : 200.Permission : Lire.

Paramètres de requête

ChampTypeObligatoireNotes
contactIdstring (uuid)Non
companyIdstring (uuid)Non
eventstringNon
fromstring (date-time)Non
tostring (date-time)Non
pageintegerNonmin 1 · default 1
pageSizeintegerNonmin 1 · max 100 · default 25

Réponse

16 champs
ChampTypeToujours présent
dataarray of objectOui
data[].channelstring | nullOui
data[].contactIdstring (uuid)Oui
data[].contactNamestringOui
data[].createdAtstring (date-time)Oui
data[].createdBystring (uuid)Oui
data[].createdByNamestringOui
data[].eventstringOui
data[].idstring (uuid)Oui
data[].occurredAtstring (date-time)Oui
data[].organizationIdstring (uuid)Oui
data[].propertiesobject of anyOui
data[].referencestring | nullOui
pageintegerOui
pageSizeintegerOui
totalintegerOui
Exemple
curl -X GET "https://api.firmado.app/v1/contact-events" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

{
  "data": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "event": "…",
      "properties": {},
      "channel": "…",
      "reference": "…",
      "occurredAt": "2026-11-21T14:00:00.000Z",
      "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "createdAt": "2026-11-21T14:00:00.000Z",
      "contactName": "Ana Lima",
      "createdByName": "Ana Lima"
    }
  ],
  "page": 1,
  "pageSize": 1,
  "total": 1
}

POST/v1/contact-events

Enregistre une action d’un contact ; une reference répétée n’est gardée qu’une fois.

CréerEn cas de succès : 201.Permission : Créer.

Corps

ChampTypeObligatoireNotes
contactIdstring (uuid)Non
emailstring (email)Nonmax length 320
namestringNonmin length 1 · max length 200
eventstringOui
propertiesobject of string | number | boolean | nullNon
occurredAtstring (date-time)Non
channelstring | nullNon
referencestringNonmin length 1 · max length 120 · pattern ^[\w.:-]+$

Réponse

10 champs
ChampTypeToujours présent
channelstring | nullOui
contactIdstring (uuid)Oui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
eventstringOui
idstring (uuid)Oui
occurredAtstring (date-time)Oui
organizationIdstring (uuid)Oui
propertiesobject of anyOui
referencestring | nullOui
Exemple
curl -X POST "https://api.firmado.app/v1/contact-events" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "event": "…",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "email": "[email protected]",
  "name": "Ana Lima"
}'

Réponse (201), avec des valeurs d’exemple :

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "event": "…",
  "properties": {},
  "channel": "…",
  "reference": "…",
  "occurredAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z"
}

DELETE/v1/contact-events/{id}

Supprime un événement de contact.

SupprimerEn cas de succès : 204.Permission : Supprimer.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui
Exemple
curl -X DELETE "https://api.firmado.app/v1/contact-events/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/contact-events/{id}

Renvoie un événement de contact avec ses propriétés.

Voir unEn cas de succès : 200.Permission : Lire.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui

Réponse

10 champs
ChampTypeToujours présent
channelnull dans les exemplesOui
contactIdstring (uuid)Oui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
eventstringOui
idstring (uuid)Oui
occurredAtstring (date-time)Oui
organizationIdstring (uuid)Oui
propertiesobject of anyOui
referencenull dans les exemplesOui
Exemple
curl -X GET "https://api.firmado.app/v1/contact-events/{id}" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "event": "…",
  "properties": {},
  "channel": null,
  "reference": null,
  "occurredAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z"
}

POST/v1/contact-events/batch

Enregistre jusqu’à 100 événements de contact à la fois, en indiquant ceux gardés.

Créer/batchEn cas de succès : 200.Permission : Créer.

Corps

ChampTypeObligatoireNotes
eventsarray of objectOuimin items 1 · max items 100
events[].contactIdstring (uuid)Non
events[].emailstring (email)Nonmax length 320
events[].namestringNonmin length 1 · max length 200
events[].eventstringOui
events[].propertiesobject of string | number | boolean | nullNon
events[].occurredAtstring (date-time)Non
events[].channelstring | nullNon
events[].referencestringNonmin length 1 · max length 120 · pattern ^[\w.:-]+$

Réponse

7 champs
ChampTypeToujours présent
recordedintegerOui
resultsarray of objectOui
results[].errorobjectNon
results[].error.codestringOui
results[].error.messagestringOui
results[].idstring (uuid)Non
results[].indexintegerOui
Exemple
curl -X POST "https://api.firmado.app/v1/contact-events/batch" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "events": [
    {
      "event": "…",
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "email": "[email protected]",
      "name": "Ana Lima"
    }
  ]
}'

Réponse (200), avec des valeurs d’exemple :

{
  "recorded": 1,
  "results": [
    {
      "index": 1,
      "error": {},
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
    }
  ]
}

GET/v1/contact-events/names

Chaque nom d’événement utilisé, avec leur nombre et le plus récent.

Lire/namesEn cas de succès : 200.Permission : Lire.

Réponse

3 champs
ChampTypeToujours présent
[].eventstringOui
[].lastAtstring (date-time)Oui
[].totalintegerOui
Exemple
curl -X GET "https://api.firmado.app/v1/contact-events/names" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

[
  {
    "event": "…",
    "total": 1,
    "lastAt": "2026-11-21T14:00:00.000Z"
  }
]

GET/v1/contact-events/types

Les types d’activité : quels événements s’affichent sur les pages des contacts et des entreprises, et comment.

Lire/typesEn cas de succès : 200.Permission : Lire.

Exemple
curl -X GET "https://api.firmado.app/v1/contact-events/types" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

[]

POST/v1/contact-events/types

Crée un type d’activité pour un nom d’événement.

Créer/typesEn cas de succès : 201.Permission : Créer.

Corps

ChampTypeObligatoireNotes
eventstringOui
labelstringOuimin length 1 · max length 80
color"gray" | "blue" | "teal" | "green" | "amber" | "orange" | "red" | "pink" | "violet"Oui
icon"activity" | "star" | "heart" | "thumbs-up" | "trophy" | "gift" | "cart" | "card" | "user-plus" | "log-in" | "mail" | "phone" | "message" | "calendar" | "map-pin" | "eye" | "download" | "rocket" | "zap" | "alert"Oui
summarystring | nullNon
showOnCompanybooleanNondefault true
notifybooleanNondefault false
activebooleanNondefault true

Réponse

12 champs
ChampTypeToujours présent
activebooleanOui
colorstringOui
createdAtstring (date-time)Oui
eventstringOui
iconstringOui
idstring (uuid)Oui
labelstringOui
notifybooleanOui
organizationIdstring (uuid)Oui
showOnCompanybooleanOui
summarystringOui
updatedAtstring (date-time)Oui
Exemple
curl -X POST "https://api.firmado.app/v1/contact-events/types" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "event": "…",
  "label": "…",
  "color": "gray",
  "icon": "activity"
}'

Réponse (201), avec des valeurs d’exemple :

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "event": "…",
  "label": "…",
  "color": "…",
  "icon": "…",
  "summary": "…",
  "showOnCompany": true,
  "notify": true,
  "active": true,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z"
}

DELETE/v1/contact-events/types/{id}

Supprime un type d’activité ; ses événements restent, sans s’afficher comme activité.

Supprimer/types/{id}En cas de succès : 204.Permission : Supprimer.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui
Exemple
curl -X DELETE "https://api.firmado.app/v1/contact-events/types/{id}" \
  -H "X-Api-Key: fmd_..."

PUT/v1/contact-events/types/{id}

Modifie un type d’activité : libellé, couleur, icône et résumé.

Modifier/types/{id}En cas de succès : 200.Permission : Modifier.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui

Corps

ChampTypeObligatoireNotes
eventstringOui
labelstringOuimin length 1 · max length 80
color"gray" | "blue" | "teal" | "green" | "amber" | "orange" | "red" | "pink" | "violet"Oui
icon"activity" | "star" | "heart" | "thumbs-up" | "trophy" | "gift" | "cart" | "card" | "user-plus" | "log-in" | "mail" | "phone" | "message" | "calendar" | "map-pin" | "eye" | "download" | "rocket" | "zap" | "alert"Oui
summarystring | nullNon
showOnCompanybooleanNondefault true
notifybooleanNondefault false
activebooleanNondefault true

Réponse

12 champs
ChampTypeToujours présent
activebooleanOui
colorstringOui
createdAtstring (date-time)Oui
eventstringOui
iconstringOui
idstring (uuid)Oui
labelstringOui
notifybooleanOui
organizationIdstring (uuid)Oui
showOnCompanybooleanOui
summarystringOui
updatedAtstring (date-time)Oui
Exemple
curl -X PUT "https://api.firmado.app/v1/contact-events/types/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "event": "…",
  "label": "…",
  "color": "gray",
  "icon": "activity"
}'

Réponse (200), avec des valeurs d’exemple :

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "event": "…",
  "label": "…",
  "color": "…",
  "icon": "…",
  "summary": "…",
  "showOnCompany": true,
  "notify": true,
  "active": true,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z"
}

Événements de webhook

Les changements de cette fonctionnalité que les webhooks peuvent envoyer.

  • contact_event.createdCréer
  • contact_event.deletedSupprimer