Micrositio
Los bloques, la dirección y las cifras del micrositio.
Valores de los ejemplos
Escríbelos una vez y todos los ejemplos de esta página los usan. La clave de API se queda solo en esta página y nunca se guarda.
GET/v1/microsites
Lista los micrositios (uno por organización como máximo).
ListarSi va bien: 200.Permiso: Leer.
Ejemplo
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
Crea el micrositio (Pro, uno por organización).
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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 | Sí | min 0 · max 120 |
document.settings.contentCorners.topRight | integer | Sí | min 0 · max 120 |
document.settings.contentCorners.bottomRight | integer | Sí | min 0 · max 120 |
document.settings.contentCorners.bottomLeft | integer | Sí | 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 | Sí | 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 | Sí | 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 | Sí | min 0 · max 200 |
document.hero.padding.right | integer | Sí | min 0 · max 200 |
document.hero.padding.bottom | integer | Sí | min 0 · max 200 |
document.hero.padding.left | integer | Sí | min 0 · max 200 |
document.rows | array of object | Sí | max items 100 |
document.rows[].id | string | Sí | min length 1 · max length 40 |
document.rows[].columns | array of object | Sí | min items 1 · max items 4 |
document.rows[].columns[].id | string | Sí | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Sí | 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 | Sí | 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 | Sí | min 0 · max 200 |
document.rows[].padding.right | integer | Sí | min 0 · max 200 |
document.rows[].padding.bottom | integer | Sí | min 0 · max 200 |
document.rows[].padding.left | integer | Sí | 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 |
Respuesta
80 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
active | boolean | Sí |
clicks30 | integer | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
description | string | null | Sí |
document | object | Sí |
document.hero | null en los ejemplos | Sí |
document.rows | array of object | Sí |
document.rows[].backgroundColor | null en los ejemplos | Sí |
document.rows[].backgroundImage | string | Sí |
document.rows[].borderColor | null en los ejemplos | Sí |
document.rows[].borderWidth | integer | Sí |
document.rows[].columns | array of object | Sí |
document.rows[].columns[].backgroundColor | null en los ejemplos | Sí |
document.rows[].columns[].blocks | array of object | Sí |
document.rows[].columns[].id | string | Sí |
document.rows[].columns[].padding | object | Sí |
document.rows[].columns[].radius | integer | Sí |
document.rows[].columns[].shadow | null en los ejemplos | Sí |
document.rows[].columns[].verticalAlign | string | Sí |
document.rows[].fullWidth | boolean | Sí |
document.rows[].hideOn | null en los ejemplos | Sí |
document.rows[].id | string | Sí |
document.rows[].padding | object | Sí |
document.rows[].padding.bottom | integer | Sí |
document.rows[].padding.left | integer | Sí |
document.rows[].padding.right | integer | Sí |
document.rows[].padding.top | integer | Sí |
document.rows[].radius | integer | Sí |
document.rows[].shadow | null en los ejemplos | Sí |
document.rows[].stackOnMobile | boolean | Sí |
document.rows[].widths | array of integer | Sí |
document.settings | object | Sí |
document.settings.backdropColor | string | Sí |
document.settings.backdropImage | string | Sí |
document.settings.backdropImageStyle | object | Sí |
document.settings.backdropImageStyle.attachment | string | Sí |
document.settings.backdropImageStyle.blend | string | Sí |
document.settings.backdropImageStyle.gapX | integer | Sí |
document.settings.backdropImageStyle.gapY | integer | Sí |
document.settings.backdropImageStyle.repeat | string | Sí |
document.settings.backdropImageStyle.size | string | Sí |
document.settings.backdropImageStyle.sizeValue | integer | Sí |
document.settings.backdropImageStyle.x | integer | Sí |
document.settings.backdropImageStyle.y | integer | Sí |
document.settings.contentColor | string | Sí |
document.settings.contentCorners | null en los ejemplos | Sí |
document.settings.contentImage | string | Sí |
document.settings.contentImageStyle | object | Sí |
document.settings.contentImageStyle.attachment | string | Sí |
document.settings.contentImageStyle.blend | string | Sí |
document.settings.contentImageStyle.gapX | integer | Sí |
document.settings.contentImageStyle.gapY | integer | Sí |
document.settings.contentImageStyle.repeat | string | Sí |
document.settings.contentImageStyle.size | string | Sí |
document.settings.contentImageStyle.sizeValue | integer | Sí |
document.settings.contentImageStyle.x | integer | Sí |
document.settings.contentImageStyle.y | integer | Sí |
document.settings.fontFamily | string | Sí |
document.settings.fontSize | integer | Sí |
document.settings.headingColor | string | Sí |
document.settings.headingFontFamily | string | Sí |
document.settings.lineHeight | number | Sí |
document.settings.linkColor | string | Sí |
document.settings.onPrimaryColor | string | Sí |
document.settings.outerPadding | integer | Sí |
document.settings.primaryColor | string | Sí |
document.settings.radius | integer | Sí |
document.settings.textColor | string | Sí |
document.settings.width | integer | Sí |
document.version | integer | Sí |
id | string (uuid) | Sí |
name | string | Sí |
showBranding | boolean | Sí |
slug | string | Sí |
title | string | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
views30 | integer | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"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}
Elimina el micrositio.
EliminarSi va bien: 204.Permiso: Eliminar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
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}
Devuelve el micrositio con su documento.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
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}
Cambia el micrositio: bloques, cabecera, aspecto y dirección.
ActualizarSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
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 | Sí | min 0 · max 120 |
document.settings.contentCorners.topRight | integer | Sí | min 0 · max 120 |
document.settings.contentCorners.bottomRight | integer | Sí | min 0 · max 120 |
document.settings.contentCorners.bottomLeft | integer | Sí | 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 | Sí | 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 | Sí | 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 | Sí | min 0 · max 200 |
document.hero.padding.right | integer | Sí | min 0 · max 200 |
document.hero.padding.bottom | integer | Sí | min 0 · max 200 |
document.hero.padding.left | integer | Sí | min 0 · max 200 |
document.rows | array of object | Sí | max items 100 |
document.rows[].id | string | Sí | min length 1 · max length 40 |
document.rows[].columns | array of object | Sí | min items 1 · max items 4 |
document.rows[].columns[].id | string | Sí | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Sí | 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 | Sí | 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 | Sí | min 0 · max 200 |
document.rows[].padding.right | integer | Sí | min 0 · max 200 |
document.rows[].padding.bottom | integer | Sí | min 0 · max 200 |
document.rows[].padding.left | integer | Sí | 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 |
Respuesta
141 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
active | boolean | Sí |
clicks30 | integer | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
description | string | null | Sí |
document | object | Sí |
document.hero | object | null | Sí |
document.hero.avatar | string (uri) | Sí |
document.hero.avatarAlign | string | Sí |
document.hero.avatarAlt | string | Sí |
document.hero.avatarBorderColor | string | Sí |
document.hero.avatarBorderWidth | integer | Sí |
document.hero.avatarOverlap | integer | Sí |
document.hero.avatarRadius | integer | Sí |
document.hero.avatarShadow | null en los ejemplos | Sí |
document.hero.avatarShape | string | Sí |
document.hero.avatarSize | integer | Sí |
document.hero.buttonInset | integer | Sí |
document.hero.buttonOpacity | integer | Sí |
document.hero.buttonShape | string | Sí |
document.hero.buttonSize | integer | Sí |
document.hero.buttonTheme | string | Sí |
document.hero.coverColor | string | Sí |
document.hero.coverHeight | integer | Sí |
document.hero.coverImage | string (uri) | Sí |
document.hero.coverImageStyle | object | Sí |
document.hero.coverImageStyle.attachment | string | Sí |
document.hero.coverImageStyle.blend | string | Sí |
document.hero.coverImageStyle.gapX | integer | Sí |
document.hero.coverImageStyle.gapY | integer | Sí |
document.hero.coverImageStyle.repeat | string | Sí |
document.hero.coverImageStyle.size | string | Sí |
document.hero.coverImageStyle.sizeValue | integer | Sí |
document.hero.coverImageStyle.x | integer | Sí |
document.hero.coverImageStyle.y | integer | Sí |
document.hero.fade | boolean | Sí |
document.hero.fadeColor | string | Sí |
document.hero.fadeHeight | integer | Sí |
document.hero.left | array of object | Sí |
document.hero.left[].action | string | Sí |
document.hero.left[].icon | string | Sí |
document.hero.left[].id | string | Sí |
document.hero.left[].label | string | Sí |
document.hero.left[].url | string (uri) | Sí |
document.hero.padding | object | Sí |
document.hero.padding.bottom | integer | Sí |
document.hero.padding.left | integer | Sí |
document.hero.padding.right | integer | Sí |
document.hero.padding.top | integer | Sí |
document.hero.radius | integer | Sí |
document.hero.radiusBottom | integer | Sí |
document.hero.radiusTop | integer | Sí |
document.hero.right | array of object | Sí |
document.hero.right[].action | string | Sí |
document.hero.right[].icon | string | Sí |
document.hero.right[].id | string | Sí |
document.hero.right[].label | string | Sí |
document.hero.right[].url | string | Sí |
document.rows | array of object | Sí |
document.rows[].backgroundColor | string | null | Sí |
document.rows[].backgroundImage | string | Sí |
document.rows[].borderColor | null en los ejemplos | Sí |
document.rows[].borderWidth | integer | Sí |
document.rows[].columns | array of object | Sí |
document.rows[].columns[].backgroundColor | string | null | Sí |
document.rows[].columns[].blocks | array of object | Sí |
document.rows[].columns[].id | string | Sí |
document.rows[].columns[].padding | object | Sí |
document.rows[].columns[].radius | integer | Sí |
document.rows[].columns[].shadow | object | null | Sí |
document.rows[].columns[].verticalAlign | string | Sí |
document.rows[].fullWidth | boolean | Sí |
document.rows[].hideOn | null en los ejemplos | Sí |
document.rows[].id | string | Sí |
document.rows[].padding | object | Sí |
document.rows[].padding.bottom | integer | Sí |
document.rows[].padding.left | integer | Sí |
document.rows[].padding.right | integer | Sí |
document.rows[].padding.top | integer | Sí |
document.rows[].radius | integer | Sí |
document.rows[].shadow | object | null | Sí |
document.rows[].shadow.blur | integer | Sí |
document.rows[].shadow.color | string | Sí |
document.rows[].shadow.opacity | integer | Sí |
document.rows[].shadow.spread | integer | Sí |
document.rows[].shadow.x | integer | Sí |
document.rows[].shadow.y | integer | Sí |
document.rows[].stackOnMobile | boolean | Sí |
document.rows[].widths | array of integer | Sí |
document.settings | object | Sí |
document.settings.backdropColor | string | Sí |
document.settings.backdropImage | string | Sí |
document.settings.backdropImageStyle | object | Sí |
document.settings.backdropImageStyle.attachment | string | Sí |
document.settings.backdropImageStyle.blend | string | Sí |
document.settings.backdropImageStyle.gapX | integer | Sí |
document.settings.backdropImageStyle.gapY | integer | Sí |
document.settings.backdropImageStyle.repeat | string | Sí |
document.settings.backdropImageStyle.size | string | Sí |
document.settings.backdropImageStyle.sizeValue | integer | Sí |
document.settings.backdropImageStyle.x | integer | Sí |
document.settings.backdropImageStyle.y | integer | Sí |
document.settings.contentColor | string | Sí |
document.settings.contentCorners | object | null | Sí |
document.settings.contentCorners.bottomLeft | integer | Sí |
document.settings.contentCorners.bottomRight | integer | Sí |
document.settings.contentCorners.topLeft | integer | Sí |
document.settings.contentCorners.topRight | integer | Sí |
document.settings.contentImage | string | Sí |
document.settings.contentImageStyle | object | Sí |
document.settings.contentImageStyle.attachment | string | Sí |
document.settings.contentImageStyle.blend | string | Sí |
document.settings.contentImageStyle.gapX | integer | Sí |
document.settings.contentImageStyle.gapY | integer | Sí |
document.settings.contentImageStyle.repeat | string | Sí |
document.settings.contentImageStyle.size | string | Sí |
document.settings.contentImageStyle.sizeValue | integer | Sí |
document.settings.contentImageStyle.x | integer | Sí |
document.settings.contentImageStyle.y | integer | Sí |
document.settings.fontFamily | string | Sí |
document.settings.fontSize | integer | Sí |
document.settings.headingColor | string | Sí |
document.settings.headingFontFamily | string | Sí |
document.settings.lineHeight | number | Sí |
document.settings.linkColor | string | Sí |
document.settings.onPrimaryColor | string | Sí |
document.settings.outerPadding | integer | Sí |
document.settings.primaryColor | string | Sí |
document.settings.radius | integer | Sí |
document.settings.textColor | string | Sí |
document.settings.width | integer | Sí |
document.version | integer | Sí |
id | string (uuid) | Sí |
name | string | Sí |
showBranding | boolean | Sí |
slug | string | Sí |
title | string | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
views30 | integer | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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 y clics del micrositio, por día.
Leer/{id}/statsSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
days | integer | No | default 30 |
Respuesta
17 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
blocks | array of object | Sí |
blocks[].clicks | integer | Sí |
blocks[].id | string | Sí |
blocks[].label | string | Sí |
blocks[].type | string | Sí |
days | integer | Sí |
series | array of object | Sí |
series[].clicks | integer | Sí |
series[].day | string (date) | Sí |
series[].views | integer | Sí |
sources | array of object | Sí |
sources[].source | string | Sí |
sources[].views | integer | Sí |
totals | object | Sí |
totals.clickRate | integer | null | Sí |
totals.clicks | integer | Sí |
totals.views | integer | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Si una dirección está libre para el micrositio.
Leer/slug-checkSi va bien: 200.Permiso: Leer.
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
slug | string | Sí | max length 60 |
exclude | string (uuid) | No |
Ejemplo
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
Cambios de esta funcionalidad que los webhooks pueden enviar.
microsite.createdCrearmicrosite.updatedActualizarmicrosite.deletedEliminar