Contactos
Personas en el CRM: emails, teléfonos, etiquetas, historial y propiedades personalizadas.
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/contacts
Lista y busca contactos, con filtros, etiquetas 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 | |
sort | "createdAt" | "updatedAt" | "name" | "lastActivityAt" | No | default "createdAt" |
order | "asc" | "desc" | No | default "desc" |
ownerId | string | No | |
companyId | string (uuid) | No | |
tagId | string (uuid) | No | |
leadStatus | "new" | "open" | "in_progress" | "connected" | "qualified" | "unqualified" | No | |
lifecycleStage | "subscriber" | "lead" | "opportunity" | "customer" | "evangelist" | "other" | No | |
marketingOptIn | "true" | "false" | No |
Respuesta
53 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
data | array of object | Sí |
data[].address | null en los ejemplos | Sí |
data[].archived | boolean | Sí |
data[].avatar | null en los ejemplos | Sí |
data[].birthday | string | null (date) | Sí |
data[].city | null en los ejemplos | Sí |
data[].companies | array of object | Sí |
data[].companies[].companyId | string (uuid) | Sí |
data[].companies[].isPrimary | boolean | Sí |
data[].companies[].jobTitle | string | null | Sí |
data[].companies[].name | string | Sí |
data[].country | null en los ejemplos | Sí |
data[].createdAt | string (date-time) | Sí |
data[].createdBy | string | null (uuid) | Sí |
data[].customProperties | object of any | Sí |
data[].department | null en los ejemplos | Sí |
data[].emails | array of object | Sí |
data[].emails[].email | string (email) | Sí |
data[].emails[].id | string (uuid) | Sí |
data[].emails[].isPrimary | boolean | Sí |
data[].emails[].label | null en los ejemplos | Sí |
data[].firstName | string | Sí |
data[].id | string (uuid) | Sí |
data[].jobTitle | null en los ejemplos | Sí |
data[].lastActivityAt | string | null (date-time) | Sí |
data[].lastName | string | null | Sí |
data[].leadStatus | null en los ejemplos | Sí |
data[].lifecycleStage | string | null | Sí |
data[].locale | null en los ejemplos | Sí |
data[].marketingOptIn | boolean | Sí |
data[].marketingOptInAt | string | null (date-time) | Sí |
data[].organizationId | string (uuid) | Sí |
data[].ownerId | string | null (uuid) | Sí |
data[].phones | array of object | Sí |
data[].phones[].id | string (uuid) | Sí |
data[].phones[].isPrimary | boolean | Sí |
data[].phones[].label | null en los ejemplos | Sí |
data[].phones[].phone | string | Sí |
data[].postalCode | null en los ejemplos | Sí |
data[].socialProfiles | object | Sí |
data[].socialProfiles.instagram | string | No |
data[].source | string | null | Sí |
data[].state | null en los ejemplos | Sí |
data[].tags | array of object | Sí |
data[].tags[].color | string | Sí |
data[].tags[].id | string (uuid) | Sí |
data[].tags[].name | string | Sí |
data[].timezone | null en los ejemplos | Sí |
data[].updatedAt | string (date-time) | Sí |
data[].updatedBy | string | null (uuid) | Sí |
page | integer | Sí |
pageSize | integer | Sí |
total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contacts" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contacts",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts");
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/contacts")
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/contacts", 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/contacts"))
.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/contacts");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"data": [
{
"address": null,
"archived": true,
"avatar": null,
"birthday": "2026-11-21",
"city": null,
"companies": [],
"country": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"customProperties": {},
"department": null,
"emails": [],
"firstName": "Ana",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"jobTitle": null,
"lastActivityAt": "2026-11-21T14:00:00.000Z",
"lastName": "Lima",
"leadStatus": null,
"lifecycleStage": "…",
"locale": null,
"marketingOptIn": true,
"marketingOptInAt": "2026-11-21T14:00:00.000Z",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"phones": [],
"postalCode": null,
"socialProfiles": {},
"source": "…",
"state": null,
"tags": [],
"timezone": null,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/contacts
Crea un contacto con sus correos, teléfonos y propiedades.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
firstName | string | Sí | min length 1 · max length 100 |
lastName | string | null | No | |
jobTitle | string | null | No | |
department | string | null | No | |
avatar | string (uri) | null | No | |
birthday | string (date) | null | No | |
locale | string | null | No | |
timezone | string | null | No | |
country | string | null | No | |
state | string | null | No | |
city | string | null | No | |
postalCode | string | null | No | |
address | string | null | No | |
source | string | null | No | |
leadStatus | "new" | "open" | "in_progress" | "connected" | "qualified" | "unqualified" | null | No | |
lifecycleStage | "subscriber" | "lead" | "opportunity" | "customer" | "evangelist" | "other" | null | No | |
marketingOptIn | boolean | No | |
ownerId | string | null | No | |
socialProfiles | object of string | null | No | |
customProperties | object of any | No | |
archived | boolean | No | |
emails | array of object | No | max items 20 |
emails[].email | string (email) | Sí | max length 320 |
emails[].label | string | null | No | |
emails[].isPrimary | boolean | No | |
phones | array of object | No | max items 20 |
phones[].phone | string | Sí | min length 3 · max length 40 |
phones[].label | string | null | No | |
phones[].isPrimary | boolean | No | |
companies | array of object | No | max items 50 |
companies[].companyId | string (uuid) | Sí | |
companies[].jobTitle | string | null | No | |
companies[].isPrimary | boolean | No | |
tagIds | array of string (uuid) | No | max items 500 |
Respuesta
50 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
address | null en los ejemplos | Sí |
archived | boolean | Sí |
avatar | string | null (uri) | Sí |
birthday | string | null (date) | Sí |
city | string | null | Sí |
companies | array of object | Sí |
companies[].companyId | string (uuid) | Sí |
companies[].isPrimary | boolean | Sí |
companies[].jobTitle | string | null | Sí |
companies[].name | string | Sí |
country | string | null | Sí |
createdAt | string (date-time) | Sí |
createdBy | string | null (uuid) | Sí |
customProperties | object of any | Sí |
department | null en los ejemplos | Sí |
emails | array of object | Sí |
emails[].email | string (email) | Sí |
emails[].id | string (uuid) | Sí |
emails[].isPrimary | boolean | Sí |
emails[].label | string | null | Sí |
firstName | string | Sí |
id | string (uuid) | Sí |
jobTitle | string | null | Sí |
lastActivityAt | null en los ejemplos | Sí |
lastName | string | null | Sí |
leadStatus | null en los ejemplos | Sí |
lifecycleStage | string | null | Sí |
locale | null en los ejemplos | Sí |
marketingOptIn | boolean | Sí |
marketingOptInAt | string | null (date-time) | Sí |
organizationId | string (uuid) | Sí |
ownerId | string | null (uuid) | Sí |
phones | array of object | Sí |
phones[].id | string (uuid) | Sí |
phones[].isPrimary | boolean | Sí |
phones[].label | null en los ejemplos | Sí |
phones[].phone | string | Sí |
postalCode | null en los ejemplos | Sí |
socialProfiles | object | Sí |
socialProfiles.instagram | string | No |
socialProfiles.whatsapp | string | No |
source | null en los ejemplos | Sí |
state | null en los ejemplos | Sí |
tags | array of object | Sí |
tags[].color | string | Sí |
tags[].id | string (uuid) | Sí |
tags[].name | string | Sí |
timezone | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string | null (uuid) | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contacts" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}'const res = await fetch("https://api.firmado.app/v1/contacts", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contacts",
headers={"X-Api-Key": "fmd_..."},
json={
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}
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/contacts")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}
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(`{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contacts", 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/contacts"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}
"""))
.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/contacts");
request.Content = new StringContent(""""
{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"address": null,
"archived": true,
"avatar": "https://example.com",
"birthday": "2026-11-21",
"city": "…",
"companies": [
{
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"jobTitle": "…",
"name": "Ana Lima"
}
],
"country": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"customProperties": {},
"department": null,
"emails": [
{
"email": "[email protected]",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"label": "…"
}
],
"firstName": "Ana",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"jobTitle": "…",
"lastActivityAt": null,
"lastName": "Lima",
"leadStatus": null,
"lifecycleStage": "…",
"locale": null,
"marketingOptIn": true,
"marketingOptInAt": "2026-11-21T14:00:00.000Z",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"phones": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"label": null,
"phone": "…"
}
],
"postalCode": null,
"socialProfiles": {
"instagram": "…",
"whatsapp": "…"
},
"source": null,
"state": null,
"tags": [
{
"color": "…",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
}
],
"timezone": null,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}DELETE/v1/contacts/{id}
Elimina un contacto.
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/contacts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts/{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/contacts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{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/contacts/{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/contacts/{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/contacts/{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/contacts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contacts/{id}
Devuelve un contacto con sus correos, teléfonos, empresas, etiquetas y propiedades.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
49 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
address | null en los ejemplos | Sí |
archived | boolean | Sí |
avatar | string | null (uri) | Sí |
birthday | null en los ejemplos | Sí |
city | string | null | Sí |
companies | array of object | Sí |
companies[].companyId | string (uuid) | Sí |
companies[].isPrimary | boolean | Sí |
companies[].jobTitle | null en los ejemplos | Sí |
companies[].name | string | Sí |
country | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string | null (uuid) | Sí |
customProperties | object of any | Sí |
department | null en los ejemplos | Sí |
emails | array of object | Sí |
emails[].email | string (email) | Sí |
emails[].id | string (uuid) | Sí |
emails[].isPrimary | boolean | Sí |
emails[].label | null en los ejemplos | Sí |
firstName | string | Sí |
id | string (uuid) | Sí |
jobTitle | string | null | Sí |
lastActivityAt | null en los ejemplos | Sí |
lastName | string | null | Sí |
leadStatus | null en los ejemplos | Sí |
lifecycleStage | string | null | Sí |
locale | null en los ejemplos | Sí |
marketingOptIn | boolean | Sí |
marketingOptInAt | string | null (date-time) | Sí |
organizationId | string (uuid) | Sí |
ownerId | string | null (uuid) | Sí |
phones | array of object | Sí |
phones[].id | string (uuid) | Sí |
phones[].isPrimary | boolean | Sí |
phones[].label | null en los ejemplos | Sí |
phones[].phone | string | Sí |
postalCode | null en los ejemplos | Sí |
socialProfiles | object | Sí |
socialProfiles.instagram | string (uri) | No |
source | string | null | Sí |
state | null en los ejemplos | Sí |
tags | array of object | Sí |
tags[].color | string | Sí |
tags[].id | string (uuid) | Sí |
tags[].name | string | Sí |
timezone | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string | null (uuid) | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contacts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contacts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{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/contacts/{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/contacts/{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/contacts/{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/contacts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"address": null,
"archived": true,
"avatar": "https://example.com",
"birthday": null,
"city": "…",
"companies": [
{
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"jobTitle": null,
"isPrimary": true
}
],
"country": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"customProperties": {},
"department": null,
"emails": [
{
"email": "[email protected]",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"label": null
}
],
"firstName": "Ana",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"jobTitle": "…",
"lastActivityAt": null,
"lastName": "Lima",
"leadStatus": null,
"lifecycleStage": "…",
"locale": null,
"marketingOptIn": true,
"marketingOptInAt": "2026-11-21T14:00:00.000Z",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"phones": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"label": null,
"phone": "…"
}
],
"postalCode": null,
"socialProfiles": {
"instagram": "https://example.com"
},
"source": "…",
"state": null,
"tags": [
{
"color": "…",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
}
],
"timezone": null,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}PATCH/v1/contacts/{id}
Cambia los campos, correos, teléfonos y propiedades personalizadas de un contacto.
ActualizarSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
firstName | string | No | min length 1 · max length 100 |
lastName | string | null | No | |
jobTitle | string | null | No | |
department | string | null | No | |
avatar | string (uri) | null | No | |
birthday | string (date) | null | No | |
locale | string | null | No | |
timezone | string | null | No | |
country | string | null | No | |
state | string | null | No | |
city | string | null | No | |
postalCode | string | null | No | |
address | string | null | No | |
source | string | null | No | |
leadStatus | "new" | "open" | "in_progress" | "connected" | "qualified" | "unqualified" | null | No | |
lifecycleStage | "subscriber" | "lead" | "opportunity" | "customer" | "evangelist" | "other" | null | No | |
marketingOptIn | boolean | No | |
ownerId | string | null | No | |
socialProfiles | object of string | null | No | |
customProperties | object of any | No | |
archived | boolean | No | |
emails | array of object | No | max items 20 |
emails[].email | string (email) | Sí | max length 320 |
emails[].label | string | null | No | |
emails[].isPrimary | boolean | No | |
phones | array of object | No | max items 20 |
phones[].phone | string | Sí | min length 3 · max length 40 |
phones[].label | string | null | No | |
phones[].isPrimary | boolean | No | |
companies | array of object | No | max items 50 |
companies[].companyId | string (uuid) | Sí | |
companies[].jobTitle | string | null | No | |
companies[].isPrimary | boolean | No | |
tagIds | array of string (uuid) | No | max items 500 |
Respuesta
49 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
address | null en los ejemplos | Sí |
archived | boolean | Sí |
avatar | string | null (uri) | Sí |
birthday | string | null (date) | Sí |
city | string | null | Sí |
companies | array of object | Sí |
companies[].companyId | string (uuid) | Sí |
companies[].isPrimary | boolean | Sí |
companies[].jobTitle | string | null | Sí |
companies[].name | string | Sí |
country | string | null | Sí |
createdAt | string (date-time) | Sí |
createdBy | string | null (uuid) | Sí |
customProperties | object of any | Sí |
department | null en los ejemplos | Sí |
emails | array of object | Sí |
emails[].email | string (email) | Sí |
emails[].id | string (uuid) | Sí |
emails[].isPrimary | boolean | Sí |
emails[].label | string | null | Sí |
firstName | string | Sí |
id | string (uuid) | Sí |
jobTitle | string | null | Sí |
lastActivityAt | string | null (date-time) | Sí |
lastName | string | null | Sí |
leadStatus | null en los ejemplos | Sí |
lifecycleStage | string | null | Sí |
locale | null en los ejemplos | Sí |
marketingOptIn | boolean | Sí |
marketingOptInAt | string | null (date-time) | Sí |
organizationId | string (uuid) | Sí |
ownerId | string | null (uuid) | Sí |
phones | array of object | Sí |
phones[].id | string (uuid) | Sí |
phones[].isPrimary | boolean | Sí |
phones[].label | null en los ejemplos | Sí |
phones[].phone | string | Sí |
postalCode | null en los ejemplos | Sí |
socialProfiles | object | Sí |
socialProfiles.instagram | string | No |
source | string | null | Sí |
state | null en los ejemplos | Sí |
tags | array of object | Sí |
tags[].color | string | Sí |
tags[].id | string (uuid) | Sí |
tags[].name | string | Sí |
timezone | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
curl -X PATCH "https://api.firmado.app/v1/contacts/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}'const res = await fetch("https://api.firmado.app/v1/contacts/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/contacts/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}
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/contacts/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}
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(`{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/contacts/{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/contacts/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}
"""))
.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/contacts/{id}");
request.Content = new StringContent(""""
{
"firstName": "Ana",
"lastName": "Lima",
"jobTitle": "…",
"department": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"address": null,
"archived": true,
"avatar": "https://example.com",
"birthday": "2026-11-21",
"city": "…",
"companies": [
{
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"jobTitle": "…",
"name": "Ana Lima"
}
],
"country": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"customProperties": {},
"department": null,
"emails": [
{
"email": "[email protected]",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"label": "…"
}
],
"firstName": "Ana",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"jobTitle": "…",
"lastActivityAt": "2026-11-21T14:00:00.000Z",
"lastName": "Lima",
"leadStatus": null,
"lifecycleStage": "…",
"locale": null,
"marketingOptIn": true,
"marketingOptInAt": "2026-11-21T14:00:00.000Z",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"phones": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"label": null,
"phone": "…"
}
],
"postalCode": null,
"socialProfiles": {
"instagram": "…"
},
"source": "…",
"state": null,
"tags": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"color": "…"
}
],
"timezone": null,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}GET/v1/contacts/{id}/activity
La cronología de un contacto: propuestas, facturas, citas, formularios, correos, 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
40 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
lastViewedAt | string | null (date-time) | Sí |
timeline | array of object | Sí |
timeline[].actorName | string | null | Sí |
timeline[].appointment | object | No |
timeline[].appointment.id | string (uuid) | Sí |
timeline[].appointment.startsAt | string (date-time) | Sí |
timeline[].appointment.status | string | Sí |
timeline[].appointment.title | string | Sí |
timeline[].approval | object | No |
timeline[].approval.id | string (uuid) | Sí |
timeline[].approval.title | 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[].contract | object | No |
timeline[].contract.id | string (uuid) | Sí |
timeline[].contract.title | string | 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[].form | object | No |
timeline[].form.id | string (uuid) | Sí |
timeline[].form.name | string | Sí |
timeline[].form.submissionId | string (uuid) | 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/contacts/{id}/activity" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts/{id}/activity", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contacts/{id}/activity",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{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/contacts/{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/contacts/{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/contacts/{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/contacts/{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",
"createdAt": "2026-11-21T14:00:00.000Z",
"data": {},
"deal": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"type": "…",
"appointment": {},
"approval": {},
"contactEvent": {},
"contract": {},
"form": {},
"payment": {}
}
],
"viewCount": 1
}DELETE/v1/contacts/{id}/companies/{companyId}
Desvincula un contacto de una empresa.
Actualizar/{id}/companies/{companyId}Si va bien: 204.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí | |
companyId | string | Sí |
Ejemplo
curl -X DELETE "https://api.firmado.app/v1/contacts/{id}/companies/{companyId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts/{id}/companies/{companyId}", {
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/contacts/{id}/companies/{companyId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{id}/companies/{companyId}");
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/contacts/{id}/companies/{companyId}")
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/contacts/{id}/companies/{companyId}", 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/contacts/{id}/companies/{companyId}"))
.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/contacts/{id}/companies/{companyId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PUT/v1/contacts/{id}/companies/{companyId}
Vincula un contacto a una empresa, con su cargo allí.
Actualizar/{id}/companies/{companyId}Si va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí | |
companyId | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
jobTitle | string | null | No | |
isPrimary | boolean | No |
Respuesta
46 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
address | null en los ejemplos | Sí |
archived | boolean | Sí |
avatar | null en los ejemplos | Sí |
birthday | string | null (date) | Sí |
city | null en los ejemplos | Sí |
companies | array of object | Sí |
companies[].companyId | string (uuid) | Sí |
companies[].isPrimary | boolean | Sí |
companies[].jobTitle | string | null | Sí |
companies[].name | string | Sí |
country | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string | null (uuid) | Sí |
customProperties | object of any | Sí |
department | null en los ejemplos | Sí |
emails | array of object | Sí |
emails[].email | string (email) | Sí |
emails[].id | string (uuid) | Sí |
emails[].isPrimary | boolean | Sí |
emails[].label | null en los ejemplos | Sí |
firstName | string | Sí |
id | string (uuid) | Sí |
jobTitle | string | null | Sí |
lastActivityAt | string | null (date-time) | Sí |
lastName | string | null | Sí |
leadStatus | null en los ejemplos | Sí |
lifecycleStage | string | null | Sí |
locale | null en los ejemplos | Sí |
marketingOptIn | boolean | Sí |
marketingOptInAt | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
ownerId | string | null (uuid) | Sí |
phones | array of object | Sí |
phones[].id | string (uuid) | Sí |
phones[].isPrimary | boolean | Sí |
phones[].label | null en los ejemplos | Sí |
phones[].phone | string | Sí |
postalCode | null en los ejemplos | Sí |
socialProfiles | object | Sí |
socialProfiles.instagram | string | No |
source | string | null | Sí |
state | null en los ejemplos | Sí |
tags | array of any | Sí |
timezone | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string | null (uuid) | Sí |
Ejemplo
curl -X PUT "https://api.firmado.app/v1/contacts/{id}/companies/{companyId}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"jobTitle": "…",
"isPrimary": true
}'const res = await fetch("https://api.firmado.app/v1/contacts/{id}/companies/{companyId}", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"jobTitle": "…",
"isPrimary": true
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/contacts/{id}/companies/{companyId}",
headers={"X-Api-Key": "fmd_..."},
json={
"jobTitle": "…",
"isPrimary": True,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{id}/companies/{companyId}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"jobTitle": "…",
"isPrimary": true
}
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/contacts/{id}/companies/{companyId}")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"jobTitle": "…",
"isPrimary": true
}
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(`{
"jobTitle": "…",
"isPrimary": true
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/contacts/{id}/companies/{companyId}", 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/contacts/{id}/companies/{companyId}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"jobTitle": "…",
"isPrimary": true
}
"""))
.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/contacts/{id}/companies/{companyId}");
request.Content = new StringContent(""""
{
"jobTitle": "…",
"isPrimary": true
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"address": null,
"archived": true,
"avatar": null,
"birthday": "2026-11-21",
"city": null,
"companies": [
{
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"jobTitle": "…",
"name": "Ana Lima"
}
],
"country": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"customProperties": {},
"department": null,
"emails": [
{
"email": "[email protected]",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPrimary": true,
"label": null
}
],
"firstName": "Ana",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"jobTitle": "…",
"lastActivityAt": "2026-11-21T14:00:00.000Z",
"lastName": "Lima",
"leadStatus": null,
"lifecycleStage": "…",
"locale": null,
"marketingOptIn": true,
"marketingOptInAt": null,
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"phones": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"phone": "…",
"label": null,
"isPrimary": true
}
],
"postalCode": null,
"socialProfiles": {
"instagram": "…"
},
"source": "…",
"state": null,
"tags": [],
"timezone": null,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}GET/v1/contacts/{id}/duplicates
Contactos que comparten correo, teléfono o perfil social con este (Pro).
Leer/{id}/duplicatesSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
12 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
[].contact | object | Sí |
[].contact.createdAt | string (date-time) | Sí |
[].contact.email | string (email) | Sí |
[].contact.firstName | string | Sí |
[].contact.id | string (uuid) | Sí |
[].contact.lastName | null en los ejemplos | Sí |
[].contact.ownerId | string (uuid) | Sí |
[].contact.phone | string | Sí |
[].matches | array of object | Sí |
[].matches[].field | string | Sí |
[].matches[].kind | string | Sí |
[].matches[].value | string | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contacts/{id}/duplicates" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts/{id}/duplicates", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contacts/{id}/duplicates",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{id}/duplicates");
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/contacts/{id}/duplicates")
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/contacts/{id}/duplicates", 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/contacts/{id}/duplicates"))
.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/contacts/{id}/duplicates");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
[
{
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"firstName": "Ana",
"lastName": null,
"email": "[email protected]",
"phone": "…",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z"
},
"matches": [
{}
]
}
]GET/v1/contacts/{id}/history
Cada cambio en las propiedades de un contacto, 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
18 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 | string | null | Sí |
entries[].newValue | array | string | Sí |
entries[].newValue[].id | string (uuid) | Sí |
entries[].newValue[].jobTitle | string | No |
entries[].newValue[].name | string | Sí |
entries[].oldLabel | null en los ejemplos | Sí |
entries[].oldValue | array | string | null | Sí |
entries[].oldValue[].id | string (uuid) | Sí |
entries[].oldValue[].name | string | Sí |
field | string | Sí |
limit | integer | Sí |
total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contacts/{id}/history" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts/{id}/history", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contacts/{id}/history",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{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/contacts/{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/contacts/{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/contacts/{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/contacts/{id}/history");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"entries": [
{
"changedAt": "2026-11-21T14:00:00.000Z",
"changedBy": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"newLabel": "…",
"newValue": [],
"oldLabel": null,
"oldValue": []
}
],
"field": "…",
"limit": 1,
"total": 1
}POST/v1/contacts/{id}/merge
Fusiona otro contacto con este, moviendo todo lo vinculado a él.
Actualizar/{id}/mergeSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
contactId | string (uuid) | Sí | |
choose | object of "kept" | "merged" | No |
Respuesta
50 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
address | null en los ejemplos | Sí |
archived | boolean | Sí |
avatar | null en los ejemplos | Sí |
birthday | null en los ejemplos | Sí |
city | null en los ejemplos | Sí |
companies | array of object | Sí |
companies[].companyId | string (uuid) | Sí |
companies[].isPrimary | boolean | Sí |
companies[].jobTitle | null en los ejemplos | Sí |
companies[].name | string | Sí |
country | null en los ejemplos | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
customProperties | object of any | Sí |
department | null en los ejemplos | Sí |
emails | array of object | Sí |
emails[].email | string (email) | Sí |
emails[].id | string (uuid) | Sí |
emails[].isPrimary | boolean | Sí |
emails[].label | null en los ejemplos | Sí |
firstName | string | Sí |
id | string (uuid) | Sí |
jobTitle | string | null | Sí |
lastActivityAt | null en los ejemplos | Sí |
lastName | string | null | Sí |
leadStatus | null en los ejemplos | Sí |
lifecycleStage | string | null | Sí |
locale | null en los ejemplos | Sí |
marketingOptIn | boolean | Sí |
marketingOptInAt | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
phones | array of object | Sí |
phones[].id | string (uuid) | Sí |
phones[].isPrimary | boolean | Sí |
phones[].label | null en los ejemplos | Sí |
phones[].phone | string | Sí |
postalCode | null en los ejemplos | Sí |
socialProfiles | object | Sí |
socialProfiles.instagram | string | No |
socialProfiles.whatsapp | string | No |
source | null en los ejemplos | Sí |
state | null en los ejemplos | Sí |
tags | array of object | Sí |
tags[].color | string | Sí |
tags[].id | string (uuid) | Sí |
tags[].name | string | Sí |
timezone | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contacts/{id}/merge" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"choose": {}
}'const res = await fetch("https://api.firmado.app/v1/contacts/{id}/merge", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"choose": {}
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contacts/{id}/merge",
headers={"X-Api-Key": "fmd_..."},
json={
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"choose": {},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{id}/merge");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"choose": {}
}
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/contacts/{id}/merge")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"choose": {}
}
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(`{
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"choose": {}
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contacts/{id}/merge", 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/contacts/{id}/merge"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"choose": {}
}
"""))
.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/contacts/{id}/merge");
request.Content = new StringContent(""""
{
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"choose": {}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"address": null,
"archived": true,
"avatar": null,
"birthday": null,
"city": null,
"companies": [
{
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"jobTitle": null,
"isPrimary": true
}
],
"country": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"customProperties": {},
"department": null,
"emails": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"label": null,
"isPrimary": true
}
],
"firstName": "Ana",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"jobTitle": "…",
"lastActivityAt": null,
"lastName": "Lima",
"leadStatus": null,
"lifecycleStage": "…",
"locale": null,
"marketingOptIn": true,
"marketingOptInAt": null,
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"phones": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"phone": "…",
"label": null,
"isPrimary": true
}
],
"postalCode": null,
"socialProfiles": {
"instagram": "…",
"whatsapp": "…"
},
"source": null,
"state": null,
"tags": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"color": "…"
}
],
"timezone": null,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}GET/v1/contacts/{id}/merges
Los contactos fusionados con este, tal como eran.
Leer/{id}/mergesSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
105 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
[].automatic | boolean | Sí |
[].createdAt | string (date-time) | Sí |
[].id | string (uuid) | Sí |
[].kept | object | Sí |
[].kept.address | null en los ejemplos | Sí |
[].kept.archived | boolean | Sí |
[].kept.avatar | null en los ejemplos | Sí |
[].kept.birthday | null en los ejemplos | Sí |
[].kept.city | null en los ejemplos | Sí |
[].kept.companies | array of any | Sí |
[].kept.country | null en los ejemplos | Sí |
[].kept.createdAt | string (date-time) | Sí |
[].kept.createdBy | string (uuid) | Sí |
[].kept.customProperties | object of any | Sí |
[].kept.department | null en los ejemplos | Sí |
[].kept.emails | array of object | Sí |
[].kept.emails[].email | string (email) | Sí |
[].kept.emails[].id | string (uuid) | Sí |
[].kept.emails[].isPrimary | boolean | Sí |
[].kept.emails[].label | null en los ejemplos | Sí |
[].kept.firstName | string | Sí |
[].kept.id | string (uuid) | Sí |
[].kept.jobTitle | null en los ejemplos | Sí |
[].kept.lastActivityAt | null en los ejemplos | Sí |
[].kept.lastName | null en los ejemplos | Sí |
[].kept.leadStatus | null en los ejemplos | Sí |
[].kept.lifecycleStage | string | null | Sí |
[].kept.locale | null en los ejemplos | Sí |
[].kept.marketingOptIn | boolean | Sí |
[].kept.marketingOptInAt | null en los ejemplos | Sí |
[].kept.organizationId | string (uuid) | Sí |
[].kept.ownerId | string (uuid) | Sí |
[].kept.phones | array of object | Sí |
[].kept.phones[].id | string (uuid) | Sí |
[].kept.phones[].isPrimary | boolean | Sí |
[].kept.phones[].label | null en los ejemplos | Sí |
[].kept.phones[].phone | string | Sí |
[].kept.postalCode | null en los ejemplos | Sí |
[].kept.socialProfiles | object | Sí |
[].kept.socialProfiles.instagram | string (uri) | No |
[].kept.socialProfiles.whatsapp | string | No |
[].kept.source | null en los ejemplos | Sí |
[].kept.state | null en los ejemplos | Sí |
[].kept.tags | array of any | Sí |
[].kept.timezone | null en los ejemplos | Sí |
[].kept.updatedAt | string (date-time) | Sí |
[].kept.updatedBy | string (uuid) | Sí |
[].matches | array of object | Sí |
[].matches[].field | string | No |
[].matches[].kind | string | Sí |
[].matches[].value | string | Sí |
[].merged | object | Sí |
[].merged.address | null en los ejemplos | Sí |
[].merged.archived | boolean | Sí |
[].merged.avatar | null en los ejemplos | Sí |
[].merged.birthday | null en los ejemplos | Sí |
[].merged.city | null en los ejemplos | Sí |
[].merged.companies | array of object | Sí |
[].merged.companies[].companyId | string (uuid) | Sí |
[].merged.companies[].isPrimary | boolean | Sí |
[].merged.companies[].jobTitle | null en los ejemplos | Sí |
[].merged.companies[].name | string | Sí |
[].merged.country | null en los ejemplos | Sí |
[].merged.createdAt | string (date-time) | Sí |
[].merged.createdBy | string | null (uuid) | Sí |
[].merged.customProperties | object of any | Sí |
[].merged.department | null en los ejemplos | Sí |
[].merged.emails | array of object | Sí |
[].merged.emails[].email | string (email) | Sí |
[].merged.emails[].id | string (uuid) | Sí |
[].merged.emails[].isPrimary | boolean | Sí |
[].merged.emails[].label | null en los ejemplos | Sí |
[].merged.firstName | string | Sí |
[].merged.id | string (uuid) | Sí |
[].merged.jobTitle | string | null | Sí |
[].merged.lastActivityAt | null en los ejemplos | Sí |
[].merged.lastName | string | null | Sí |
[].merged.leadStatus | null en los ejemplos | Sí |
[].merged.lifecycleStage | string | null | Sí |
[].merged.lists | array of string (uuid) | Sí |
[].merged.locale | null en los ejemplos | Sí |
[].merged.marketingOptIn | boolean | Sí |
[].merged.marketingOptInAt | null en los ejemplos | Sí |
[].merged.organizationId | string (uuid) | Sí |
[].merged.ownerId | string | null (uuid) | Sí |
[].merged.phones | array of object | Sí |
[].merged.phones[].id | string (uuid) | Sí |
[].merged.phones[].isPrimary | boolean | Sí |
[].merged.phones[].label | null en los ejemplos | Sí |
[].merged.phones[].phone | string | Sí |
[].merged.postalCode | null en los ejemplos | Sí |
[].merged.socialProfiles | object | Sí |
[].merged.socialProfiles.instagram | string | No |
[].merged.socialProfiles.whatsapp | string | No |
[].merged.source | null en los ejemplos | Sí |
[].merged.state | null en los ejemplos | Sí |
[].merged.tags | array of any | Sí |
[].merged.timezone | null en los ejemplos | Sí |
[].merged.updatedAt | string (date-time) | Sí |
[].merged.updatedBy | string | null (uuid) | Sí |
[].mergedBy | object | null | Sí |
[].mergedBy.id | string (uuid) | Sí |
[].mergedBy.name | string | Sí |
[].mergedContactId | string (uuid) | Sí |
[].mergedName | string | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contacts/{id}/merges" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts/{id}/merges", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contacts/{id}/merges",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{id}/merges");
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/contacts/{id}/merges")
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/contacts/{id}/merges", 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/contacts/{id}/merges"))
.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/contacts/{id}/merges");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
[
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"mergedContactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"mergedName": "Ana Lima",
"merged": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"city": null,
"tags": [],
"lists": [],
"state": null,
"avatar": null,
"emails": [],
"locale": null,
"phones": [],
"source": null,
"address": null,
"country": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"archived": true,
"birthday": null,
"jobTitle": "…",
"lastName": "Lima",
"timezone": null,
"companies": [],
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"firstName": "Ana",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"department": null,
"leadStatus": null,
"postalCode": null,
"lastActivityAt": null,
"lifecycleStage": "…",
"marketingOptIn": true,
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"socialProfiles": {},
"customProperties": {},
"marketingOptInAt": null
},
"kept": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"city": null,
"tags": [],
"state": null,
"avatar": null,
"emails": [],
"locale": null,
"phones": [],
"source": null,
"address": null,
"country": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"archived": true,
"birthday": null,
"jobTitle": null,
"lastName": null,
"timezone": null,
"companies": [],
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"firstName": "Ana",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"department": null,
"leadStatus": null,
"postalCode": null,
"lastActivityAt": null,
"lifecycleStage": "…",
"marketingOptIn": true,
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"socialProfiles": {},
"customProperties": {},
"marketingOptInAt": null
},
"automatic": true,
"matches": [
{}
],
"createdAt": "2026-11-21T14:00:00.000Z",
"mergedBy": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
}
}
]GET/v1/contacts/{id}/merges/{mergeId}/history
El historial de propiedades de un contacto fusionado.
Leer/{id}/merges/{mergeId}/historySi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí | |
mergeId | 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 | Sí |
field | string | Sí |
limit | integer | Sí |
total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contacts/{id}/merges/{mergeId}/history" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contacts/{id}/merges/{mergeId}/history", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contacts/{id}/merges/{mergeId}/history",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contacts/{id}/merges/{mergeId}/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/contacts/{id}/merges/{mergeId}/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/contacts/{id}/merges/{mergeId}/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/contacts/{id}/merges/{mergeId}/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/contacts/{id}/merges/{mergeId}/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": {}
}
]
}GET/v1/tags
Lista las etiquetas de contactos, con cuántos contactos tiene cada una.
ListarSi va bien: 200.Permiso: Leer.
Respuesta
5 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
[].color | string | Sí |
[].contactCount | integer | Sí |
[].createdAt | string (date-time) | Sí |
[].id | string (uuid) | Sí |
[].name | string | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/tags" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/tags", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/tags",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/tags");
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/tags")
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/tags", 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/tags"))
.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/tags");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
[
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"color": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"contactCount": 1
}
]POST/v1/tags
Crea una etiqueta.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
name | string | Sí | min length 1 · max length 50 |
color | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "purple" | "pink" | No | default "gray" |
Respuesta
5 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
color | string | Sí |
contactCount | integer | Sí |
createdAt | string (date-time) | Sí |
id | string (uuid) | Sí |
name | string | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/tags" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"color": "gray"
}'const res = await fetch("https://api.firmado.app/v1/tags", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"color": "gray"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/tags",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"color": "gray",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/tags");
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",
"color": "gray"
}
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/tags")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"color": "gray"
}
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",
"color": "gray"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/tags", 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/tags"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"color": "gray"
}
"""))
.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/tags");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"color": "gray"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"color": "…",
"contactCount": 1,
"createdAt": "2026-11-21T14:00:00.000Z",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
}DELETE/v1/tags/{id}
Elimina una etiqueta, quitándola de sus contactos.
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/tags/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/tags/{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/tags/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/tags/{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/tags/{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/tags/{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/tags/{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/tags/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/tags/{id}
Renombra una etiqueta o cambia su color.
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 50 |
color | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "purple" | "pink" | No |
Respuesta
5 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
color | string | Sí |
contactCount | integer | Sí |
createdAt | string (date-time) | Sí |
id | string (uuid) | Sí |
name | string | Sí |
Ejemplo
curl -X PATCH "https://api.firmado.app/v1/tags/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"color": "gray"
}'const res = await fetch("https://api.firmado.app/v1/tags/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"color": "gray"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/tags/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"color": "gray",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/tags/{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",
"color": "gray"
}
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/tags/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"color": "gray"
}
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",
"color": "gray"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/tags/{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/tags/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"color": "gray"
}
"""))
.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/tags/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"color": "gray"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"color": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"contactCount": 1
}POST/v1/tags/{id}/contacts
Pone una etiqueta a contactos.
Actualizar/{id}/contactsSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
contactIds | array of string (uuid) | Sí | min items 1 · max items 500 |
Respuesta
3 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
added | integer | Sí |
already | integer | Sí |
full | integer | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/tags/{id}/contacts" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}'const res = await fetch("https://api.firmado.app/v1/tags/{id}/contacts", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/tags/{id}/contacts",
headers={"X-Api-Key": "fmd_..."},
json={
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/tags/{id}/contacts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
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/tags/{id}/contacts")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
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(`{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/tags/{id}/contacts", 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/tags/{id}/contacts"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
"""))
.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/tags/{id}/contacts");
request.Content = new StringContent(""""
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"added": 1,
"already": 1,
"full": 1
}POST/v1/tags/{id}/contacts/remove
Quita una etiqueta de contactos.
Actualizar/{id}/contacts/removeSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
contactIds | array of string (uuid) | Sí | min items 1 · max items 500 |
Respuesta
1 campo
| Campo | Tipo | Siempre presente |
|---|---|---|
removed | integer | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/tags/{id}/contacts/remove" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}'const res = await fetch("https://api.firmado.app/v1/tags/{id}/contacts/remove", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/tags/{id}/contacts/remove",
headers={"X-Api-Key": "fmd_..."},
json={
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/tags/{id}/contacts/remove");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
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/tags/{id}/contacts/remove")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
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(`{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/tags/{id}/contacts/remove", 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/tags/{id}/contacts/remove"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
"""))
.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/tags/{id}/contacts/remove");
request.Content = new StringContent(""""
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"removed": 1
}Eventos de webhook
Cambios de esta funcionalidad que los webhooks pueden enviar.
contact.createdCrearcontact.updatedActualizarcontact.deletedEliminarcontact.mergedActualizar