Eventos de contactos
Lo que hicieron los contactos en tus sistemas, y los tipos de actividad que lo muestran.
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/contact-events
Lista eventos de contacto, por contacto, nombre, canal o fecha.
ListarSi va bien: 200.Permiso: Leer.
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
contactId | string (uuid) | No | |
companyId | string (uuid) | No | |
event | string | No | |
from | string (date-time) | No | |
to | string (date-time) | No | |
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
Respuesta
16 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
data | array of object | Sí |
data[].channel | string | null | Sí |
data[].contactId | string (uuid) | Sí |
data[].contactName | string | Sí |
data[].createdAt | string (date-time) | Sí |
data[].createdBy | string (uuid) | Sí |
data[].createdByName | string | Sí |
data[].event | string | Sí |
data[].id | string (uuid) | Sí |
data[].occurredAt | string (date-time) | Sí |
data[].organizationId | string (uuid) | Sí |
data[].properties | object of any | Sí |
data[].reference | string | null | Sí |
page | integer | Sí |
pageSize | integer | Sí |
total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contact-events" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contact-events",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contact-events", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contact-events");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"event": "…",
"properties": {},
"channel": "…",
"reference": "…",
"occurredAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"contactName": "Ana Lima",
"createdByName": "Ana Lima"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/contact-events
Registra algo que hizo un contacto; una reference repetida se guarda una sola vez.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
contactId | string (uuid) | No | |
email | string (email) | No | max length 320 |
name | string | No | min length 1 · max length 200 |
event | string | Sí | |
properties | object of string | number | boolean | null | No | |
occurredAt | string (date-time) | No | |
channel | string | null | No | |
reference | string | No | min length 1 · max length 120 · pattern ^[\w.:-]+$ |
Respuesta
10 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
channel | string | null | Sí |
contactId | string (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
event | string | Sí |
id | string (uuid) | Sí |
occurredAt | string (date-time) | Sí |
organizationId | string (uuid) | Sí |
properties | object of any | Sí |
reference | string | null | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contact-events" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}'const res = await fetch("https://api.firmado.app/v1/contact-events", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contact-events",
headers={"X-Api-Key": "fmd_..."},
json={
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contact-events", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contact-events");
request.Content = new StringContent(""""
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"event": "…",
"properties": {},
"channel": "…",
"reference": "…",
"occurredAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z"
}DELETE/v1/contact-events/{id}
Elimina un evento de 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/contact-events/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/contact-events/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/contact-events/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/contact-events/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contact-events/{id}
Devuelve un evento de contacto con sus propiedades.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
10 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
channel | null en los ejemplos | Sí |
contactId | string (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
event | string | Sí |
id | string (uuid) | Sí |
occurredAt | string (date-time) | Sí |
organizationId | string (uuid) | Sí |
properties | object of any | Sí |
reference | null en los ejemplos | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contact-events/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contact-events/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/{id}")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contact-events/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/{id}"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contact-events/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"event": "…",
"properties": {},
"channel": null,
"reference": null,
"occurredAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z"
}POST/v1/contact-events/batch
Registra hasta 100 eventos de contacto a la vez, indicando cuáles se guardaron.
Crear/batchSi va bien: 200.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
events | array of object | Sí | min items 1 · max items 100 |
events[].contactId | string (uuid) | No | |
events[].email | string (email) | No | max length 320 |
events[].name | string | No | min length 1 · max length 200 |
events[].event | string | Sí | |
events[].properties | object of string | number | boolean | null | No | |
events[].occurredAt | string (date-time) | No | |
events[].channel | string | null | No | |
events[].reference | string | No | min length 1 · max length 120 · pattern ^[\w.:-]+$ |
Respuesta
7 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
recorded | integer | Sí |
results | array of object | Sí |
results[].error | object | No |
results[].error.code | string | Sí |
results[].error.message | string | Sí |
results[].id | string (uuid) | No |
results[].index | integer | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contact-events/batch" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}'const res = await fetch("https://api.firmado.app/v1/contact-events/batch", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contact-events/batch",
headers={"X-Api-Key": "fmd_..."},
json={
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/batch");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/batch")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contact-events/batch", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/batch"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contact-events/batch");
request.Content = new StringContent(""""
{
"events": [
{
"event": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"name": "Ana Lima"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"recorded": 1,
"results": [
{
"index": 1,
"error": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}GET/v1/contact-events/names
Cada nombre de evento en uso, con cuántos hay y el más reciente.
Leer/namesSi va bien: 200.Permiso: Leer.
Respuesta
3 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
[].event | string | Sí |
[].lastAt | string (date-time) | Sí |
[].total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contact-events/names" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/names", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contact-events/names",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/names");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/names")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contact-events/names", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/names"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contact-events/names");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
[
{
"event": "…",
"total": 1,
"lastAt": "2026-11-21T14:00:00.000Z"
}
]GET/v1/contact-events/types
Los tipos de actividad: qué eventos aparecen en las páginas de contactos y empresas, y cómo.
Leer/typesSi va bien: 200.Permiso: Leer.
Ejemplo
curl -X GET "https://api.firmado.app/v1/contact-events/types" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/types", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contact-events/types",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/types");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/types")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contact-events/types", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/types"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contact-events/types");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
[]POST/v1/contact-events/types
Crea un tipo de actividad para un nombre de evento.
Crear/typesSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
event | string | Sí | |
label | string | Sí | min length 1 · max length 80 |
color | "gray" | "blue" | "teal" | "green" | "amber" | "orange" | "red" | "pink" | "violet" | Sí | |
icon | "activity" | "star" | "heart" | "thumbs-up" | "trophy" | "gift" | "cart" | "card" | "user-plus" | "log-in" | "mail" | "phone" | "message" | "calendar" | "map-pin" | "eye" | "download" | "rocket" | "zap" | "alert" | Sí | |
summary | string | null | No | |
showOnCompany | boolean | No | default true |
notify | boolean | No | default false |
active | boolean | No | default true |
Respuesta
12 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
active | boolean | Sí |
color | string | Sí |
createdAt | string (date-time) | Sí |
event | string | Sí |
icon | string | Sí |
id | string (uuid) | Sí |
label | string | Sí |
notify | boolean | Sí |
organizationId | string (uuid) | Sí |
showOnCompany | boolean | Sí |
summary | string | Sí |
updatedAt | string (date-time) | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contact-events/types" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}'const res = await fetch("https://api.firmado.app/v1/contact-events/types", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contact-events/types",
headers={"X-Api-Key": "fmd_..."},
json={
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/types");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/types")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contact-events/types", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/types"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contact-events/types");
request.Content = new StringContent(""""
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"event": "…",
"label": "…",
"color": "…",
"icon": "…",
"summary": "…",
"showOnCompany": true,
"notify": true,
"active": true,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}DELETE/v1/contact-events/types/{id}
Elimina un tipo de actividad; sus eventos se mantienen, sin aparecer como actividad.
Eliminar/types/{id}Si 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/contact-events/types/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contact-events/types/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/contact-events/types/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/types/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/types/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/contact-events/types/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/types/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/contact-events/types/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PUT/v1/contact-events/types/{id}
Cambia un tipo de actividad: etiqueta, color, icono y resumen.
Actualizar/types/{id}Si va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
event | string | Sí | |
label | string | Sí | min length 1 · max length 80 |
color | "gray" | "blue" | "teal" | "green" | "amber" | "orange" | "red" | "pink" | "violet" | Sí | |
icon | "activity" | "star" | "heart" | "thumbs-up" | "trophy" | "gift" | "cart" | "card" | "user-plus" | "log-in" | "mail" | "phone" | "message" | "calendar" | "map-pin" | "eye" | "download" | "rocket" | "zap" | "alert" | Sí | |
summary | string | null | No | |
showOnCompany | boolean | No | default true |
notify | boolean | No | default false |
active | boolean | No | default true |
Respuesta
12 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
active | boolean | Sí |
color | string | Sí |
createdAt | string (date-time) | Sí |
event | string | Sí |
icon | string | Sí |
id | string (uuid) | Sí |
label | string | Sí |
notify | boolean | Sí |
organizationId | string (uuid) | Sí |
showOnCompany | boolean | Sí |
summary | string | Sí |
updatedAt | string (date-time) | Sí |
Ejemplo
curl -X PUT "https://api.firmado.app/v1/contact-events/types/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}'const res = await fetch("https://api.firmado.app/v1/contact-events/types/{id}", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/contact-events/types/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contact-events/types/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contact-events/types/{id}")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/contact-events/types/{id}", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contact-events/types/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://api.firmado.app/v1/contact-events/types/{id}");
request.Content = new StringContent(""""
{
"event": "…",
"label": "…",
"color": "gray",
"icon": "activity"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"event": "…",
"label": "…",
"color": "…",
"icon": "…",
"summary": "…",
"showOnCompany": true,
"notify": true,
"active": true,
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}Eventos de webhook
Cambios de esta funcionalidad que los webhooks pueden enviar.
contact_event.createdCrearcontact_event.deletedEliminar