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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
from | string (date-time) | Não | |
to | string (date-time) | Não | |
hostId | string | Não | min length 1 |
contactId | string (uuid) | Não | |
dealId | string (uuid) | Não | |
projectId | string (uuid) | Não | |
status | "awaiting_payment" | "pending" | "scheduled" | "completed" | "canceled" | "no_show" | Não | |
includeCanceled | string | Não |
Resposta
39 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
[].allDay | boolean | Sim |
[].bookingPage | object | null | Sim |
[].bookingPage.id | string (uuid) | Sim |
[].bookingPage.title | string | Sim |
[].bookingPageId | string | null (uuid) | Sim |
[].cancelReason | string | null | Sim |
[].canceledAt | string | null (date-time) | Sim |
[].canceledBy | string | null | Sim |
[].catalogRequestId | null nos exemplos | Sim |
[].contact | object | null | Sim |
[].contact.id | string (uuid) | Sim |
[].contact.name | string | Sim |
[].contactId | string | null (uuid) | Sim |
[].createdAt | string (date-time) | Sim |
[].createdBy | string | null (uuid) | Sim |
[].deal | null nos exemplos | Sim |
[].dealId | null nos exemplos | Sim |
[].description | null nos exemplos | Sim |
[].endsAt | string (date-time) | Sim |
[].guestEmail | string | null (email) | Sim |
[].guestName | string | null | Sim |
[].guestNotes | null nos exemplos | Sim |
[].guestPhone | null nos exemplos | Sim |
[].host | object | null | Sim |
[].host.id | string (uuid) | Sim |
[].host.image | null nos exemplos | Sim |
[].host.name | string | Sim |
[].hostId | string | null (uuid) | Sim |
[].id | string (uuid) | Sim |
[].location | string | null (uri) | Sim |
[].locationType | string | null | Sim |
[].payment | null nos exemplos | Sim |
[].source | string | Sim |
[].startsAt | string (date-time) | Sim |
[].status | string | Sim |
[].timezone | string | null | Sim |
[].title | string | Sim |
[].updatedAt | string (date-time) | Sim |
[].updatedBy | string | null (uuid) | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/appointments" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/appointments", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/appointments",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments");
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/appointments")
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/appointments", 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/appointments"))
.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/appointments");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
title | string | Sim | min length 1 · max length 200 |
description | string | null | Não | |
startsAt | string (date-time) | Sim | |
endsAt | string (date-time) | Sim | |
timezone | string | null | Não | |
hostId | string | null | Não | |
contactId | string (uuid) | null | Não | |
dealId | string (uuid) | null | Não | |
locationType | "video" | "phone" | "in_person" | "other" | null | Não | |
location | string | null | Não |
Resposta
37 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
allDay | boolean | Sim |
bookingPage | null nos exemplos | Sim |
bookingPageId | null nos exemplos | Sim |
cancelReason | null nos exemplos | Sim |
canceledAt | null nos exemplos | Sim |
canceledBy | null nos exemplos | Sim |
catalogRequestId | null nos exemplos | Sim |
contact | object | null | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactId | string | null (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
description | string | null | Sim |
endsAt | string (date-time) | Sim |
guestEmail | null nos exemplos | Sim |
guestName | null nos exemplos | Sim |
guestNotes | null nos exemplos | Sim |
guestPhone | null nos exemplos | Sim |
host | object | Sim |
host.id | string (uuid) | Sim |
host.image | null nos exemplos | Sim |
host.name | string | Sim |
hostId | string (uuid) | Sim |
id | string (uuid) | Sim |
location | string | null (uri) | Sim |
locationType | null nos exemplos | Sim |
payment | null nos exemplos | Sim |
source | string | Sim |
startsAt | string (date-time) | Sim |
status | string | Sim |
timezone | null nos exemplos | Sim |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (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": "…"
}'const res = await fetch("https://api.firmado.app/v1/appointments", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"description": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/appointments",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"description": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"title": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"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/appointments")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"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(`{
"title": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"description": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/appointments", 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/appointments"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"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/appointments");
request.Content = new StringContent(""""
{
"title": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
"description": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Exemplo
curl -X DELETE "https://api.firmado.app/v1/appointments/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/appointments/{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/appointments/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments/{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/appointments/{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/appointments/{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/appointments/{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/appointments/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/appointments/{id}
Retorna um agendamento.
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/appointments/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/appointments/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/appointments/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments/{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/appointments/{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/appointments/{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/appointments/{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/appointments/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| 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 200 |
description | string | null | Não | |
startsAt | string (date-time) | Não | |
endsAt | string (date-time) | Não | |
timezone | string | null | Não | |
hostId | string | null | Não | |
contactId | string (uuid) | null | Não | |
dealId | string (uuid) | null | Não | |
locationType | "video" | "phone" | "in_person" | "other" | null | Não | |
location | string | null | Não | |
status | "pending" | "scheduled" | "completed" | "canceled" | "no_show" | Não | |
cancelReason | string | null | Não | |
refund | boolean | Não |
Resposta
43 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
allDay | boolean | Sim |
bookingPage | object | null | Sim |
bookingPage.id | string (uuid) | Sim |
bookingPage.title | string | Sim |
bookingPageId | string | null (uuid) | Sim |
cancelReason | string | null | Sim |
canceledAt | string | null (date-time) | Sim |
canceledBy | string | null | Sim |
catalogRequestId | null nos exemplos | Sim |
contact | object | null | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactId | string | null (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string | null (uuid) | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
description | string | null | Sim |
endsAt | string (date-time) | Sim |
guestEmail | string | null (email) | Sim |
guestName | string | null | Sim |
guestNotes | null nos exemplos | Sim |
guestPhone | null nos exemplos | Sim |
host | object | Sim |
host.id | string (uuid) | Sim |
host.image | null nos exemplos | Sim |
host.name | string | Sim |
hostId | string (uuid) | Sim |
id | string (uuid) | Sim |
location | string | null (uri) | Sim |
locationType | null nos exemplos | Sim |
payment | object | null | Sim |
payment.amount | integer | Sim |
payment.currency | string | Sim |
payment.paidAt | string (date-time) | Sim |
payment.status | string | Sim |
source | string | Sim |
startsAt | string (date-time) | Sim |
status | string | Sim |
timezone | null nos exemplos | Sim |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (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"
}'const res = await fetch("https://api.firmado.app/v1/appointments/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"description": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/appointments/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"description": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments/{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": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "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/appointments/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"description": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "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(`{
"title": "…",
"description": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/appointments/{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/appointments/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"description": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "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("PATCH"), "https://api.firmado.app/v1/appointments/{id}");
request.Content = new StringContent(""""
{
"title": "…",
"description": "…",
"startsAt": "2026-11-21T14:00:00.000Z",
"endsAt": "2026-11-21T14:00:00.000Z"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
locationType | "video" | "phone" | "in_person" | "other" | Sim | |
location | string | Sim | min length 1 · max length 500 |
Resposta
39 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
allDay | boolean | Sim |
bookingPage | object | Sim |
bookingPage.id | string (uuid) | Sim |
bookingPage.title | string | Sim |
bookingPageId | string (uuid) | Sim |
cancelReason | null nos exemplos | Sim |
canceledAt | null nos exemplos | Sim |
canceledBy | null nos exemplos | Sim |
catalogRequestId | null nos exemplos | Sim |
contact | object | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactId | string (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | null nos exemplos | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
description | null nos exemplos | Sim |
endsAt | string (date-time) | Sim |
guestEmail | string (email) | Sim |
guestName | string | Sim |
guestNotes | null nos exemplos | Sim |
guestPhone | null nos exemplos | Sim |
host | object | Sim |
host.id | string (uuid) | Sim |
host.image | null nos exemplos | Sim |
host.name | string | Sim |
hostId | string (uuid) | Sim |
id | string (uuid) | Sim |
location | string (uri) | Sim |
locationType | string | Sim |
payment | null nos exemplos | Sim |
source | string | Sim |
startsAt | string (date-time) | Sim |
status | string | Sim |
timezone | null nos exemplos | Sim |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (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": "…"
}'const res = await fetch("https://api.firmado.app/v1/appointments/{id}/confirm", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"locationType": "video",
"location": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/appointments/{id}/confirm",
headers={"X-Api-Key": "fmd_..."},
json={
"locationType": "video",
"location": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments/{id}/confirm");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"locationType": "video",
"location": "…"
}
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/appointments/{id}/confirm")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"locationType": "video",
"location": "…"
}
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(`{
"locationType": "video",
"location": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/appointments/{id}/confirm", 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/appointments/{id}/confirm"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"locationType": "video",
"location": "…"
}
"""))
.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/appointments/{id}/confirm");
request.Content = new StringContent(""""
{
"locationType": "video",
"location": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
reason | string | null | Não | |
refund | boolean | Não | default false |
Resposta
39 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
allDay | boolean | Sim |
bookingPage | object | Sim |
bookingPage.id | string (uuid) | Sim |
bookingPage.title | string | Sim |
bookingPageId | string (uuid) | Sim |
cancelReason | string | Sim |
canceledAt | string (date-time) | Sim |
canceledBy | string | Sim |
catalogRequestId | null nos exemplos | Sim |
contact | object | Sim |
contact.id | string (uuid) | Sim |
contact.name | string | Sim |
contactId | string (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | null nos exemplos | Sim |
deal | null nos exemplos | Sim |
dealId | null nos exemplos | Sim |
description | null nos exemplos | Sim |
endsAt | string (date-time) | Sim |
guestEmail | string (email) | Sim |
guestName | string | Sim |
guestNotes | null nos exemplos | Sim |
guestPhone | null nos exemplos | Sim |
host | object | Sim |
host.id | string (uuid) | Sim |
host.image | null nos exemplos | Sim |
host.name | string | Sim |
hostId | string (uuid) | Sim |
id | string (uuid) | Sim |
location | null nos exemplos | Sim |
locationType | null nos exemplos | Sim |
payment | null nos exemplos | Sim |
source | string | Sim |
startsAt | string (date-time) | Sim |
status | string | Sim |
timezone | null nos exemplos | Sim |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (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
}'const res = await fetch("https://api.firmado.app/v1/appointments/{id}/decline", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"reason": "…",
"refund": false
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/appointments/{id}/decline",
headers={"X-Api-Key": "fmd_..."},
json={
"reason": "…",
"refund": False,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments/{id}/decline");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"reason": "…",
"refund": false
}
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/appointments/{id}/decline")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"reason": "…",
"refund": false
}
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(`{
"reason": "…",
"refund": false
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/appointments/{id}/decline", 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/appointments/{id}/decline"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"reason": "…",
"refund": false
}
"""))
.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/appointments/{id}/decline");
request.Content = new StringContent(""""
{
"reason": "…",
"refund": false
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
hostId | string | Não | min length 1 |
startsAt | string (date-time) | Sim | |
endsAt | string (date-time) | Sim | |
excludeId | string (uuid) | Não |
Resposta
7 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
conflicts | array of object | Sim |
conflicts[].endsAt | string (date-time) | Sim |
conflicts[].id | string (uuid) | Sim |
conflicts[].startsAt | string (date-time) | Sim |
conflicts[].title | string | Sim |
googleBusy | boolean | Sim |
outsideAvailability | boolean | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/appointments/check" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/appointments/check", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/appointments/check",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments/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/appointments/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/appointments/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/appointments/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/appointments/check");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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
| Campo | Tipo | Sempre presente |
|---|---|---|
limit | integer | null | Sim |
resetsAt | string (date-time) | Sim |
used | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/appointments/usage" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/appointments/usage", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/appointments/usage",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/appointments/usage");
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/appointments/usage")
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/appointments/usage", 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/appointments/usage"))
.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/appointments/usage");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();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.createdCriarappointment.updatedAtualizarappointment.canceledAtualizarappointment.deletedExcluir