Empresas
Empresas y los contactos que trabajan en ellas.
Valores de los ejemplos
Escríbelos una vez y todos los ejemplos de esta página los usan. La clave de API se queda solo en esta página y nunca se guarda.
GET/v1/companies
Lista y busca empresas, con filtros y orden.
ListarSi va bien: 200.Permiso: Leer.
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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 |
Respuesta
24 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
data | array of object | Sí |
data[].address | null en los ejemplos | Sí |
data[].archived | boolean | Sí |
data[].city | null en los ejemplos | Sí |
data[].country | null en los ejemplos | Sí |
data[].createdAt | string (date-time) | Sí |
data[].createdBy | string (uuid) | Sí |
data[].customProperties | object of any | Sí |
data[].description | null en los ejemplos | Sí |
data[].id | string (uuid) | Sí |
data[].industry | null en los ejemplos | Sí |
data[].name | string | Sí |
data[].organizationId | string (uuid) | Sí |
data[].ownerId | string (uuid) | Sí |
data[].postalCode | null en los ejemplos | Sí |
data[].size | null en los ejemplos | Sí |
data[].socialProfiles | object | Sí |
data[].state | null en los ejemplos | Sí |
data[].updatedAt | string (date-time) | Sí |
data[].updatedBy | string (uuid) | Sí |
data[].website | null en los ejemplos | Sí |
page | integer | Sí |
pageSize | integer | Sí |
total | integer | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Crea una empresa.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
name | string | Sí | 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 |
Respuesta
21 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
address | string | null | Sí |
archived | boolean | Sí |
city | string | null | Sí |
contacts | array of any | Sí |
country | string | null | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
customProperties | object of any | Sí |
description | null en los ejemplos | Sí |
id | string (uuid) | Sí |
industry | null en los ejemplos | Sí |
name | string | Sí |
organizationId | string (uuid) | Sí |
ownerId | string | null (uuid) | Sí |
postalCode | string | null | Sí |
size | string | null | Sí |
socialProfiles | object | Sí |
state | string | null | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
website | string | null (uri) | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"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}
Elimina una empresa; sus contactos se mantienen.
EliminarSi va bien: 204.Permiso: Eliminar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
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}
Devuelve una empresa con sus contactos y propiedades.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
27 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
address | null en los ejemplos | Sí |
archived | boolean | Sí |
city | null en los ejemplos | Sí |
contacts | array of object | Sí |
contacts[].avatar | null en los ejemplos | Sí |
contacts[].contactId | string (uuid) | Sí |
contacts[].firstName | string | Sí |
contacts[].isPrimary | boolean | Sí |
contacts[].jobTitle | string | null | Sí |
contacts[].lastName | string | null | Sí |
country | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
customProperties | object of any | Sí |
description | null en los ejemplos | Sí |
id | string (uuid) | Sí |
industry | null en los ejemplos | Sí |
name | string | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
postalCode | null en los ejemplos | Sí |
size | string | null | Sí |
socialProfiles | object | Sí |
state | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
website | string | null (uri) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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}
Cambia los campos y las propiedades personalizadas de una empresa.
ActualizarSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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 |
Respuesta
27 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
address | null en los ejemplos | Sí |
archived | boolean | Sí |
city | null en los ejemplos | Sí |
contacts | array of object | Sí |
contacts[].avatar | null en los ejemplos | Sí |
contacts[].contactId | string (uuid) | Sí |
contacts[].firstName | string | Sí |
contacts[].isPrimary | boolean | Sí |
contacts[].jobTitle | string | Sí |
contacts[].lastName | null en los ejemplos | Sí |
country | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
customProperties | object of any | Sí |
description | null en los ejemplos | Sí |
id | string (uuid) | Sí |
industry | null en los ejemplos | Sí |
name | string | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
postalCode | null en los ejemplos | Sí |
size | null en los ejemplos | Sí |
socialProfiles | object | Sí |
state | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
website | null en los ejemplos | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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 cronología de una empresa: propuestas, facturas, citas, formularios, eventos y notas.
Leer/{id}/activitySi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
limit | integer | No | min 1 · max 1000 · default 200 |
Respuesta
31 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
lastViewedAt | string | null (date-time) | Sí |
timeline | array of object | Sí |
timeline[].actorName | string | null | Sí |
timeline[].approval | object | No |
timeline[].approval.id | string (uuid) | Sí |
timeline[].approval.title | string | Sí |
timeline[].contact | object | null | Sí |
timeline[].contact.id | string (uuid) | Sí |
timeline[].contact.name | string | Sí |
timeline[].contactEvent | object | No |
timeline[].contactEvent.channel | null en los ejemplos | Sí |
timeline[].contactEvent.event | string | Sí |
timeline[].contactEvent.id | string (uuid) | Sí |
timeline[].contactEvent.occurredAt | string (date-time) | Sí |
timeline[].contactEvent.properties | object of any | Sí |
timeline[].contactEvent.reference | null en los ejemplos | Sí |
timeline[].createdAt | string (date-time) | Sí |
timeline[].data | object of any | Sí |
timeline[].deal | object | null | Sí |
timeline[].deal.id | string (uuid) | Sí |
timeline[].deal.title | string | Sí |
timeline[].id | string (uuid) | Sí |
timeline[].payment | object | No |
timeline[].payment.appointment | null en los ejemplos | Sí |
timeline[].payment.invoice | object | null | Sí |
timeline[].payment.invoice.id | string (uuid) | Sí |
timeline[].payment.invoice.number | string | Sí |
timeline[].payment.recorded | string | null | Sí |
timeline[].payment.source | string | Sí |
timeline[].type | string | Sí |
viewCount | integer | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Cada cambio en las propiedades de una empresa, con quién lo hizo.
Leer/{id}/historySi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
field | string | Sí | max length 120 · pattern ^[A-Za-z]+(\.[\w-]+)?$ |
Respuesta
13 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
entries | array of object | Sí |
entries[].changedAt | string (date-time) | Sí |
entries[].changedBy | object | Sí |
entries[].changedBy.id | string (uuid) | Sí |
entries[].changedBy.name | string | Sí |
entries[].id | string (uuid) | Sí |
entries[].newLabel | null en los ejemplos | Sí |
entries[].newValue | string | Sí |
entries[].oldLabel | null en los ejemplos | Sí |
entries[].oldValue | string | null | Sí |
field | string | Sí |
limit | integer | Sí |
total | integer | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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": {}
}
]
}Eventos de webhook
Cambios de esta funcionalidad que los webhooks pueden enviar.
company.createdCrearcompany.updatedActualizarcompany.deletedEliminar