É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
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
contactId | string (uuid) | Non | |
companyId | string (uuid) | Non | |
event | string | Non | |
from | string (date-time) | Non | |
to | string (date-time) | Non | |
page | integer | Non | min 1 · default 1 |
pageSize | integer | Non | min 1 · max 100 · default 25 |
Réponse
16 champs
| Champ | Type | Toujours présent |
|---|---|---|
data | array of object | Oui |
data[].channel | string | null | Oui |
data[].contactId | string (uuid) | Oui |
data[].contactName | string | Oui |
data[].createdAt | string (date-time) | Oui |
data[].createdBy | string (uuid) | Oui |
data[].createdByName | string | Oui |
data[].event | string | Oui |
data[].id | string (uuid) | Oui |
data[].occurredAt | string (date-time) | Oui |
data[].organizationId | string (uuid) | Oui |
data[].properties | object of any | Oui |
data[].reference | string | null | Oui |
page | integer | Oui |
pageSize | integer | Oui |
total | integer | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/contact-events" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contact-events",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contact-events", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contact-events");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
contactId | string (uuid) | Non | |
email | string (email) | Non | max length 320 |
name | string | Non | min length 1 · max length 200 |
event | string | Oui | |
properties | object of string | number | boolean | null | Non | |
occurredAt | string (date-time) | Non | |
channel | string | null | Non | |
reference | string | Non | min length 1 · max length 120 · pattern ^[\w.:-]+$ |
Réponse
10 champs
| Champ | Type | Toujours présent |
|---|---|---|
channel | string | null | Oui |
contactId | string (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
event | string | Oui |
id | string (uuid) | Oui |
occurredAt | string (date-time) | Oui |
organizationId | string (uuid) | Oui |
properties | object of any | Oui |
reference | string | null | Oui |
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"
}'const res = await fetch("https://api.firmado.app/v1/contact-events", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contact-events",
headers={"X-Api-Key": "fmd_..."},
json={
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contact-events", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contact-events");
request.Content = new StringContent(""""
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
curl -X DELETE "https://api.firmado.app/v1/contact-events/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/contact-events/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/contact-events/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/contact-events/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
10 champs
| Champ | Type | Toujours présent |
|---|---|---|
channel | null dans les exemples | Oui |
contactId | string (uuid) | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
event | string | Oui |
id | string (uuid) | Oui |
occurredAt | string (date-time) | Oui |
organizationId | string (uuid) | Oui |
properties | object of any | Oui |
reference | null dans les exemples | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/contact-events/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contact-events/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/{id}")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contact-events/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/{id}"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contact-events/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
events | array of object | Oui | min items 1 · max items 100 |
events[].contactId | string (uuid) | Non | |
events[].email | string (email) | Non | max length 320 |
events[].name | string | Non | min length 1 · max length 200 |
events[].event | string | Oui | |
events[].properties | object of string | number | boolean | null | Non | |
events[].occurredAt | string (date-time) | Non | |
events[].channel | string | null | Non | |
events[].reference | string | Non | min length 1 · max length 120 · pattern ^[\w.:-]+$ |
Réponse
7 champs
| Champ | Type | Toujours présent |
|---|---|---|
recorded | integer | Oui |
results | array of object | Oui |
results[].error | object | Non |
results[].error.code | string | Oui |
results[].error.message | string | Oui |
results[].id | string (uuid) | Non |
results[].index | integer | Oui |
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"
}
]
}'const res = await fetch("https://api.firmado.app/v1/contact-events/batch", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contact-events/batch",
headers={"X-Api-Key": "fmd_..."},
json={
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/batch");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/batch")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contact-events/batch", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/batch"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contact-events/batch");
request.Content = new StringContent(""""
{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Champ | Type | Toujours présent |
|---|---|---|
[].event | string | Oui |
[].lastAt | string (date-time) | Oui |
[].total | integer | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/contact-events/names" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/names", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contact-events/names",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/names");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/names")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contact-events/names", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/names"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contact-events/names");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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_..."const res = await fetch("https://api.firmado.app/v1/contact-events/types", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contact-events/types",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/types");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/types")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contact-events/types", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/types"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contact-events/types");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
event | string | Oui | |
label | string | Oui | min 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 | |
summary | string | null | Non | |
showOnCompany | boolean | Non | default true |
notify | boolean | Non | default false |
active | boolean | Non | default true |
Réponse
12 champs
| Champ | Type | Toujours présent |
|---|---|---|
active | boolean | Oui |
color | string | Oui |
createdAt | string (date-time) | Oui |
event | string | Oui |
icon | string | Oui |
id | string (uuid) | Oui |
label | string | Oui |
notify | boolean | Oui |
organizationId | string (uuid) | Oui |
showOnCompany | boolean | Oui |
summary | string | Oui |
updatedAt | string (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"
}'const res = await fetch("https://api.firmado.app/v1/contact-events/types", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contact-events/types",
headers={"X-Api-Key": "fmd_..."},
json={
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/types");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/types")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contact-events/types", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/types"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contact-events/types");
request.Content = new StringContent(""""
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
curl -X DELETE "https://api.firmado.app/v1/contact-events/types/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/types/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/contact-events/types/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/types/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/types/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/contact-events/types/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/types/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/contact-events/types/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
event | string | Oui | |
label | string | Oui | min 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 | |
summary | string | null | Non | |
showOnCompany | boolean | Non | default true |
notify | boolean | Non | default false |
active | boolean | Non | default true |
Réponse
12 champs
| Champ | Type | Toujours présent |
|---|---|---|
active | boolean | Oui |
color | string | Oui |
createdAt | string (date-time) | Oui |
event | string | Oui |
icon | string | Oui |
id | string (uuid) | Oui |
label | string | Oui |
notify | boolean | Oui |
organizationId | string (uuid) | Oui |
showOnCompany | boolean | Oui |
summary | string | Oui |
updatedAt | string (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"
}'const res = await fetch("https://api.firmado.app/v1/contact-events/types/{id}", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/contact-events/types/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/types/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/types/{id}")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/contact-events/types/{id}", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/types/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://api.firmado.app/v1/contact-events/types/{id}");
request.Content = new StringContent(""""
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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éercontact_event.deletedSupprimer