Contact events
What contacts did in your systems, and the activity types that show it.
Values for the examples
Type them once and every example on this page uses them. The API key stays on this page only and is never saved.
GET/v1/contact-events
Lists contact events, by contact, name, channel or date.
ListOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
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 |
Response
16 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].channel | string | null | Yes |
data[].contactId | string (uuid) | Yes |
data[].contactName | string | Yes |
data[].createdAt | string (date-time) | Yes |
data[].createdBy | string (uuid) | Yes |
data[].createdByName | string | Yes |
data[].event | string | Yes |
data[].id | string (uuid) | Yes |
data[].occurredAt | string (date-time) | Yes |
data[].organizationId | string (uuid) | Yes |
data[].properties | object of any | Yes |
data[].reference | string | null | Yes |
page | integer | Yes |
pageSize | integer | Yes |
total | integer | Yes |
Example
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();Response (200), with sample values:
{
"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
Records something a contact did; a repeated reference is kept once.
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
contactId | string (uuid) | No | |
email | string (email) | No | max length 320 |
name | string | No | min length 1 · max length 200 |
event | string | Yes | |
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.:-]+$ |
Response
10 fields
| Field | Type | Always there |
|---|---|---|
channel | string | null | Yes |
contactId | string (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
event | string | Yes |
id | string (uuid) | Yes |
occurredAt | string (date-time) | Yes |
organizationId | string (uuid) | Yes |
properties | object of any | Yes |
reference | string | null | Yes |
Example
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();Response (201), with sample values:
{
"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}
Deletes a contact event.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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}
Returns a contact event with its properties.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
10 fields
| Field | Type | Always there |
|---|---|---|
channel | null in the examples | Yes |
contactId | string (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
event | string | Yes |
id | string (uuid) | Yes |
occurredAt | string (date-time) | Yes |
organizationId | string (uuid) | Yes |
properties | object of any | Yes |
reference | null in the examples | Yes |
Example
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();Response (200), with sample values:
{
"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
Records up to 100 contact events at once, saying which were kept.
Create/batchOn success: 200.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
events | array of object | Yes | 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 | Yes | |
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.:-]+$ |
Response
7 fields
| Field | Type | Always there |
|---|---|---|
recorded | integer | Yes |
results | array of object | Yes |
results[].error | object | No |
results[].error.code | string | Yes |
results[].error.message | string | Yes |
results[].id | string (uuid) | No |
results[].index | integer | Yes |
Example
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();Response (200), with sample values:
{
"recorded": 1,
"results": [
{
"index": 1,
"error": {},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}GET/v1/contact-events/names
Every event name in use, with how many and the latest.
Read/namesOn success: 200.Permission: Read.
Response
3 fields
| Field | Type | Always there |
|---|---|---|
[].event | string | Yes |
[].lastAt | string (date-time) | Yes |
[].total | integer | Yes |
Example
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();Response (200), with sample values:
[
{
"event": "…",
"total": 1,
"lastAt": "2026-11-21T14:00:00.000Z"
}
]GET/v1/contact-events/types
The activity types: which events show on contacts’ and companies’ pages, and how.
Read/typesOn success: 200.Permission: Read.
Example
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();Response (200), with sample values:
[]POST/v1/contact-events/types
Creates an activity type for an event name.
Create/typesOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
event | string | Yes | |
label | string | Yes | min length 1 · max length 80 |
color | "gray" | "blue" | "teal" | "green" | "amber" | "orange" | "red" | "pink" | "violet" | Yes | |
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" | Yes | |
summary | string | null | No | |
showOnCompany | boolean | No | default true |
notify | boolean | No | default false |
active | boolean | No | default true |
Response
12 fields
| Field | Type | Always there |
|---|---|---|
active | boolean | Yes |
color | string | Yes |
createdAt | string (date-time) | Yes |
event | string | Yes |
icon | string | Yes |
id | string (uuid) | Yes |
label | string | Yes |
notify | boolean | Yes |
organizationId | string (uuid) | Yes |
showOnCompany | boolean | Yes |
summary | string | Yes |
updatedAt | string (date-time) | Yes |
Example
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();Response (201), with sample values:
{
"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}
Deletes an activity type; its events stay, without showing as activity.
Delete/types/{id}On success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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}
Changes an activity type: label, color, icon and summary.
Update/types/{id}On success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
event | string | Yes | |
label | string | Yes | min length 1 · max length 80 |
color | "gray" | "blue" | "teal" | "green" | "amber" | "orange" | "red" | "pink" | "violet" | Yes | |
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" | Yes | |
summary | string | null | No | |
showOnCompany | boolean | No | default true |
notify | boolean | No | default false |
active | boolean | No | default true |
Response
12 fields
| Field | Type | Always there |
|---|---|---|
active | boolean | Yes |
color | string | Yes |
createdAt | string (date-time) | Yes |
event | string | Yes |
icon | string | Yes |
id | string (uuid) | Yes |
label | string | Yes |
notify | boolean | Yes |
organizationId | string (uuid) | Yes |
showOnCompany | boolean | Yes |
summary | string | Yes |
updatedAt | string (date-time) | Yes |
Example
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();Response (200), with sample values:
{
"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"
}Webhook events
Changes of this feature that webhooks can send.
contact_event.createdCreatecontact_event.deletedDelete