Agendamentos

Reuniões na agenda e pedidos de agendamento a responder.

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/appointments

Lista os agendamentos da agenda entre duas datas, de um anfitrião ou de todos.

ListarEm caso de sucesso: 200.Permissão: Ler.

Parâmetros da consulta

CampoTipoObrigatórioObservações
fromstring (date-time)Não
tostring (date-time)Não
hostIdstringNãomin length 1
contactIdstring (uuid)Não
dealIdstring (uuid)Não
projectIdstring (uuid)Não
status"awaiting_payment" | "pending" | "scheduled" | "completed" | "canceled" | "no_show"Não
includeCanceledstringNão

Resposta

39 campos
CampoTipoSempre presente
[].allDaybooleanSim
[].bookingPageobject | nullSim
[].bookingPage.idstring (uuid)Sim
[].bookingPage.titlestringSim
[].bookingPageIdstring | null (uuid)Sim
[].cancelReasonstring | nullSim
[].canceledAtstring | null (date-time)Sim
[].canceledBystring | nullSim
[].catalogRequestIdnull nos exemplosSim
[].contactobject | nullSim
[].contact.idstring (uuid)Sim
[].contact.namestringSim
[].contactIdstring | null (uuid)Sim
[].createdAtstring (date-time)Sim
[].createdBystring | null (uuid)Sim
[].dealnull nos exemplosSim
[].dealIdnull nos exemplosSim
[].descriptionnull nos exemplosSim
[].endsAtstring (date-time)Sim
[].guestEmailstring | null (email)Sim
[].guestNamestring | nullSim
[].guestNotesnull nos exemplosSim
[].guestPhonenull nos exemplosSim
[].hostobject | nullSim
[].host.idstring (uuid)Sim
[].host.imagenull nos exemplosSim
[].host.namestringSim
[].hostIdstring | null (uuid)Sim
[].idstring (uuid)Sim
[].locationstring | null (uri)Sim
[].locationTypestring | nullSim
[].paymentnull nos exemplosSim
[].sourcestringSim
[].startsAtstring (date-time)Sim
[].statusstringSim
[].timezonestring | nullSim
[].titlestringSim
[].updatedAtstring (date-time)Sim
[].updatedBystring | null (uuid)Sim
Exemplo
curl -X GET "https://api.firmado.app/v1/appointments" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

[
  {
    "allDay": true,
    "bookingPage": {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "title": "…"
    },
    "bookingPageId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "cancelReason": "…",
    "canceledAt": "2026-11-21T14:00:00.000Z",
    "canceledBy": "…",
    "catalogRequestId": null,
    "contact": {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima"
    },
    "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "createdAt": "2026-11-21T14:00:00.000Z",
    "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "deal": null,
    "dealId": null,
    "description": null,
    "endsAt": "2026-11-21T14:00:00.000Z",
    "guestEmail": "[email protected]",
    "guestName": "Ana Lima",
    "guestNotes": null,
    "guestPhone": null,
    "host": {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "image": null,
      "name": "Ana Lima"
    },
    "hostId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "location": "https://example.com",
    "locationType": "…",
    "payment": null,
    "source": "…",
    "startsAt": "2026-11-21T14:00:00.000Z",
    "status": "…",
    "timezone": "…",
    "title": "…",
    "updatedAt": "2026-11-21T14:00:00.000Z",
    "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
  }
]

POST/v1/appointments

Marca um agendamento com um contato para um dos membros.

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

Corpo

CampoTipoObrigatórioObservações
titlestringSimmin length 1 · max length 200
descriptionstring | nullNão
startsAtstring (date-time)Sim
endsAtstring (date-time)Sim
timezonestring | nullNão
hostIdstring | nullNão
contactIdstring (uuid) | nullNão
dealIdstring (uuid) | nullNão
locationType"video" | "phone" | "in_person" | "other" | nullNão
locationstring | nullNão

Resposta

37 campos
CampoTipoSempre presente
allDaybooleanSim
bookingPagenull nos exemplosSim
bookingPageIdnull nos exemplosSim
cancelReasonnull nos exemplosSim
canceledAtnull nos exemplosSim
canceledBynull nos exemplosSim
catalogRequestIdnull nos exemplosSim
contactobject | nullSim
contact.idstring (uuid)Sim
contact.namestringSim
contactIdstring | null (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
descriptionstring | nullSim
endsAtstring (date-time)Sim
guestEmailnull nos exemplosSim
guestNamenull nos exemplosSim
guestNotesnull nos exemplosSim
guestPhonenull nos exemplosSim
hostobjectSim
host.idstring (uuid)Sim
host.imagenull nos exemplosSim
host.namestringSim
hostIdstring (uuid)Sim
idstring (uuid)Sim
locationstring | null (uri)Sim
locationTypenull nos exemplosSim
paymentnull nos exemplosSim
sourcestringSim
startsAtstring (date-time)Sim
statusstringSim
timezonenull nos exemplosSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
Exemplo
curl -X POST "https://api.firmado.app/v1/appointments" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "title": "…",
  "startsAt": "2026-11-21T14:00:00.000Z",
  "endsAt": "2026-11-21T14:00:00.000Z",
  "description": "…"
}'

Resposta (201), com valores de exemplo:

{
  "allDay": true,
  "bookingPage": null,
  "bookingPageId": null,
  "cancelReason": null,
  "canceledAt": null,
  "canceledBy": null,
  "catalogRequestId": null,
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "deal": null,
  "dealId": null,
  "description": "…",
  "endsAt": "2026-11-21T14:00:00.000Z",
  "guestEmail": null,
  "guestName": null,
  "guestNotes": null,
  "guestPhone": null,
  "host": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "image": null,
    "name": "Ana Lima"
  },
  "hostId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "location": "https://example.com",
  "locationType": null,
  "payment": null,
  "source": "…",
  "startsAt": "2026-11-21T14:00:00.000Z",
  "status": "…",
  "timezone": null,
  "title": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}

DELETE/v1/appointments/{id}

Exclui um agendamento.

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/appointments/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/appointments/{id}

Retorna um agendamento.

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/appointments/{id}" \
  -H "X-Api-Key: fmd_..."

PATCH/v1/appointments/{id}

Altera um agendamento: horário, anfitrião, contato, local ou notas.

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 200
descriptionstring | nullNão
startsAtstring (date-time)Não
endsAtstring (date-time)Não
timezonestring | nullNão
hostIdstring | nullNão
contactIdstring (uuid) | nullNão
dealIdstring (uuid) | nullNão
locationType"video" | "phone" | "in_person" | "other" | nullNão
locationstring | nullNão
status"pending" | "scheduled" | "completed" | "canceled" | "no_show"Não
cancelReasonstring | nullNão
refundbooleanNão

Resposta

43 campos
CampoTipoSempre presente
allDaybooleanSim
bookingPageobject | nullSim
bookingPage.idstring (uuid)Sim
bookingPage.titlestringSim
bookingPageIdstring | null (uuid)Sim
cancelReasonstring | nullSim
canceledAtstring | null (date-time)Sim
canceledBystring | nullSim
catalogRequestIdnull nos exemplosSim
contactobject | nullSim
contact.idstring (uuid)Sim
contact.namestringSim
contactIdstring | null (uuid)Sim
createdAtstring (date-time)Sim
createdBystring | null (uuid)Sim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
descriptionstring | nullSim
endsAtstring (date-time)Sim
guestEmailstring | null (email)Sim
guestNamestring | nullSim
guestNotesnull nos exemplosSim
guestPhonenull nos exemplosSim
hostobjectSim
host.idstring (uuid)Sim
host.imagenull nos exemplosSim
host.namestringSim
hostIdstring (uuid)Sim
idstring (uuid)Sim
locationstring | null (uri)Sim
locationTypenull nos exemplosSim
paymentobject | nullSim
payment.amountintegerSim
payment.currencystringSim
payment.paidAtstring (date-time)Sim
payment.statusstringSim
sourcestringSim
startsAtstring (date-time)Sim
statusstringSim
timezonenull nos exemplosSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
Exemplo
curl -X PATCH "https://api.firmado.app/v1/appointments/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "title": "…",
  "description": "…",
  "startsAt": "2026-11-21T14:00:00.000Z",
  "endsAt": "2026-11-21T14:00:00.000Z"
}'

Resposta (200), com valores de exemplo:

{
  "allDay": true,
  "bookingPage": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "title": "…"
  },
  "bookingPageId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "cancelReason": "…",
  "canceledAt": "2026-11-21T14:00:00.000Z",
  "canceledBy": "…",
  "catalogRequestId": null,
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "deal": null,
  "dealId": null,
  "description": "…",
  "endsAt": "2026-11-21T14:00:00.000Z",
  "guestEmail": "[email protected]",
  "guestName": "Ana Lima",
  "guestNotes": null,
  "guestPhone": null,
  "host": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "image": null,
    "name": "Ana Lima"
  },
  "hostId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "location": "https://example.com",
  "locationType": null,
  "payment": {
    "amount": 1,
    "currency": "USD",
    "paidAt": "2026-11-21T14:00:00.000Z",
    "status": "…"
  },
  "source": "…",
  "startsAt": "2026-11-21T14:00:00.000Z",
  "status": "…",
  "timezone": null,
  "title": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}

POST/v1/appointments/{id}/confirm

Confirma um agendamento pedido por uma página de agendamento, com onde vai acontecer.

Atualizar/{id}/confirmEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
locationType"video" | "phone" | "in_person" | "other"Sim
locationstringSimmin length 1 · max length 500

Resposta

39 campos
CampoTipoSempre presente
allDaybooleanSim
bookingPageobjectSim
bookingPage.idstring (uuid)Sim
bookingPage.titlestringSim
bookingPageIdstring (uuid)Sim
cancelReasonnull nos exemplosSim
canceledAtnull nos exemplosSim
canceledBynull nos exemplosSim
catalogRequestIdnull nos exemplosSim
contactobjectSim
contact.idstring (uuid)Sim
contact.namestringSim
contactIdstring (uuid)Sim
createdAtstring (date-time)Sim
createdBynull nos exemplosSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
descriptionnull nos exemplosSim
endsAtstring (date-time)Sim
guestEmailstring (email)Sim
guestNamestringSim
guestNotesnull nos exemplosSim
guestPhonenull nos exemplosSim
hostobjectSim
host.idstring (uuid)Sim
host.imagenull nos exemplosSim
host.namestringSim
hostIdstring (uuid)Sim
idstring (uuid)Sim
locationstring (uri)Sim
locationTypestringSim
paymentnull nos exemplosSim
sourcestringSim
startsAtstring (date-time)Sim
statusstringSim
timezonenull nos exemplosSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
Exemplo
curl -X POST "https://api.firmado.app/v1/appointments/{id}/confirm" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "locationType": "video",
  "location": "…"
}'

Resposta (200), com valores de exemplo:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "hostId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "dealId": null,
  "catalogRequestId": null,
  "bookingPageId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "title": "…",
  "description": null,
  "startsAt": "2026-11-21T14:00:00.000Z",
  "endsAt": "2026-11-21T14:00:00.000Z",
  "timezone": null,
  "allDay": true,
  "locationType": "…",
  "location": "https://example.com",
  "status": "…",
  "source": "…",
  "guestName": "Ana Lima",
  "guestEmail": "[email protected]",
  "guestPhone": null,
  "guestNotes": null,
  "canceledAt": null,
  "canceledBy": null,
  "cancelReason": null,
  "createdBy": null,
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "host": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima",
    "image": null
  },
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "deal": null,
  "bookingPage": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "title": "…"
  },
  "payment": null
}

POST/v1/appointments/{id}/decline

Recusa um agendamento pedido por uma página de agendamento.

Atualizar/{id}/declineEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
reasonstring | nullNão
refundbooleanNãodefault false

Resposta

39 campos
CampoTipoSempre presente
allDaybooleanSim
bookingPageobjectSim
bookingPage.idstring (uuid)Sim
bookingPage.titlestringSim
bookingPageIdstring (uuid)Sim
cancelReasonstringSim
canceledAtstring (date-time)Sim
canceledBystringSim
catalogRequestIdnull nos exemplosSim
contactobjectSim
contact.idstring (uuid)Sim
contact.namestringSim
contactIdstring (uuid)Sim
createdAtstring (date-time)Sim
createdBynull nos exemplosSim
dealnull nos exemplosSim
dealIdnull nos exemplosSim
descriptionnull nos exemplosSim
endsAtstring (date-time)Sim
guestEmailstring (email)Sim
guestNamestringSim
guestNotesnull nos exemplosSim
guestPhonenull nos exemplosSim
hostobjectSim
host.idstring (uuid)Sim
host.imagenull nos exemplosSim
host.namestringSim
hostIdstring (uuid)Sim
idstring (uuid)Sim
locationnull nos exemplosSim
locationTypenull nos exemplosSim
paymentnull nos exemplosSim
sourcestringSim
startsAtstring (date-time)Sim
statusstringSim
timezonenull nos exemplosSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
Exemplo
curl -X POST "https://api.firmado.app/v1/appointments/{id}/decline" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "…",
  "refund": false
}'

Resposta (200), com valores de exemplo:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "hostId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "dealId": null,
  "catalogRequestId": null,
  "bookingPageId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "title": "…",
  "description": null,
  "startsAt": "2026-11-21T14:00:00.000Z",
  "endsAt": "2026-11-21T14:00:00.000Z",
  "timezone": null,
  "allDay": true,
  "locationType": null,
  "location": null,
  "status": "…",
  "source": "…",
  "guestName": "Ana Lima",
  "guestEmail": "[email protected]",
  "guestPhone": null,
  "guestNotes": null,
  "canceledAt": "2026-11-21T14:00:00.000Z",
  "canceledBy": "…",
  "cancelReason": "…",
  "createdBy": null,
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "host": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima",
    "image": null
  },
  "contact": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima"
  },
  "deal": null,
  "bookingPage": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "title": "…"
  },
  "payment": null
}

GET/v1/appointments/check

Confere se um horário está livre e dentro do expediente do anfitrião, antes de marcar.

Ler/checkEm caso de sucesso: 200.Permissão: Ler.

Parâmetros da consulta

CampoTipoObrigatórioObservações
hostIdstringNãomin length 1
startsAtstring (date-time)Sim
endsAtstring (date-time)Sim
excludeIdstring (uuid)Não

Resposta

7 campos
CampoTipoSempre presente
conflictsarray of objectSim
conflicts[].endsAtstring (date-time)Sim
conflicts[].idstring (uuid)Sim
conflicts[].startsAtstring (date-time)Sim
conflicts[].titlestringSim
googleBusybooleanSim
outsideAvailabilitybooleanSim
Exemplo
curl -X GET "https://api.firmado.app/v1/appointments/check" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "conflicts": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "title": "…",
      "startsAt": "2026-11-21T14:00:00.000Z",
      "endsAt": "2026-11-21T14:00:00.000Z"
    }
  ],
  "googleBusy": true,
  "outsideAvailability": true
}

GET/v1/appointments/usage

Os agendamentos do mês frente ao limite do plano.

Ler/usageEm caso de sucesso: 200.Permissão: Ler.

Resposta

3 campos
CampoTipoSempre presente
limitinteger | nullSim
resetsAtstring (date-time)Sim
usedintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/appointments/usage" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "used": 1,
  "limit": 1,
  "resetsAt": "2026-11-21T14:00:00.000Z"
}

Eventos de webhook

Mudanças desta funcionalidade que os webhooks podem enviar.

  • appointment.createdCriar
  • appointment.updatedAtualizar
  • appointment.canceledAtualizar
  • appointment.deletedExcluir