Emails
Templates, campaigns, automations and single emails to contacts.
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/emails/automations
Lists the email automations.
Read/automationsOn success: 200.Permission: Read.
Example
curl -X GET "https://api.firmado.app/v1/emails/automations" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/automations", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/automations",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/automations");
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/emails/automations")
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/emails/automations", 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/emails/automations"))
.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/emails/automations");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/automations
Creates an email automation: what starts it and which template it sends.
Create/automationsOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 120 |
kind | "marketing" | "transactional" | No | default "marketing" |
trigger | object | Yes | |
trigger.type | "list.joined" | "contact.created" | "form.submitted" | "deal.accepted" | "invoice.paid" | "appointment.created" | Yes | |
trigger.listId | string (uuid) | null | No | |
trigger.formId | string (uuid) | null | No | |
delayMinutes | integer | No | min 0 · max 43200 · default 0 |
templateId | string (uuid) | null | No | default null |
domainId | string (uuid) | null | No | |
fromName | string | null | No | |
fromLocal | string | null | No | |
replyTo | string (email) | null | No |
Response
19 fields
| Field | Type | Always there |
|---|---|---|
activatedAt | null in the examples | Yes |
active | boolean | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
delayMinutes | integer | Yes |
domainId | null in the examples | Yes |
fromLocal | null in the examples | Yes |
fromName | null in the examples | Yes |
id | string (uuid) | Yes |
kind | string | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
replyTo | null in the examples | Yes |
templateId | string (uuid) | Yes |
trigger | object | Yes |
trigger.formId | null in the examples | Yes |
trigger.listId | string (uuid) | Yes |
trigger.type | string | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/automations" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"kind": "marketing",
"delayMinutes": 0
}'const res = await fetch("https://api.firmado.app/v1/emails/automations", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"kind": "marketing",
"delayMinutes": 0
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/automations",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
"kind": "marketing",
"delayMinutes": 0,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/automations");
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",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"kind": "marketing",
"delayMinutes": 0
}
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/emails/automations")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"kind": "marketing",
"delayMinutes": 0
}
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",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"kind": "marketing",
"delayMinutes": 0
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/automations", 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/emails/automations"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"kind": "marketing",
"delayMinutes": 0
}
"""))
.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/emails/automations");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"kind": "marketing",
"delayMinutes": 0
}
"""", 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",
"name": "Ana Lima",
"active": true,
"kind": "…",
"trigger": {
"type": "…",
"formId": null,
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 1,
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"domainId": null,
"fromName": null,
"fromLocal": null,
"replyTo": null,
"activatedAt": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}DELETE/v1/emails/automations/{id}
Deletes an email automation.
Delete/automations/{id}On success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/emails/automations/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/automations/{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/emails/automations/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/automations/{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/emails/automations/{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/emails/automations/{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/emails/automations/{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/emails/automations/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/emails/automations/{id}
Changes an email automation.
Update/automations/{id}On success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | No | min length 1 · max length 120 |
kind | "marketing" | "transactional" | No | |
trigger | object | No | |
trigger.type | "list.joined" | "contact.created" | "form.submitted" | "deal.accepted" | "invoice.paid" | "appointment.created" | Yes | |
trigger.listId | string (uuid) | null | No | |
trigger.formId | string (uuid) | null | No | |
delayMinutes | integer | No | min 0 · max 43200 |
templateId | string (uuid) | null | No | |
domainId | string (uuid) | null | No | |
fromName | string | null | No | |
fromLocal | string | null | No | |
replyTo | string (email) | null | No |
Example
curl -X PATCH "https://api.firmado.app/v1/emails/automations/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"kind": "marketing",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 0
}'const res = await fetch("https://api.firmado.app/v1/emails/automations/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"kind": "marketing",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 0
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/emails/automations/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"kind": "marketing",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
"delayMinutes": 0,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/automations/{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",
"kind": "marketing",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 0
}
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/emails/automations/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"kind": "marketing",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 0
}
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",
"kind": "marketing",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 0
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/emails/automations/{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/emails/automations/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"kind": "marketing",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 0
}
"""))
.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/emails/automations/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"kind": "marketing",
"trigger": {
"type": "list.joined",
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 0
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/automations/{id}/active
Turns an email automation on or off.
Update/automations/{id}/activeOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
active | boolean | Yes |
Response
19 fields
| Field | Type | Always there |
|---|---|---|
activatedAt | string (date-time) | Yes |
active | boolean | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
delayMinutes | integer | Yes |
domainId | null in the examples | Yes |
fromLocal | null in the examples | Yes |
fromName | null in the examples | Yes |
id | string (uuid) | Yes |
kind | string | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
replyTo | null in the examples | Yes |
templateId | string (uuid) | Yes |
trigger | object | Yes |
trigger.formId | null in the examples | Yes |
trigger.listId | string (uuid) | Yes |
trigger.type | string | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/automations/{id}/active" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"active": true
}'const res = await fetch("https://api.firmado.app/v1/emails/automations/{id}/active", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"active": true
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/automations/{id}/active",
headers={"X-Api-Key": "fmd_..."},
json={
"active": True,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/automations/{id}/active");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"active": 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/emails/automations/{id}/active")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"active": 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(`{
"active": true
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/automations/{id}/active", 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/emails/automations/{id}/active"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"active": 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("POST"), "https://api.firmado.app/v1/emails/automations/{id}/active");
request.Content = new StringContent(""""
{
"active": true
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"active": true,
"kind": "…",
"trigger": {
"type": "…",
"formId": null,
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"delayMinutes": 1,
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"domainId": null,
"fromName": null,
"fromLocal": null,
"replyTo": null,
"activatedAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}GET/v1/emails/campaigns
Lists the email campaigns.
Read/campaignsOn success: 200.Permission: Read.
Example
curl -X GET "https://api.firmado.app/v1/emails/campaigns" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/campaigns", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/campaigns",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns");
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/emails/campaigns")
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/emails/campaigns", 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/emails/campaigns"))
.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/emails/campaigns");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/campaigns
Creates a campaign draft: template, audience and subject.
Create/campaignsOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 120 |
templateId | string (uuid) | null | No | |
subject | string | No | max length 300 · default "" |
preheader | string | No | max length 300 · default "" |
audience | object | No | |
audience.listIds | array of string (uuid) | No | max items 50 |
audience.tagIds | array of string (uuid) | No | max items 50 |
audience.excludeListIds | array of string (uuid) | No | max items 50 |
domainId | string (uuid) | null | No | |
fromName | string | null | No | |
fromLocal | string | null | No | |
replyTo | string (email) | null | No |
Response
33 fields
| Field | Type | Always there |
|---|---|---|
audience | object | Yes |
audience.excludeListIds | array of any | Yes |
audience.listIds | array of string (uuid) | Yes |
audience.tagIds | array of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
domainId | null in the examples | Yes |
error | null in the examples | Yes |
finishedAt | null in the examples | Yes |
fromLocal | null in the examples | Yes |
fromName | null in the examples | Yes |
id | string (uuid) | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
preheader | string | Yes |
recipients | integer | Yes |
replyTo | null in the examples | Yes |
scheduledAt | null in the examples | Yes |
startedAt | null in the examples | Yes |
stats | object | Yes |
stats.bounced | integer | Yes |
stats.clicked | integer | Yes |
stats.complained | integer | Yes |
stats.delivered | integer | Yes |
stats.failed | integer | Yes |
stats.opened | integer | Yes |
stats.queued | integer | Yes |
stats.sent | integer | Yes |
stats.unsubscribed | integer | Yes |
status | string | Yes |
subject | string | Yes |
templateId | string (uuid) | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/campaigns" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "",
"preheader": ""
}'const res = await fetch("https://api.firmado.app/v1/emails/campaigns", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "",
"preheader": ""
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/campaigns",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "",
"preheader": "",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns");
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",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "",
"preheader": ""
}
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/emails/campaigns")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "",
"preheader": ""
}
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",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "",
"preheader": ""
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/campaigns", 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/emails/campaigns"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "",
"preheader": ""
}
"""))
.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/emails/campaigns");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "",
"preheader": ""
}
"""", 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",
"name": "Ana Lima",
"status": "…",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…",
"domainId": null,
"fromName": null,
"fromLocal": null,
"replyTo": null,
"audience": {
"tagIds": [],
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": []
},
"scheduledAt": null,
"startedAt": null,
"finishedAt": null,
"recipients": 1,
"error": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"stats": {
"queued": 1,
"sent": 1,
"delivered": 1,
"opened": 1,
"clicked": 1,
"bounced": 1,
"complained": 1,
"unsubscribed": 1,
"failed": 1
}
}DELETE/v1/emails/campaigns/{id}
Deletes a campaign; one being sent must be canceled first.
Delete/campaigns/{id}On success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/emails/campaigns/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/campaigns/{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/emails/campaigns/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns/{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/emails/campaigns/{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/emails/campaigns/{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/emails/campaigns/{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/emails/campaigns/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/emails/campaigns/{id}
Returns a campaign with its numbers.
Read/campaigns/{id}On success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
33 fields
| Field | Type | Always there |
|---|---|---|
audience | object | Yes |
audience.excludeListIds | array of any | Yes |
audience.listIds | array of string (uuid) | Yes |
audience.tagIds | array of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
domainId | string (uuid) | Yes |
error | null in the examples | Yes |
finishedAt | string | null (date-time) | Yes |
fromLocal | string | Yes |
fromName | string | Yes |
id | string (uuid) | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
preheader | string | Yes |
recipients | integer | Yes |
replyTo | null in the examples | Yes |
scheduledAt | string | null (date-time) | Yes |
startedAt | string | null (date-time) | Yes |
stats | object | Yes |
stats.bounced | integer | Yes |
stats.clicked | integer | Yes |
stats.complained | integer | Yes |
stats.delivered | integer | Yes |
stats.failed | integer | Yes |
stats.opened | integer | Yes |
stats.queued | integer | Yes |
stats.sent | integer | Yes |
stats.unsubscribed | integer | Yes |
status | string | Yes |
subject | string | Yes |
templateId | string (uuid) | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X GET "https://api.firmado.app/v1/emails/campaigns/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/campaigns/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/campaigns/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns/{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/emails/campaigns/{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/emails/campaigns/{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/emails/campaigns/{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/emails/campaigns/{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",
"name": "Ana Lima",
"status": "…",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…",
"domainId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"fromName": "Ana Lima",
"fromLocal": "…",
"replyTo": null,
"audience": {
"tagIds": [],
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": []
},
"scheduledAt": "2026-11-21T14:00:00.000Z",
"startedAt": "2026-11-21T14:00:00.000Z",
"finishedAt": "2026-11-21T14:00:00.000Z",
"recipients": 1,
"error": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"stats": {
"queued": 1,
"sent": 1,
"delivered": 1,
"opened": 1,
"clicked": 1,
"bounced": 1,
"complained": 1,
"unsubscribed": 1,
"failed": 1
}
}PATCH/v1/emails/campaigns/{id}
Changes a campaign draft.
Update/campaigns/{id}On success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | No | min length 1 · max length 120 |
templateId | string (uuid) | null | No | |
subject | string | No | max length 300 |
preheader | string | No | max length 300 |
audience | object | No | |
audience.listIds | array of string (uuid) | No | max items 50 |
audience.tagIds | array of string (uuid) | No | max items 50 |
audience.excludeListIds | array of string (uuid) | No | max items 50 |
domainId | string (uuid) | null | No | |
fromName | string | null | No | |
fromLocal | string | null | No | |
replyTo | string (email) | null | No |
Example
curl -X PATCH "https://api.firmado.app/v1/emails/campaigns/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…"
}'const res = await fetch("https://api.firmado.app/v1/emails/campaigns/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/emails/campaigns/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns/{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",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…"
}
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/emails/campaigns/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…"
}
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",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/emails/campaigns/{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/emails/campaigns/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…"
}
"""))
.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/emails/campaigns/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/campaigns/{id}/cancel
Cancels a scheduled campaign, or stops one being sent.
Update/campaigns/{id}/cancelOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/campaigns/{id}/cancel" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/campaigns/{id}/cancel", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/campaigns/{id}/cancel",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns/{id}/cancel");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
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/emails/campaigns/{id}/cancel")
req = Net::HTTP::Post.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("POST", "https://api.firmado.app/v1/emails/campaigns/{id}/cancel", 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/emails/campaigns/{id}/cancel"))
.header("X-Api-Key", "fmd_...")
.method("POST", 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("POST"), "https://api.firmado.app/v1/emails/campaigns/{id}/cancel");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/campaigns/{id}/duplicate
A new draft with the same content and audience.
Create/campaigns/{id}/duplicateOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 120 |
Example
curl -X POST "https://api.firmado.app/v1/emails/campaigns/{id}/duplicate" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima"
}'const res = await fetch("https://api.firmado.app/v1/emails/campaigns/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/campaigns/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns/{id}/duplicate");
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"
}
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/emails/campaigns/{id}/duplicate")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"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(`{
"name": "Ana Lima"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/campaigns/{id}/duplicate", 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/emails/campaigns/{id}/duplicate"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"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/emails/campaigns/{id}/duplicate");
request.Content = new StringContent(""""
{
"name": "Ana Lima"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/emails/campaigns/{id}/recipients
A campaign’s recipients, with what happened to each email.
Read/campaigns/{id}/recipientsOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
status | string | No | max length 20 |
Example
curl -X GET "https://api.firmado.app/v1/emails/campaigns/{id}/recipients" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/campaigns/{id}/recipients", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/campaigns/{id}/recipients",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns/{id}/recipients");
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/emails/campaigns/{id}/recipients")
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/emails/campaigns/{id}/recipients", 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/emails/campaigns/{id}/recipients"))
.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/emails/campaigns/{id}/recipients");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/campaigns/{id}/schedule
Schedules the campaign for a time, or sends it now.
Update/campaigns/{id}/scheduleOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
at | string (date-time) | null | No |
Response
33 fields
| Field | Type | Always there |
|---|---|---|
audience | object | Yes |
audience.excludeListIds | array of any | Yes |
audience.listIds | array of string (uuid) | Yes |
audience.tagIds | array of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
domainId | string (uuid) | Yes |
error | null in the examples | Yes |
finishedAt | string (date-time) | Yes |
fromLocal | string | Yes |
fromName | string | Yes |
id | string (uuid) | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
preheader | string | Yes |
recipients | integer | Yes |
replyTo | null in the examples | Yes |
scheduledAt | string (date-time) | Yes |
startedAt | string (date-time) | Yes |
stats | object | Yes |
stats.bounced | integer | Yes |
stats.clicked | integer | Yes |
stats.complained | integer | Yes |
stats.delivered | integer | Yes |
stats.failed | integer | Yes |
stats.opened | integer | Yes |
stats.queued | integer | Yes |
stats.sent | integer | Yes |
stats.unsubscribed | integer | Yes |
status | string | Yes |
subject | string | Yes |
templateId | string (uuid) | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/campaigns/{id}/schedule" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"at": "2026-11-21T14:00:00.000Z"
}'const res = await fetch("https://api.firmado.app/v1/emails/campaigns/{id}/schedule", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"at": "2026-11-21T14:00:00.000Z"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/campaigns/{id}/schedule",
headers={"X-Api-Key": "fmd_..."},
json={
"at": "2026-11-21T14:00:00.000Z",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns/{id}/schedule");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"at": "2026-11-21T14:00:00.000Z"
}
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/emails/campaigns/{id}/schedule")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"at": "2026-11-21T14:00:00.000Z"
}
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(`{
"at": "2026-11-21T14:00:00.000Z"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/campaigns/{id}/schedule", 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/emails/campaigns/{id}/schedule"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"at": "2026-11-21T14:00:00.000Z"
}
"""))
.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/emails/campaigns/{id}/schedule");
request.Content = new StringContent(""""
{
"at": "2026-11-21T14:00:00.000Z"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"status": "…",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"subject": "…",
"preheader": "…",
"domainId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"fromName": "Ana Lima",
"fromLocal": "…",
"replyTo": null,
"audience": {
"tagIds": [],
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": []
},
"scheduledAt": "2026-11-21T14:00:00.000Z",
"startedAt": "2026-11-21T14:00:00.000Z",
"finishedAt": "2026-11-21T14:00:00.000Z",
"recipients": 1,
"error": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"stats": {
"queued": 1,
"sent": 1,
"delivered": 1,
"opened": 1,
"clicked": 1,
"bounced": 1,
"complained": 1,
"unsubscribed": 1,
"failed": 1
}
}POST/v1/emails/campaigns/audience
How many contacts an audience reaches now (with consent, address not suppressed).
Read/campaigns/audienceOn success: 200.Permission: Read.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
listIds | array of string (uuid) | No | max items 50 |
tagIds | array of string (uuid) | No | max items 50 |
excludeListIds | array of string (uuid) | No | max items 50 |
Response
1 field
| Field | Type | Always there |
|---|---|---|
recipients | integer | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/campaigns/audience" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}'const res = await fetch("https://api.firmado.app/v1/emails/campaigns/audience", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/campaigns/audience",
headers={"X-Api-Key": "fmd_..."},
json={
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
],
"excludeListIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/campaigns/audience");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": [
"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/emails/campaigns/audience")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": [
"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(`{
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/campaigns/audience", 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/emails/campaigns/audience"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": [
"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/emails/campaigns/audience");
request.Content = new StringContent(""""
{
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"excludeListIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"recipients": 1
}GET/v1/emails/catalog
Searches the services, products and packages a catalog block can show.
Read/catalogOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
q | string | No | max length 200 |
kind | "service" | "product" | "package" | No |
Response
14 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].currency | string | Yes |
data[].description | string | Yes |
data[].id | string (uuid) | Yes |
data[].image | string (uri) | Yes |
data[].itemKind | string | Yes |
data[].kind | string | Yes |
data[].name | string | Yes |
data[].prices | object | Yes |
data[].prices.BRL | object | Yes |
data[].prices.BRL.original | null in the examples | Yes |
data[].prices.BRL.price | integer | Yes |
data[].thumbnail | string (uri) | Yes |
data[].url | string (uri) | Yes |
Example
curl -X GET "https://api.firmado.app/v1/emails/catalog" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/catalog", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/catalog",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/catalog");
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/emails/catalog")
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/emails/catalog", 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/emails/catalog"))
.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/emails/catalog");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"data": [
{
"kind": "…",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"itemKind": "…",
"name": "Ana Lima",
"description": "…",
"image": "https://example.com",
"thumbnail": "https://example.com",
"currency": "USD",
"prices": {},
"url": "https://example.com"
}
]
}POST/v1/emails/catalog/cards
The cards of some catalog items as emails show them.
Read/catalog/cardsOn success: 200.Permission: Read.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
items | array of object | Yes | max items 50 |
items[].kind | "service" | "package" | Yes | |
items[].id | string (uuid) | Yes |
Response
14 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].currency | string | Yes |
data[].description | string | Yes |
data[].id | string (uuid) | Yes |
data[].image | null in the examples | Yes |
data[].itemKind | null in the examples | Yes |
data[].kind | string | Yes |
data[].name | string | Yes |
data[].prices | object | Yes |
data[].prices.BRL | object | Yes |
data[].prices.BRL.original | integer | Yes |
data[].prices.BRL.price | integer | Yes |
data[].thumbnail | null in the examples | Yes |
data[].url | null in the examples | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/catalog/cards" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"items": [
{
"kind": "service",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}'const res = await fetch("https://api.firmado.app/v1/emails/catalog/cards", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"items": [
{
"kind": "service",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/catalog/cards",
headers={"X-Api-Key": "fmd_..."},
json={
"items": [
{
"kind": "service",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/catalog/cards");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"items": [
{
"kind": "service",
"id": "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/emails/catalog/cards")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"items": [
{
"kind": "service",
"id": "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(`{
"items": [
{
"kind": "service",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/catalog/cards", 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/emails/catalog/cards"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"items": [
{
"kind": "service",
"id": "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/emails/catalog/cards");
request.Content = new StringContent(""""
{
"items": [
{
"kind": "service",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"data": [
{
"kind": "…",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"itemKind": null,
"name": "Ana Lima",
"description": "…",
"image": null,
"thumbnail": null,
"currency": "USD",
"prices": {},
"url": null
}
]
}POST/v1/emails/images
Uploads an image for emails to the file library.
Create/imagesOn success: 201.Permission: Create.
Body: a multipart form, with the file in `file`
| Field | Type | Required | Notes |
|---|---|---|---|
file | string (binary) | Yes |
Response
12 fields
| Field | Type | Always there |
|---|---|---|
bytes | integer | Yes |
contentType | string | Yes |
createdAt | string (date-time) | Yes |
deletable | boolean | Yes |
group | string | Yes |
id | string (uuid) | Yes |
key | string | Yes |
name | string | Yes |
owner | null in the examples | Yes |
updatedAt | string (date-time) | Yes |
url | string (uri) | Yes |
usedIn | array of any | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/images" \
-H "X-Api-Key: fmd_..." \
-F "file=@./file.pdf"import { openAsBlob } from "node:fs"
const form = new FormData()
form.append("file", await openAsBlob("./file.pdf"), "file.pdf")
const res = await fetch("https://api.firmado.app/v1/emails/images", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
body: form,
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/images",
headers={"X-Api-Key": "fmd_..."},
files={"file": open("file.pdf", "rb")},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/images");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
CURLOPT_POSTFIELDS => ["file" => new CURLFile("file.pdf")],
]);
$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/emails/images")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req.set_form([["file", File.open("file.pdf")]], "multipart/form-data")
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)var buf bytes.Buffer
form := multipart.NewWriter(&buf)
part, _ := form.CreateFormFile("file", "file.pdf")
f, _ := os.Open("file.pdf")
io.Copy(part, f)
form.Close()
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/images", &buf)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", form.FormDataContentType())
res, err := http.DefaultClient.Do(req)// Multipart is simplest with OkHttp (com.squareup.okhttp3:okhttp)
var body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("file", "file.pdf", RequestBody.create(new File("file.pdf"), null))
.build();
var request = new Request.Builder()
.url("https://api.firmado.app/v1/emails/images")
.header("X-Api-Key", "fmd_...")
.method("POST", body)
.build();
var response = new OkHttpClient().newCall(request).execute();using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/emails/images");
request.Content = new MultipartFormDataContent { { new StreamContent(File.OpenRead("file.pdf")), "file", "file.pdf" } };
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"key": "…",
"name": "Ana Lima",
"group": "…",
"contentType": "…",
"bytes": 1,
"url": "https://example.com",
"deletable": true,
"owner": null,
"usedIn": [],
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}POST/v1/emails/preview
Renders an email document as HTML and text, optionally with a contact’s values.
Read/previewOn success: 200.Permission: Read.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
document | object | Yes | |
document.version | 1 | No | default 1 |
document.settings | object | No | |
document.settings.backdropColor | string | No | default "#f4f4f5" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.contentColor | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.width | integer | No | min 320 · max 900 · default 600 |
document.settings.fontFamily | string | No | max length 60 · default "Arial" |
document.settings.headingFontFamily | string | No | max length 60 · default "Arial" |
document.settings.fontSize | integer | No | min 0 · max 40 · default 16 |
document.settings.lineHeight | number | No | min 0.8 · max 3 · default 1.5 |
document.settings.textColor | string | No | default "#1f2937" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.headingColor | string | No | default "#111827" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.linkColor | string | No | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.primaryColor | string | No | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.onPrimaryColor | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.radius | integer | No | min 0 · max 40 · default 0 |
document.settings.outerPadding | integer | No | min 0 · max 120 · default 24 |
document.header | object | No | |
document.header.show | boolean | No | default true |
document.header.placement | "inside" | "outside" | No | default "outside" |
document.header.color | string | null | No | default null |
document.header.linkColor | string | null | No | default null |
document.header.backgroundColor | string | null | No | default null |
document.header.fontSize | integer | No | min 0 · max 24 · default 12 |
document.header.padding | object | No | |
document.header.padding.top | integer | Yes | min 0 · max 200 |
document.header.padding.right | integer | Yes | min 0 · max 200 |
document.header.padding.bottom | integer | Yes | min 0 · max 200 |
document.header.padding.left | integer | Yes | min 0 · max 200 |
document.header.presetId | string | null | No | default null |
document.header.custom | object | null | No | default null |
document.header.custom.text | string | No | max length 300 · default "" |
document.header.custom.linkLabel | string | No | max length 60 · default "" |
document.footer | object | No | |
document.footer.placement | "inside" | "outside" | No | default "inside" |
document.footer.color | string | null | No | default null |
document.footer.linkColor | string | null | No | default null |
document.footer.backgroundColor | string | null | No | default null |
document.footer.fontSize | integer | No | min 0 · max 24 · default 12 |
document.footer.padding | object | No | |
document.footer.padding.top | integer | Yes | min 0 · max 200 |
document.footer.padding.right | integer | Yes | min 0 · max 200 |
document.footer.padding.bottom | integer | Yes | min 0 · max 200 |
document.footer.padding.left | integer | Yes | min 0 · max 200 |
document.footer.align | "left" | "center" | "right" | No | default "center" |
document.footer.presetId | string | null | No | default null |
document.footer.custom | object | null | No | default null |
document.footer.custom.html | string | No | max length 50000 · default "" |
document.footer.custom.unsubscribeLabel | string | Yes | min length 1 · max length 100 |
document.footer.custom.showAddress | boolean | No | default true |
document.rows | array of object | Yes | max items 100 |
document.rows[].id | string | Yes | min length 1 · max length 40 |
document.rows[].columns | array of object | Yes | min items 1 · max items 4 |
document.rows[].columns[].id | string | Yes | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Yes | max items 60 |
document.rows[].columns[].backgroundColor | string | null | No | default null |
document.rows[].columns[].padding | object | No | |
document.rows[].columns[].radius | integer | No | min 0 · max 100 · default 0 |
document.rows[].columns[].verticalAlign | "top" | "middle" | "bottom" | No | default "top" |
document.rows[].widths | array of number | Yes | min items 1 · max items 4 |
document.rows[].backgroundColor | string | null | No | default null |
document.rows[].backgroundImage | string | No | max length 2000 · default "" |
document.rows[].fullWidth | boolean | No | default false |
document.rows[].padding | object | No | |
document.rows[].padding.top | integer | Yes | min 0 · max 200 |
document.rows[].padding.right | integer | Yes | min 0 · max 200 |
document.rows[].padding.bottom | integer | Yes | min 0 · max 200 |
document.rows[].padding.left | integer | Yes | min 0 · max 200 |
document.rows[].radius | integer | No | min 0 · max 100 · default 0 |
document.rows[].borderColor | string | null | No | default null |
document.rows[].borderWidth | integer | No | min 0 · max 10 · default 0 |
document.rows[].stackOnMobile | boolean | No | default true |
document.rows[].hideOn | "mobile" | "desktop" | null | No | default null |
subject | string | No | max length 300 · default "" |
preheader | string | No | max length 300 · default "" |
kind | "marketing" | "transactional" | No | default "marketing" |
contactId | string (uuid) | null | No |
Response
3 fields
| Field | Type | Always there |
|---|---|---|
html | string | Yes |
subject | string | Yes |
text | string | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/preview" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
},
"subject": "",
"preheader": "",
"kind": "marketing"
}'const res = await fetch("https://api.firmado.app/v1/emails/preview", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
},
"subject": "",
"preheader": "",
"kind": "marketing"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/preview",
headers={"X-Api-Key": "fmd_..."},
json={
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…",
},
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial",
},
"header": {
"show": True,
"placement": "inside",
"color": "…",
"linkColor": "…",
},
},
"subject": "",
"preheader": "",
"kind": "marketing",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/preview");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
},
"subject": "",
"preheader": "",
"kind": "marketing"
}
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/emails/preview")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
},
"subject": "",
"preheader": "",
"kind": "marketing"
}
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(`{
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
},
"subject": "",
"preheader": "",
"kind": "marketing"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/preview", 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/emails/preview"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
},
"subject": "",
"preheader": "",
"kind": "marketing"
}
"""))
.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/emails/preview");
request.Content = new StringContent(""""
{
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
},
"subject": "",
"preheader": "",
"kind": "marketing"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"html": "…",
"subject": "…",
"text": "…"
}GET/v1/emails/saved-blocks
Lists the blocks kept to reuse in templates.
Read/saved-blocksOn success: 200.Permission: Read.
Response
57 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].block | object | null | Yes |
data[].block.align | string | Yes |
data[].block.backgroundColor | null in the examples | Yes |
data[].block.borderColor | null in the examples | Yes |
data[].block.borderWidth | integer | Yes |
data[].block.buttonColor | null in the examples | Yes |
data[].block.fontFamily | null in the examples | Yes |
data[].block.fontSize | integer | Yes |
data[].block.fontWeight | integer | Yes |
data[].block.fullWidth | boolean | Yes |
data[].block.hideOn | null in the examples | Yes |
data[].block.id | string | Yes |
data[].block.innerPadding | object | Yes |
data[].block.innerPadding.horizontal | integer | Yes |
data[].block.innerPadding.vertical | integer | Yes |
data[].block.label | string | Yes |
data[].block.padding | object | Yes |
data[].block.padding.bottom | integer | Yes |
data[].block.padding.left | integer | Yes |
data[].block.padding.right | integer | Yes |
data[].block.padding.top | integer | Yes |
data[].block.radius | integer | Yes |
data[].block.textColor | null in the examples | Yes |
data[].block.type | string | Yes |
data[].block.url | string (uri) | Yes |
data[].createdAt | string (date-time) | Yes |
data[].createdBy | string (uuid) | Yes |
data[].icon | string | Yes |
data[].id | string (uuid) | Yes |
data[].kind | string | Yes |
data[].name | string | Yes |
data[].row | object | null | Yes |
data[].row.backgroundColor | null in the examples | Yes |
data[].row.backgroundImage | string | Yes |
data[].row.borderColor | null in the examples | Yes |
data[].row.borderWidth | integer | Yes |
data[].row.columns | array of object | Yes |
data[].row.columns[].backgroundColor | null in the examples | Yes |
data[].row.columns[].blocks | array of object | Yes |
data[].row.columns[].id | string | Yes |
data[].row.columns[].padding | object | Yes |
data[].row.columns[].radius | integer | Yes |
data[].row.columns[].verticalAlign | string | Yes |
data[].row.fullWidth | boolean | Yes |
data[].row.hideOn | null in the examples | Yes |
data[].row.id | string | Yes |
data[].row.padding | object | Yes |
data[].row.padding.bottom | integer | Yes |
data[].row.padding.left | integer | Yes |
data[].row.padding.right | integer | Yes |
data[].row.padding.top | integer | Yes |
data[].row.radius | integer | Yes |
data[].row.stackOnMobile | boolean | Yes |
data[].row.widths | array of integer | Yes |
data[].updatedAt | string (date-time) | Yes |
limit | integer | Yes |
Example
curl -X GET "https://api.firmado.app/v1/emails/saved-blocks" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/saved-blocks", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/saved-blocks",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/saved-blocks");
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/emails/saved-blocks")
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/emails/saved-blocks", 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/emails/saved-blocks"))
.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/emails/saved-blocks");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"icon": "…",
"kind": "…",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"block": {},
"row": {}
}
],
"limit": 1
}POST/v1/emails/saved-blocks
Keeps a block to reuse in templates.
Create/saved-blocksOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
kind | "block" | No | default "block" |
name | string | Yes | min length 1 · max length 60 |
icon | "blocks" | "star" | "heart" | "megaphone" | "gift" | "tag" | "shopping-bag" | "calendar" | "image" | "mail" | "phone" | "map-pin" | "sparkles" | "zap" | "users" | "file-text" | No | default "blocks" |
block | object | Yes | |
block.type | "heading" | Yes | |
block.id | string | Yes | min length 1 · max length 40 |
block.padding | object | No | |
block.padding.top | integer | Yes | min 0 · max 200 |
block.padding.right | integer | Yes | min 0 · max 200 |
block.padding.bottom | integer | Yes | min 0 · max 200 |
block.padding.left | integer | Yes | min 0 · max 200 |
block.backgroundColor | string | null | No | default null |
block.hideOn | "mobile" | "desktop" | null | No | default null |
block.fontFamily | string | null | No | default null |
block.fontSize | integer | null | No | default null |
block.color | string | null | No | default null |
block.lineHeight | number | null | No | default null |
block.letterSpacing | number | No | min -5 · max 20 · default 0 |
block.align | "left" | "center" | "right" | No | default "left" |
block.html | string | Yes | max length 50000 |
block.level | 1 | 2 | 3 | No | default 1 |
block.fontWeight | integer | No | min 100 · max 900 · default 700 |
Response
81 fields
| Field | Type | Always there |
|---|---|---|
block | object | null | Yes |
block.align | string | Yes |
block.backgroundColor | null in the examples | Yes |
block.borderColor | null in the examples | Yes |
block.borderWidth | integer | Yes |
block.buttonColor | null in the examples | Yes |
block.fontFamily | null in the examples | Yes |
block.fontSize | integer | Yes |
block.fontWeight | integer | Yes |
block.fullWidth | boolean | Yes |
block.hideOn | null in the examples | Yes |
block.id | string | Yes |
block.innerPadding | object | Yes |
block.innerPadding.horizontal | integer | Yes |
block.innerPadding.vertical | integer | Yes |
block.label | string | Yes |
block.padding | object | Yes |
block.padding.bottom | integer | Yes |
block.padding.left | integer | Yes |
block.padding.right | integer | Yes |
block.padding.top | integer | Yes |
block.radius | integer | Yes |
block.textColor | null in the examples | Yes |
block.type | string | Yes |
block.url | string (uri) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
icon | string | Yes |
id | string (uuid) | Yes |
kind | string | Yes |
name | string | Yes |
row | object | null | Yes |
row.backgroundColor | null in the examples | Yes |
row.backgroundImage | string | Yes |
row.borderColor | null in the examples | Yes |
row.borderWidth | integer | Yes |
row.columns | array of object | Yes |
row.columns[].backgroundColor | null in the examples | Yes |
row.columns[].blocks | array of object | Yes |
row.columns[].blocks[].align | string | Yes |
row.columns[].blocks[].backgroundColor | null in the examples | Yes |
row.columns[].blocks[].borderColor | null in the examples | No |
row.columns[].blocks[].borderWidth | integer | No |
row.columns[].blocks[].buttonColor | null in the examples | No |
row.columns[].blocks[].color | null in the examples | No |
row.columns[].blocks[].fontFamily | null in the examples | Yes |
row.columns[].blocks[].fontSize | integer | null | Yes |
row.columns[].blocks[].fontWeight | integer | No |
row.columns[].blocks[].fullWidth | boolean | No |
row.columns[].blocks[].hideOn | null in the examples | Yes |
row.columns[].blocks[].html | string | No |
row.columns[].blocks[].id | string | Yes |
row.columns[].blocks[].innerPadding | object | No |
row.columns[].blocks[].label | string | No |
row.columns[].blocks[].letterSpacing | integer | No |
row.columns[].blocks[].lineHeight | null in the examples | No |
row.columns[].blocks[].padding | object | Yes |
row.columns[].blocks[].radius | integer | No |
row.columns[].blocks[].textColor | null in the examples | No |
row.columns[].blocks[].type | string | Yes |
row.columns[].blocks[].url | string (uri) | No |
row.columns[].id | string | Yes |
row.columns[].padding | object | Yes |
row.columns[].padding.bottom | integer | Yes |
row.columns[].padding.left | integer | Yes |
row.columns[].padding.right | integer | Yes |
row.columns[].padding.top | integer | Yes |
row.columns[].radius | integer | Yes |
row.columns[].verticalAlign | string | Yes |
row.fullWidth | boolean | Yes |
row.hideOn | null in the examples | Yes |
row.id | string | Yes |
row.padding | object | Yes |
row.padding.bottom | integer | Yes |
row.padding.left | integer | Yes |
row.padding.right | integer | Yes |
row.padding.top | integer | Yes |
row.radius | integer | Yes |
row.stackOnMobile | boolean | Yes |
row.widths | array of integer | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/saved-blocks" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"block": {
"type": "heading",
"id": "…",
"html": "…",
"padding": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0
}
},
"kind": "block",
"icon": "blocks"
}'const res = await fetch("https://api.firmado.app/v1/emails/saved-blocks", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"block": {
"type": "heading",
"id": "…",
"html": "…",
"padding": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0
}
},
"kind": "block",
"icon": "blocks"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/saved-blocks",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"block": {
"type": "heading",
"id": "…",
"html": "…",
"padding": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0,
},
},
"kind": "block",
"icon": "blocks",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/saved-blocks");
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",
"block": {
"type": "heading",
"id": "…",
"html": "…",
"padding": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0
}
},
"kind": "block",
"icon": "blocks"
}
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/emails/saved-blocks")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"block": {
"type": "heading",
"id": "…",
"html": "…",
"padding": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0
}
},
"kind": "block",
"icon": "blocks"
}
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",
"block": {
"type": "heading",
"id": "…",
"html": "…",
"padding": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0
}
},
"kind": "block",
"icon": "blocks"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/saved-blocks", 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/emails/saved-blocks"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"block": {
"type": "heading",
"id": "…",
"html": "…",
"padding": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0
}
},
"kind": "block",
"icon": "blocks"
}
"""))
.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/emails/saved-blocks");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"block": {
"type": "heading",
"id": "…",
"html": "…",
"padding": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0
}
},
"kind": "block",
"icon": "blocks"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"icon": "…",
"kind": "…",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"block": {
"id": "…",
"url": "https://example.com",
"type": "…",
"align": "…",
"label": "…",
"hideOn": null,
"radius": 1,
"padding": {
"top": 1,
"left": 1,
"right": 1,
"bottom": 1
},
"fontSize": 1,
"fullWidth": true,
"textColor": null,
"fontFamily": null,
"fontWeight": 1,
"borderColor": null,
"borderWidth": 1,
"buttonColor": null,
"innerPadding": {
"vertical": 1,
"horizontal": 1
},
"backgroundColor": null
},
"row": {
"id": "…",
"hideOn": null,
"radius": 1,
"widths": [
1
],
"columns": [
{}
],
"padding": {
"top": 1,
"left": 1,
"right": 1,
"bottom": 1
},
"fullWidth": true,
"borderColor": null,
"borderWidth": 1,
"stackOnMobile": true,
"backgroundColor": null,
"backgroundImage": "…"
}
}DELETE/v1/emails/saved-blocks/{id}
Deletes a saved block; templates that used it keep their copy.
Delete/saved-blocks/{id}On success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/emails/saved-blocks/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/saved-blocks/{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/emails/saved-blocks/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/saved-blocks/{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/emails/saved-blocks/{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/emails/saved-blocks/{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/emails/saved-blocks/{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/emails/saved-blocks/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/emails/saved-blocks/{id}
Renames a saved block or changes its icon.
Update/saved-blocks/{id}On success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | No | min length 1 · max length 60 |
icon | "blocks" | "star" | "heart" | "megaphone" | "gift" | "tag" | "shopping-bag" | "calendar" | "image" | "mail" | "phone" | "map-pin" | "sparkles" | "zap" | "users" | "file-text" | No |
Response
33 fields
| Field | Type | Always there |
|---|---|---|
block | object | Yes |
block.align | string | Yes |
block.backgroundColor | null in the examples | Yes |
block.borderColor | null in the examples | Yes |
block.borderWidth | integer | Yes |
block.buttonColor | null in the examples | Yes |
block.fontFamily | null in the examples | Yes |
block.fontSize | integer | Yes |
block.fontWeight | integer | Yes |
block.fullWidth | boolean | Yes |
block.hideOn | null in the examples | Yes |
block.id | string | Yes |
block.innerPadding | object | Yes |
block.innerPadding.horizontal | integer | Yes |
block.innerPadding.vertical | integer | Yes |
block.label | string | Yes |
block.padding | object | Yes |
block.padding.bottom | integer | Yes |
block.padding.left | integer | Yes |
block.padding.right | integer | Yes |
block.padding.top | integer | Yes |
block.radius | integer | Yes |
block.textColor | null in the examples | Yes |
block.type | string | Yes |
block.url | string (uri) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
icon | string | Yes |
id | string (uuid) | Yes |
kind | string | Yes |
name | string | Yes |
row | null in the examples | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X PATCH "https://api.firmado.app/v1/emails/saved-blocks/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"icon": "blocks"
}'const res = await fetch("https://api.firmado.app/v1/emails/saved-blocks/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"icon": "blocks"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/emails/saved-blocks/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"icon": "blocks",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/saved-blocks/{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",
"icon": "blocks"
}
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/emails/saved-blocks/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"icon": "blocks"
}
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",
"icon": "blocks"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/emails/saved-blocks/{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/emails/saved-blocks/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"icon": "blocks"
}
"""))
.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/emails/saved-blocks/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"icon": "blocks"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"icon": "…",
"kind": "…",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"block": {
"id": "…",
"url": "https://example.com",
"type": "…",
"align": "…",
"label": "…",
"hideOn": null,
"radius": 1,
"padding": {
"top": 1,
"left": 1,
"right": 1,
"bottom": 1
},
"fontSize": 1,
"fullWidth": true,
"textColor": null,
"fontFamily": null,
"fontWeight": 1,
"borderColor": null,
"borderWidth": 1,
"buttonColor": null,
"innerPadding": {
"vertical": 1,
"horizontal": 1
},
"backgroundColor": null
},
"row": null
}POST/v1/emails/send
Sends a template to one contact or address (transactional unless said otherwise).
Create/sendOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
templateId | string (uuid) | Yes | |
contactId | string (uuid) | No | |
to | string (email) | No | |
kind | "transactional" | "marketing" | No | default "transactional" |
data | object of string | number | boolean | null | No | |
subject | string | No | max length 300 |
domainId | string (uuid) | null | No | |
fromName | string | null | No | |
fromLocal | string | null | No | |
replyTo | string (email) | null | No | |
sendAt | string (date-time) | No |
Response
22 fields
| Field | Type | Always there |
|---|---|---|
automationId | null in the examples | Yes |
bouncedAt | null in the examples | Yes |
campaignId | null in the examples | Yes |
clickedAt | null in the examples | Yes |
clicks | integer | Yes |
complainedAt | null in the examples | Yes |
contactId | string (uuid) | Yes |
createdAt | string (date-time) | Yes |
deliveredAt | null in the examples | Yes |
email | string (email) | Yes |
error | string | null | Yes |
id | string (uuid) | Yes |
kind | string | Yes |
openedAt | null in the examples | Yes |
opens | integer | Yes |
sendAfter | string (date-time) | Yes |
sentAt | string | null (date-time) | Yes |
source | string | Yes |
status | string | Yes |
subject | string | null | Yes |
templateId | string (uuid) | Yes |
unsubscribedAt | null in the examples | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/send" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"to": "[email protected]",
"kind": "transactional"
}'const res = await fetch("https://api.firmado.app/v1/emails/send", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"to": "[email protected]",
"kind": "transactional"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/send",
headers={"X-Api-Key": "fmd_..."},
json={
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"to": "[email protected]",
"kind": "transactional",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/send");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"to": "[email protected]",
"kind": "transactional"
}
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/emails/send")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"to": "[email protected]",
"kind": "transactional"
}
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(`{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"to": "[email protected]",
"kind": "transactional"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/send", 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/emails/send"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"to": "[email protected]",
"kind": "transactional"
}
"""))
.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/emails/send");
request.Content = new StringContent(""""
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"to": "[email protected]",
"kind": "transactional"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"automationId": null,
"bouncedAt": null,
"campaignId": null,
"clickedAt": null,
"clicks": 1,
"complainedAt": null,
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"deliveredAt": null,
"email": "[email protected]",
"error": "…",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"kind": "…",
"openedAt": null,
"opens": 1,
"sendAfter": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"source": "…",
"status": "…",
"subject": "…",
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"unsubscribedAt": null
}GET/v1/emails/sends
Lists the emails sent, with their status, opens and clicks.
Read/sendsOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
contactId | string (uuid) | No | |
source | "campaign" | "automation" | "api" | "manual" | "test" | No |
Example
curl -X GET "https://api.firmado.app/v1/emails/sends" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/sends", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/sends",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/sends");
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/emails/sends")
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/emails/sends", 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/emails/sends"))
.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/emails/sends");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/emails/sends/{id}
Returns one email sent, with what happened to it.
Read/sends/{id}On success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X GET "https://api.firmado.app/v1/emails/sends/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/sends/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/sends/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/sends/{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/emails/sends/{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/emails/sends/{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/emails/sends/{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/emails/sends/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/emails/templates
Lists the email templates.
Read/templatesOn success: 200.Permission: Read.
Example
curl -X GET "https://api.firmado.app/v1/emails/templates" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/templates", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/templates",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/templates");
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/emails/templates")
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/emails/templates", 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/emails/templates"))
.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/emails/templates");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/templates
Creates an email template.
Create/templatesOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 120 |
subject | string | No | max length 300 · default "" |
preheader | string | No | max length 300 · default "" |
document | object | No | |
document.version | 1 | No | default 1 |
document.settings | object | No | |
document.settings.backdropColor | string | No | default "#f4f4f5" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.contentColor | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.width | integer | No | min 320 · max 900 · default 600 |
document.settings.fontFamily | string | No | max length 60 · default "Arial" |
document.settings.headingFontFamily | string | No | max length 60 · default "Arial" |
document.settings.fontSize | integer | No | min 0 · max 40 · default 16 |
document.settings.lineHeight | number | No | min 0.8 · max 3 · default 1.5 |
document.settings.textColor | string | No | default "#1f2937" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.headingColor | string | No | default "#111827" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.linkColor | string | No | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.primaryColor | string | No | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.onPrimaryColor | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.radius | integer | No | min 0 · max 40 · default 0 |
document.settings.outerPadding | integer | No | min 0 · max 120 · default 24 |
document.header | object | No | |
document.header.show | boolean | No | default true |
document.header.placement | "inside" | "outside" | No | default "outside" |
document.header.color | string | null | No | default null |
document.header.linkColor | string | null | No | default null |
document.header.backgroundColor | string | null | No | default null |
document.header.fontSize | integer | No | min 0 · max 24 · default 12 |
document.header.padding | object | No | |
document.header.padding.top | integer | Yes | min 0 · max 200 |
document.header.padding.right | integer | Yes | min 0 · max 200 |
document.header.padding.bottom | integer | Yes | min 0 · max 200 |
document.header.padding.left | integer | Yes | min 0 · max 200 |
document.header.presetId | string | null | No | default null |
document.header.custom | object | null | No | default null |
document.header.custom.text | string | No | max length 300 · default "" |
document.header.custom.linkLabel | string | No | max length 60 · default "" |
document.footer | object | No | |
document.footer.placement | "inside" | "outside" | No | default "inside" |
document.footer.color | string | null | No | default null |
document.footer.linkColor | string | null | No | default null |
document.footer.backgroundColor | string | null | No | default null |
document.footer.fontSize | integer | No | min 0 · max 24 · default 12 |
document.footer.padding | object | No | |
document.footer.padding.top | integer | Yes | min 0 · max 200 |
document.footer.padding.right | integer | Yes | min 0 · max 200 |
document.footer.padding.bottom | integer | Yes | min 0 · max 200 |
document.footer.padding.left | integer | Yes | min 0 · max 200 |
document.footer.align | "left" | "center" | "right" | No | default "center" |
document.footer.presetId | string | null | No | default null |
document.footer.custom | object | null | No | default null |
document.footer.custom.html | string | No | max length 50000 · default "" |
document.footer.custom.unsubscribeLabel | string | Yes | min length 1 · max length 100 |
document.footer.custom.showAddress | boolean | No | default true |
document.rows | array of object | Yes | max items 100 |
document.rows[].id | string | Yes | min length 1 · max length 40 |
document.rows[].columns | array of object | Yes | min items 1 · max items 4 |
document.rows[].columns[].id | string | Yes | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Yes | max items 60 |
document.rows[].columns[].backgroundColor | string | null | No | default null |
document.rows[].columns[].padding | object | No | |
document.rows[].columns[].radius | integer | No | min 0 · max 100 · default 0 |
document.rows[].columns[].verticalAlign | "top" | "middle" | "bottom" | No | default "top" |
document.rows[].widths | array of number | Yes | min items 1 · max items 4 |
document.rows[].backgroundColor | string | null | No | default null |
document.rows[].backgroundImage | string | No | max length 2000 · default "" |
document.rows[].fullWidth | boolean | No | default false |
document.rows[].padding | object | No | |
document.rows[].padding.top | integer | Yes | min 0 · max 200 |
document.rows[].padding.right | integer | Yes | min 0 · max 200 |
document.rows[].padding.bottom | integer | Yes | min 0 · max 200 |
document.rows[].padding.left | integer | Yes | min 0 · max 200 |
document.rows[].radius | integer | No | min 0 · max 100 · default 0 |
document.rows[].borderColor | string | null | No | default null |
document.rows[].borderWidth | integer | No | min 0 · max 10 · default 0 |
document.rows[].stackOnMobile | boolean | No | default true |
document.rows[].hideOn | "mobile" | "desktop" | null | No | default null |
Response
79 fields
| Field | Type | Always there |
|---|---|---|
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
document | object | Yes |
document.footer | object | Yes |
document.footer.align | string | Yes |
document.footer.backgroundColor | null in the examples | Yes |
document.footer.color | string | null | Yes |
document.footer.custom | object | null | Yes |
document.footer.custom.html | string | Yes |
document.footer.custom.showAddress | boolean | Yes |
document.footer.custom.unsubscribeLabel | string | Yes |
document.footer.fontSize | integer | Yes |
document.footer.linkColor | null in the examples | Yes |
document.footer.padding | object | Yes |
document.footer.padding.bottom | integer | Yes |
document.footer.padding.left | integer | Yes |
document.footer.padding.right | integer | Yes |
document.footer.padding.top | integer | Yes |
document.footer.placement | string | Yes |
document.footer.presetId | null in the examples | Yes |
document.header | object | Yes |
document.header.backgroundColor | null in the examples | Yes |
document.header.color | null in the examples | Yes |
document.header.custom | null in the examples | Yes |
document.header.fontSize | integer | Yes |
document.header.linkColor | null in the examples | Yes |
document.header.padding | object | Yes |
document.header.padding.bottom | integer | Yes |
document.header.padding.left | integer | Yes |
document.header.padding.right | integer | Yes |
document.header.padding.top | integer | Yes |
document.header.placement | string | Yes |
document.header.presetId | null in the examples | Yes |
document.header.show | boolean | Yes |
document.rows | array of object | Yes |
document.rows[].backgroundColor | null in the examples | Yes |
document.rows[].backgroundImage | string | Yes |
document.rows[].borderColor | null in the examples | Yes |
document.rows[].borderWidth | integer | Yes |
document.rows[].columns | array of object | Yes |
document.rows[].columns[].backgroundColor | null in the examples | Yes |
document.rows[].columns[].blocks | array of object | Yes |
document.rows[].columns[].id | string | Yes |
document.rows[].columns[].padding | object | Yes |
document.rows[].columns[].radius | integer | Yes |
document.rows[].columns[].verticalAlign | string | Yes |
document.rows[].fullWidth | boolean | Yes |
document.rows[].hideOn | null in the examples | Yes |
document.rows[].id | string | Yes |
document.rows[].padding | object | Yes |
document.rows[].padding.bottom | integer | Yes |
document.rows[].padding.left | integer | Yes |
document.rows[].padding.right | integer | Yes |
document.rows[].padding.top | integer | Yes |
document.rows[].radius | integer | Yes |
document.rows[].stackOnMobile | boolean | Yes |
document.rows[].widths | array of integer | Yes |
document.settings | object | Yes |
document.settings.backdropColor | string | Yes |
document.settings.contentColor | string | Yes |
document.settings.fontFamily | string | Yes |
document.settings.fontSize | integer | Yes |
document.settings.headingColor | string | Yes |
document.settings.headingFontFamily | string | Yes |
document.settings.lineHeight | number | Yes |
document.settings.linkColor | string | Yes |
document.settings.onPrimaryColor | string | Yes |
document.settings.outerPadding | integer | Yes |
document.settings.primaryColor | string | Yes |
document.settings.radius | integer | Yes |
document.settings.textColor | string | Yes |
document.settings.width | integer | Yes |
document.version | integer | Yes |
id | string (uuid) | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
preheader | string | Yes |
subject | string | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/templates" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"subject": "",
"preheader": "",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}'const res = await fetch("https://api.firmado.app/v1/emails/templates", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"subject": "",
"preheader": "",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/templates",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"subject": "",
"preheader": "",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…",
},
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial",
},
"header": {
"show": True,
"placement": "inside",
"color": "…",
"linkColor": "…",
},
},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/templates");
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",
"subject": "",
"preheader": "",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}
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/emails/templates")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"subject": "",
"preheader": "",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}
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",
"subject": "",
"preheader": "",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/templates", 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/emails/templates"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"subject": "",
"preheader": "",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}
"""))
.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/emails/templates");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"subject": "",
"preheader": "",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"document": {
"footer": {
"align": "…",
"backgroundColor": null,
"color": "…",
"custom": {},
"fontSize": 1,
"linkColor": null,
"padding": {},
"placement": "…",
"presetId": null
},
"header": {
"backgroundColor": null,
"color": null,
"custom": null,
"fontSize": 1,
"linkColor": null,
"padding": {},
"placement": "…",
"presetId": null,
"show": true
},
"rows": [
{}
],
"settings": {
"backdropColor": "…",
"contentColor": "…",
"fontFamily": "…",
"fontSize": 1,
"headingColor": "…",
"headingFontFamily": "…",
"lineHeight": 1,
"linkColor": "…",
"onPrimaryColor": "…",
"outerPadding": 1,
"primaryColor": "…",
"radius": 1,
"textColor": "…",
"width": 1
},
"version": 1
},
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"preheader": "…",
"subject": "…",
"updatedAt": "2026-11-21T14:00:00.000Z"
}DELETE/v1/emails/templates/{id}
Deletes an email template.
Delete/templates/{id}On success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/emails/templates/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/templates/{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/emails/templates/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/templates/{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/emails/templates/{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/emails/templates/{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/emails/templates/{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/emails/templates/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/emails/templates/{id}
Returns an email template with its document.
Read/templates/{id}On success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
15 fields
| Field | Type | Always there |
|---|---|---|
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
document | object | Yes |
document.rows | array of object | Yes |
document.rows[].columns | array of object | Yes |
document.rows[].columns[].blocks | array of object | Yes |
document.rows[].columns[].id | string | Yes |
document.rows[].id | string | Yes |
document.rows[].widths | array of integer | Yes |
id | string (uuid) | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
preheader | string | Yes |
subject | string | Yes |
updatedAt | string (date-time) | Yes |
Example
curl -X GET "https://api.firmado.app/v1/emails/templates/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/templates/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/templates/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/templates/{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/emails/templates/{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/emails/templates/{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/emails/templates/{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/emails/templates/{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",
"name": "Ana Lima",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{}
]
},
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}PATCH/v1/emails/templates/{id}
Changes an email template.
Update/templates/{id}On success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | No | min length 1 · max length 120 |
subject | string | No | max length 300 |
preheader | string | No | max length 300 |
document | object | No | |
document.version | 1 | No | default 1 |
document.settings | object | No | |
document.settings.backdropColor | string | No | default "#f4f4f5" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.contentColor | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.width | integer | No | min 320 · max 900 · default 600 |
document.settings.fontFamily | string | No | max length 60 · default "Arial" |
document.settings.headingFontFamily | string | No | max length 60 · default "Arial" |
document.settings.fontSize | integer | No | min 0 · max 40 · default 16 |
document.settings.lineHeight | number | No | min 0.8 · max 3 · default 1.5 |
document.settings.textColor | string | No | default "#1f2937" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.headingColor | string | No | default "#111827" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.linkColor | string | No | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.primaryColor | string | No | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.onPrimaryColor | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.radius | integer | No | min 0 · max 40 · default 0 |
document.settings.outerPadding | integer | No | min 0 · max 120 · default 24 |
document.header | object | No | |
document.header.show | boolean | No | default true |
document.header.placement | "inside" | "outside" | No | default "outside" |
document.header.color | string | null | No | default null |
document.header.linkColor | string | null | No | default null |
document.header.backgroundColor | string | null | No | default null |
document.header.fontSize | integer | No | min 0 · max 24 · default 12 |
document.header.padding | object | No | |
document.header.padding.top | integer | Yes | min 0 · max 200 |
document.header.padding.right | integer | Yes | min 0 · max 200 |
document.header.padding.bottom | integer | Yes | min 0 · max 200 |
document.header.padding.left | integer | Yes | min 0 · max 200 |
document.header.presetId | string | null | No | default null |
document.header.custom | object | null | No | default null |
document.header.custom.text | string | No | max length 300 · default "" |
document.header.custom.linkLabel | string | No | max length 60 · default "" |
document.footer | object | No | |
document.footer.placement | "inside" | "outside" | No | default "inside" |
document.footer.color | string | null | No | default null |
document.footer.linkColor | string | null | No | default null |
document.footer.backgroundColor | string | null | No | default null |
document.footer.fontSize | integer | No | min 0 · max 24 · default 12 |
document.footer.padding | object | No | |
document.footer.padding.top | integer | Yes | min 0 · max 200 |
document.footer.padding.right | integer | Yes | min 0 · max 200 |
document.footer.padding.bottom | integer | Yes | min 0 · max 200 |
document.footer.padding.left | integer | Yes | min 0 · max 200 |
document.footer.align | "left" | "center" | "right" | No | default "center" |
document.footer.presetId | string | null | No | default null |
document.footer.custom | object | null | No | default null |
document.footer.custom.html | string | No | max length 50000 · default "" |
document.footer.custom.unsubscribeLabel | string | Yes | min length 1 · max length 100 |
document.footer.custom.showAddress | boolean | No | default true |
document.rows | array of object | Yes | max items 100 |
document.rows[].id | string | Yes | min length 1 · max length 40 |
document.rows[].columns | array of object | Yes | min items 1 · max items 4 |
document.rows[].columns[].id | string | Yes | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Yes | max items 60 |
document.rows[].columns[].backgroundColor | string | null | No | default null |
document.rows[].columns[].padding | object | No | |
document.rows[].columns[].radius | integer | No | min 0 · max 100 · default 0 |
document.rows[].columns[].verticalAlign | "top" | "middle" | "bottom" | No | default "top" |
document.rows[].widths | array of number | Yes | min items 1 · max items 4 |
document.rows[].backgroundColor | string | null | No | default null |
document.rows[].backgroundImage | string | No | max length 2000 · default "" |
document.rows[].fullWidth | boolean | No | default false |
document.rows[].padding | object | No | |
document.rows[].padding.top | integer | Yes | min 0 · max 200 |
document.rows[].padding.right | integer | Yes | min 0 · max 200 |
document.rows[].padding.bottom | integer | Yes | min 0 · max 200 |
document.rows[].padding.left | integer | Yes | min 0 · max 200 |
document.rows[].radius | integer | No | min 0 · max 100 · default 0 |
document.rows[].borderColor | string | null | No | default null |
document.rows[].borderWidth | integer | No | min 0 · max 10 · default 0 |
document.rows[].stackOnMobile | boolean | No | default true |
document.rows[].hideOn | "mobile" | "desktop" | null | No | default null |
Example
curl -X PATCH "https://api.firmado.app/v1/emails/templates/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}'const res = await fetch("https://api.firmado.app/v1/emails/templates/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/emails/templates/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…",
},
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial",
},
"header": {
"show": True,
"placement": "inside",
"color": "…",
"linkColor": "…",
},
},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/templates/{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",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}
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/emails/templates/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}
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",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/emails/templates/{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/emails/templates/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}
"""))
.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/emails/templates/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"subject": "…",
"preheader": "…",
"document": {
"rows": [
{
"id": "…",
"columns": [],
"widths": [],
"backgroundColor": "…"
}
],
"version": 1,
"settings": {
"backdropColor": "#f4f4f5",
"contentColor": "#ffffff",
"width": 600,
"fontFamily": "Arial"
},
"header": {
"show": true,
"placement": "inside",
"color": "…",
"linkColor": "…"
}
}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/templates/{id}/duplicate
Copies an email template.
Create/templates/{id}/duplicateOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 120 |
Example
curl -X POST "https://api.firmado.app/v1/emails/templates/{id}/duplicate" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima"
}'const res = await fetch("https://api.firmado.app/v1/emails/templates/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/templates/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/templates/{id}/duplicate");
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"
}
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/emails/templates/{id}/duplicate")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"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(`{
"name": "Ana Lima"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/templates/{id}/duplicate", 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/emails/templates/{id}/duplicate"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"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/emails/templates/{id}/duplicate");
request.Content = new StringContent(""""
{
"name": "Ana Lima"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/emails/test
Sends a test of a template or campaign to members’ addresses.
Create/testOn success: 200.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
templateId | string (uuid) | No | |
campaignId | string (uuid) | No | |
emails | array of string (email) | Yes | min items 1 · max items 5 |
contactId | string (uuid) | null | No | |
kind | "marketing" | "transactional" | No | default "marketing" |
Response
5 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].email | string (email) | Yes |
data[].error | null in the examples | Yes |
data[].id | string (uuid) | Yes |
data[].status | string | Yes |
Example
curl -X POST "https://api.firmado.app/v1/emails/test" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"emails": [
"[email protected]"
],
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"campaignId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'const res = await fetch("https://api.firmado.app/v1/emails/test", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"emails": [
"[email protected]"
],
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"campaignId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/emails/test",
headers={"X-Api-Key": "fmd_..."},
json={
"emails": [
"[email protected]",
],
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"campaignId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/test");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"emails": [
"[email protected]"
],
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"campaignId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "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/emails/test")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"emails": [
"[email protected]"
],
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"campaignId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "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(`{
"emails": [
"[email protected]"
],
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"campaignId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/emails/test", 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/emails/test"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"emails": [
"[email protected]"
],
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"campaignId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "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/emails/test");
request.Content = new StringContent(""""
{
"emails": [
"[email protected]"
],
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"campaignId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"email": "[email protected]",
"status": "…",
"error": null
}
]
}GET/v1/emails/theme
The organization’s theme, for emails that follow it.
Read/themeOn success: 200.Permission: Read.
Example
curl -X GET "https://api.firmado.app/v1/emails/theme" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/theme", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/theme",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/theme");
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/emails/theme")
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/emails/theme", 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/emails/theme"))
.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/emails/theme");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/emails/variables
The {{...}} variables an email can show: contact, company and organization.
Read/variablesOn success: 200.Permission: Read.
Example
curl -X GET "https://api.firmado.app/v1/emails/variables" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/emails/variables", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/emails/variables",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/emails/variables");
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/emails/variables")
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/emails/variables", 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/emails/variables"))
.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/emails/variables");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Webhook events
Changes of this feature that webhooks can send.
email_template.createdCreateemail_template.updatedUpdateemail_template.deletedDeleteemail_campaign.createdCreateemail_campaign.updatedUpdateemail_campaign.sentUpdateemail_campaign.deletedDeleteemail_automation.createdCreateemail_automation.updatedUpdateemail_automation.deletedDeleteemail.deliveredUpdateemail.bouncedUpdateemail.complainedUpdateemail.openedUpdateemail.clickedUpdateemail.unsubscribedUpdate