Micro página
Os blocos, o endereço e os números da micro página.
Valores dos exemplos
Digite uma vez e todos os exemplos desta página passam a usá-los. A chave de API fica só nesta página e nunca é guardada.
GET/v1/microsites
Lista as micro páginas (no máximo uma por organização).
ListarEm caso de sucesso: 200.Permissão: Ler.
Exemplo
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
Cria a micro página (Pro, uma por organização).
CriarEm caso de sucesso: 201.Permissão: Criar.
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
name | string | Não | min length 1 · max length 120 |
slug | string | Não | pattern ^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$ |
title | string | Não | min length 1 · max length 120 |
description | string | null | Não | |
document | object | Não | |
document.version | 1 | Não | default 1 |
document.settings | object | Não | |
document.settings.backdropColor | string | Não | max length 400 · default "#ffffff" |
document.settings.contentColor | string | Não | max length 400 · default "#ffffff" |
document.settings.width | integer | Não | min 320 · max 1200 · default 720 |
document.settings.fontFamily | string | Não | max length 60 · default "Arial" |
document.settings.headingFontFamily | string | Não | max length 60 · default "Arial" |
document.settings.fontSize | integer | Não | min 0 · max 40 · default 16 |
document.settings.lineHeight | number | Não | min 0.8 · max 3 · default 1.5 |
document.settings.textColor | string | Não | default "#1f2937" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.headingColor | string | Não | default "#111827" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.linkColor | string | Não | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.primaryColor | string | Não | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.onPrimaryColor | string | Não | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.radius | integer | Não | min 0 · max 40 · default 0 |
document.settings.outerPadding | integer | Não | min 0 · max 120 · default 0 |
document.settings.backdropImage | string | Não | max length 2000 · default "" |
document.settings.contentImage | string | Não | max length 2000 · default "" |
document.settings.backdropImageStyle | object | Não | |
document.settings.backdropImageStyle.size | "cover" | "contain" | "auto" | "custom" | Não | default "cover" |
document.settings.backdropImageStyle.sizeValue | integer | Não | min 1 · max 400 · default 100 |
document.settings.backdropImageStyle.x | integer | Não | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.y | integer | Não | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Não | default "no-repeat" |
document.settings.backdropImageStyle.gapX | integer | Não | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.gapY | integer | Não | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.attachment | "scroll" | "fixed" | Não | default "scroll" |
document.settings.backdropImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Não | default "normal" |
document.settings.contentImageStyle | object | Não | |
document.settings.contentImageStyle.size | "cover" | "contain" | "auto" | "custom" | Não | default "cover" |
document.settings.contentImageStyle.sizeValue | integer | Não | min 1 · max 400 · default 100 |
document.settings.contentImageStyle.x | integer | Não | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.y | integer | Não | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Não | default "no-repeat" |
document.settings.contentImageStyle.gapX | integer | Não | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.gapY | integer | Não | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.attachment | "scroll" | "fixed" | Não | default "scroll" |
document.settings.contentImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Não | default "normal" |
document.settings.contentCorners | object | null | Não | default null |
document.settings.contentCorners.topLeft | integer | Sim | min 0 · max 120 |
document.settings.contentCorners.topRight | integer | Sim | min 0 · max 120 |
document.settings.contentCorners.bottomRight | integer | Sim | min 0 · max 120 |
document.settings.contentCorners.bottomLeft | integer | Sim | min 0 · max 120 |
document.hero | object | null | Não | default null |
document.hero.coverColor | string | null | Não | default null |
document.hero.coverImage | string | Não | max length 2000 · default "" |
document.hero.coverImageStyle | object | Não | |
document.hero.coverImageStyle.size | "cover" | "contain" | "auto" | "custom" | Não | default "cover" |
document.hero.coverImageStyle.sizeValue | integer | Não | min 1 · max 400 · default 100 |
document.hero.coverImageStyle.x | integer | Não | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.y | integer | Não | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Não | default "no-repeat" |
document.hero.coverImageStyle.gapX | integer | Não | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.gapY | integer | Não | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.attachment | "scroll" | "fixed" | Não | default "scroll" |
document.hero.coverImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Não | default "normal" |
document.hero.coverHeight | integer | Não | min 40 · max 800 · default 200 |
document.hero.radius | integer | Não | min 0 · max 60 · default 16 |
document.hero.radiusTop | integer | null | Não | default null |
document.hero.radiusBottom | integer | null | Não | default null |
document.hero.fade | boolean | Não | default false |
document.hero.fadeColor | string | null | Não | default null |
document.hero.fadeHeight | integer | Não | min 5 · max 100 · default 50 |
document.hero.avatar | string | Não | max length 2000 · default "" |
document.hero.avatarAlt | string | Não | max length 200 · default "" |
document.hero.avatarSize | integer | Não | min 32 · max 320 · default 112 |
document.hero.avatarShape | "circle" | "rounded" | "square" | Não | default "circle" |
document.hero.avatarRadius | integer | Não | min 0 · max 80 · default 20 |
document.hero.avatarBorderWidth | integer | Não | min 0 · max 16 · default 4 |
document.hero.avatarBorderColor | string | Não | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow | object | null | Não | default null |
document.hero.avatarShadow.x | integer | Não | min -100 · max 100 · default 0 |
document.hero.avatarShadow.y | integer | Não | min -100 · max 100 · default 4 |
document.hero.avatarShadow.blur | integer | Não | min 0 · max 200 · default 16 |
document.hero.avatarShadow.spread | integer | Não | min -100 · max 100 · default 0 |
document.hero.avatarShadow.color | string | Não | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow.opacity | integer | Não | min 0 · max 100 · default 20 |
document.hero.avatarAlign | "left" | "center" | "right" | Não | default "center" |
document.hero.avatarOverlap | integer | Não | min 0 · max 100 · default 50 |
document.hero.buttonTheme | "dark" | "light" | Não | default "dark" |
document.hero.buttonSize | integer | Não | min 24 · max 72 · default 36 |
document.hero.buttonShape | "circle" | "rounded" | "square" | Não | default "circle" |
document.hero.buttonInset | integer | Não | min 0 · max 64 · default 12 |
document.hero.buttonOpacity | integer | Não | min 10 · max 100 · default 85 |
document.hero.left | array of object | Não | max items 3 |
document.hero.left[].id | string | Sim | 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" | Não | default "link" |
document.hero.left[].action | "link" | "share" | Não | default "link" |
document.hero.left[].url | string | Não | max length 2000 · default "" |
document.hero.left[].label | string | Não | max length 60 · default "" |
document.hero.right | array of object | Não | max items 3 |
document.hero.right[].id | string | Sim | 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" | Não | default "link" |
document.hero.right[].action | "link" | "share" | Não | default "link" |
document.hero.right[].url | string | Não | max length 2000 · default "" |
document.hero.right[].label | string | Não | max length 60 · default "" |
document.hero.padding | object | Não | |
document.hero.padding.top | integer | Sim | min 0 · max 200 |
document.hero.padding.right | integer | Sim | min 0 · max 200 |
document.hero.padding.bottom | integer | Sim | min 0 · max 200 |
document.hero.padding.left | integer | Sim | min 0 · max 200 |
document.rows | array of object | Sim | max items 100 |
document.rows[].id | string | Sim | min length 1 · max length 40 |
document.rows[].columns | array of object | Sim | min items 1 · max items 4 |
document.rows[].columns[].id | string | Sim | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Sim | max items 60 |
document.rows[].columns[].backgroundColor | string | null | Não | default null |
document.rows[].columns[].padding | object | Não | |
document.rows[].columns[].radius | integer | Não | min 0 · max 100 · default 0 |
document.rows[].columns[].verticalAlign | "top" | "middle" | "bottom" | Não | default "top" |
document.rows[].columns[].shadow | object | null | Não | default null |
document.rows[].widths | array of number | Sim | min items 1 · max items 4 |
document.rows[].backgroundColor | string | null | Não | default null |
document.rows[].backgroundImage | string | Não | max length 2000 · default "" |
document.rows[].fullWidth | boolean | Não | default false |
document.rows[].padding | object | Não | |
document.rows[].padding.top | integer | Sim | min 0 · max 200 |
document.rows[].padding.right | integer | Sim | min 0 · max 200 |
document.rows[].padding.bottom | integer | Sim | min 0 · max 200 |
document.rows[].padding.left | integer | Sim | min 0 · max 200 |
document.rows[].radius | integer | Não | min 0 · max 100 · default 0 |
document.rows[].borderColor | string | null | Não | default null |
document.rows[].borderWidth | integer | Não | min 0 · max 10 · default 0 |
document.rows[].stackOnMobile | boolean | Não | default true |
document.rows[].hideOn | "mobile" | "desktop" | null | Não | default null |
document.rows[].shadow | object | null | Não | default null |
document.rows[].shadow.x | integer | Não | min -100 · max 100 · default 0 |
document.rows[].shadow.y | integer | Não | min -100 · max 100 · default 4 |
document.rows[].shadow.blur | integer | Não | min 0 · max 200 · default 16 |
document.rows[].shadow.spread | integer | Não | min -100 · max 100 · default 0 |
document.rows[].shadow.color | string | Não | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.rows[].shadow.opacity | integer | Não | min 0 · max 100 · default 20 |
showBranding | boolean | Não | default true |
active | boolean | Não | default false |
Resposta
80 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
active | boolean | Sim |
clicks30 | integer | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | string | null | Sim |
document | object | Sim |
document.hero | null nos exemplos | Sim |
document.rows | array of object | Sim |
document.rows[].backgroundColor | null nos exemplos | Sim |
document.rows[].backgroundImage | string | Sim |
document.rows[].borderColor | null nos exemplos | Sim |
document.rows[].borderWidth | integer | Sim |
document.rows[].columns | array of object | Sim |
document.rows[].columns[].backgroundColor | null nos exemplos | Sim |
document.rows[].columns[].blocks | array of object | Sim |
document.rows[].columns[].id | string | Sim |
document.rows[].columns[].padding | object | Sim |
document.rows[].columns[].radius | integer | Sim |
document.rows[].columns[].shadow | null nos exemplos | Sim |
document.rows[].columns[].verticalAlign | string | Sim |
document.rows[].fullWidth | boolean | Sim |
document.rows[].hideOn | null nos exemplos | Sim |
document.rows[].id | string | Sim |
document.rows[].padding | object | Sim |
document.rows[].padding.bottom | integer | Sim |
document.rows[].padding.left | integer | Sim |
document.rows[].padding.right | integer | Sim |
document.rows[].padding.top | integer | Sim |
document.rows[].radius | integer | Sim |
document.rows[].shadow | null nos exemplos | Sim |
document.rows[].stackOnMobile | boolean | Sim |
document.rows[].widths | array of integer | Sim |
document.settings | object | Sim |
document.settings.backdropColor | string | Sim |
document.settings.backdropImage | string | Sim |
document.settings.backdropImageStyle | object | Sim |
document.settings.backdropImageStyle.attachment | string | Sim |
document.settings.backdropImageStyle.blend | string | Sim |
document.settings.backdropImageStyle.gapX | integer | Sim |
document.settings.backdropImageStyle.gapY | integer | Sim |
document.settings.backdropImageStyle.repeat | string | Sim |
document.settings.backdropImageStyle.size | string | Sim |
document.settings.backdropImageStyle.sizeValue | integer | Sim |
document.settings.backdropImageStyle.x | integer | Sim |
document.settings.backdropImageStyle.y | integer | Sim |
document.settings.contentColor | string | Sim |
document.settings.contentCorners | null nos exemplos | Sim |
document.settings.contentImage | string | Sim |
document.settings.contentImageStyle | object | Sim |
document.settings.contentImageStyle.attachment | string | Sim |
document.settings.contentImageStyle.blend | string | Sim |
document.settings.contentImageStyle.gapX | integer | Sim |
document.settings.contentImageStyle.gapY | integer | Sim |
document.settings.contentImageStyle.repeat | string | Sim |
document.settings.contentImageStyle.size | string | Sim |
document.settings.contentImageStyle.sizeValue | integer | Sim |
document.settings.contentImageStyle.x | integer | Sim |
document.settings.contentImageStyle.y | integer | Sim |
document.settings.fontFamily | string | Sim |
document.settings.fontSize | integer | Sim |
document.settings.headingColor | string | Sim |
document.settings.headingFontFamily | string | Sim |
document.settings.lineHeight | number | Sim |
document.settings.linkColor | string | Sim |
document.settings.onPrimaryColor | string | Sim |
document.settings.outerPadding | integer | Sim |
document.settings.primaryColor | string | Sim |
document.settings.radius | integer | Sim |
document.settings.textColor | string | Sim |
document.settings.width | integer | Sim |
document.version | integer | Sim |
id | string (uuid) | Sim |
name | string | Sim |
showBranding | boolean | Sim |
slug | string | Sim |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
views30 | integer | Sim |
Exemplo
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();Resposta (201), com valores de exemplo:
{
"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}
Exclui a micro página.
ExcluirEm caso de sucesso: 204.Permissão: Excluir.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Exemplo
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}
Retorna a micro página com seu documento.
Ver umEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Exemplo
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}
Altera a micro página: blocos, cabeçalho, visual e endereço.
AtualizarEm caso de sucesso: 200.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
name | string | Não | min length 1 · max length 120 |
slug | string | Não | pattern ^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$ |
title | string | Não | min length 1 · max length 120 |
description | string | null | Não | |
document | object | Não | |
document.version | 1 | Não | default 1 |
document.settings | object | Não | |
document.settings.backdropColor | string | Não | max length 400 · default "#ffffff" |
document.settings.contentColor | string | Não | max length 400 · default "#ffffff" |
document.settings.width | integer | Não | min 320 · max 1200 · default 720 |
document.settings.fontFamily | string | Não | max length 60 · default "Arial" |
document.settings.headingFontFamily | string | Não | max length 60 · default "Arial" |
document.settings.fontSize | integer | Não | min 0 · max 40 · default 16 |
document.settings.lineHeight | number | Não | min 0.8 · max 3 · default 1.5 |
document.settings.textColor | string | Não | default "#1f2937" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.headingColor | string | Não | default "#111827" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.linkColor | string | Não | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.primaryColor | string | Não | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.onPrimaryColor | string | Não | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.radius | integer | Não | min 0 · max 40 · default 0 |
document.settings.outerPadding | integer | Não | min 0 · max 120 · default 0 |
document.settings.backdropImage | string | Não | max length 2000 · default "" |
document.settings.contentImage | string | Não | max length 2000 · default "" |
document.settings.backdropImageStyle | object | Não | |
document.settings.backdropImageStyle.size | "cover" | "contain" | "auto" | "custom" | Não | default "cover" |
document.settings.backdropImageStyle.sizeValue | integer | Não | min 1 · max 400 · default 100 |
document.settings.backdropImageStyle.x | integer | Não | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.y | integer | Não | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Não | default "no-repeat" |
document.settings.backdropImageStyle.gapX | integer | Não | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.gapY | integer | Não | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.attachment | "scroll" | "fixed" | Não | default "scroll" |
document.settings.backdropImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Não | default "normal" |
document.settings.contentImageStyle | object | Não | |
document.settings.contentImageStyle.size | "cover" | "contain" | "auto" | "custom" | Não | default "cover" |
document.settings.contentImageStyle.sizeValue | integer | Não | min 1 · max 400 · default 100 |
document.settings.contentImageStyle.x | integer | Não | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.y | integer | Não | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Não | default "no-repeat" |
document.settings.contentImageStyle.gapX | integer | Não | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.gapY | integer | Não | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.attachment | "scroll" | "fixed" | Não | default "scroll" |
document.settings.contentImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Não | default "normal" |
document.settings.contentCorners | object | null | Não | default null |
document.settings.contentCorners.topLeft | integer | Sim | min 0 · max 120 |
document.settings.contentCorners.topRight | integer | Sim | min 0 · max 120 |
document.settings.contentCorners.bottomRight | integer | Sim | min 0 · max 120 |
document.settings.contentCorners.bottomLeft | integer | Sim | min 0 · max 120 |
document.hero | object | null | Não | default null |
document.hero.coverColor | string | null | Não | default null |
document.hero.coverImage | string | Não | max length 2000 · default "" |
document.hero.coverImageStyle | object | Não | |
document.hero.coverImageStyle.size | "cover" | "contain" | "auto" | "custom" | Não | default "cover" |
document.hero.coverImageStyle.sizeValue | integer | Não | min 1 · max 400 · default 100 |
document.hero.coverImageStyle.x | integer | Não | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.y | integer | Não | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Não | default "no-repeat" |
document.hero.coverImageStyle.gapX | integer | Não | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.gapY | integer | Não | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.attachment | "scroll" | "fixed" | Não | default "scroll" |
document.hero.coverImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Não | default "normal" |
document.hero.coverHeight | integer | Não | min 40 · max 800 · default 200 |
document.hero.radius | integer | Não | min 0 · max 60 · default 16 |
document.hero.radiusTop | integer | null | Não | default null |
document.hero.radiusBottom | integer | null | Não | default null |
document.hero.fade | boolean | Não | default false |
document.hero.fadeColor | string | null | Não | default null |
document.hero.fadeHeight | integer | Não | min 5 · max 100 · default 50 |
document.hero.avatar | string | Não | max length 2000 · default "" |
document.hero.avatarAlt | string | Não | max length 200 · default "" |
document.hero.avatarSize | integer | Não | min 32 · max 320 · default 112 |
document.hero.avatarShape | "circle" | "rounded" | "square" | Não | default "circle" |
document.hero.avatarRadius | integer | Não | min 0 · max 80 · default 20 |
document.hero.avatarBorderWidth | integer | Não | min 0 · max 16 · default 4 |
document.hero.avatarBorderColor | string | Não | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow | object | null | Não | default null |
document.hero.avatarShadow.x | integer | Não | min -100 · max 100 · default 0 |
document.hero.avatarShadow.y | integer | Não | min -100 · max 100 · default 4 |
document.hero.avatarShadow.blur | integer | Não | min 0 · max 200 · default 16 |
document.hero.avatarShadow.spread | integer | Não | min -100 · max 100 · default 0 |
document.hero.avatarShadow.color | string | Não | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow.opacity | integer | Não | min 0 · max 100 · default 20 |
document.hero.avatarAlign | "left" | "center" | "right" | Não | default "center" |
document.hero.avatarOverlap | integer | Não | min 0 · max 100 · default 50 |
document.hero.buttonTheme | "dark" | "light" | Não | default "dark" |
document.hero.buttonSize | integer | Não | min 24 · max 72 · default 36 |
document.hero.buttonShape | "circle" | "rounded" | "square" | Não | default "circle" |
document.hero.buttonInset | integer | Não | min 0 · max 64 · default 12 |
document.hero.buttonOpacity | integer | Não | min 10 · max 100 · default 85 |
document.hero.left | array of object | Não | max items 3 |
document.hero.left[].id | string | Sim | 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" | Não | default "link" |
document.hero.left[].action | "link" | "share" | Não | default "link" |
document.hero.left[].url | string | Não | max length 2000 · default "" |
document.hero.left[].label | string | Não | max length 60 · default "" |
document.hero.right | array of object | Não | max items 3 |
document.hero.right[].id | string | Sim | 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" | Não | default "link" |
document.hero.right[].action | "link" | "share" | Não | default "link" |
document.hero.right[].url | string | Não | max length 2000 · default "" |
document.hero.right[].label | string | Não | max length 60 · default "" |
document.hero.padding | object | Não | |
document.hero.padding.top | integer | Sim | min 0 · max 200 |
document.hero.padding.right | integer | Sim | min 0 · max 200 |
document.hero.padding.bottom | integer | Sim | min 0 · max 200 |
document.hero.padding.left | integer | Sim | min 0 · max 200 |
document.rows | array of object | Sim | max items 100 |
document.rows[].id | string | Sim | min length 1 · max length 40 |
document.rows[].columns | array of object | Sim | min items 1 · max items 4 |
document.rows[].columns[].id | string | Sim | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Sim | max items 60 |
document.rows[].columns[].backgroundColor | string | null | Não | default null |
document.rows[].columns[].padding | object | Não | |
document.rows[].columns[].radius | integer | Não | min 0 · max 100 · default 0 |
document.rows[].columns[].verticalAlign | "top" | "middle" | "bottom" | Não | default "top" |
document.rows[].columns[].shadow | object | null | Não | default null |
document.rows[].widths | array of number | Sim | min items 1 · max items 4 |
document.rows[].backgroundColor | string | null | Não | default null |
document.rows[].backgroundImage | string | Não | max length 2000 · default "" |
document.rows[].fullWidth | boolean | Não | default false |
document.rows[].padding | object | Não | |
document.rows[].padding.top | integer | Sim | min 0 · max 200 |
document.rows[].padding.right | integer | Sim | min 0 · max 200 |
document.rows[].padding.bottom | integer | Sim | min 0 · max 200 |
document.rows[].padding.left | integer | Sim | min 0 · max 200 |
document.rows[].radius | integer | Não | min 0 · max 100 · default 0 |
document.rows[].borderColor | string | null | Não | default null |
document.rows[].borderWidth | integer | Não | min 0 · max 10 · default 0 |
document.rows[].stackOnMobile | boolean | Não | default true |
document.rows[].hideOn | "mobile" | "desktop" | null | Não | default null |
document.rows[].shadow | object | null | Não | default null |
document.rows[].shadow.x | integer | Não | min -100 · max 100 · default 0 |
document.rows[].shadow.y | integer | Não | min -100 · max 100 · default 4 |
document.rows[].shadow.blur | integer | Não | min 0 · max 200 · default 16 |
document.rows[].shadow.spread | integer | Não | min -100 · max 100 · default 0 |
document.rows[].shadow.color | string | Não | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.rows[].shadow.opacity | integer | Não | min 0 · max 100 · default 20 |
showBranding | boolean | Não | |
active | boolean | Não |
Resposta
141 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
active | boolean | Sim |
clicks30 | integer | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | string | null | Sim |
document | object | Sim |
document.hero | object | null | Sim |
document.hero.avatar | string (uri) | Sim |
document.hero.avatarAlign | string | Sim |
document.hero.avatarAlt | string | Sim |
document.hero.avatarBorderColor | string | Sim |
document.hero.avatarBorderWidth | integer | Sim |
document.hero.avatarOverlap | integer | Sim |
document.hero.avatarRadius | integer | Sim |
document.hero.avatarShadow | null nos exemplos | Sim |
document.hero.avatarShape | string | Sim |
document.hero.avatarSize | integer | Sim |
document.hero.buttonInset | integer | Sim |
document.hero.buttonOpacity | integer | Sim |
document.hero.buttonShape | string | Sim |
document.hero.buttonSize | integer | Sim |
document.hero.buttonTheme | string | Sim |
document.hero.coverColor | string | Sim |
document.hero.coverHeight | integer | Sim |
document.hero.coverImage | string (uri) | Sim |
document.hero.coverImageStyle | object | Sim |
document.hero.coverImageStyle.attachment | string | Sim |
document.hero.coverImageStyle.blend | string | Sim |
document.hero.coverImageStyle.gapX | integer | Sim |
document.hero.coverImageStyle.gapY | integer | Sim |
document.hero.coverImageStyle.repeat | string | Sim |
document.hero.coverImageStyle.size | string | Sim |
document.hero.coverImageStyle.sizeValue | integer | Sim |
document.hero.coverImageStyle.x | integer | Sim |
document.hero.coverImageStyle.y | integer | Sim |
document.hero.fade | boolean | Sim |
document.hero.fadeColor | string | Sim |
document.hero.fadeHeight | integer | Sim |
document.hero.left | array of object | Sim |
document.hero.left[].action | string | Sim |
document.hero.left[].icon | string | Sim |
document.hero.left[].id | string | Sim |
document.hero.left[].label | string | Sim |
document.hero.left[].url | string (uri) | Sim |
document.hero.padding | object | Sim |
document.hero.padding.bottom | integer | Sim |
document.hero.padding.left | integer | Sim |
document.hero.padding.right | integer | Sim |
document.hero.padding.top | integer | Sim |
document.hero.radius | integer | Sim |
document.hero.radiusBottom | integer | Sim |
document.hero.radiusTop | integer | Sim |
document.hero.right | array of object | Sim |
document.hero.right[].action | string | Sim |
document.hero.right[].icon | string | Sim |
document.hero.right[].id | string | Sim |
document.hero.right[].label | string | Sim |
document.hero.right[].url | string | Sim |
document.rows | array of object | Sim |
document.rows[].backgroundColor | string | null | Sim |
document.rows[].backgroundImage | string | Sim |
document.rows[].borderColor | null nos exemplos | Sim |
document.rows[].borderWidth | integer | Sim |
document.rows[].columns | array of object | Sim |
document.rows[].columns[].backgroundColor | string | null | Sim |
document.rows[].columns[].blocks | array of object | Sim |
document.rows[].columns[].id | string | Sim |
document.rows[].columns[].padding | object | Sim |
document.rows[].columns[].radius | integer | Sim |
document.rows[].columns[].shadow | object | null | Sim |
document.rows[].columns[].verticalAlign | string | Sim |
document.rows[].fullWidth | boolean | Sim |
document.rows[].hideOn | null nos exemplos | Sim |
document.rows[].id | string | Sim |
document.rows[].padding | object | Sim |
document.rows[].padding.bottom | integer | Sim |
document.rows[].padding.left | integer | Sim |
document.rows[].padding.right | integer | Sim |
document.rows[].padding.top | integer | Sim |
document.rows[].radius | integer | Sim |
document.rows[].shadow | object | null | Sim |
document.rows[].shadow.blur | integer | Sim |
document.rows[].shadow.color | string | Sim |
document.rows[].shadow.opacity | integer | Sim |
document.rows[].shadow.spread | integer | Sim |
document.rows[].shadow.x | integer | Sim |
document.rows[].shadow.y | integer | Sim |
document.rows[].stackOnMobile | boolean | Sim |
document.rows[].widths | array of integer | Sim |
document.settings | object | Sim |
document.settings.backdropColor | string | Sim |
document.settings.backdropImage | string | Sim |
document.settings.backdropImageStyle | object | Sim |
document.settings.backdropImageStyle.attachment | string | Sim |
document.settings.backdropImageStyle.blend | string | Sim |
document.settings.backdropImageStyle.gapX | integer | Sim |
document.settings.backdropImageStyle.gapY | integer | Sim |
document.settings.backdropImageStyle.repeat | string | Sim |
document.settings.backdropImageStyle.size | string | Sim |
document.settings.backdropImageStyle.sizeValue | integer | Sim |
document.settings.backdropImageStyle.x | integer | Sim |
document.settings.backdropImageStyle.y | integer | Sim |
document.settings.contentColor | string | Sim |
document.settings.contentCorners | object | null | Sim |
document.settings.contentCorners.bottomLeft | integer | Sim |
document.settings.contentCorners.bottomRight | integer | Sim |
document.settings.contentCorners.topLeft | integer | Sim |
document.settings.contentCorners.topRight | integer | Sim |
document.settings.contentImage | string | Sim |
document.settings.contentImageStyle | object | Sim |
document.settings.contentImageStyle.attachment | string | Sim |
document.settings.contentImageStyle.blend | string | Sim |
document.settings.contentImageStyle.gapX | integer | Sim |
document.settings.contentImageStyle.gapY | integer | Sim |
document.settings.contentImageStyle.repeat | string | Sim |
document.settings.contentImageStyle.size | string | Sim |
document.settings.contentImageStyle.sizeValue | integer | Sim |
document.settings.contentImageStyle.x | integer | Sim |
document.settings.contentImageStyle.y | integer | Sim |
document.settings.fontFamily | string | Sim |
document.settings.fontSize | integer | Sim |
document.settings.headingColor | string | Sim |
document.settings.headingFontFamily | string | Sim |
document.settings.lineHeight | number | Sim |
document.settings.linkColor | string | Sim |
document.settings.onPrimaryColor | string | Sim |
document.settings.outerPadding | integer | Sim |
document.settings.primaryColor | string | Sim |
document.settings.radius | integer | Sim |
document.settings.textColor | string | Sim |
document.settings.width | integer | Sim |
document.version | integer | Sim |
id | string (uuid) | Sim |
name | string | Sim |
showBranding | boolean | Sim |
slug | string | Sim |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
views30 | integer | Sim |
Exemplo
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();Resposta (200), com valores de exemplo:
{
"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
Visitas e cliques da micro página, por dia.
Ler/{id}/statsEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
days | integer | Não | default 30 |
Resposta
17 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
blocks | array of object | Sim |
blocks[].clicks | integer | Sim |
blocks[].id | string | Sim |
blocks[].label | string | Sim |
blocks[].type | string | Sim |
days | integer | Sim |
series | array of object | Sim |
series[].clicks | integer | Sim |
series[].day | string (date) | Sim |
series[].views | integer | Sim |
sources | array of object | Sim |
sources[].source | string | Sim |
sources[].views | integer | Sim |
totals | object | Sim |
totals.clickRate | integer | null | Sim |
totals.clicks | integer | Sim |
totals.views | integer | Sim |
Exemplo
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();Resposta (200), com valores de exemplo:
{
"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
Se um endereço está livre para a micro página.
Ler/slug-checkEm caso de sucesso: 200.Permissão: Ler.
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
slug | string | Sim | max length 60 |
exclude | string (uuid) | Não |
Exemplo
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();Eventos de webhook
Mudanças desta funcionalidade que os webhooks podem enviar.
microsite.createdCriarmicrosite.updatedAtualizarmicrosite.deletedExcluir