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

CampoTipoObrigatórioObservações
hostIdstringNãomin length 1
Exemplo
curl -X GET "https://api.firmado.app/v1/booking-pages" \
  -H "X-Api-Key: fmd_..."

POST/v1/booking-pages

Cria uma página de agendamento.

CriarEm caso de sucesso: 201.Permissão: Criar.

Corpo

CampoTipoObrigatórioObservações
titlestringSimmin length 1 · max length 120
descriptionstring | nullNão
durationMinutesintegerSimmin 5 · max 480
bufferBeforeMinutesintegerNãomin 0 · max 240 · default 0
bufferAfterMinutesintegerNãomin 0 · max 240 · default 0
minNoticeMinutesintegerNãomin 0 · max 43200 · default 240
maxDaysAheadintegerNãomin 1 · max 365 · default 60
slotIntervalMinutesinteger | nullNão
allDaybooleanNãodefault false
durationDaysintegerNãomin 1 · max 30 · default 1
teamMode"host_first" | "time_first" | nullNão
teamHostIdsarray of stringNãomax items 500
locationsarray of objectNãomax items 4
locations[].type"video" | "phone" | "in_person" | "other"Sim
locations[].valuestring | nullNão
requirePhonebooleanNãodefault false
isPublicbooleanNãodefault false
requireCaptchabooleanNãodefault false
priceAmountinteger | nullNão
priceCurrencystring | nullNão
refundNoticeMinutesinteger | nullNão
activebooleanNãodefault true
templateId"classic" | "modern" | "minimal" | "bold" | nullNão
themeobjectNão
theme.primaryColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNãopattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNãopattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nãomax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"Não
hostIdstringNãomin length 1

Resposta

34 campos
CampoTipoSempre presente
activebooleanSim
allDaybooleanSim
bufferAfterMinutesintegerSim
bufferBeforeMinutesintegerSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
descriptionnull nos exemplosSim
durationDaysintegerSim
durationMinutesintegerSim
hostIdstring (uuid)Sim
hostNamestringSim
idstring (uuid)Sim
isPublicbooleanSim
locationsarray of objectSim
locations[].typestringSim
locations[].valuestring (uri)Sim
maxDaysAheadintegerSim
minNoticeMinutesintegerSim
priceAmountinteger | nullSim
priceCurrencystring | nullSim
publicIdstringSim
refundNoticeMinutesinteger | nullSim
requireCaptchabooleanSim
requirePhonebooleanSim
slotIntervalMinutesnull nos exemplosSim
teamHostIdsarray of anySim
teamModestring | nullSim
templateIdstring | nullSim
themeobjectSim
theme.primaryColorstringNão
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (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
}'

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

CampoTipoObrigatórioObservações
idstringSim
Exemplo
curl -X DELETE "https://api.firmado.app/v1/booking-pages/{id}" \
  -H "X-Api-Key: fmd_..."

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

CampoTipoObrigatórioObservações
idstringSim
Exemplo
curl -X GET "https://api.firmado.app/v1/booking-pages/{id}" \
  -H "X-Api-Key: fmd_..."

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

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
titlestringNãomin length 1 · max length 120
descriptionstring | nullNão
durationMinutesintegerNãomin 5 · max 480
bufferBeforeMinutesintegerNãomin 0 · max 240
bufferAfterMinutesintegerNãomin 0 · max 240
minNoticeMinutesintegerNãomin 0 · max 43200
maxDaysAheadintegerNãomin 1 · max 365
slotIntervalMinutesinteger | nullNão
allDaybooleanNão
durationDaysintegerNãomin 1 · max 30
teamMode"host_first" | "time_first" | nullNão
teamHostIdsarray of stringNãomax items 500
locationsarray of objectNãomax items 4
locations[].type"video" | "phone" | "in_person" | "other"Sim
locations[].valuestring | nullNão
requirePhonebooleanNão
isPublicbooleanNão
requireCaptchabooleanNão
priceAmountinteger | nullNão
priceCurrencystring | nullNão
refundNoticeMinutesinteger | nullNão
activebooleanNão
templateId"classic" | "modern" | "minimal" | "bold" | nullNão
themeobjectNão
theme.primaryColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNãopattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNãopattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nãomax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"Não
hostIdstringNãomin length 1

Resposta

33 campos
CampoTipoSempre presente
activebooleanSim
allDaybooleanSim
bufferAfterMinutesintegerSim
bufferBeforeMinutesintegerSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
descriptionnull nos exemplosSim
durationDaysintegerSim
durationMinutesintegerSim
hostIdstring (uuid)Sim
hostNamestringSim
idstring (uuid)Sim
isPublicbooleanSim
locationsarray of objectSim
locations[].typestringSim
locations[].valuestring | nullSim
maxDaysAheadintegerSim
minNoticeMinutesintegerSim
priceAmountinteger | nullSim
priceCurrencystring | nullSim
publicIdstringSim
refundNoticeMinutesinteger | nullSim
requireCaptchabooleanSim
requirePhonebooleanSim
slotIntervalMinutesnull nos exemplosSim
teamHostIdsarray of anySim
teamModenull nos exemplosSim
templateIdnull nos exemplosSim
themeobjectSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (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
}'

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

CampoTipoObrigatórioObservações
durationMinutesintegerSimmin 5 · max 480
bufferBeforeMinutesintegerSimmin 0 · max 240
bufferAfterMinutesintegerSimmin 0 · max 240
minNoticeMinutesintegerSimmin 0 · max 43200
maxDaysAheadintegerSimmin 1 · max 365
slotIntervalMinutesinteger | nullNão
allDaybooleanNãodefault false
durationDaysintegerNãomin 1 · max 30 · default 1
teamMode"host_first" | "time_first" | nullNão
teamHostIdsarray of stringNãomax items 500
hostIdstringNãomin length 1
pickedHostIdstringNãomin length 1
templateId"classic" | "modern" | "minimal" | "bold" | nullNão
fromstring (date-time)Sim
tostring (date-time)Sim

Resposta

18 campos
CampoTipoSempre presente
hostobjectSim
host.imagenull nos exemplosSim
host.namestringSim
hostTimezonestringSim
organizationobjectSim
organization.languagestringSim
organization.namestringSim
slotsarray of string (date-time)Sim
teamnull nos exemplosSim
templateIdstringSim
themeobjectSim
theme.accentColorstringSim
theme.backgroundColorstringSim
theme.bodyFontstringSim
theme.cornerRadiusstringSim
theme.headingFontstringSim
theme.primaryColorstringSim
theme.textColorstringSim
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"
}'

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.createdCriar
  • booking_page.updatedAtualizar
  • booking_page.deletedExcluir