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_..."

POST/v1/emails/automations

Creates an email automation: what starts it and which template it sends.

Create/automationsOn success: 201.Permission: Create.

Body

FieldTypeRequiredNotes
namestringYesmin length 1 · max length 120
kind"marketing" | "transactional"Nodefault "marketing"
triggerobjectYes
trigger.type"list.joined" | "contact.created" | "form.submitted" | "deal.accepted" | "invoice.paid" | "appointment.created"Yes
trigger.listIdstring (uuid) | nullNo
trigger.formIdstring (uuid) | nullNo
delayMinutesintegerNomin 0 · max 43200 · default 0
templateIdstring (uuid) | nullNodefault null
domainIdstring (uuid) | nullNo
fromNamestring | nullNo
fromLocalstring | nullNo
replyTostring (email) | nullNo

Response

19 fields
FieldTypeAlways there
activatedAtnull in the examplesYes
activebooleanYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
delayMinutesintegerYes
domainIdnull in the examplesYes
fromLocalnull in the examplesYes
fromNamenull in the examplesYes
idstring (uuid)Yes
kindstringYes
namestringYes
organizationIdstring (uuid)Yes
replyTonull in the examplesYes
templateIdstring (uuid)Yes
triggerobjectYes
trigger.formIdnull in the examplesYes
trigger.listIdstring (uuid)Yes
trigger.typestringYes
updatedAtstring (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
}'

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

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/emails/automations/{id}" \
  -H "X-Api-Key: fmd_..."

PATCH/v1/emails/automations/{id}

Changes an email automation.

Update/automations/{id}On success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
namestringNomin length 1 · max length 120
kind"marketing" | "transactional"No
triggerobjectNo
trigger.type"list.joined" | "contact.created" | "form.submitted" | "deal.accepted" | "invoice.paid" | "appointment.created"Yes
trigger.listIdstring (uuid) | nullNo
trigger.formIdstring (uuid) | nullNo
delayMinutesintegerNomin 0 · max 43200
templateIdstring (uuid) | nullNo
domainIdstring (uuid) | nullNo
fromNamestring | nullNo
fromLocalstring | nullNo
replyTostring (email) | nullNo
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
}'

POST/v1/emails/automations/{id}/active

Turns an email automation on or off.

Update/automations/{id}/activeOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
activebooleanYes

Response

19 fields
FieldTypeAlways there
activatedAtstring (date-time)Yes
activebooleanYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
delayMinutesintegerYes
domainIdnull in the examplesYes
fromLocalnull in the examplesYes
fromNamenull in the examplesYes
idstring (uuid)Yes
kindstringYes
namestringYes
organizationIdstring (uuid)Yes
replyTonull in the examplesYes
templateIdstring (uuid)Yes
triggerobjectYes
trigger.formIdnull in the examplesYes
trigger.listIdstring (uuid)Yes
trigger.typestringYes
updatedAtstring (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
}'

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_..."

POST/v1/emails/campaigns

Creates a campaign draft: template, audience and subject.

Create/campaignsOn success: 201.Permission: Create.

Body

FieldTypeRequiredNotes
namestringYesmin length 1 · max length 120
templateIdstring (uuid) | nullNo
subjectstringNomax length 300 · default ""
preheaderstringNomax length 300 · default ""
audienceobjectNo
audience.listIdsarray of string (uuid)Nomax items 50
audience.tagIdsarray of string (uuid)Nomax items 50
audience.excludeListIdsarray of string (uuid)Nomax items 50
domainIdstring (uuid) | nullNo
fromNamestring | nullNo
fromLocalstring | nullNo
replyTostring (email) | nullNo

Response

33 fields
FieldTypeAlways there
audienceobjectYes
audience.excludeListIdsarray of anyYes
audience.listIdsarray of string (uuid)Yes
audience.tagIdsarray of anyYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
domainIdnull in the examplesYes
errornull in the examplesYes
finishedAtnull in the examplesYes
fromLocalnull in the examplesYes
fromNamenull in the examplesYes
idstring (uuid)Yes
namestringYes
organizationIdstring (uuid)Yes
preheaderstringYes
recipientsintegerYes
replyTonull in the examplesYes
scheduledAtnull in the examplesYes
startedAtnull in the examplesYes
statsobjectYes
stats.bouncedintegerYes
stats.clickedintegerYes
stats.complainedintegerYes
stats.deliveredintegerYes
stats.failedintegerYes
stats.openedintegerYes
stats.queuedintegerYes
stats.sentintegerYes
stats.unsubscribedintegerYes
statusstringYes
subjectstringYes
templateIdstring (uuid)Yes
updatedAtstring (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": ""
}'

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

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/emails/campaigns/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/emails/campaigns/{id}

Returns a campaign with its numbers.

Read/campaigns/{id}On success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

33 fields
FieldTypeAlways there
audienceobjectYes
audience.excludeListIdsarray of anyYes
audience.listIdsarray of string (uuid)Yes
audience.tagIdsarray of anyYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
domainIdstring (uuid)Yes
errornull in the examplesYes
finishedAtstring | null (date-time)Yes
fromLocalstringYes
fromNamestringYes
idstring (uuid)Yes
namestringYes
organizationIdstring (uuid)Yes
preheaderstringYes
recipientsintegerYes
replyTonull in the examplesYes
scheduledAtstring | null (date-time)Yes
startedAtstring | null (date-time)Yes
statsobjectYes
stats.bouncedintegerYes
stats.clickedintegerYes
stats.complainedintegerYes
stats.deliveredintegerYes
stats.failedintegerYes
stats.openedintegerYes
stats.queuedintegerYes
stats.sentintegerYes
stats.unsubscribedintegerYes
statusstringYes
subjectstringYes
templateIdstring (uuid)Yes
updatedAtstring (date-time)Yes
Example
curl -X GET "https://api.firmado.app/v1/emails/campaigns/{id}" \
  -H "X-Api-Key: fmd_..."

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

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
namestringNomin length 1 · max length 120
templateIdstring (uuid) | nullNo
subjectstringNomax length 300
preheaderstringNomax length 300
audienceobjectNo
audience.listIdsarray of string (uuid)Nomax items 50
audience.tagIdsarray of string (uuid)Nomax items 50
audience.excludeListIdsarray of string (uuid)Nomax items 50
domainIdstring (uuid) | nullNo
fromNamestring | nullNo
fromLocalstring | nullNo
replyTostring (email) | nullNo
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": "…"
}'

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

FieldTypeRequiredNotes
idstringYes
Example
curl -X POST "https://api.firmado.app/v1/emails/campaigns/{id}/cancel" \
  -H "X-Api-Key: fmd_..."

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

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
namestringYesmin 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"
}'

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

FieldTypeRequiredNotes
idstringYes

Query parameters

FieldTypeRequiredNotes
pageintegerNomin 1 · default 1
statusstringNomax length 20
Example
curl -X GET "https://api.firmado.app/v1/emails/campaigns/{id}/recipients" \
  -H "X-Api-Key: fmd_..."

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

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
atstring (date-time) | nullNo

Response

33 fields
FieldTypeAlways there
audienceobjectYes
audience.excludeListIdsarray of anyYes
audience.listIdsarray of string (uuid)Yes
audience.tagIdsarray of anyYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
domainIdstring (uuid)Yes
errornull in the examplesYes
finishedAtstring (date-time)Yes
fromLocalstringYes
fromNamestringYes
idstring (uuid)Yes
namestringYes
organizationIdstring (uuid)Yes
preheaderstringYes
recipientsintegerYes
replyTonull in the examplesYes
scheduledAtstring (date-time)Yes
startedAtstring (date-time)Yes
statsobjectYes
stats.bouncedintegerYes
stats.clickedintegerYes
stats.complainedintegerYes
stats.deliveredintegerYes
stats.failedintegerYes
stats.openedintegerYes
stats.queuedintegerYes
stats.sentintegerYes
stats.unsubscribedintegerYes
statusstringYes
subjectstringYes
templateIdstring (uuid)Yes
updatedAtstring (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"
}'

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

FieldTypeRequiredNotes
listIdsarray of string (uuid)Nomax items 50
tagIdsarray of string (uuid)Nomax items 50
excludeListIdsarray of string (uuid)Nomax items 50

Response

1 field
FieldTypeAlways there
recipientsintegerYes
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"
  ]
}'

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

FieldTypeRequiredNotes
qstringNomax length 200
kind"service" | "product" | "package"No

Response

14 fields
FieldTypeAlways there
dataarray of objectYes
data[].currencystringYes
data[].descriptionstringYes
data[].idstring (uuid)Yes
data[].imagestring (uri)Yes
data[].itemKindstringYes
data[].kindstringYes
data[].namestringYes
data[].pricesobjectYes
data[].prices.BRLobjectYes
data[].prices.BRL.originalnull in the examplesYes
data[].prices.BRL.priceintegerYes
data[].thumbnailstring (uri)Yes
data[].urlstring (uri)Yes
Example
curl -X GET "https://api.firmado.app/v1/emails/catalog" \
  -H "X-Api-Key: fmd_..."

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

FieldTypeRequiredNotes
itemsarray of objectYesmax items 50
items[].kind"service" | "package"Yes
items[].idstring (uuid)Yes

Response

14 fields
FieldTypeAlways there
dataarray of objectYes
data[].currencystringYes
data[].descriptionstringYes
data[].idstring (uuid)Yes
data[].imagenull in the examplesYes
data[].itemKindnull in the examplesYes
data[].kindstringYes
data[].namestringYes
data[].pricesobjectYes
data[].prices.BRLobjectYes
data[].prices.BRL.originalintegerYes
data[].prices.BRL.priceintegerYes
data[].thumbnailnull in the examplesYes
data[].urlnull in the examplesYes
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"
    }
  ]
}'

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`

FieldTypeRequiredNotes
filestring (binary)Yes

Response

12 fields
FieldTypeAlways there
bytesintegerYes
contentTypestringYes
createdAtstring (date-time)Yes
deletablebooleanYes
groupstringYes
idstring (uuid)Yes
keystringYes
namestringYes
ownernull in the examplesYes
updatedAtstring (date-time)Yes
urlstring (uri)Yes
usedInarray of anyYes
Example
curl -X POST "https://api.firmado.app/v1/emails/images" \
  -H "X-Api-Key: fmd_..." \
  -F "file=@./file.pdf"

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

FieldTypeRequiredNotes
documentobjectYes
document.version1Nodefault 1
document.settingsobjectNo
document.settings.backdropColorstringNodefault "#f4f4f5" · pattern ^#[0-9a-fA-F]{6}$
document.settings.contentColorstringNodefault "#ffffff" · pattern ^#[0-9a-fA-F]{6}$
document.settings.widthintegerNomin 320 · max 900 · default 600
document.settings.fontFamilystringNomax length 60 · default "Arial"
document.settings.headingFontFamilystringNomax length 60 · default "Arial"
document.settings.fontSizeintegerNomin 0 · max 40 · default 16
document.settings.lineHeightnumberNomin 0.8 · max 3 · default 1.5
document.settings.textColorstringNodefault "#1f2937" · pattern ^#[0-9a-fA-F]{6}$
document.settings.headingColorstringNodefault "#111827" · pattern ^#[0-9a-fA-F]{6}$
document.settings.linkColorstringNodefault "#2563eb" · pattern ^#[0-9a-fA-F]{6}$
document.settings.primaryColorstringNodefault "#2563eb" · pattern ^#[0-9a-fA-F]{6}$
document.settings.onPrimaryColorstringNodefault "#ffffff" · pattern ^#[0-9a-fA-F]{6}$
document.settings.radiusintegerNomin 0 · max 40 · default 0
document.settings.outerPaddingintegerNomin 0 · max 120 · default 24
document.headerobjectNo
document.header.showbooleanNodefault true
document.header.placement"inside" | "outside"Nodefault "outside"
document.header.colorstring | nullNodefault null
document.header.linkColorstring | nullNodefault null
document.header.backgroundColorstring | nullNodefault null
document.header.fontSizeintegerNomin 0 · max 24 · default 12
document.header.paddingobjectNo
document.header.padding.topintegerYesmin 0 · max 200
document.header.padding.rightintegerYesmin 0 · max 200
document.header.padding.bottomintegerYesmin 0 · max 200
document.header.padding.leftintegerYesmin 0 · max 200
document.header.presetIdstring | nullNodefault null
document.header.customobject | nullNodefault null
document.header.custom.textstringNomax length 300 · default ""
document.header.custom.linkLabelstringNomax length 60 · default ""
document.footerobjectNo
document.footer.placement"inside" | "outside"Nodefault "inside"
document.footer.colorstring | nullNodefault null
document.footer.linkColorstring | nullNodefault null
document.footer.backgroundColorstring | nullNodefault null
document.footer.fontSizeintegerNomin 0 · max 24 · default 12
document.footer.paddingobjectNo
document.footer.padding.topintegerYesmin 0 · max 200
document.footer.padding.rightintegerYesmin 0 · max 200
document.footer.padding.bottomintegerYesmin 0 · max 200
document.footer.padding.leftintegerYesmin 0 · max 200
document.footer.align"left" | "center" | "right"Nodefault "center"
document.footer.presetIdstring | nullNodefault null
document.footer.customobject | nullNodefault null
document.footer.custom.htmlstringNomax length 50000 · default ""
document.footer.custom.unsubscribeLabelstringYesmin length 1 · max length 100
document.footer.custom.showAddressbooleanNodefault true
document.rowsarray of objectYesmax items 100
document.rows[].idstringYesmin length 1 · max length 40
document.rows[].columnsarray of objectYesmin items 1 · max items 4
document.rows[].columns[].idstringYesmin length 1 · max length 40
document.rows[].columns[].blocksarray of objectYesmax items 60
document.rows[].columns[].backgroundColorstring | nullNodefault null
document.rows[].columns[].paddingobjectNo
document.rows[].columns[].radiusintegerNomin 0 · max 100 · default 0
document.rows[].columns[].verticalAlign"top" | "middle" | "bottom"Nodefault "top"
document.rows[].widthsarray of numberYesmin items 1 · max items 4
document.rows[].backgroundColorstring | nullNodefault null
document.rows[].backgroundImagestringNomax length 2000 · default ""
document.rows[].fullWidthbooleanNodefault false
document.rows[].paddingobjectNo
document.rows[].padding.topintegerYesmin 0 · max 200
document.rows[].padding.rightintegerYesmin 0 · max 200
document.rows[].padding.bottomintegerYesmin 0 · max 200
document.rows[].padding.leftintegerYesmin 0 · max 200
document.rows[].radiusintegerNomin 0 · max 100 · default 0
document.rows[].borderColorstring | nullNodefault null
document.rows[].borderWidthintegerNomin 0 · max 10 · default 0
document.rows[].stackOnMobilebooleanNodefault true
document.rows[].hideOn"mobile" | "desktop" | nullNodefault null
subjectstringNomax length 300 · default ""
preheaderstringNomax length 300 · default ""
kind"marketing" | "transactional"Nodefault "marketing"
contactIdstring (uuid) | nullNo

Response

3 fields
FieldTypeAlways there
htmlstringYes
subjectstringYes
textstringYes
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"
}'

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
FieldTypeAlways there
dataarray of objectYes
data[].blockobject | nullYes
data[].block.alignstringYes
data[].block.backgroundColornull in the examplesYes
data[].block.borderColornull in the examplesYes
data[].block.borderWidthintegerYes
data[].block.buttonColornull in the examplesYes
data[].block.fontFamilynull in the examplesYes
data[].block.fontSizeintegerYes
data[].block.fontWeightintegerYes
data[].block.fullWidthbooleanYes
data[].block.hideOnnull in the examplesYes
data[].block.idstringYes
data[].block.innerPaddingobjectYes
data[].block.innerPadding.horizontalintegerYes
data[].block.innerPadding.verticalintegerYes
data[].block.labelstringYes
data[].block.paddingobjectYes
data[].block.padding.bottomintegerYes
data[].block.padding.leftintegerYes
data[].block.padding.rightintegerYes
data[].block.padding.topintegerYes
data[].block.radiusintegerYes
data[].block.textColornull in the examplesYes
data[].block.typestringYes
data[].block.urlstring (uri)Yes
data[].createdAtstring (date-time)Yes
data[].createdBystring (uuid)Yes
data[].iconstringYes
data[].idstring (uuid)Yes
data[].kindstringYes
data[].namestringYes
data[].rowobject | nullYes
data[].row.backgroundColornull in the examplesYes
data[].row.backgroundImagestringYes
data[].row.borderColornull in the examplesYes
data[].row.borderWidthintegerYes
data[].row.columnsarray of objectYes
data[].row.columns[].backgroundColornull in the examplesYes
data[].row.columns[].blocksarray of objectYes
data[].row.columns[].idstringYes
data[].row.columns[].paddingobjectYes
data[].row.columns[].radiusintegerYes
data[].row.columns[].verticalAlignstringYes
data[].row.fullWidthbooleanYes
data[].row.hideOnnull in the examplesYes
data[].row.idstringYes
data[].row.paddingobjectYes
data[].row.padding.bottomintegerYes
data[].row.padding.leftintegerYes
data[].row.padding.rightintegerYes
data[].row.padding.topintegerYes
data[].row.radiusintegerYes
data[].row.stackOnMobilebooleanYes
data[].row.widthsarray of integerYes
data[].updatedAtstring (date-time)Yes
limitintegerYes
Example
curl -X GET "https://api.firmado.app/v1/emails/saved-blocks" \
  -H "X-Api-Key: fmd_..."

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

FieldTypeRequiredNotes
kind"block"Nodefault "block"
namestringYesmin 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"Nodefault "blocks"
blockobjectYes
block.type"heading"Yes
block.idstringYesmin length 1 · max length 40
block.paddingobjectNo
block.padding.topintegerYesmin 0 · max 200
block.padding.rightintegerYesmin 0 · max 200
block.padding.bottomintegerYesmin 0 · max 200
block.padding.leftintegerYesmin 0 · max 200
block.backgroundColorstring | nullNodefault null
block.hideOn"mobile" | "desktop" | nullNodefault null
block.fontFamilystring | nullNodefault null
block.fontSizeinteger | nullNodefault null
block.colorstring | nullNodefault null
block.lineHeightnumber | nullNodefault null
block.letterSpacingnumberNomin -5 · max 20 · default 0
block.align"left" | "center" | "right"Nodefault "left"
block.htmlstringYesmax length 50000
block.level1 | 2 | 3Nodefault 1
block.fontWeightintegerNomin 100 · max 900 · default 700

Response

81 fields
FieldTypeAlways there
blockobject | nullYes
block.alignstringYes
block.backgroundColornull in the examplesYes
block.borderColornull in the examplesYes
block.borderWidthintegerYes
block.buttonColornull in the examplesYes
block.fontFamilynull in the examplesYes
block.fontSizeintegerYes
block.fontWeightintegerYes
block.fullWidthbooleanYes
block.hideOnnull in the examplesYes
block.idstringYes
block.innerPaddingobjectYes
block.innerPadding.horizontalintegerYes
block.innerPadding.verticalintegerYes
block.labelstringYes
block.paddingobjectYes
block.padding.bottomintegerYes
block.padding.leftintegerYes
block.padding.rightintegerYes
block.padding.topintegerYes
block.radiusintegerYes
block.textColornull in the examplesYes
block.typestringYes
block.urlstring (uri)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
iconstringYes
idstring (uuid)Yes
kindstringYes
namestringYes
rowobject | nullYes
row.backgroundColornull in the examplesYes
row.backgroundImagestringYes
row.borderColornull in the examplesYes
row.borderWidthintegerYes
row.columnsarray of objectYes
row.columns[].backgroundColornull in the examplesYes
row.columns[].blocksarray of objectYes
row.columns[].blocks[].alignstringYes
row.columns[].blocks[].backgroundColornull in the examplesYes
row.columns[].blocks[].borderColornull in the examplesNo
row.columns[].blocks[].borderWidthintegerNo
row.columns[].blocks[].buttonColornull in the examplesNo
row.columns[].blocks[].colornull in the examplesNo
row.columns[].blocks[].fontFamilynull in the examplesYes
row.columns[].blocks[].fontSizeinteger | nullYes
row.columns[].blocks[].fontWeightintegerNo
row.columns[].blocks[].fullWidthbooleanNo
row.columns[].blocks[].hideOnnull in the examplesYes
row.columns[].blocks[].htmlstringNo
row.columns[].blocks[].idstringYes
row.columns[].blocks[].innerPaddingobjectNo
row.columns[].blocks[].labelstringNo
row.columns[].blocks[].letterSpacingintegerNo
row.columns[].blocks[].lineHeightnull in the examplesNo
row.columns[].blocks[].paddingobjectYes
row.columns[].blocks[].radiusintegerNo
row.columns[].blocks[].textColornull in the examplesNo
row.columns[].blocks[].typestringYes
row.columns[].blocks[].urlstring (uri)No
row.columns[].idstringYes
row.columns[].paddingobjectYes
row.columns[].padding.bottomintegerYes
row.columns[].padding.leftintegerYes
row.columns[].padding.rightintegerYes
row.columns[].padding.topintegerYes
row.columns[].radiusintegerYes
row.columns[].verticalAlignstringYes
row.fullWidthbooleanYes
row.hideOnnull in the examplesYes
row.idstringYes
row.paddingobjectYes
row.padding.bottomintegerYes
row.padding.leftintegerYes
row.padding.rightintegerYes
row.padding.topintegerYes
row.radiusintegerYes
row.stackOnMobilebooleanYes
row.widthsarray of integerYes
updatedAtstring (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"
}'

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

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/emails/saved-blocks/{id}" \
  -H "X-Api-Key: fmd_..."

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

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
namestringNomin 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
FieldTypeAlways there
blockobjectYes
block.alignstringYes
block.backgroundColornull in the examplesYes
block.borderColornull in the examplesYes
block.borderWidthintegerYes
block.buttonColornull in the examplesYes
block.fontFamilynull in the examplesYes
block.fontSizeintegerYes
block.fontWeightintegerYes
block.fullWidthbooleanYes
block.hideOnnull in the examplesYes
block.idstringYes
block.innerPaddingobjectYes
block.innerPadding.horizontalintegerYes
block.innerPadding.verticalintegerYes
block.labelstringYes
block.paddingobjectYes
block.padding.bottomintegerYes
block.padding.leftintegerYes
block.padding.rightintegerYes
block.padding.topintegerYes
block.radiusintegerYes
block.textColornull in the examplesYes
block.typestringYes
block.urlstring (uri)Yes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
iconstringYes
idstring (uuid)Yes
kindstringYes
namestringYes
rownull in the examplesYes
updatedAtstring (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"
}'

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

FieldTypeRequiredNotes
templateIdstring (uuid)Yes
contactIdstring (uuid)No
tostring (email)No
kind"transactional" | "marketing"Nodefault "transactional"
dataobject of string | number | boolean | nullNo
subjectstringNomax length 300
domainIdstring (uuid) | nullNo
fromNamestring | nullNo
fromLocalstring | nullNo
replyTostring (email) | nullNo
sendAtstring (date-time)No

Response

22 fields
FieldTypeAlways there
automationIdnull in the examplesYes
bouncedAtnull in the examplesYes
campaignIdnull in the examplesYes
clickedAtnull in the examplesYes
clicksintegerYes
complainedAtnull in the examplesYes
contactIdstring (uuid)Yes
createdAtstring (date-time)Yes
deliveredAtnull in the examplesYes
emailstring (email)Yes
errorstring | nullYes
idstring (uuid)Yes
kindstringYes
openedAtnull in the examplesYes
opensintegerYes
sendAfterstring (date-time)Yes
sentAtstring | null (date-time)Yes
sourcestringYes
statusstringYes
subjectstring | nullYes
templateIdstring (uuid)Yes
unsubscribedAtnull in the examplesYes
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"
}'

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

FieldTypeRequiredNotes
pageintegerNomin 1 · default 1
contactIdstring (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_..."

GET/v1/emails/sends/{id}

Returns one email sent, with what happened to it.

Read/sends/{id}On success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes
Example
curl -X GET "https://api.firmado.app/v1/emails/sends/{id}" \
  -H "X-Api-Key: fmd_..."

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_..."

POST/v1/emails/templates

Creates an email template.

Create/templatesOn success: 201.Permission: Create.

Body

FieldTypeRequiredNotes
namestringYesmin length 1 · max length 120
subjectstringNomax length 300 · default ""
preheaderstringNomax length 300 · default ""
documentobjectNo
document.version1Nodefault 1
document.settingsobjectNo
document.settings.backdropColorstringNodefault "#f4f4f5" · pattern ^#[0-9a-fA-F]{6}$
document.settings.contentColorstringNodefault "#ffffff" · pattern ^#[0-9a-fA-F]{6}$
document.settings.widthintegerNomin 320 · max 900 · default 600
document.settings.fontFamilystringNomax length 60 · default "Arial"
document.settings.headingFontFamilystringNomax length 60 · default "Arial"
document.settings.fontSizeintegerNomin 0 · max 40 · default 16
document.settings.lineHeightnumberNomin 0.8 · max 3 · default 1.5
document.settings.textColorstringNodefault "#1f2937" · pattern ^#[0-9a-fA-F]{6}$
document.settings.headingColorstringNodefault "#111827" · pattern ^#[0-9a-fA-F]{6}$
document.settings.linkColorstringNodefault "#2563eb" · pattern ^#[0-9a-fA-F]{6}$
document.settings.primaryColorstringNodefault "#2563eb" · pattern ^#[0-9a-fA-F]{6}$
document.settings.onPrimaryColorstringNodefault "#ffffff" · pattern ^#[0-9a-fA-F]{6}$
document.settings.radiusintegerNomin 0 · max 40 · default 0
document.settings.outerPaddingintegerNomin 0 · max 120 · default 24
document.headerobjectNo
document.header.showbooleanNodefault true
document.header.placement"inside" | "outside"Nodefault "outside"
document.header.colorstring | nullNodefault null
document.header.linkColorstring | nullNodefault null
document.header.backgroundColorstring | nullNodefault null
document.header.fontSizeintegerNomin 0 · max 24 · default 12
document.header.paddingobjectNo
document.header.padding.topintegerYesmin 0 · max 200
document.header.padding.rightintegerYesmin 0 · max 200
document.header.padding.bottomintegerYesmin 0 · max 200
document.header.padding.leftintegerYesmin 0 · max 200
document.header.presetIdstring | nullNodefault null
document.header.customobject | nullNodefault null
document.header.custom.textstringNomax length 300 · default ""
document.header.custom.linkLabelstringNomax length 60 · default ""
document.footerobjectNo
document.footer.placement"inside" | "outside"Nodefault "inside"
document.footer.colorstring | nullNodefault null
document.footer.linkColorstring | nullNodefault null
document.footer.backgroundColorstring | nullNodefault null
document.footer.fontSizeintegerNomin 0 · max 24 · default 12
document.footer.paddingobjectNo
document.footer.padding.topintegerYesmin 0 · max 200
document.footer.padding.rightintegerYesmin 0 · max 200
document.footer.padding.bottomintegerYesmin 0 · max 200
document.footer.padding.leftintegerYesmin 0 · max 200
document.footer.align"left" | "center" | "right"Nodefault "center"
document.footer.presetIdstring | nullNodefault null
document.footer.customobject | nullNodefault null
document.footer.custom.htmlstringNomax length 50000 · default ""
document.footer.custom.unsubscribeLabelstringYesmin length 1 · max length 100
document.footer.custom.showAddressbooleanNodefault true
document.rowsarray of objectYesmax items 100
document.rows[].idstringYesmin length 1 · max length 40
document.rows[].columnsarray of objectYesmin items 1 · max items 4
document.rows[].columns[].idstringYesmin length 1 · max length 40
document.rows[].columns[].blocksarray of objectYesmax items 60
document.rows[].columns[].backgroundColorstring | nullNodefault null
document.rows[].columns[].paddingobjectNo
document.rows[].columns[].radiusintegerNomin 0 · max 100 · default 0
document.rows[].columns[].verticalAlign"top" | "middle" | "bottom"Nodefault "top"
document.rows[].widthsarray of numberYesmin items 1 · max items 4
document.rows[].backgroundColorstring | nullNodefault null
document.rows[].backgroundImagestringNomax length 2000 · default ""
document.rows[].fullWidthbooleanNodefault false
document.rows[].paddingobjectNo
document.rows[].padding.topintegerYesmin 0 · max 200
document.rows[].padding.rightintegerYesmin 0 · max 200
document.rows[].padding.bottomintegerYesmin 0 · max 200
document.rows[].padding.leftintegerYesmin 0 · max 200
document.rows[].radiusintegerNomin 0 · max 100 · default 0
document.rows[].borderColorstring | nullNodefault null
document.rows[].borderWidthintegerNomin 0 · max 10 · default 0
document.rows[].stackOnMobilebooleanNodefault true
document.rows[].hideOn"mobile" | "desktop" | nullNodefault null

Response

79 fields
FieldTypeAlways there
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
documentobjectYes
document.footerobjectYes
document.footer.alignstringYes
document.footer.backgroundColornull in the examplesYes
document.footer.colorstring | nullYes
document.footer.customobject | nullYes
document.footer.custom.htmlstringYes
document.footer.custom.showAddressbooleanYes
document.footer.custom.unsubscribeLabelstringYes
document.footer.fontSizeintegerYes
document.footer.linkColornull in the examplesYes
document.footer.paddingobjectYes
document.footer.padding.bottomintegerYes
document.footer.padding.leftintegerYes
document.footer.padding.rightintegerYes
document.footer.padding.topintegerYes
document.footer.placementstringYes
document.footer.presetIdnull in the examplesYes
document.headerobjectYes
document.header.backgroundColornull in the examplesYes
document.header.colornull in the examplesYes
document.header.customnull in the examplesYes
document.header.fontSizeintegerYes
document.header.linkColornull in the examplesYes
document.header.paddingobjectYes
document.header.padding.bottomintegerYes
document.header.padding.leftintegerYes
document.header.padding.rightintegerYes
document.header.padding.topintegerYes
document.header.placementstringYes
document.header.presetIdnull in the examplesYes
document.header.showbooleanYes
document.rowsarray of objectYes
document.rows[].backgroundColornull in the examplesYes
document.rows[].backgroundImagestringYes
document.rows[].borderColornull in the examplesYes
document.rows[].borderWidthintegerYes
document.rows[].columnsarray of objectYes
document.rows[].columns[].backgroundColornull in the examplesYes
document.rows[].columns[].blocksarray of objectYes
document.rows[].columns[].idstringYes
document.rows[].columns[].paddingobjectYes
document.rows[].columns[].radiusintegerYes
document.rows[].columns[].verticalAlignstringYes
document.rows[].fullWidthbooleanYes
document.rows[].hideOnnull in the examplesYes
document.rows[].idstringYes
document.rows[].paddingobjectYes
document.rows[].padding.bottomintegerYes
document.rows[].padding.leftintegerYes
document.rows[].padding.rightintegerYes
document.rows[].padding.topintegerYes
document.rows[].radiusintegerYes
document.rows[].stackOnMobilebooleanYes
document.rows[].widthsarray of integerYes
document.settingsobjectYes
document.settings.backdropColorstringYes
document.settings.contentColorstringYes
document.settings.fontFamilystringYes
document.settings.fontSizeintegerYes
document.settings.headingColorstringYes
document.settings.headingFontFamilystringYes
document.settings.lineHeightnumberYes
document.settings.linkColorstringYes
document.settings.onPrimaryColorstringYes
document.settings.outerPaddingintegerYes
document.settings.primaryColorstringYes
document.settings.radiusintegerYes
document.settings.textColorstringYes
document.settings.widthintegerYes
document.versionintegerYes
idstring (uuid)Yes
namestringYes
organizationIdstring (uuid)Yes
preheaderstringYes
subjectstringYes
updatedAtstring (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": "…"
    }
  }
}'

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

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/emails/templates/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/emails/templates/{id}

Returns an email template with its document.

Read/templates/{id}On success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

15 fields
FieldTypeAlways there
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
documentobjectYes
document.rowsarray of objectYes
document.rows[].columnsarray of objectYes
document.rows[].columns[].blocksarray of objectYes
document.rows[].columns[].idstringYes
document.rows[].idstringYes
document.rows[].widthsarray of integerYes
idstring (uuid)Yes
namestringYes
organizationIdstring (uuid)Yes
preheaderstringYes
subjectstringYes
updatedAtstring (date-time)Yes
Example
curl -X GET "https://api.firmado.app/v1/emails/templates/{id}" \
  -H "X-Api-Key: fmd_..."

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

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
namestringNomin length 1 · max length 120
subjectstringNomax length 300
preheaderstringNomax length 300
documentobjectNo
document.version1Nodefault 1
document.settingsobjectNo
document.settings.backdropColorstringNodefault "#f4f4f5" · pattern ^#[0-9a-fA-F]{6}$
document.settings.contentColorstringNodefault "#ffffff" · pattern ^#[0-9a-fA-F]{6}$
document.settings.widthintegerNomin 320 · max 900 · default 600
document.settings.fontFamilystringNomax length 60 · default "Arial"
document.settings.headingFontFamilystringNomax length 60 · default "Arial"
document.settings.fontSizeintegerNomin 0 · max 40 · default 16
document.settings.lineHeightnumberNomin 0.8 · max 3 · default 1.5
document.settings.textColorstringNodefault "#1f2937" · pattern ^#[0-9a-fA-F]{6}$
document.settings.headingColorstringNodefault "#111827" · pattern ^#[0-9a-fA-F]{6}$
document.settings.linkColorstringNodefault "#2563eb" · pattern ^#[0-9a-fA-F]{6}$
document.settings.primaryColorstringNodefault "#2563eb" · pattern ^#[0-9a-fA-F]{6}$
document.settings.onPrimaryColorstringNodefault "#ffffff" · pattern ^#[0-9a-fA-F]{6}$
document.settings.radiusintegerNomin 0 · max 40 · default 0
document.settings.outerPaddingintegerNomin 0 · max 120 · default 24
document.headerobjectNo
document.header.showbooleanNodefault true
document.header.placement"inside" | "outside"Nodefault "outside"
document.header.colorstring | nullNodefault null
document.header.linkColorstring | nullNodefault null
document.header.backgroundColorstring | nullNodefault null
document.header.fontSizeintegerNomin 0 · max 24 · default 12
document.header.paddingobjectNo
document.header.padding.topintegerYesmin 0 · max 200
document.header.padding.rightintegerYesmin 0 · max 200
document.header.padding.bottomintegerYesmin 0 · max 200
document.header.padding.leftintegerYesmin 0 · max 200
document.header.presetIdstring | nullNodefault null
document.header.customobject | nullNodefault null
document.header.custom.textstringNomax length 300 · default ""
document.header.custom.linkLabelstringNomax length 60 · default ""
document.footerobjectNo
document.footer.placement"inside" | "outside"Nodefault "inside"
document.footer.colorstring | nullNodefault null
document.footer.linkColorstring | nullNodefault null
document.footer.backgroundColorstring | nullNodefault null
document.footer.fontSizeintegerNomin 0 · max 24 · default 12
document.footer.paddingobjectNo
document.footer.padding.topintegerYesmin 0 · max 200
document.footer.padding.rightintegerYesmin 0 · max 200
document.footer.padding.bottomintegerYesmin 0 · max 200
document.footer.padding.leftintegerYesmin 0 · max 200
document.footer.align"left" | "center" | "right"Nodefault "center"
document.footer.presetIdstring | nullNodefault null
document.footer.customobject | nullNodefault null
document.footer.custom.htmlstringNomax length 50000 · default ""
document.footer.custom.unsubscribeLabelstringYesmin length 1 · max length 100
document.footer.custom.showAddressbooleanNodefault true
document.rowsarray of objectYesmax items 100
document.rows[].idstringYesmin length 1 · max length 40
document.rows[].columnsarray of objectYesmin items 1 · max items 4
document.rows[].columns[].idstringYesmin length 1 · max length 40
document.rows[].columns[].blocksarray of objectYesmax items 60
document.rows[].columns[].backgroundColorstring | nullNodefault null
document.rows[].columns[].paddingobjectNo
document.rows[].columns[].radiusintegerNomin 0 · max 100 · default 0
document.rows[].columns[].verticalAlign"top" | "middle" | "bottom"Nodefault "top"
document.rows[].widthsarray of numberYesmin items 1 · max items 4
document.rows[].backgroundColorstring | nullNodefault null
document.rows[].backgroundImagestringNomax length 2000 · default ""
document.rows[].fullWidthbooleanNodefault false
document.rows[].paddingobjectNo
document.rows[].padding.topintegerYesmin 0 · max 200
document.rows[].padding.rightintegerYesmin 0 · max 200
document.rows[].padding.bottomintegerYesmin 0 · max 200
document.rows[].padding.leftintegerYesmin 0 · max 200
document.rows[].radiusintegerNomin 0 · max 100 · default 0
document.rows[].borderColorstring | nullNodefault null
document.rows[].borderWidthintegerNomin 0 · max 10 · default 0
document.rows[].stackOnMobilebooleanNodefault true
document.rows[].hideOn"mobile" | "desktop" | nullNodefault 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": "…"
    }
  }
}'

POST/v1/emails/templates/{id}/duplicate

Copies an email template.

Create/templates/{id}/duplicateOn success: 201.Permission: Create.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
namestringYesmin 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"
}'

POST/v1/emails/test

Sends a test of a template or campaign to members’ addresses.

Create/testOn success: 200.Permission: Create.

Body

FieldTypeRequiredNotes
templateIdstring (uuid)No
campaignIdstring (uuid)No
emailsarray of string (email)Yesmin items 1 · max items 5
contactIdstring (uuid) | nullNo
kind"marketing" | "transactional"Nodefault "marketing"

Response

5 fields
FieldTypeAlways there
dataarray of objectYes
data[].emailstring (email)Yes
data[].errornull in the examplesYes
data[].idstring (uuid)Yes
data[].statusstringYes
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"
}'

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_..."

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_..."

Webhook events

Changes of this feature that webhooks can send.

  • email_template.createdCreate
  • email_template.updatedUpdate
  • email_template.deletedDelete
  • email_campaign.createdCreate
  • email_campaign.updatedUpdate
  • email_campaign.sentUpdate
  • email_campaign.deletedDelete
  • email_automation.createdCreate
  • email_automation.updatedUpdate
  • email_automation.deletedDelete
  • email.deliveredUpdate
  • email.bouncedUpdate
  • email.complainedUpdate
  • email.openedUpdate
  • email.clickedUpdate
  • email.unsubscribedUpdate