Pages de réservation
Les pages où les clients prennent rendez-vous.
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/booking-pages
Liste les pages de réservation.
ListerEn cas de succès : 200.Permission : Lire.
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
hostId | string | Non | min length 1 |
Exemple
curl -X GET "https://api.firmado.app/v1/booking-pages" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/booking-pages", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/booking-pages",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/booking-pages");
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/booking-pages")
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/booking-pages", 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/booking-pages"))
.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/booking-pages");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/booking-pages
Crée une page de réservation.
CréerEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
title | string | Oui | min length 1 · max length 120 |
description | string | null | Non | |
durationMinutes | integer | Oui | min 5 · max 480 |
bufferBeforeMinutes | integer | Non | min 0 · max 240 · default 0 |
bufferAfterMinutes | integer | Non | min 0 · max 240 · default 0 |
minNoticeMinutes | integer | Non | min 0 · max 43200 · default 240 |
maxDaysAhead | integer | Non | min 1 · max 365 · default 60 |
slotIntervalMinutes | integer | null | Non | |
allDay | boolean | Non | default false |
durationDays | integer | Non | min 1 · max 30 · default 1 |
teamMode | "host_first" | "time_first" | null | Non | |
teamHostIds | array of string | Non | max items 500 |
locations | array of object | Non | max items 4 |
locations[].type | "video" | "phone" | "in_person" | "other" | Oui | |
locations[].value | string | null | Non | |
requirePhone | boolean | Non | default false |
isPublic | boolean | Non | default false |
requireCaptcha | boolean | Non | default false |
priceAmount | integer | null | Non | |
priceCurrency | string | null | Non | |
refundNoticeMinutes | integer | null | Non | |
active | boolean | Non | default true |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Non | |
theme | object | Non | |
theme.primaryColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Non | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Non | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Non | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Non | |
hostId | string | Non | min length 1 |
Réponse
34 champs
| Champ | Type | Toujours présent |
|---|---|---|
active | boolean | Oui |
allDay | boolean | Oui |
bufferAfterMinutes | integer | Oui |
bufferBeforeMinutes | integer | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
description | null dans les exemples | Oui |
durationDays | integer | Oui |
durationMinutes | integer | Oui |
hostId | string (uuid) | Oui |
hostName | string | Oui |
id | string (uuid) | Oui |
isPublic | boolean | Oui |
locations | array of object | Oui |
locations[].type | string | Oui |
locations[].value | string (uri) | Oui |
maxDaysAhead | integer | Oui |
minNoticeMinutes | integer | Oui |
priceAmount | integer | null | Oui |
priceCurrency | string | null | Oui |
publicId | string | Oui |
refundNoticeMinutes | integer | null | Oui |
requireCaptcha | boolean | Oui |
requirePhone | boolean | Oui |
slotIntervalMinutes | null dans les exemples | Oui |
teamHostIds | array of any | Oui |
teamMode | string | null | Oui |
templateId | string | null | Oui |
theme | object | Oui |
theme.primaryColor | string | Non |
title | string | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
Exemple
curl -X POST "https://api.firmado.app/v1/booking-pages" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"title": "…",
"durationMinutes": 5,
"description": "…",
"bufferBeforeMinutes": 0
}'const res = await fetch("https://api.firmado.app/v1/booking-pages", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"durationMinutes": 5,
"description": "…",
"bufferBeforeMinutes": 0
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/booking-pages",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"durationMinutes": 5,
"description": "…",
"bufferBeforeMinutes": 0,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/booking-pages");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"title": "…",
"durationMinutes": 5,
"description": "…",
"bufferBeforeMinutes": 0
}
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/booking-pages")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"durationMinutes": 5,
"description": "…",
"bufferBeforeMinutes": 0
}
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(`{
"title": "…",
"durationMinutes": 5,
"description": "…",
"bufferBeforeMinutes": 0
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/booking-pages", 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/booking-pages"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"durationMinutes": 5,
"description": "…",
"bufferBeforeMinutes": 0
}
"""))
.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/booking-pages");
request.Content = new StringContent(""""
{
"title": "…",
"durationMinutes": 5,
"description": "…",
"bufferBeforeMinutes": 0
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (201), avec des valeurs d’exemple :
{
"active": true,
"allDay": true,
"bufferAfterMinutes": 1,
"bufferBeforeMinutes": 1,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"durationDays": 1,
"durationMinutes": 1,
"hostId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"hostName": "Ana Lima",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPublic": true,
"locations": [
{
"type": "…",
"value": "https://example.com"
}
],
"maxDaysAhead": 1,
"minNoticeMinutes": 1,
"priceAmount": 1,
"priceCurrency": "USD",
"publicId": "…",
"refundNoticeMinutes": 1,
"requireCaptcha": true,
"requirePhone": true,
"slotIntervalMinutes": null,
"teamHostIds": [],
"teamMode": "…",
"templateId": "…",
"theme": {
"primaryColor": "…"
},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com"
}DELETE/v1/booking-pages/{id}
Supprime une page de réservation ; les rendez-vous déjà pris restent.
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/booking-pages/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/booking-pages/{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/booking-pages/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/booking-pages/{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/booking-pages/{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/booking-pages/{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/booking-pages/{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/booking-pages/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/booking-pages/{id}
Renvoie une page de réservation avec ses réglages.
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/booking-pages/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/booking-pages/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/booking-pages/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/booking-pages/{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/booking-pages/{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/booking-pages/{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/booking-pages/{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/booking-pages/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/booking-pages/{id}
Modifie une page de réservation : hôtes, durées, questions, apparence et règles.
ModifierEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
title | string | Non | min length 1 · max length 120 |
description | string | null | Non | |
durationMinutes | integer | Non | min 5 · max 480 |
bufferBeforeMinutes | integer | Non | min 0 · max 240 |
bufferAfterMinutes | integer | Non | min 0 · max 240 |
minNoticeMinutes | integer | Non | min 0 · max 43200 |
maxDaysAhead | integer | Non | min 1 · max 365 |
slotIntervalMinutes | integer | null | Non | |
allDay | boolean | Non | |
durationDays | integer | Non | min 1 · max 30 |
teamMode | "host_first" | "time_first" | null | Non | |
teamHostIds | array of string | Non | max items 500 |
locations | array of object | Non | max items 4 |
locations[].type | "video" | "phone" | "in_person" | "other" | Oui | |
locations[].value | string | null | Non | |
requirePhone | boolean | Non | |
isPublic | boolean | Non | |
requireCaptcha | boolean | Non | |
priceAmount | integer | null | Non | |
priceCurrency | string | null | Non | |
refundNoticeMinutes | integer | null | Non | |
active | boolean | Non | |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Non | |
theme | object | Non | |
theme.primaryColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Non | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Non | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Non | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Non | |
hostId | string | Non | min length 1 |
Réponse
33 champs
| Champ | Type | Toujours présent |
|---|---|---|
active | boolean | Oui |
allDay | boolean | Oui |
bufferAfterMinutes | integer | Oui |
bufferBeforeMinutes | integer | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
description | null dans les exemples | Oui |
durationDays | integer | Oui |
durationMinutes | integer | Oui |
hostId | string (uuid) | Oui |
hostName | string | Oui |
id | string (uuid) | Oui |
isPublic | boolean | Oui |
locations | array of object | Oui |
locations[].type | string | Oui |
locations[].value | string | null | Oui |
maxDaysAhead | integer | Oui |
minNoticeMinutes | integer | Oui |
priceAmount | integer | null | Oui |
priceCurrency | string | null | Oui |
publicId | string | Oui |
refundNoticeMinutes | integer | null | Oui |
requireCaptcha | boolean | Oui |
requirePhone | boolean | Oui |
slotIntervalMinutes | null dans les exemples | Oui |
teamHostIds | array of any | Oui |
teamMode | null dans les exemples | Oui |
templateId | null dans les exemples | Oui |
theme | object | Oui |
title | string | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
Exemple
curl -X PATCH "https://api.firmado.app/v1/booking-pages/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"title": "…",
"description": "…",
"durationMinutes": 5,
"bufferBeforeMinutes": 0
}'const res = await fetch("https://api.firmado.app/v1/booking-pages/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"description": "…",
"durationMinutes": 5,
"bufferBeforeMinutes": 0
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/booking-pages/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"description": "…",
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/booking-pages/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"title": "…",
"description": "…",
"durationMinutes": 5,
"bufferBeforeMinutes": 0
}
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/booking-pages/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"description": "…",
"durationMinutes": 5,
"bufferBeforeMinutes": 0
}
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(`{
"title": "…",
"description": "…",
"durationMinutes": 5,
"bufferBeforeMinutes": 0
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/booking-pages/{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/booking-pages/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"description": "…",
"durationMinutes": 5,
"bufferBeforeMinutes": 0
}
"""))
.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/booking-pages/{id}");
request.Content = new StringContent(""""
{
"title": "…",
"description": "…",
"durationMinutes": 5,
"bufferBeforeMinutes": 0
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (200), avec des valeurs d’exemple :
{
"active": true,
"allDay": true,
"bufferAfterMinutes": 1,
"bufferBeforeMinutes": 1,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"durationDays": 1,
"durationMinutes": 1,
"hostId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"hostName": "Ana Lima",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"isPublic": true,
"locations": [
{
"type": "…",
"value": "…"
}
],
"maxDaysAhead": 1,
"minNoticeMinutes": 1,
"priceAmount": 1,
"priceCurrency": "USD",
"publicId": "…",
"refundNoticeMinutes": 1,
"requireCaptcha": true,
"requirePhone": true,
"slotIntervalMinutes": null,
"teamHostIds": [],
"teamMode": null,
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com"
}POST/v1/booking-pages/preview
Montre une page de réservation telle que les visiteurs la verraient, avec des réglages non enregistrés ; n’enregistre rien.
Lire/previewEn cas de succès : 200.Permission : Lire.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
durationMinutes | integer | Oui | min 5 · max 480 |
bufferBeforeMinutes | integer | Oui | min 0 · max 240 |
bufferAfterMinutes | integer | Oui | min 0 · max 240 |
minNoticeMinutes | integer | Oui | min 0 · max 43200 |
maxDaysAhead | integer | Oui | min 1 · max 365 |
slotIntervalMinutes | integer | null | Non | |
allDay | boolean | Non | default false |
durationDays | integer | Non | min 1 · max 30 · default 1 |
teamMode | "host_first" | "time_first" | null | Non | |
teamHostIds | array of string | Non | max items 500 |
hostId | string | Non | min length 1 |
pickedHostId | string | Non | min length 1 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Non | |
from | string (date-time) | Oui | |
to | string (date-time) | Oui |
Réponse
18 champs
| Champ | Type | Toujours présent |
|---|---|---|
host | object | Oui |
host.image | null dans les exemples | Oui |
host.name | string | Oui |
hostTimezone | string | Oui |
organization | object | Oui |
organization.language | string | Oui |
organization.name | string | Oui |
slots | array of string (date-time) | Oui |
team | null dans les exemples | Oui |
templateId | string | Oui |
theme | object | Oui |
theme.accentColor | string | Oui |
theme.backgroundColor | string | Oui |
theme.bodyFont | string | Oui |
theme.cornerRadius | string | Oui |
theme.headingFont | string | Oui |
theme.primaryColor | string | Oui |
theme.textColor | string | Oui |
Exemple
curl -X POST "https://api.firmado.app/v1/booking-pages/preview" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
"bufferAfterMinutes": 0,
"minNoticeMinutes": 0,
"maxDaysAhead": 1,
"from": "2026-11-21T14:00:00.000Z",
"to": "2026-11-21T14:00:00.000Z"
}'const res = await fetch("https://api.firmado.app/v1/booking-pages/preview", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
"bufferAfterMinutes": 0,
"minNoticeMinutes": 0,
"maxDaysAhead": 1,
"from": "2026-11-21T14:00:00.000Z",
"to": "2026-11-21T14:00:00.000Z"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/booking-pages/preview",
headers={"X-Api-Key": "fmd_..."},
json={
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
"bufferAfterMinutes": 0,
"minNoticeMinutes": 0,
"maxDaysAhead": 1,
"from": "2026-11-21T14:00:00.000Z",
"to": "2026-11-21T14:00:00.000Z",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/booking-pages/preview");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
"bufferAfterMinutes": 0,
"minNoticeMinutes": 0,
"maxDaysAhead": 1,
"from": "2026-11-21T14:00:00.000Z",
"to": "2026-11-21T14:00:00.000Z"
}
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/booking-pages/preview")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
"bufferAfterMinutes": 0,
"minNoticeMinutes": 0,
"maxDaysAhead": 1,
"from": "2026-11-21T14:00:00.000Z",
"to": "2026-11-21T14:00:00.000Z"
}
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(`{
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
"bufferAfterMinutes": 0,
"minNoticeMinutes": 0,
"maxDaysAhead": 1,
"from": "2026-11-21T14:00:00.000Z",
"to": "2026-11-21T14:00:00.000Z"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/booking-pages/preview", 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/booking-pages/preview"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
"bufferAfterMinutes": 0,
"minNoticeMinutes": 0,
"maxDaysAhead": 1,
"from": "2026-11-21T14:00:00.000Z",
"to": "2026-11-21T14:00:00.000Z"
}
"""))
.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/booking-pages/preview");
request.Content = new StringContent(""""
{
"durationMinutes": 5,
"bufferBeforeMinutes": 0,
"bufferAfterMinutes": 0,
"minNoticeMinutes": 0,
"maxDaysAhead": 1,
"from": "2026-11-21T14:00:00.000Z",
"to": "2026-11-21T14:00:00.000Z"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Réponse (200), avec des valeurs d’exemple :
{
"organization": {
"name": "Ana Lima",
"language": "…"
},
"templateId": "…",
"theme": {
"primaryColor": "…",
"accentColor": "…",
"backgroundColor": "…",
"textColor": "…",
"headingFont": "…",
"bodyFont": "…",
"cornerRadius": "…"
},
"host": {
"name": "Ana Lima",
"image": null
},
"team": null,
"hostTimezone": "…",
"slots": [
"2026-11-21T14:00:00.000Z"
]
}Événements de webhook
Les changements de cette fonctionnalité que les webhooks peuvent envoyer.
booking_page.createdCréerbooking_page.updatedModifierbooking_page.deletedSupprimer