Mini-site
Les blocs, l’adresse et les chiffres du mini-site.
Valeurs des exemples
Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.
GET/v1/microsites
Liste les mini-sites (un par organisation au plus).
ListerEn cas de succès : 200.Permission : Lire.
Exemple
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
Crée le mini-site (Pro, un par organisation).
CréerEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Non | min length 1 · max length 120 |
slug | string | Non | pattern ^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$ |
title | string | Non | min length 1 · max length 120 |
description | string | null | Non | |
document | object | Non | |
document.version | 1 | Non | default 1 |
document.settings | object | Non | |
document.settings.backdropColor | string | Non | max length 400 · default "#ffffff" |
document.settings.contentColor | string | Non | max length 400 · default "#ffffff" |
document.settings.width | integer | Non | min 320 · max 1200 · default 720 |
document.settings.fontFamily | string | Non | max length 60 · default "Arial" |
document.settings.headingFontFamily | string | Non | max length 60 · default "Arial" |
document.settings.fontSize | integer | Non | min 0 · max 40 · default 16 |
document.settings.lineHeight | number | Non | min 0.8 · max 3 · default 1.5 |
document.settings.textColor | string | Non | default "#1f2937" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.headingColor | string | Non | default "#111827" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.linkColor | string | Non | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.primaryColor | string | Non | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.onPrimaryColor | string | Non | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.radius | integer | Non | min 0 · max 40 · default 0 |
document.settings.outerPadding | integer | Non | min 0 · max 120 · default 0 |
document.settings.backdropImage | string | Non | max length 2000 · default "" |
document.settings.contentImage | string | Non | max length 2000 · default "" |
document.settings.backdropImageStyle | object | Non | |
document.settings.backdropImageStyle.size | "cover" | "contain" | "auto" | "custom" | Non | default "cover" |
document.settings.backdropImageStyle.sizeValue | integer | Non | min 1 · max 400 · default 100 |
document.settings.backdropImageStyle.x | integer | Non | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.y | integer | Non | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Non | default "no-repeat" |
document.settings.backdropImageStyle.gapX | integer | Non | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.gapY | integer | Non | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.attachment | "scroll" | "fixed" | Non | default "scroll" |
document.settings.backdropImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Non | default "normal" |
document.settings.contentImageStyle | object | Non | |
document.settings.contentImageStyle.size | "cover" | "contain" | "auto" | "custom" | Non | default "cover" |
document.settings.contentImageStyle.sizeValue | integer | Non | min 1 · max 400 · default 100 |
document.settings.contentImageStyle.x | integer | Non | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.y | integer | Non | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Non | default "no-repeat" |
document.settings.contentImageStyle.gapX | integer | Non | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.gapY | integer | Non | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.attachment | "scroll" | "fixed" | Non | default "scroll" |
document.settings.contentImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Non | default "normal" |
document.settings.contentCorners | object | null | Non | default null |
document.settings.contentCorners.topLeft | integer | Oui | min 0 · max 120 |
document.settings.contentCorners.topRight | integer | Oui | min 0 · max 120 |
document.settings.contentCorners.bottomRight | integer | Oui | min 0 · max 120 |
document.settings.contentCorners.bottomLeft | integer | Oui | min 0 · max 120 |
document.hero | object | null | Non | default null |
document.hero.coverColor | string | null | Non | default null |
document.hero.coverImage | string | Non | max length 2000 · default "" |
document.hero.coverImageStyle | object | Non | |
document.hero.coverImageStyle.size | "cover" | "contain" | "auto" | "custom" | Non | default "cover" |
document.hero.coverImageStyle.sizeValue | integer | Non | min 1 · max 400 · default 100 |
document.hero.coverImageStyle.x | integer | Non | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.y | integer | Non | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Non | default "no-repeat" |
document.hero.coverImageStyle.gapX | integer | Non | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.gapY | integer | Non | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.attachment | "scroll" | "fixed" | Non | default "scroll" |
document.hero.coverImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Non | default "normal" |
document.hero.coverHeight | integer | Non | min 40 · max 800 · default 200 |
document.hero.radius | integer | Non | min 0 · max 60 · default 16 |
document.hero.radiusTop | integer | null | Non | default null |
document.hero.radiusBottom | integer | null | Non | default null |
document.hero.fade | boolean | Non | default false |
document.hero.fadeColor | string | null | Non | default null |
document.hero.fadeHeight | integer | Non | min 5 · max 100 · default 50 |
document.hero.avatar | string | Non | max length 2000 · default "" |
document.hero.avatarAlt | string | Non | max length 200 · default "" |
document.hero.avatarSize | integer | Non | min 32 · max 320 · default 112 |
document.hero.avatarShape | "circle" | "rounded" | "square" | Non | default "circle" |
document.hero.avatarRadius | integer | Non | min 0 · max 80 · default 20 |
document.hero.avatarBorderWidth | integer | Non | min 0 · max 16 · default 4 |
document.hero.avatarBorderColor | string | Non | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow | object | null | Non | default null |
document.hero.avatarShadow.x | integer | Non | min -100 · max 100 · default 0 |
document.hero.avatarShadow.y | integer | Non | min -100 · max 100 · default 4 |
document.hero.avatarShadow.blur | integer | Non | min 0 · max 200 · default 16 |
document.hero.avatarShadow.spread | integer | Non | min -100 · max 100 · default 0 |
document.hero.avatarShadow.color | string | Non | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow.opacity | integer | Non | min 0 · max 100 · default 20 |
document.hero.avatarAlign | "left" | "center" | "right" | Non | default "center" |
document.hero.avatarOverlap | integer | Non | min 0 · max 100 · default 50 |
document.hero.buttonTheme | "dark" | "light" | Non | default "dark" |
document.hero.buttonSize | integer | Non | min 24 · max 72 · default 36 |
document.hero.buttonShape | "circle" | "rounded" | "square" | Non | default "circle" |
document.hero.buttonInset | integer | Non | min 0 · max 64 · default 12 |
document.hero.buttonOpacity | integer | Non | min 10 · max 100 · default 85 |
document.hero.left | array of object | Non | max items 3 |
document.hero.left[].id | string | Oui | 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" | Non | default "link" |
document.hero.left[].action | "link" | "share" | Non | default "link" |
document.hero.left[].url | string | Non | max length 2000 · default "" |
document.hero.left[].label | string | Non | max length 60 · default "" |
document.hero.right | array of object | Non | max items 3 |
document.hero.right[].id | string | Oui | 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" | Non | default "link" |
document.hero.right[].action | "link" | "share" | Non | default "link" |
document.hero.right[].url | string | Non | max length 2000 · default "" |
document.hero.right[].label | string | Non | max length 60 · default "" |
document.hero.padding | object | Non | |
document.hero.padding.top | integer | Oui | min 0 · max 200 |
document.hero.padding.right | integer | Oui | min 0 · max 200 |
document.hero.padding.bottom | integer | Oui | min 0 · max 200 |
document.hero.padding.left | integer | Oui | min 0 · max 200 |
document.rows | array of object | Oui | max items 100 |
document.rows[].id | string | Oui | min length 1 · max length 40 |
document.rows[].columns | array of object | Oui | min items 1 · max items 4 |
document.rows[].columns[].id | string | Oui | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Oui | max items 60 |
document.rows[].columns[].backgroundColor | string | null | Non | default null |
document.rows[].columns[].padding | object | Non | |
document.rows[].columns[].radius | integer | Non | min 0 · max 100 · default 0 |
document.rows[].columns[].verticalAlign | "top" | "middle" | "bottom" | Non | default "top" |
document.rows[].columns[].shadow | object | null | Non | default null |
document.rows[].widths | array of number | Oui | min items 1 · max items 4 |
document.rows[].backgroundColor | string | null | Non | default null |
document.rows[].backgroundImage | string | Non | max length 2000 · default "" |
document.rows[].fullWidth | boolean | Non | default false |
document.rows[].padding | object | Non | |
document.rows[].padding.top | integer | Oui | min 0 · max 200 |
document.rows[].padding.right | integer | Oui | min 0 · max 200 |
document.rows[].padding.bottom | integer | Oui | min 0 · max 200 |
document.rows[].padding.left | integer | Oui | min 0 · max 200 |
document.rows[].radius | integer | Non | min 0 · max 100 · default 0 |
document.rows[].borderColor | string | null | Non | default null |
document.rows[].borderWidth | integer | Non | min 0 · max 10 · default 0 |
document.rows[].stackOnMobile | boolean | Non | default true |
document.rows[].hideOn | "mobile" | "desktop" | null | Non | default null |
document.rows[].shadow | object | null | Non | default null |
document.rows[].shadow.x | integer | Non | min -100 · max 100 · default 0 |
document.rows[].shadow.y | integer | Non | min -100 · max 100 · default 4 |
document.rows[].shadow.blur | integer | Non | min 0 · max 200 · default 16 |
document.rows[].shadow.spread | integer | Non | min -100 · max 100 · default 0 |
document.rows[].shadow.color | string | Non | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.rows[].shadow.opacity | integer | Non | min 0 · max 100 · default 20 |
showBranding | boolean | Non | default true |
active | boolean | Non | default false |
Réponse
80 champs
| Champ | Type | Toujours présent |
|---|---|---|
active | boolean | Oui |
clicks30 | integer | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
description | string | null | Oui |
document | object | Oui |
document.hero | null dans les exemples | Oui |
document.rows | array of object | Oui |
document.rows[].backgroundColor | null dans les exemples | Oui |
document.rows[].backgroundImage | string | Oui |
document.rows[].borderColor | null dans les exemples | Oui |
document.rows[].borderWidth | integer | Oui |
document.rows[].columns | array of object | Oui |
document.rows[].columns[].backgroundColor | null dans les exemples | Oui |
document.rows[].columns[].blocks | array of object | Oui |
document.rows[].columns[].id | string | Oui |
document.rows[].columns[].padding | object | Oui |
document.rows[].columns[].radius | integer | Oui |
document.rows[].columns[].shadow | null dans les exemples | Oui |
document.rows[].columns[].verticalAlign | string | Oui |
document.rows[].fullWidth | boolean | Oui |
document.rows[].hideOn | null dans les exemples | Oui |
document.rows[].id | string | Oui |
document.rows[].padding | object | Oui |
document.rows[].padding.bottom | integer | Oui |
document.rows[].padding.left | integer | Oui |
document.rows[].padding.right | integer | Oui |
document.rows[].padding.top | integer | Oui |
document.rows[].radius | integer | Oui |
document.rows[].shadow | null dans les exemples | Oui |
document.rows[].stackOnMobile | boolean | Oui |
document.rows[].widths | array of integer | Oui |
document.settings | object | Oui |
document.settings.backdropColor | string | Oui |
document.settings.backdropImage | string | Oui |
document.settings.backdropImageStyle | object | Oui |
document.settings.backdropImageStyle.attachment | string | Oui |
document.settings.backdropImageStyle.blend | string | Oui |
document.settings.backdropImageStyle.gapX | integer | Oui |
document.settings.backdropImageStyle.gapY | integer | Oui |
document.settings.backdropImageStyle.repeat | string | Oui |
document.settings.backdropImageStyle.size | string | Oui |
document.settings.backdropImageStyle.sizeValue | integer | Oui |
document.settings.backdropImageStyle.x | integer | Oui |
document.settings.backdropImageStyle.y | integer | Oui |
document.settings.contentColor | string | Oui |
document.settings.contentCorners | null dans les exemples | Oui |
document.settings.contentImage | string | Oui |
document.settings.contentImageStyle | object | Oui |
document.settings.contentImageStyle.attachment | string | Oui |
document.settings.contentImageStyle.blend | string | Oui |
document.settings.contentImageStyle.gapX | integer | Oui |
document.settings.contentImageStyle.gapY | integer | Oui |
document.settings.contentImageStyle.repeat | string | Oui |
document.settings.contentImageStyle.size | string | Oui |
document.settings.contentImageStyle.sizeValue | integer | Oui |
document.settings.contentImageStyle.x | integer | Oui |
document.settings.contentImageStyle.y | integer | Oui |
document.settings.fontFamily | string | Oui |
document.settings.fontSize | integer | Oui |
document.settings.headingColor | string | Oui |
document.settings.headingFontFamily | string | Oui |
document.settings.lineHeight | number | Oui |
document.settings.linkColor | string | Oui |
document.settings.onPrimaryColor | string | Oui |
document.settings.outerPadding | integer | Oui |
document.settings.primaryColor | string | Oui |
document.settings.radius | integer | Oui |
document.settings.textColor | string | Oui |
document.settings.width | integer | Oui |
document.version | integer | Oui |
id | string (uuid) | Oui |
name | string | Oui |
showBranding | boolean | Oui |
slug | string | Oui |
title | string | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
views30 | integer | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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}
Supprime le mini-site.
SupprimerEn cas de succès : 204.Permission : Supprimer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Renvoie le mini-site avec son document.
Voir unEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Modifie le mini-site : blocs, en-tête, apparence et adresse.
ModifierEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Non | min length 1 · max length 120 |
slug | string | Non | pattern ^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$ |
title | string | Non | min length 1 · max length 120 |
description | string | null | Non | |
document | object | Non | |
document.version | 1 | Non | default 1 |
document.settings | object | Non | |
document.settings.backdropColor | string | Non | max length 400 · default "#ffffff" |
document.settings.contentColor | string | Non | max length 400 · default "#ffffff" |
document.settings.width | integer | Non | min 320 · max 1200 · default 720 |
document.settings.fontFamily | string | Non | max length 60 · default "Arial" |
document.settings.headingFontFamily | string | Non | max length 60 · default "Arial" |
document.settings.fontSize | integer | Non | min 0 · max 40 · default 16 |
document.settings.lineHeight | number | Non | min 0.8 · max 3 · default 1.5 |
document.settings.textColor | string | Non | default "#1f2937" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.headingColor | string | Non | default "#111827" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.linkColor | string | Non | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.primaryColor | string | Non | default "#2563eb" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.onPrimaryColor | string | Non | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.settings.radius | integer | Non | min 0 · max 40 · default 0 |
document.settings.outerPadding | integer | Non | min 0 · max 120 · default 0 |
document.settings.backdropImage | string | Non | max length 2000 · default "" |
document.settings.contentImage | string | Non | max length 2000 · default "" |
document.settings.backdropImageStyle | object | Non | |
document.settings.backdropImageStyle.size | "cover" | "contain" | "auto" | "custom" | Non | default "cover" |
document.settings.backdropImageStyle.sizeValue | integer | Non | min 1 · max 400 · default 100 |
document.settings.backdropImageStyle.x | integer | Non | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.y | integer | Non | min 0 · max 100 · default 50 |
document.settings.backdropImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Non | default "no-repeat" |
document.settings.backdropImageStyle.gapX | integer | Non | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.gapY | integer | Non | min 0 · max 400 · default 0 |
document.settings.backdropImageStyle.attachment | "scroll" | "fixed" | Non | default "scroll" |
document.settings.backdropImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Non | default "normal" |
document.settings.contentImageStyle | object | Non | |
document.settings.contentImageStyle.size | "cover" | "contain" | "auto" | "custom" | Non | default "cover" |
document.settings.contentImageStyle.sizeValue | integer | Non | min 1 · max 400 · default 100 |
document.settings.contentImageStyle.x | integer | Non | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.y | integer | Non | min 0 · max 100 · default 50 |
document.settings.contentImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Non | default "no-repeat" |
document.settings.contentImageStyle.gapX | integer | Non | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.gapY | integer | Non | min 0 · max 400 · default 0 |
document.settings.contentImageStyle.attachment | "scroll" | "fixed" | Non | default "scroll" |
document.settings.contentImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Non | default "normal" |
document.settings.contentCorners | object | null | Non | default null |
document.settings.contentCorners.topLeft | integer | Oui | min 0 · max 120 |
document.settings.contentCorners.topRight | integer | Oui | min 0 · max 120 |
document.settings.contentCorners.bottomRight | integer | Oui | min 0 · max 120 |
document.settings.contentCorners.bottomLeft | integer | Oui | min 0 · max 120 |
document.hero | object | null | Non | default null |
document.hero.coverColor | string | null | Non | default null |
document.hero.coverImage | string | Non | max length 2000 · default "" |
document.hero.coverImageStyle | object | Non | |
document.hero.coverImageStyle.size | "cover" | "contain" | "auto" | "custom" | Non | default "cover" |
document.hero.coverImageStyle.sizeValue | integer | Non | min 1 · max 400 · default 100 |
document.hero.coverImageStyle.x | integer | Non | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.y | integer | Non | min 0 · max 100 · default 50 |
document.hero.coverImageStyle.repeat | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "space" | "round" | Non | default "no-repeat" |
document.hero.coverImageStyle.gapX | integer | Non | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.gapY | integer | Non | min 0 · max 400 · default 0 |
document.hero.coverImageStyle.attachment | "scroll" | "fixed" | Non | default "scroll" |
document.hero.coverImageStyle.blend | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "soft-light" | "hard-light" | "difference" | "luminosity" | Non | default "normal" |
document.hero.coverHeight | integer | Non | min 40 · max 800 · default 200 |
document.hero.radius | integer | Non | min 0 · max 60 · default 16 |
document.hero.radiusTop | integer | null | Non | default null |
document.hero.radiusBottom | integer | null | Non | default null |
document.hero.fade | boolean | Non | default false |
document.hero.fadeColor | string | null | Non | default null |
document.hero.fadeHeight | integer | Non | min 5 · max 100 · default 50 |
document.hero.avatar | string | Non | max length 2000 · default "" |
document.hero.avatarAlt | string | Non | max length 200 · default "" |
document.hero.avatarSize | integer | Non | min 32 · max 320 · default 112 |
document.hero.avatarShape | "circle" | "rounded" | "square" | Non | default "circle" |
document.hero.avatarRadius | integer | Non | min 0 · max 80 · default 20 |
document.hero.avatarBorderWidth | integer | Non | min 0 · max 16 · default 4 |
document.hero.avatarBorderColor | string | Non | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow | object | null | Non | default null |
document.hero.avatarShadow.x | integer | Non | min -100 · max 100 · default 0 |
document.hero.avatarShadow.y | integer | Non | min -100 · max 100 · default 4 |
document.hero.avatarShadow.blur | integer | Non | min 0 · max 200 · default 16 |
document.hero.avatarShadow.spread | integer | Non | min -100 · max 100 · default 0 |
document.hero.avatarShadow.color | string | Non | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.hero.avatarShadow.opacity | integer | Non | min 0 · max 100 · default 20 |
document.hero.avatarAlign | "left" | "center" | "right" | Non | default "center" |
document.hero.avatarOverlap | integer | Non | min 0 · max 100 · default 50 |
document.hero.buttonTheme | "dark" | "light" | Non | default "dark" |
document.hero.buttonSize | integer | Non | min 24 · max 72 · default 36 |
document.hero.buttonShape | "circle" | "rounded" | "square" | Non | default "circle" |
document.hero.buttonInset | integer | Non | min 0 · max 64 · default 12 |
document.hero.buttonOpacity | integer | Non | min 10 · max 100 · default 85 |
document.hero.left | array of object | Non | max items 3 |
document.hero.left[].id | string | Oui | 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" | Non | default "link" |
document.hero.left[].action | "link" | "share" | Non | default "link" |
document.hero.left[].url | string | Non | max length 2000 · default "" |
document.hero.left[].label | string | Non | max length 60 · default "" |
document.hero.right | array of object | Non | max items 3 |
document.hero.right[].id | string | Oui | 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" | Non | default "link" |
document.hero.right[].action | "link" | "share" | Non | default "link" |
document.hero.right[].url | string | Non | max length 2000 · default "" |
document.hero.right[].label | string | Non | max length 60 · default "" |
document.hero.padding | object | Non | |
document.hero.padding.top | integer | Oui | min 0 · max 200 |
document.hero.padding.right | integer | Oui | min 0 · max 200 |
document.hero.padding.bottom | integer | Oui | min 0 · max 200 |
document.hero.padding.left | integer | Oui | min 0 · max 200 |
document.rows | array of object | Oui | max items 100 |
document.rows[].id | string | Oui | min length 1 · max length 40 |
document.rows[].columns | array of object | Oui | min items 1 · max items 4 |
document.rows[].columns[].id | string | Oui | min length 1 · max length 40 |
document.rows[].columns[].blocks | array of object | Oui | max items 60 |
document.rows[].columns[].backgroundColor | string | null | Non | default null |
document.rows[].columns[].padding | object | Non | |
document.rows[].columns[].radius | integer | Non | min 0 · max 100 · default 0 |
document.rows[].columns[].verticalAlign | "top" | "middle" | "bottom" | Non | default "top" |
document.rows[].columns[].shadow | object | null | Non | default null |
document.rows[].widths | array of number | Oui | min items 1 · max items 4 |
document.rows[].backgroundColor | string | null | Non | default null |
document.rows[].backgroundImage | string | Non | max length 2000 · default "" |
document.rows[].fullWidth | boolean | Non | default false |
document.rows[].padding | object | Non | |
document.rows[].padding.top | integer | Oui | min 0 · max 200 |
document.rows[].padding.right | integer | Oui | min 0 · max 200 |
document.rows[].padding.bottom | integer | Oui | min 0 · max 200 |
document.rows[].padding.left | integer | Oui | min 0 · max 200 |
document.rows[].radius | integer | Non | min 0 · max 100 · default 0 |
document.rows[].borderColor | string | null | Non | default null |
document.rows[].borderWidth | integer | Non | min 0 · max 10 · default 0 |
document.rows[].stackOnMobile | boolean | Non | default true |
document.rows[].hideOn | "mobile" | "desktop" | null | Non | default null |
document.rows[].shadow | object | null | Non | default null |
document.rows[].shadow.x | integer | Non | min -100 · max 100 · default 0 |
document.rows[].shadow.y | integer | Non | min -100 · max 100 · default 4 |
document.rows[].shadow.blur | integer | Non | min 0 · max 200 · default 16 |
document.rows[].shadow.spread | integer | Non | min -100 · max 100 · default 0 |
document.rows[].shadow.color | string | Non | default "#000000" · pattern ^#[0-9a-fA-F]{6}$ |
document.rows[].shadow.opacity | integer | Non | min 0 · max 100 · default 20 |
showBranding | boolean | Non | |
active | boolean | Non |
Réponse
141 champs
| Champ | Type | Toujours présent |
|---|---|---|
active | boolean | Oui |
clicks30 | integer | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
description | string | null | Oui |
document | object | Oui |
document.hero | object | null | Oui |
document.hero.avatar | string (uri) | Oui |
document.hero.avatarAlign | string | Oui |
document.hero.avatarAlt | string | Oui |
document.hero.avatarBorderColor | string | Oui |
document.hero.avatarBorderWidth | integer | Oui |
document.hero.avatarOverlap | integer | Oui |
document.hero.avatarRadius | integer | Oui |
document.hero.avatarShadow | null dans les exemples | Oui |
document.hero.avatarShape | string | Oui |
document.hero.avatarSize | integer | Oui |
document.hero.buttonInset | integer | Oui |
document.hero.buttonOpacity | integer | Oui |
document.hero.buttonShape | string | Oui |
document.hero.buttonSize | integer | Oui |
document.hero.buttonTheme | string | Oui |
document.hero.coverColor | string | Oui |
document.hero.coverHeight | integer | Oui |
document.hero.coverImage | string (uri) | Oui |
document.hero.coverImageStyle | object | Oui |
document.hero.coverImageStyle.attachment | string | Oui |
document.hero.coverImageStyle.blend | string | Oui |
document.hero.coverImageStyle.gapX | integer | Oui |
document.hero.coverImageStyle.gapY | integer | Oui |
document.hero.coverImageStyle.repeat | string | Oui |
document.hero.coverImageStyle.size | string | Oui |
document.hero.coverImageStyle.sizeValue | integer | Oui |
document.hero.coverImageStyle.x | integer | Oui |
document.hero.coverImageStyle.y | integer | Oui |
document.hero.fade | boolean | Oui |
document.hero.fadeColor | string | Oui |
document.hero.fadeHeight | integer | Oui |
document.hero.left | array of object | Oui |
document.hero.left[].action | string | Oui |
document.hero.left[].icon | string | Oui |
document.hero.left[].id | string | Oui |
document.hero.left[].label | string | Oui |
document.hero.left[].url | string (uri) | Oui |
document.hero.padding | object | Oui |
document.hero.padding.bottom | integer | Oui |
document.hero.padding.left | integer | Oui |
document.hero.padding.right | integer | Oui |
document.hero.padding.top | integer | Oui |
document.hero.radius | integer | Oui |
document.hero.radiusBottom | integer | Oui |
document.hero.radiusTop | integer | Oui |
document.hero.right | array of object | Oui |
document.hero.right[].action | string | Oui |
document.hero.right[].icon | string | Oui |
document.hero.right[].id | string | Oui |
document.hero.right[].label | string | Oui |
document.hero.right[].url | string | Oui |
document.rows | array of object | Oui |
document.rows[].backgroundColor | string | null | Oui |
document.rows[].backgroundImage | string | Oui |
document.rows[].borderColor | null dans les exemples | Oui |
document.rows[].borderWidth | integer | Oui |
document.rows[].columns | array of object | Oui |
document.rows[].columns[].backgroundColor | string | null | Oui |
document.rows[].columns[].blocks | array of object | Oui |
document.rows[].columns[].id | string | Oui |
document.rows[].columns[].padding | object | Oui |
document.rows[].columns[].radius | integer | Oui |
document.rows[].columns[].shadow | object | null | Oui |
document.rows[].columns[].verticalAlign | string | Oui |
document.rows[].fullWidth | boolean | Oui |
document.rows[].hideOn | null dans les exemples | Oui |
document.rows[].id | string | Oui |
document.rows[].padding | object | Oui |
document.rows[].padding.bottom | integer | Oui |
document.rows[].padding.left | integer | Oui |
document.rows[].padding.right | integer | Oui |
document.rows[].padding.top | integer | Oui |
document.rows[].radius | integer | Oui |
document.rows[].shadow | object | null | Oui |
document.rows[].shadow.blur | integer | Oui |
document.rows[].shadow.color | string | Oui |
document.rows[].shadow.opacity | integer | Oui |
document.rows[].shadow.spread | integer | Oui |
document.rows[].shadow.x | integer | Oui |
document.rows[].shadow.y | integer | Oui |
document.rows[].stackOnMobile | boolean | Oui |
document.rows[].widths | array of integer | Oui |
document.settings | object | Oui |
document.settings.backdropColor | string | Oui |
document.settings.backdropImage | string | Oui |
document.settings.backdropImageStyle | object | Oui |
document.settings.backdropImageStyle.attachment | string | Oui |
document.settings.backdropImageStyle.blend | string | Oui |
document.settings.backdropImageStyle.gapX | integer | Oui |
document.settings.backdropImageStyle.gapY | integer | Oui |
document.settings.backdropImageStyle.repeat | string | Oui |
document.settings.backdropImageStyle.size | string | Oui |
document.settings.backdropImageStyle.sizeValue | integer | Oui |
document.settings.backdropImageStyle.x | integer | Oui |
document.settings.backdropImageStyle.y | integer | Oui |
document.settings.contentColor | string | Oui |
document.settings.contentCorners | object | null | Oui |
document.settings.contentCorners.bottomLeft | integer | Oui |
document.settings.contentCorners.bottomRight | integer | Oui |
document.settings.contentCorners.topLeft | integer | Oui |
document.settings.contentCorners.topRight | integer | Oui |
document.settings.contentImage | string | Oui |
document.settings.contentImageStyle | object | Oui |
document.settings.contentImageStyle.attachment | string | Oui |
document.settings.contentImageStyle.blend | string | Oui |
document.settings.contentImageStyle.gapX | integer | Oui |
document.settings.contentImageStyle.gapY | integer | Oui |
document.settings.contentImageStyle.repeat | string | Oui |
document.settings.contentImageStyle.size | string | Oui |
document.settings.contentImageStyle.sizeValue | integer | Oui |
document.settings.contentImageStyle.x | integer | Oui |
document.settings.contentImageStyle.y | integer | Oui |
document.settings.fontFamily | string | Oui |
document.settings.fontSize | integer | Oui |
document.settings.headingColor | string | Oui |
document.settings.headingFontFamily | string | Oui |
document.settings.lineHeight | number | Oui |
document.settings.linkColor | string | Oui |
document.settings.onPrimaryColor | string | Oui |
document.settings.outerPadding | integer | Oui |
document.settings.primaryColor | string | Oui |
document.settings.radius | integer | Oui |
document.settings.textColor | string | Oui |
document.settings.width | integer | Oui |
document.version | integer | Oui |
id | string (uuid) | Oui |
name | string | Oui |
showBranding | boolean | Oui |
slug | string | Oui |
title | string | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
views30 | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Visites et clics du mini-site, par jour.
Lire/{id}/statsEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
days | integer | Non | default 30 |
Réponse
17 champs
| Champ | Type | Toujours présent |
|---|---|---|
blocks | array of object | Oui |
blocks[].clicks | integer | Oui |
blocks[].id | string | Oui |
blocks[].label | string | Oui |
blocks[].type | string | Oui |
days | integer | Oui |
series | array of object | Oui |
series[].clicks | integer | Oui |
series[].day | string (date) | Oui |
series[].views | integer | Oui |
sources | array of object | Oui |
sources[].source | string | Oui |
sources[].views | integer | Oui |
totals | object | Oui |
totals.clickRate | integer | null | Oui |
totals.clicks | integer | Oui |
totals.views | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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 une adresse est libre pour le mini-site.
Lire/slug-checkEn cas de succès : 200.Permission : Lire.
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
slug | string | Oui | max length 60 |
exclude | string (uuid) | Non |
Exemple
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();Événements de webhook
Les changements de cette fonctionnalité que les webhooks peuvent envoyer.
microsite.createdCréermicrosite.updatedModifiermicrosite.deletedSupprimer