Entreprises
Les entreprises et les contacts qui y travaillent.
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/companies
Liste et recherche les entreprises, avec filtres et tri.
ListerEn cas de succès : 200.Permission : Lire.
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
page | integer | Non | min 1 · default 1 |
pageSize | integer | Non | min 1 · max 100 · default 25 |
q | string | Non | min length 1 · max length 200 |
archived | string | Non | |
ownerId | string | Non |
Réponse
24 champs
| Champ | Type | Toujours présent |
|---|---|---|
data | array of object | Oui |
data[].address | null dans les exemples | Oui |
data[].archived | boolean | Oui |
data[].city | null dans les exemples | Oui |
data[].country | null dans les exemples | Oui |
data[].createdAt | string (date-time) | Oui |
data[].createdBy | string (uuid) | Oui |
data[].customProperties | object of any | Oui |
data[].description | null dans les exemples | Oui |
data[].id | string (uuid) | Oui |
data[].industry | null dans les exemples | Oui |
data[].name | string | Oui |
data[].organizationId | string (uuid) | Oui |
data[].ownerId | string (uuid) | Oui |
data[].postalCode | null dans les exemples | Oui |
data[].size | null dans les exemples | Oui |
data[].socialProfiles | object | Oui |
data[].state | null dans les exemples | Oui |
data[].updatedAt | string (date-time) | Oui |
data[].updatedBy | string (uuid) | Oui |
data[].website | null dans les exemples | Oui |
page | integer | Oui |
pageSize | integer | Oui |
total | integer | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/companies" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/companies", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/companies",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/companies");
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/companies")
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/companies", 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/companies"))
.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/companies");
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",
"name": "Ana Lima",
"website": null,
"industry": null,
"size": null,
"country": null,
"state": null,
"city": null,
"postalCode": null,
"address": null,
"description": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"socialProfiles": {},
"customProperties": {},
"archived": true,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/companies
Crée une entreprise.
CréerEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Oui | min length 1 · max length 200 |
website | string (uri) | null | Non | |
industry | string | null | Non | |
size | "1" | "2-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001+" | null | Non | |
country | string | null | Non | |
state | string | null | Non | |
city | string | null | Non | |
postalCode | string | null | Non | |
address | string | null | Non | |
description | string | null | Non | |
ownerId | string | null | Non | |
socialProfiles | object of string | null | Non | |
customProperties | object of any | Non | |
archived | boolean | Non |
Réponse
21 champs
| Champ | Type | Toujours présent |
|---|---|---|
address | string | null | Oui |
archived | boolean | Oui |
city | string | null | Oui |
contacts | array of any | Oui |
country | string | null | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
customProperties | object of any | Oui |
description | null dans les exemples | Oui |
id | string (uuid) | Oui |
industry | null dans les exemples | Oui |
name | string | Oui |
organizationId | string (uuid) | Oui |
ownerId | string | null (uuid) | Oui |
postalCode | string | null | Oui |
size | string | null | Oui |
socialProfiles | object | Oui |
state | string | null | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
website | string | null (uri) | Oui |
Exemple
curl -X POST "https://api.firmado.app/v1/companies" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}'const res = await fetch("https://api.firmado.app/v1/companies", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/companies",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/companies");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}
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/companies")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}
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(`{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/companies", 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/companies"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}
"""))
.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/companies");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (201), avec des valeurs d’exemple :
{
"address": "…",
"archived": true,
"city": "…",
"contacts": [],
"country": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"customProperties": {},
"description": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"industry": null,
"name": "Ana Lima",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postalCode": "…",
"size": "…",
"socialProfiles": {},
"state": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"website": "https://example.com"
}DELETE/v1/companies/{id}
Supprime une entreprise ; ses contacts restent.
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/companies/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/companies/{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/companies/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/companies/{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/companies/{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/companies/{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/companies/{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/companies/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/companies/{id}
Renvoie une entreprise avec ses contacts et 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
27 champs
| Champ | Type | Toujours présent |
|---|---|---|
address | null dans les exemples | Oui |
archived | boolean | Oui |
city | null dans les exemples | Oui |
contacts | array of object | Oui |
contacts[].avatar | null dans les exemples | Oui |
contacts[].contactId | string (uuid) | Oui |
contacts[].firstName | string | Oui |
contacts[].isPrimary | boolean | Oui |
contacts[].jobTitle | string | null | Oui |
contacts[].lastName | string | null | Oui |
country | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
customProperties | object of any | Oui |
description | null dans les exemples | Oui |
id | string (uuid) | Oui |
industry | null dans les exemples | Oui |
name | string | Oui |
organizationId | string (uuid) | Oui |
ownerId | string (uuid) | Oui |
postalCode | null dans les exemples | Oui |
size | string | null | Oui |
socialProfiles | object | Oui |
state | null dans les exemples | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
website | string | null (uri) | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/companies/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/companies/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/companies/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/companies/{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/companies/{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/companies/{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/companies/{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/companies/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (200), avec des valeurs d’exemple :
{
"address": null,
"archived": true,
"city": null,
"contacts": [
{
"avatar": null,
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"firstName": "Ana",
"isPrimary": true,
"jobTitle": "…",
"lastName": "Lima"
}
],
"country": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"customProperties": {},
"description": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"industry": null,
"name": "Ana Lima",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"postalCode": null,
"size": "…",
"socialProfiles": {},
"state": null,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"website": "https://example.com"
}PATCH/v1/companies/{id}
Modifie les champs et les propriétés personnalisées d’une entreprise.
ModifierEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Non | min length 1 · max length 200 |
website | string (uri) | null | Non | |
industry | string | null | Non | |
size | "1" | "2-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001+" | null | Non | |
country | string | null | Non | |
state | string | null | Non | |
city | string | null | Non | |
postalCode | string | null | Non | |
address | string | null | Non | |
description | string | null | Non | |
ownerId | string | null | Non | |
socialProfiles | object of string | null | Non | |
customProperties | object of any | Non | |
archived | boolean | Non |
Réponse
27 champs
| Champ | Type | Toujours présent |
|---|---|---|
address | null dans les exemples | Oui |
archived | boolean | Oui |
city | null dans les exemples | Oui |
contacts | array of object | Oui |
contacts[].avatar | null dans les exemples | Oui |
contacts[].contactId | string (uuid) | Oui |
contacts[].firstName | string | Oui |
contacts[].isPrimary | boolean | Oui |
contacts[].jobTitle | string | Oui |
contacts[].lastName | null dans les exemples | Oui |
country | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
customProperties | object of any | Oui |
description | null dans les exemples | Oui |
id | string (uuid) | Oui |
industry | null dans les exemples | Oui |
name | string | Oui |
organizationId | string (uuid) | Oui |
ownerId | string (uuid) | Oui |
postalCode | null dans les exemples | Oui |
size | null dans les exemples | Oui |
socialProfiles | object | Oui |
state | null dans les exemples | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
website | null dans les exemples | Oui |
Exemple
curl -X PATCH "https://api.firmado.app/v1/companies/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}'const res = await fetch("https://api.firmado.app/v1/companies/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/companies/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/companies/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}
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/companies/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}
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(`{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/companies/{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/companies/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}
"""))
.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("PATCH"), "https://api.firmado.app/v1/companies/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"website": "https://example.com",
"industry": "…",
"size": "1"
}
"""", 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",
"name": "Ana Lima",
"website": null,
"industry": null,
"size": null,
"country": null,
"state": null,
"city": null,
"postalCode": null,
"address": null,
"description": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"socialProfiles": {},
"customProperties": {},
"archived": true,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"contacts": [
{
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"firstName": "Ana",
"lastName": null,
"avatar": null,
"jobTitle": "…",
"isPrimary": true
}
]
}GET/v1/companies/{id}/activity
La chronologie d’une entreprise : propositions, factures, rendez-vous, formulaires, événements et notes.
Lire/{id}/activityEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
limit | integer | Non | min 1 · max 1000 · default 200 |
Réponse
31 champs
| Champ | Type | Toujours présent |
|---|---|---|
lastViewedAt | string | null (date-time) | Oui |
timeline | array of object | Oui |
timeline[].actorName | string | null | Oui |
timeline[].approval | object | Non |
timeline[].approval.id | string (uuid) | Oui |
timeline[].approval.title | string | Oui |
timeline[].contact | object | null | Oui |
timeline[].contact.id | string (uuid) | Oui |
timeline[].contact.name | string | Oui |
timeline[].contactEvent | object | Non |
timeline[].contactEvent.channel | null dans les exemples | Oui |
timeline[].contactEvent.event | string | Oui |
timeline[].contactEvent.id | string (uuid) | Oui |
timeline[].contactEvent.occurredAt | string (date-time) | Oui |
timeline[].contactEvent.properties | object of any | Oui |
timeline[].contactEvent.reference | null dans les exemples | Oui |
timeline[].createdAt | string (date-time) | Oui |
timeline[].data | object of any | Oui |
timeline[].deal | object | null | Oui |
timeline[].deal.id | string (uuid) | Oui |
timeline[].deal.title | string | Oui |
timeline[].id | string (uuid) | Oui |
timeline[].payment | object | Non |
timeline[].payment.appointment | null dans les exemples | Oui |
timeline[].payment.invoice | object | null | Oui |
timeline[].payment.invoice.id | string (uuid) | Oui |
timeline[].payment.invoice.number | string | Oui |
timeline[].payment.recorded | string | null | Oui |
timeline[].payment.source | string | Oui |
timeline[].type | string | Oui |
viewCount | integer | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/companies/{id}/activity" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/companies/{id}/activity", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/companies/{id}/activity",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/companies/{id}/activity");
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/companies/{id}/activity")
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/companies/{id}/activity", 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/companies/{id}/activity"))
.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/companies/{id}/activity");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (200), avec des valeurs d’exemple :
{
"lastViewedAt": "2026-11-21T14:00:00.000Z",
"timeline": [
{
"actorName": "Ana Lima",
"contact": {},
"createdAt": "2026-11-21T14:00:00.000Z",
"data": {},
"deal": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"approval": {},
"contactEvent": {},
"payment": {}
}
],
"viewCount": 1
}GET/v1/companies/{id}/history
Chaque modification des propriétés d’une entreprise, avec son auteur.
Lire/{id}/historyEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
field | string | Oui | max length 120 · pattern ^[A-Za-z]+(\.[\w-]+)?$ |
Réponse
13 champs
| Champ | Type | Toujours présent |
|---|---|---|
entries | array of object | Oui |
entries[].changedAt | string (date-time) | Oui |
entries[].changedBy | object | Oui |
entries[].changedBy.id | string (uuid) | Oui |
entries[].changedBy.name | string | Oui |
entries[].id | string (uuid) | Oui |
entries[].newLabel | null dans les exemples | Oui |
entries[].newValue | string | Oui |
entries[].oldLabel | null dans les exemples | Oui |
entries[].oldValue | string | null | Oui |
field | string | Oui |
limit | integer | Oui |
total | integer | Oui |
Exemple
curl -X GET "https://api.firmado.app/v1/companies/{id}/history" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/companies/{id}/history", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/companies/{id}/history",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/companies/{id}/history");
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/companies/{id}/history")
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/companies/{id}/history", 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/companies/{id}/history"))
.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/companies/{id}/history");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (200), avec des valeurs d’exemple :
{
"field": "…",
"limit": 1,
"total": 1,
"entries": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"oldValue": "…",
"newValue": "…",
"changedAt": "2026-11-21T14:00:00.000Z",
"oldLabel": null,
"newLabel": null,
"changedBy": {}
}
]
}Événements de webhook
Les changements de cette fonctionnalité que les webhooks peuvent envoyer.
company.createdCréercompany.updatedModifiercompany.deletedSupprimer