Páginas de agendamento
Páginas onde os clientes marcam reuniões.
Valores dos exemplos
Digite uma vez e todos os exemplos desta página passam a usá-los. A chave de API fica só nesta página e nunca é guardada.
GET/v1/booking-pages
Lista as páginas de agendamento.
ListarEm caso de sucesso: 200.Permissão: Ler.
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
hostId | string | Não | min length 1 |
Exemplo
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
Cria uma página de agendamento.
CriarEm caso de sucesso: 201.Permissão: Criar.
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
title | string | Sim | min length 1 · max length 120 |
description | string | null | Não | |
durationMinutes | integer | Sim | min 5 · max 480 |
bufferBeforeMinutes | integer | Não | min 0 · max 240 · default 0 |
bufferAfterMinutes | integer | Não | min 0 · max 240 · default 0 |
minNoticeMinutes | integer | Não | min 0 · max 43200 · default 240 |
maxDaysAhead | integer | Não | min 1 · max 365 · default 60 |
slotIntervalMinutes | integer | null | Não | |
allDay | boolean | Não | default false |
durationDays | integer | Não | min 1 · max 30 · default 1 |
teamMode | "host_first" | "time_first" | null | Não | |
teamHostIds | array of string | Não | max items 500 |
locations | array of object | Não | max items 4 |
locations[].type | "video" | "phone" | "in_person" | "other" | Sim | |
locations[].value | string | null | Não | |
requirePhone | boolean | Não | default false |
isPublic | boolean | Não | default false |
requireCaptcha | boolean | Não | default false |
priceAmount | integer | null | Não | |
priceCurrency | string | null | Não | |
refundNoticeMinutes | integer | null | Não | |
active | boolean | Não | default true |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Não | |
theme | object | Não | |
theme.primaryColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Não | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Não | |
hostId | string | Não | min length 1 |
Resposta
34 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
active | boolean | Sim |
allDay | boolean | Sim |
bufferAfterMinutes | integer | Sim |
bufferBeforeMinutes | integer | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
durationDays | integer | Sim |
durationMinutes | integer | Sim |
hostId | string (uuid) | Sim |
hostName | string | Sim |
id | string (uuid) | Sim |
isPublic | boolean | Sim |
locations | array of object | Sim |
locations[].type | string | Sim |
locations[].value | string (uri) | Sim |
maxDaysAhead | integer | Sim |
minNoticeMinutes | integer | Sim |
priceAmount | integer | null | Sim |
priceCurrency | string | null | Sim |
publicId | string | Sim |
refundNoticeMinutes | integer | null | Sim |
requireCaptcha | boolean | Sim |
requirePhone | boolean | Sim |
slotIntervalMinutes | null nos exemplos | Sim |
teamHostIds | array of any | Sim |
teamMode | string | null | Sim |
templateId | string | null | Sim |
theme | object | Sim |
theme.primaryColor | string | Não |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
Exemplo
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();Resposta (201), com valores de exemplo:
{
"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}
Exclui uma página de agendamento; os agendamentos já marcados continuam.
ExcluirEm caso de sucesso: 204.Permissão: Excluir.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Exemplo
curl -X DELETE "https://api.firmado.app/v1/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}
Retorna uma página de agendamento com suas configurações.
Ver umEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/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}
Altera uma página de agendamento: anfitriões, durações, perguntas, visual e regras.
AtualizarEm caso de sucesso: 200.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
title | string | Não | min length 1 · max length 120 |
description | string | null | Não | |
durationMinutes | integer | Não | min 5 · max 480 |
bufferBeforeMinutes | integer | Não | min 0 · max 240 |
bufferAfterMinutes | integer | Não | min 0 · max 240 |
minNoticeMinutes | integer | Não | min 0 · max 43200 |
maxDaysAhead | integer | Não | min 1 · max 365 |
slotIntervalMinutes | integer | null | Não | |
allDay | boolean | Não | |
durationDays | integer | Não | min 1 · max 30 |
teamMode | "host_first" | "time_first" | null | Não | |
teamHostIds | array of string | Não | max items 500 |
locations | array of object | Não | max items 4 |
locations[].type | "video" | "phone" | "in_person" | "other" | Sim | |
locations[].value | string | null | Não | |
requirePhone | boolean | Não | |
isPublic | boolean | Não | |
requireCaptcha | boolean | Não | |
priceAmount | integer | null | Não | |
priceCurrency | string | null | Não | |
refundNoticeMinutes | integer | null | Não | |
active | boolean | Não | |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Não | |
theme | object | Não | |
theme.primaryColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Não | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Não | |
hostId | string | Não | min length 1 |
Resposta
33 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
active | boolean | Sim |
allDay | boolean | Sim |
bufferAfterMinutes | integer | Sim |
bufferBeforeMinutes | integer | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
durationDays | integer | Sim |
durationMinutes | integer | Sim |
hostId | string (uuid) | Sim |
hostName | string | Sim |
id | string (uuid) | Sim |
isPublic | boolean | Sim |
locations | array of object | Sim |
locations[].type | string | Sim |
locations[].value | string | null | Sim |
maxDaysAhead | integer | Sim |
minNoticeMinutes | integer | Sim |
priceAmount | integer | null | Sim |
priceCurrency | string | null | Sim |
publicId | string | Sim |
refundNoticeMinutes | integer | null | Sim |
requireCaptcha | boolean | Sim |
requirePhone | boolean | Sim |
slotIntervalMinutes | null nos exemplos | Sim |
teamHostIds | array of any | Sim |
teamMode | null nos exemplos | Sim |
templateId | null nos exemplos | Sim |
theme | object | Sim |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
Exemplo
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();Resposta (200), com valores de exemplo:
{
"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
Mostra uma página de agendamento como os visitantes a veriam, com configurações não salvas; não salva nada.
Ler/previewEm caso de sucesso: 200.Permissão: Ler.
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
durationMinutes | integer | Sim | min 5 · max 480 |
bufferBeforeMinutes | integer | Sim | min 0 · max 240 |
bufferAfterMinutes | integer | Sim | min 0 · max 240 |
minNoticeMinutes | integer | Sim | min 0 · max 43200 |
maxDaysAhead | integer | Sim | min 1 · max 365 |
slotIntervalMinutes | integer | null | Não | |
allDay | boolean | Não | default false |
durationDays | integer | Não | min 1 · max 30 · default 1 |
teamMode | "host_first" | "time_first" | null | Não | |
teamHostIds | array of string | Não | max items 500 |
hostId | string | Não | min length 1 |
pickedHostId | string | Não | min length 1 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Não | |
from | string (date-time) | Sim | |
to | string (date-time) | Sim |
Resposta
18 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
host | object | Sim |
host.image | null nos exemplos | Sim |
host.name | string | Sim |
hostTimezone | string | Sim |
organization | object | Sim |
organization.language | string | Sim |
organization.name | string | Sim |
slots | array of string (date-time) | Sim |
team | null nos exemplos | Sim |
templateId | string | Sim |
theme | object | Sim |
theme.accentColor | string | Sim |
theme.backgroundColor | string | Sim |
theme.bodyFont | string | Sim |
theme.cornerRadius | string | Sim |
theme.headingFont | string | Sim |
theme.primaryColor | string | Sim |
theme.textColor | string | Sim |
Exemplo
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();Resposta (200), com valores de exemplo:
{
"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"
]
}Eventos de webhook
Mudanças desta funcionalidade que os webhooks podem enviar.
booking_page.createdCriarbooking_page.updatedAtualizarbooking_page.deletedExcluir