Companies
Companies and the contacts who work there.
Values for the examples
Type them once and every example on this page uses them. The API key stays on this page only and is never saved.
GET/v1/companies
Lists and searches companies, with filters and sorting.
ListOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
q | string | No | min length 1 · max length 200 |
archived | string | No | |
ownerId | string | No |
Response
24 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].address | null in the examples | Yes |
data[].archived | boolean | Yes |
data[].city | null in the examples | Yes |
data[].country | null in the examples | Yes |
data[].createdAt | string (date-time) | Yes |
data[].createdBy | string (uuid) | Yes |
data[].customProperties | object of any | Yes |
data[].description | null in the examples | Yes |
data[].id | string (uuid) | Yes |
data[].industry | null in the examples | Yes |
data[].name | string | Yes |
data[].organizationId | string (uuid) | Yes |
data[].ownerId | string (uuid) | Yes |
data[].postalCode | null in the examples | Yes |
data[].size | null in the examples | Yes |
data[].socialProfiles | object | Yes |
data[].state | null in the examples | Yes |
data[].updatedAt | string (date-time) | Yes |
data[].updatedBy | string (uuid) | Yes |
data[].website | null in the examples | Yes |
page | integer | Yes |
pageSize | integer | Yes |
total | integer | Yes |
Example
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();Response (200), with sample values:
{
"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
Creates a company.
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 200 |
website | string (uri) | null | No | |
industry | string | null | No | |
size | "1" | "2-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001+" | null | No | |
country | string | null | No | |
state | string | null | No | |
city | string | null | No | |
postalCode | string | null | No | |
address | string | null | No | |
description | string | null | No | |
ownerId | string | null | No | |
socialProfiles | object of string | null | No | |
customProperties | object of any | No | |
archived | boolean | No |
Response
21 fields
| Field | Type | Always there |
|---|---|---|
address | string | null | Yes |
archived | boolean | Yes |
city | string | null | Yes |
contacts | array of any | Yes |
country | string | null | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
customProperties | object of any | Yes |
description | null in the examples | Yes |
id | string (uuid) | Yes |
industry | null in the examples | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
ownerId | string | null (uuid) | Yes |
postalCode | string | null | Yes |
size | string | null | Yes |
socialProfiles | object | Yes |
state | string | null | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
website | string | null (uri) | Yes |
Example
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();Response (201), with sample values:
{
"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}
Deletes a company; its contacts stay.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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}
Returns a company with its contacts and properties.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
27 fields
| Field | Type | Always there |
|---|---|---|
address | null in the examples | Yes |
archived | boolean | Yes |
city | null in the examples | Yes |
contacts | array of object | Yes |
contacts[].avatar | null in the examples | Yes |
contacts[].contactId | string (uuid) | Yes |
contacts[].firstName | string | Yes |
contacts[].isPrimary | boolean | Yes |
contacts[].jobTitle | string | null | Yes |
contacts[].lastName | string | null | Yes |
country | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
customProperties | object of any | Yes |
description | null in the examples | Yes |
id | string (uuid) | Yes |
industry | null in the examples | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
ownerId | string (uuid) | Yes |
postalCode | null in the examples | Yes |
size | string | null | Yes |
socialProfiles | object | Yes |
state | null in the examples | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
website | string | null (uri) | Yes |
Example
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();Response (200), with sample values:
{
"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}
Changes a company’s fields and custom properties.
UpdateOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | No | min length 1 · max length 200 |
website | string (uri) | null | No | |
industry | string | null | No | |
size | "1" | "2-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001+" | null | No | |
country | string | null | No | |
state | string | null | No | |
city | string | null | No | |
postalCode | string | null | No | |
address | string | null | No | |
description | string | null | No | |
ownerId | string | null | No | |
socialProfiles | object of string | null | No | |
customProperties | object of any | No | |
archived | boolean | No |
Response
27 fields
| Field | Type | Always there |
|---|---|---|
address | null in the examples | Yes |
archived | boolean | Yes |
city | null in the examples | Yes |
contacts | array of object | Yes |
contacts[].avatar | null in the examples | Yes |
contacts[].contactId | string (uuid) | Yes |
contacts[].firstName | string | Yes |
contacts[].isPrimary | boolean | Yes |
contacts[].jobTitle | string | Yes |
contacts[].lastName | null in the examples | Yes |
country | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
customProperties | object of any | Yes |
description | null in the examples | Yes |
id | string (uuid) | Yes |
industry | null in the examples | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
ownerId | string (uuid) | Yes |
postalCode | null in the examples | Yes |
size | null in the examples | Yes |
socialProfiles | object | Yes |
state | null in the examples | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
website | null in the examples | Yes |
Example
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();Response (200), with sample values:
{
"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
A company’s timeline: proposals, invoices, meetings, forms, events and notes.
Read/{id}/activityOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
limit | integer | No | min 1 · max 1000 · default 200 |
Response
31 fields
| Field | Type | Always there |
|---|---|---|
lastViewedAt | string | null (date-time) | Yes |
timeline | array of object | Yes |
timeline[].actorName | string | null | Yes |
timeline[].approval | object | No |
timeline[].approval.id | string (uuid) | Yes |
timeline[].approval.title | string | Yes |
timeline[].contact | object | null | Yes |
timeline[].contact.id | string (uuid) | Yes |
timeline[].contact.name | string | Yes |
timeline[].contactEvent | object | No |
timeline[].contactEvent.channel | null in the examples | Yes |
timeline[].contactEvent.event | string | Yes |
timeline[].contactEvent.id | string (uuid) | Yes |
timeline[].contactEvent.occurredAt | string (date-time) | Yes |
timeline[].contactEvent.properties | object of any | Yes |
timeline[].contactEvent.reference | null in the examples | Yes |
timeline[].createdAt | string (date-time) | Yes |
timeline[].data | object of any | Yes |
timeline[].deal | object | null | Yes |
timeline[].deal.id | string (uuid) | Yes |
timeline[].deal.title | string | Yes |
timeline[].id | string (uuid) | Yes |
timeline[].payment | object | No |
timeline[].payment.appointment | null in the examples | Yes |
timeline[].payment.invoice | object | null | Yes |
timeline[].payment.invoice.id | string (uuid) | Yes |
timeline[].payment.invoice.number | string | Yes |
timeline[].payment.recorded | string | null | Yes |
timeline[].payment.source | string | Yes |
timeline[].type | string | Yes |
viewCount | integer | Yes |
Example
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();Response (200), with sample values:
{
"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
Every change to a company’s properties, with who made it.
Read/{id}/historyOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
field | string | Yes | max length 120 · pattern ^[A-Za-z]+(\.[\w-]+)?$ |
Response
13 fields
| Field | Type | Always there |
|---|---|---|
entries | array of object | Yes |
entries[].changedAt | string (date-time) | Yes |
entries[].changedBy | object | Yes |
entries[].changedBy.id | string (uuid) | Yes |
entries[].changedBy.name | string | Yes |
entries[].id | string (uuid) | Yes |
entries[].newLabel | null in the examples | Yes |
entries[].newValue | string | Yes |
entries[].oldLabel | null in the examples | Yes |
entries[].oldValue | string | null | Yes |
field | string | Yes |
limit | integer | Yes |
total | integer | Yes |
Example
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();Response (200), with sample values:
{
"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": {}
}
]
}Webhook events
Changes of this feature that webhooks can send.
company.createdCreatecompany.updatedUpdatecompany.deletedDelete