Microsite
The microsite's blocks, address and numbers.
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/microsites
Lists the microsites (one per organization at most).
ListOn success: 200.Permission: Read.
Example
curl -X GET "https://api.firmado.app/v1/microsites" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/microsites", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/microsites",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/microsites");
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/microsites")
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/microsites", 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/microsites"))
.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/microsites");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/microsites
Creates the microsite (Pro, one per organization).
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | No | min length 1 · max length 120 |
slug | string | No | pattern ^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$ |
title | string | No | min length 1 · max length 120 |
description | string | null | No | |
document | object | No | |
document.version | 1 | No | default 1 |
document.settings | object | No | |
document.settings.backdropColor | string | No | max length 400 · default "#ffffff" |
document.settings.contentColor | string | No | max length 400 · default "#ffffff" |
document.settings.width | integer | No | min 320 · max 1200 · default 720 |
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 0 |
document.settings.backdropImage | string | No | max length 2000 · default "" |
document.settings.contentImage | string | No | max length 2000 · default "" |
document.settings.backdropImageStyle | object | No | |
document.settings.backdropImageStyle.size | "cover" | "contain" | "auto" | "custom" | No | default "cover" |
document.settings.backdropImageStyle.sizeValue | integer | No | min 1 · max 400 · default 100 |
document.settings.backdropImageStyle.x | integer | No | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.y | integer | No | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | No | default "no-repeat" |
document.settings.backdropImageStyle.gapX | integer | No | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.gapY | integer | No | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.attachment | "scroll" | "fixed" | No | default "scroll" |
document.settings.backdropImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | No | default "normal" |
document.settings.contentImageStyle | object | No | |
document.settings.contentImageStyle.size | "cover" | "contain" | "auto" | "custom" | No | default "cover" |
document.settings.contentImageStyle.sizeValue | integer | No | min 1 · max 400 · default 100 |
document.settings.contentImageStyle.x | integer | No | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.y | integer | No | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | No | default "no-repeat" |
document.settings.contentImageStyle.gapX | integer | No | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.gapY | integer | No | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.attachment | "scroll" | "fixed" | No | default "scroll" |
document.settings.contentImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | No | default "normal" |
document.settings.contentCorners | object | null | No | default null |
document.settings.contentCorners.topLeft | integer | Yes | min 0 · max 120 |
document.settings.contentCorners.topRight | integer | Yes | min 0 · max 120 |
document.settings.contentCorners.bottomRight | integer | Yes | min 0 · max 120 |
document.settings.contentCorners.bottomLeft | integer | Yes | min 0 · max 120 |
document.hero | object | null | No | default null |
document.hero.coverColor | string | null | No | default null |
document.hero.coverImage | string | No | max length 2000 · default "" |
document.hero.coverImageStyle | object | No | |
document.hero.coverImageStyle.size | "cover" | "contain" | "auto" | "custom" | No | default "cover" |
document.hero.coverImageStyle.sizeValue | integer | No | min 1 · max 400 · default 100 |
document.hero.coverImageStyle.x | integer | No | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.y | integer | No | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | No | default "no-repeat" |
document.hero.coverImageStyle.gapX | integer | No | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.gapY | integer | No | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.attachment | "scroll" | "fixed" | No | default "scroll" |
document.hero.coverImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | No | default "normal" |
document.hero.coverHeight | integer | No | min 40 · max 800 · default 200 |
document.hero.radius | integer | No | min 0 · max 60 · default 16 |
document.hero.radiusTop | integer | null | No | default null |
document.hero.radiusBottom | integer | null | No | default null |
document.hero.fade | boolean | No | default false |
document.hero.fadeColor | string | null | No | default null |
document.hero.fadeHeight | integer | No | min 5 · max 100 · default 50 |
document.hero.avatar | string | No | max length 2000 · default "" |
document.hero.avatarAlt | string | No | max length 200 · default "" |
document.hero.avatarSize | integer | No | min 32 · max 320 · default 112 |
document.hero.avatarShape | "circle" | "rounded" | "square" | No | default "circle" |
document.hero.avatarRadius | integer | No | min 0 · max 80 · default 20 |
document.hero.avatarBorderWidth | integer | No | min 0 · max 16 · default 4 |
document.hero.avatarBorderColor | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow | object | null | No | default null |
document.hero.avatarShadow.x | integer | No | min -100 · max 100 · default 0 |
document.hero.avatarShadow.y | integer | No | min -100 · max 100 · default 4 |
document.hero.avatarShadow.blur | integer | No | min 0 · max 200 · default 16 |
document.hero.avatarShadow.spread | integer | No | min -100 · max 100 · default 0 |
document.hero.avatarShadow.color | string | No | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow.opacity | integer | No | min 0 · max 100 · default 20 |
document.hero.avatarAlign | "left" | "center" | "right" | No | default "center" |
document.hero.avatarOverlap | integer | No | min 0 · max 100 · default 50 |
document.hero.buttonTheme | "dark" | "light" | No | default "dark" |
document.hero.buttonSize | integer | No | min 24 · max 72 · default 36 |
document.hero.buttonShape | "circle" | "rounded" | "square" | No | default "circle" |
document.hero.buttonInset | integer | No | min 0 · max 64 · default 12 |
document.hero.buttonOpacity | integer | No | min 10 · max 100 · default 85 |
document.hero.left | array of object | No | max items 3 |
document.hero.left[].id | string | Yes | pattern ^[A-Za-z0-9_-]{1,40}$ |
document.hero.left[].icon | "link" | "globe" | "instagram" | "whatsapp" | "tiktok" | "youtube" | "linkedin" | "facebook" | "x" | "telegram" | "spotify" | "email" | "phone" | "calendar" | "form" | "file" | "shop" | "star" | "map" | "gift" | "share" | "menu" | "heart" | "user-plus" | "bell" | "message" | "info" | No | default "link" |
document.hero.left[].action | "link" | "share" | No | default "link" |
document.hero.left[].url | string | No | max length 2000 · default "" |
document.hero.left[].label | string | No | max length 60 · default "" |
document.hero.right | array of object | No | max items 3 |
document.hero.right[].id | string | Yes | pattern ^[A-Za-z0-9_-]{1,40}$ |
document.hero.right[].icon | "link" | "globe" | "instagram" | "whatsapp" | "tiktok" | "youtube" | "linkedin" | "facebook" | "x" | "telegram" | "spotify" | "email" | "phone" | "calendar" | "form" | "file" | "shop" | "star" | "map" | "gift" | "share" | "menu" | "heart" | "user-plus" | "bell" | "message" | "info" | No | default "link" |
document.hero.right[].action | "link" | "share" | No | default "link" |
document.hero.right[].url | string | No | max length 2000 · default "" |
document.hero.right[].label | string | No | max length 60 · default "" |
document.hero.padding | object | No | |
document.hero.padding.top | integer | Yes | min 0 · max 200 |
document.hero.padding.right | integer | Yes | min 0 · max 200 |
document.hero.padding.bottom | integer | Yes | min 0 · max 200 |
document.hero.padding.left | integer | Yes | min 0 · max 200 |
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[].columns[].shadow | object | null | No | default null |
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 |
document.rows[].shadow | object | null | No | default null |
document.rows[].shadow.x | integer | No | min -100 · max 100 · default 0 |
document.rows[].shadow.y | integer | No | min -100 · max 100 · default 4 |
document.rows[].shadow.blur | integer | No | min 0 · max 200 · default 16 |
document.rows[].shadow.spread | integer | No | min -100 · max 100 · default 0 |
document.rows[].shadow.color | string | No | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.rows[].shadow.opacity | integer | No | min 0 · max 100 · default 20 |
showBranding | boolean | No | default true |
active | boolean | No | default false |
Response
80 fields
| Field | Type | Always there |
|---|---|---|
active | boolean | Yes |
clicks30 | integer | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
description | string | null | Yes |
document | object | Yes |
document.hero | null in the examples | 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[].shadow | null in the examples | 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[].shadow | null in the examples | Yes |
document.rows[].stackOnMobile | boolean | Yes |
document.rows[].widths | array of integer | Yes |
document.settings | object | Yes |
document.settings.backdropColor | string | Yes |
document.settings.backdropImage | string | Yes |
document.settings.backdropImageStyle | object | Yes |
document.settings.backdropImageStyle.attachment | string | Yes |
document.settings.backdropImageStyle.blend | string | Yes |
document.settings.backdropImageStyle.gapX | integer | Yes |
document.settings.backdropImageStyle.gapY | integer | Yes |
document.settings.backdropImageStyle.repeat | string | Yes |
document.settings.backdropImageStyle.size | string | Yes |
document.settings.backdropImageStyle.sizeValue | integer | Yes |
document.settings.backdropImageStyle.x | integer | Yes |
document.settings.backdropImageStyle.y | integer | Yes |
document.settings.contentColor | string | Yes |
document.settings.contentCorners | null in the examples | Yes |
document.settings.contentImage | string | Yes |
document.settings.contentImageStyle | object | Yes |
document.settings.contentImageStyle.attachment | string | Yes |
document.settings.contentImageStyle.blend | string | Yes |
document.settings.contentImageStyle.gapX | integer | Yes |
document.settings.contentImageStyle.gapY | integer | Yes |
document.settings.contentImageStyle.repeat | string | Yes |
document.settings.contentImageStyle.size | string | Yes |
document.settings.contentImageStyle.sizeValue | integer | Yes |
document.settings.contentImageStyle.x | integer | Yes |
document.settings.contentImageStyle.y | integer | 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 |
showBranding | boolean | Yes |
slug | string | Yes |
title | string | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
views30 | integer | Yes |
Example
curl -X POST "https://api.firmado.app/v1/microsites" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}'const res = await fetch("https://api.firmado.app/v1/microsites", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/microsites",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/microsites");
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",
"slug": "…",
"title": "…",
"description": "…"
}
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/microsites")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}
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",
"slug": "…",
"title": "…",
"description": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/microsites", 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/microsites"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}
"""))
.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/microsites");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"slug": "…",
"name": "Ana Lima",
"title": "…",
"description": "…",
"document": {
"hero": null,
"rows": [
{}
],
"version": 1,
"settings": {
"width": 1,
"radius": 1,
"fontSize": 1,
"linkColor": "…",
"textColor": "…",
"fontFamily": "…",
"lineHeight": 1,
"contentColor": "…",
"contentImage": "…",
"headingColor": "…",
"outerPadding": 1,
"primaryColor": "…",
"backdropColor": "…",
"backdropImage": "…",
"contentCorners": null,
"onPrimaryColor": "…",
"contentImageStyle": {},
"headingFontFamily": "…",
"backdropImageStyle": {}
}
},
"showBranding": true,
"active": true,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"url": "https://example.com",
"views30": 1,
"clicks30": 1
}DELETE/v1/microsites/{id}
Deletes the microsite.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/microsites/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/microsites/{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/microsites/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/microsites/{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/microsites/{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/microsites/{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/microsites/{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/microsites/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/microsites/{id}
Returns the microsite with its document.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X GET "https://api.firmado.app/v1/microsites/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/microsites/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/microsites/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/microsites/{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/microsites/{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/microsites/{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/microsites/{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/microsites/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/microsites/{id}
Changes the microsite: blocks, header, look and address.
UpdateOn 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 |
slug | string | No | pattern ^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$ |
title | string | No | min length 1 · max length 120 |
description | string | null | No | |
document | object | No | |
document.version | 1 | No | default 1 |
document.settings | object | No | |
document.settings.backdropColor | string | No | max length 400 · default "#ffffff" |
document.settings.contentColor | string | No | max length 400 · default "#ffffff" |
document.settings.width | integer | No | min 320 · max 1200 · default 720 |
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 0 |
document.settings.backdropImage | string | No | max length 2000 · default "" |
document.settings.contentImage | string | No | max length 2000 · default "" |
document.settings.backdropImageStyle | object | No | |
document.settings.backdropImageStyle.size | "cover" | "contain" | "auto" | "custom" | No | default "cover" |
document.settings.backdropImageStyle.sizeValue | integer | No | min 1 · max 400 · default 100 |
document.settings.backdropImageStyle.x | integer | No | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.y | integer | No | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | No | default "no-repeat" |
document.settings.backdropImageStyle.gapX | integer | No | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.gapY | integer | No | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.attachment | "scroll" | "fixed" | No | default "scroll" |
document.settings.backdropImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | No | default "normal" |
document.settings.contentImageStyle | object | No | |
document.settings.contentImageStyle.size | "cover" | "contain" | "auto" | "custom" | No | default "cover" |
document.settings.contentImageStyle.sizeValue | integer | No | min 1 · max 400 · default 100 |
document.settings.contentImageStyle.x | integer | No | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.y | integer | No | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | No | default "no-repeat" |
document.settings.contentImageStyle.gapX | integer | No | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.gapY | integer | No | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.attachment | "scroll" | "fixed" | No | default "scroll" |
document.settings.contentImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | No | default "normal" |
document.settings.contentCorners | object | null | No | default null |
document.settings.contentCorners.topLeft | integer | Yes | min 0 · max 120 |
document.settings.contentCorners.topRight | integer | Yes | min 0 · max 120 |
document.settings.contentCorners.bottomRight | integer | Yes | min 0 · max 120 |
document.settings.contentCorners.bottomLeft | integer | Yes | min 0 · max 120 |
document.hero | object | null | No | default null |
document.hero.coverColor | string | null | No | default null |
document.hero.coverImage | string | No | max length 2000 · default "" |
document.hero.coverImageStyle | object | No | |
document.hero.coverImageStyle.size | "cover" | "contain" | "auto" | "custom" | No | default "cover" |
document.hero.coverImageStyle.sizeValue | integer | No | min 1 · max 400 · default 100 |
document.hero.coverImageStyle.x | integer | No | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.y | integer | No | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | No | default "no-repeat" |
document.hero.coverImageStyle.gapX | integer | No | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.gapY | integer | No | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.attachment | "scroll" | "fixed" | No | default "scroll" |
document.hero.coverImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | No | default "normal" |
document.hero.coverHeight | integer | No | min 40 · max 800 · default 200 |
document.hero.radius | integer | No | min 0 · max 60 · default 16 |
document.hero.radiusTop | integer | null | No | default null |
document.hero.radiusBottom | integer | null | No | default null |
document.hero.fade | boolean | No | default false |
document.hero.fadeColor | string | null | No | default null |
document.hero.fadeHeight | integer | No | min 5 · max 100 · default 50 |
document.hero.avatar | string | No | max length 2000 · default "" |
document.hero.avatarAlt | string | No | max length 200 · default "" |
document.hero.avatarSize | integer | No | min 32 · max 320 · default 112 |
document.hero.avatarShape | "circle" | "rounded" | "square" | No | default "circle" |
document.hero.avatarRadius | integer | No | min 0 · max 80 · default 20 |
document.hero.avatarBorderWidth | integer | No | min 0 · max 16 · default 4 |
document.hero.avatarBorderColor | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow | object | null | No | default null |
document.hero.avatarShadow.x | integer | No | min -100 · max 100 · default 0 |
document.hero.avatarShadow.y | integer | No | min -100 · max 100 · default 4 |
document.hero.avatarShadow.blur | integer | No | min 0 · max 200 · default 16 |
document.hero.avatarShadow.spread | integer | No | min -100 · max 100 · default 0 |
document.hero.avatarShadow.color | string | No | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow.opacity | integer | No | min 0 · max 100 · default 20 |
document.hero.avatarAlign | "left" | "center" | "right" | No | default "center" |
document.hero.avatarOverlap | integer | No | min 0 · max 100 · default 50 |
document.hero.buttonTheme | "dark" | "light" | No | default "dark" |
document.hero.buttonSize | integer | No | min 24 · max 72 · default 36 |
document.hero.buttonShape | "circle" | "rounded" | "square" | No | default "circle" |
document.hero.buttonInset | integer | No | min 0 · max 64 · default 12 |
document.hero.buttonOpacity | integer | No | min 10 · max 100 · default 85 |
document.hero.left | array of object | No | max items 3 |
document.hero.left[].id | string | Yes | pattern ^[A-Za-z0-9_-]{1,40}$ |
document.hero.left[].icon | "link" | "globe" | "instagram" | "whatsapp" | "tiktok" | "youtube" | "linkedin" | "facebook" | "x" | "telegram" | "spotify" | "email" | "phone" | "calendar" | "form" | "file" | "shop" | "star" | "map" | "gift" | "share" | "menu" | "heart" | "user-plus" | "bell" | "message" | "info" | No | default "link" |
document.hero.left[].action | "link" | "share" | No | default "link" |
document.hero.left[].url | string | No | max length 2000 · default "" |
document.hero.left[].label | string | No | max length 60 · default "" |
document.hero.right | array of object | No | max items 3 |
document.hero.right[].id | string | Yes | pattern ^[A-Za-z0-9_-]{1,40}$ |
document.hero.right[].icon | "link" | "globe" | "instagram" | "whatsapp" | "tiktok" | "youtube" | "linkedin" | "facebook" | "x" | "telegram" | "spotify" | "email" | "phone" | "calendar" | "form" | "file" | "shop" | "star" | "map" | "gift" | "share" | "menu" | "heart" | "user-plus" | "bell" | "message" | "info" | No | default "link" |
document.hero.right[].action | "link" | "share" | No | default "link" |
document.hero.right[].url | string | No | max length 2000 · default "" |
document.hero.right[].label | string | No | max length 60 · default "" |
document.hero.padding | object | No | |
document.hero.padding.top | integer | Yes | min 0 · max 200 |
document.hero.padding.right | integer | Yes | min 0 · max 200 |
document.hero.padding.bottom | integer | Yes | min 0 · max 200 |
document.hero.padding.left | integer | Yes | min 0 · max 200 |
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[].columns[].shadow | object | null | No | default null |
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 |
document.rows[].shadow | object | null | No | default null |
document.rows[].shadow.x | integer | No | min -100 · max 100 · default 0 |
document.rows[].shadow.y | integer | No | min -100 · max 100 · default 4 |
document.rows[].shadow.blur | integer | No | min 0 · max 200 · default 16 |
document.rows[].shadow.spread | integer | No | min -100 · max 100 · default 0 |
document.rows[].shadow.color | string | No | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.rows[].shadow.opacity | integer | No | min 0 · max 100 · default 20 |
showBranding | boolean | No | |
active | boolean | No |
Response
141 fields
| Field | Type | Always there |
|---|---|---|
active | boolean | Yes |
clicks30 | integer | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
description | string | null | Yes |
document | object | Yes |
document.hero | object | null | Yes |
document.hero.avatar | string (uri) | Yes |
document.hero.avatarAlign | string | Yes |
document.hero.avatarAlt | string | Yes |
document.hero.avatarBorderColor | string | Yes |
document.hero.avatarBorderWidth | integer | Yes |
document.hero.avatarOverlap | integer | Yes |
document.hero.avatarRadius | integer | Yes |
document.hero.avatarShadow | null in the examples | Yes |
document.hero.avatarShape | string | Yes |
document.hero.avatarSize | integer | Yes |
document.hero.buttonInset | integer | Yes |
document.hero.buttonOpacity | integer | Yes |
document.hero.buttonShape | string | Yes |
document.hero.buttonSize | integer | Yes |
document.hero.buttonTheme | string | Yes |
document.hero.coverColor | string | Yes |
document.hero.coverHeight | integer | Yes |
document.hero.coverImage | string (uri) | Yes |
document.hero.coverImageStyle | object | Yes |
document.hero.coverImageStyle.attachment | string | Yes |
document.hero.coverImageStyle.blend | string | Yes |
document.hero.coverImageStyle.gapX | integer | Yes |
document.hero.coverImageStyle.gapY | integer | Yes |
document.hero.coverImageStyle.repeat | string | Yes |
document.hero.coverImageStyle.size | string | Yes |
document.hero.coverImageStyle.sizeValue | integer | Yes |
document.hero.coverImageStyle.x | integer | Yes |
document.hero.coverImageStyle.y | integer | Yes |
document.hero.fade | boolean | Yes |
document.hero.fadeColor | string | Yes |
document.hero.fadeHeight | integer | Yes |
document.hero.left | array of object | Yes |
document.hero.left[].action | string | Yes |
document.hero.left[].icon | string | Yes |
document.hero.left[].id | string | Yes |
document.hero.left[].label | string | Yes |
document.hero.left[].url | string (uri) | Yes |
document.hero.padding | object | Yes |
document.hero.padding.bottom | integer | Yes |
document.hero.padding.left | integer | Yes |
document.hero.padding.right | integer | Yes |
document.hero.padding.top | integer | Yes |
document.hero.radius | integer | Yes |
document.hero.radiusBottom | integer | Yes |
document.hero.radiusTop | integer | Yes |
document.hero.right | array of object | Yes |
document.hero.right[].action | string | Yes |
document.hero.right[].icon | string | Yes |
document.hero.right[].id | string | Yes |
document.hero.right[].label | string | Yes |
document.hero.right[].url | string | Yes |
document.rows | array of object | Yes |
document.rows[].backgroundColor | string | null | 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 | string | null | 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[].shadow | object | null | 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[].shadow | object | null | Yes |
document.rows[].shadow.blur | integer | Yes |
document.rows[].shadow.color | string | Yes |
document.rows[].shadow.opacity | integer | Yes |
document.rows[].shadow.spread | integer | Yes |
document.rows[].shadow.x | integer | Yes |
document.rows[].shadow.y | 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.backdropImage | string | Yes |
document.settings.backdropImageStyle | object | Yes |
document.settings.backdropImageStyle.attachment | string | Yes |
document.settings.backdropImageStyle.blend | string | Yes |
document.settings.backdropImageStyle.gapX | integer | Yes |
document.settings.backdropImageStyle.gapY | integer | Yes |
document.settings.backdropImageStyle.repeat | string | Yes |
document.settings.backdropImageStyle.size | string | Yes |
document.settings.backdropImageStyle.sizeValue | integer | Yes |
document.settings.backdropImageStyle.x | integer | Yes |
document.settings.backdropImageStyle.y | integer | Yes |
document.settings.contentColor | string | Yes |
document.settings.contentCorners | object | null | Yes |
document.settings.contentCorners.bottomLeft | integer | Yes |
document.settings.contentCorners.bottomRight | integer | Yes |
document.settings.contentCorners.topLeft | integer | Yes |
document.settings.contentCorners.topRight | integer | Yes |
document.settings.contentImage | string | Yes |
document.settings.contentImageStyle | object | Yes |
document.settings.contentImageStyle.attachment | string | Yes |
document.settings.contentImageStyle.blend | string | Yes |
document.settings.contentImageStyle.gapX | integer | Yes |
document.settings.contentImageStyle.gapY | integer | Yes |
document.settings.contentImageStyle.repeat | string | Yes |
document.settings.contentImageStyle.size | string | Yes |
document.settings.contentImageStyle.sizeValue | integer | Yes |
document.settings.contentImageStyle.x | integer | Yes |
document.settings.contentImageStyle.y | integer | 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 |
showBranding | boolean | Yes |
slug | string | Yes |
title | string | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
views30 | integer | Yes |
Example
curl -X PATCH "https://api.firmado.app/v1/microsites/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}'const res = await fetch("https://api.firmado.app/v1/microsites/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/microsites/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/microsites/{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",
"slug": "…",
"title": "…",
"description": "…"
}
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/microsites/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}
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",
"slug": "…",
"title": "…",
"description": "…"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/microsites/{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/microsites/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}
"""))
.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/microsites/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"description": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"slug": "…",
"name": "Ana Lima",
"title": "…",
"description": "…",
"document": {
"hero": {
"fade": true,
"left": [],
"right": [],
"avatar": "https://example.com",
"radius": 1,
"padding": {},
"avatarAlt": "…",
"fadeColor": "…",
"radiusTop": 1,
"avatarSize": 1,
"buttonSize": 1,
"coverColor": "…",
"coverImage": "https://example.com",
"fadeHeight": 1,
"avatarAlign": "…",
"avatarShape": "…",
"buttonInset": 1,
"buttonShape": "…",
"buttonTheme": "…",
"coverHeight": 1,
"avatarRadius": 1,
"avatarShadow": null,
"radiusBottom": 1,
"avatarOverlap": 1,
"buttonOpacity": 1,
"coverImageStyle": {},
"avatarBorderColor": "…",
"avatarBorderWidth": 1
},
"rows": [
{}
],
"version": 1,
"settings": {
"width": 1,
"radius": 1,
"fontSize": 1,
"linkColor": "…",
"textColor": "…",
"fontFamily": "…",
"lineHeight": 1,
"contentColor": "…",
"contentImage": "…",
"headingColor": "…",
"outerPadding": 1,
"primaryColor": "…",
"backdropColor": "…",
"backdropImage": "…",
"contentCorners": {},
"onPrimaryColor": "…",
"contentImageStyle": {},
"headingFontFamily": "…",
"backdropImageStyle": {}
}
},
"showBranding": true,
"active": true,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"url": "https://example.com",
"views30": 1,
"clicks30": 1
}GET/v1/microsites/{id}/stats
Views of the microsite and clicks, per day.
Read/{id}/statsOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
days | integer | No | default 30 |
Response
17 fields
| Field | Type | Always there |
|---|---|---|
blocks | array of object | Yes |
blocks[].clicks | integer | Yes |
blocks[].id | string | Yes |
blocks[].label | string | Yes |
blocks[].type | string | Yes |
days | integer | Yes |
series | array of object | Yes |
series[].clicks | integer | Yes |
series[].day | string (date) | Yes |
series[].views | integer | Yes |
sources | array of object | Yes |
sources[].source | string | Yes |
sources[].views | integer | Yes |
totals | object | Yes |
totals.clickRate | integer | null | Yes |
totals.clicks | integer | Yes |
totals.views | integer | Yes |
Example
curl -X GET "https://api.firmado.app/v1/microsites/{id}/stats" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/microsites/{id}/stats", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/microsites/{id}/stats",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/microsites/{id}/stats");
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/microsites/{id}/stats")
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/microsites/{id}/stats", 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/microsites/{id}/stats"))
.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/microsites/{id}/stats");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"days": 1,
"totals": {
"views": 1,
"clicks": 1,
"clickRate": 1
},
"series": [
{
"day": "2026-11-21",
"views": 1,
"clicks": 1
}
],
"blocks": [
{
"id": "…",
"type": "…",
"label": "…",
"clicks": 1
}
],
"sources": [
{
"source": "…",
"views": 1
}
]
}GET/v1/microsites/slug-check
Whether an address is free for the microsite.
Read/slug-checkOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
slug | string | Yes | max length 60 |
exclude | string (uuid) | No |
Example
curl -X GET "https://api.firmado.app/v1/microsites/slug-check" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/microsites/slug-check", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/microsites/slug-check",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/microsites/slug-check");
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/microsites/slug-check")
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/microsites/slug-check", 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/microsites/slug-check"))
.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/microsites/slug-check");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Webhook events
Changes of this feature that webhooks can send.
microsite.createdCreatemicrosite.updatedUpdatemicrosite.deletedDelete