Páginas de links
Páginas de link na bio, os links e os números delas.
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/link-pages
Lista as páginas de links.
ListarEm caso de sucesso: 200.Permissão: Ler.
Resposta
25 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
[].active | boolean | Sim |
[].bio | string | Sim |
[].clicks30 | integer | Sim |
[].createdAt | string (date-time) | Sim |
[].createdBy | string (uuid) | Sim |
[].id | string (uuid) | Sim |
[].links | array of object | Sim |
[].links[].active | boolean | Sim |
[].links[].featured | boolean | Sim |
[].links[].icon | null nos exemplos | Sim |
[].links[].id | string | Sim |
[].links[].kind | string | Sim |
[].links[].style | null nos exemplos | Sim |
[].links[].title | string | Sim |
[].links[].url | string | null | Sim |
[].name | string | Sim |
[].showBranding | boolean | Sim |
[].slug | string | 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 |
[].views30 | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/link-pages" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/link-pages", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/link-pages",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/link-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/link-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/link-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/link-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/link-pages");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
[
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"slug": "…",
"name": "Ana Lima",
"title": "…",
"bio": "…",
"links": [
{}
],
"showBranding": true,
"templateId": null,
"theme": {},
"active": true,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"url": "https://example.com",
"views30": 1,
"clicks30": 1
}
]POST/v1/link-pages
Cria uma página de links.
CriarEm caso de sucesso: 201.Permissão: Criar.
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
name | string | Sim | min length 1 · max length 120 |
slug | string | Não | pattern ^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$ |
title | string | Sim | min length 1 · max length 120 |
bio | string | null | Não | |
links | array of object | Não | max items 100 |
links[].id | string | Sim | pattern ^[A-Za-z0-9_-]{6,40}$ |
links[].kind | "link" | "header" | Não | default "link" |
links[].title | string | Sim | min length 1 · max length 100 |
links[].url | string | null | Não | |
links[].icon | "link" | "globe" | "instagram" | "whatsapp" | "tiktok" | "youtube" | "linkedin" | "facebook" | "x" | "telegram" | "spotify" | "email" | "phone" | "calendar" | "form" | "file" | "shop" | "star" | "map" | "gift" | null | Não | |
links[].featured | boolean | Não | default false |
links[].active | boolean | Não | default true |
links[].style | object | null | Não | |
links[].style.background | string | null | Não | |
links[].style.text | string | null | Não | |
links[].style.border | "none" | "thin" | "thick" | Não | default "none" |
links[].style.borderColor | string | null | Não | |
links[].style.shadow | "none" | "soft" | "hard" | Não | default "none" |
links[].style.shadowColor | string | null | Não | |
links[].style.radius | "theme" | "square" | "rounded" | "pill" | Não | default "theme" |
links[].style.hover | "simple" | "lift" | "grow" | "outline" | "none" | Não | default "simple" |
showBranding | 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 | |
active | boolean | Não | default true |
Resposta
25 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
active | boolean | Sim |
bio | string | null | Sim |
clicks30 | integer | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
id | string (uuid) | Sim |
links | array of object | Sim |
links[].active | boolean | Sim |
links[].featured | boolean | Sim |
links[].icon | string | null | Sim |
links[].id | string | Sim |
links[].kind | string | Sim |
links[].style | object | null | Sim |
links[].title | string | Sim |
links[].url | string | null | Sim |
name | string | Sim |
showBranding | boolean | Sim |
slug | string | 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 |
views30 | integer | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/link-pages" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"title": "…",
"slug": "…",
"bio": "…"
}'const res = await fetch("https://api.firmado.app/v1/link-pages", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"title": "…",
"slug": "…",
"bio": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/link-pages",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"title": "…",
"slug": "…",
"bio": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/link-pages");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"name": "Ana Lima",
"title": "…",
"slug": "…",
"bio": "…"
}
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/link-pages")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"title": "…",
"slug": "…",
"bio": "…"
}
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(`{
"name": "Ana Lima",
"title": "…",
"slug": "…",
"bio": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/link-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/link-pages"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"title": "…",
"slug": "…",
"bio": "…"
}
"""))
.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/link-pages");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"title": "…",
"slug": "…",
"bio": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (201), com valores de exemplo:
{
"active": true,
"bio": "…",
"clicks30": 1,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"links": [
{
"id": "…",
"url": "https://example.com",
"icon": "…",
"kind": "…",
"style": {},
"title": "…",
"active": true,
"featured": true
}
],
"name": "Ana Lima",
"showBranding": true,
"slug": "…",
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"views30": 1
}DELETE/v1/link-pages/{id}
Exclui uma página de links.
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/link-pages/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/link-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/link-pages/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/link-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/link-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/link-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/link-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/link-pages/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/link-pages/{id}
Retorna uma página de links com seus links e visual.
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/link-pages/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/link-pages/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/link-pages/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/link-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/link-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/link-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/link-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/link-pages/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/link-pages/{id}
Altera uma página de links: links, textos, visual e endereço.
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 |
|---|---|---|---|
name | string | Não | min length 1 · max length 120 |
slug | string | Não | pattern ^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$ |
title | string | Não | min length 1 · max length 120 |
bio | string | null | Não | |
links | array of object | Não | max items 100 |
links[].id | string | Sim | pattern ^[A-Za-z0-9_-]{6,40}$ |
links[].kind | "link" | "header" | Não | default "link" |
links[].title | string | Sim | min length 1 · max length 100 |
links[].url | string | null | Não | |
links[].icon | "link" | "globe" | "instagram" | "whatsapp" | "tiktok" | "youtube" | "linkedin" | "facebook" | "x" | "telegram" | "spotify" | "email" | "phone" | "calendar" | "form" | "file" | "shop" | "star" | "map" | "gift" | null | Não | |
links[].featured | boolean | Não | default false |
links[].active | boolean | Não | default true |
links[].style | object | null | Não | |
links[].style.background | string | null | Não | |
links[].style.text | string | null | Não | |
links[].style.border | "none" | "thin" | "thick" | Não | default "none" |
links[].style.borderColor | string | null | Não | |
links[].style.shadow | "none" | "soft" | "hard" | Não | default "none" |
links[].style.shadowColor | string | null | Não | |
links[].style.radius | "theme" | "square" | "rounded" | "pill" | Não | default "theme" |
links[].style.hover | "simple" | "lift" | "grow" | "outline" | "none" | Não | default "simple" |
showBranding | 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 | |
active | boolean | Não |
Exemplo
curl -X PATCH "https://api.firmado.app/v1/link-pages/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"bio": "…"
}'const res = await fetch("https://api.firmado.app/v1/link-pages/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"slug": "…",
"title": "…",
"bio": "…"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/link-pages/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"slug": "…",
"title": "…",
"bio": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/link-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'
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"bio": "…"
}
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/link-pages/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"bio": "…"
}
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(`{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"bio": "…"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/link-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/link-pages/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"bio": "…"
}
"""))
.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/link-pages/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"slug": "…",
"title": "…",
"bio": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/link-pages/{id}/stats
Visitas a uma página de links e cliques por link, por dia.
Ler/{id}/statsEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
days | integer | Não | default 30 |
Resposta
17 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
days | integer | Sim |
links | array of object | Sim |
links[].clicks | integer | Sim |
links[].id | string | Sim |
links[].title | string | Sim |
links[].url | string | Sim |
series | array of object | Sim |
series[].clicks | integer | Sim |
series[].day | string (date) | Sim |
series[].views | integer | Sim |
sources | array of object | Sim |
sources[].source | string | Sim |
sources[].views | integer | Sim |
totals | object | Sim |
totals.clickRate | number | Sim |
totals.clicks | integer | Sim |
totals.views | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/link-pages/{id}/stats" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/link-pages/{id}/stats", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/link-pages/{id}/stats",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/link-pages/{id}/stats");
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/link-pages/{id}/stats")
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/link-pages/{id}/stats", 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/link-pages/{id}/stats"))
.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/link-pages/{id}/stats");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"days": 1,
"totals": {
"views": 1,
"clicks": 1,
"clickRate": 1
},
"series": [
{
"day": "2026-11-21",
"views": 1,
"clicks": 1
}
],
"links": [
{
"id": "…",
"title": "…",
"url": "https://example.com",
"clicks": 1
}
],
"sources": [
{
"source": "…",
"views": 1
}
]
}GET/v1/link-pages/look
O visual de que parte a prévia de uma página de links; não salva nada.
Ler/lookEm caso de sucesso: 200.Permissão: Ler.
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
templateId | "classic" | "modern" | "minimal" | "bold" | Não |
Exemplo
curl -X GET "https://api.firmado.app/v1/link-pages/look" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/link-pages/look", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/link-pages/look",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/link-pages/look");
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/link-pages/look")
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/link-pages/look", 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/link-pages/look"))
.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/link-pages/look");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/link-pages/slug-check
Se um endereço está livre para uma página de links.
Ler/slug-checkEm caso de sucesso: 200.Permissão: Ler.
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
slug | string | Sim | max length 60 |
exclude | string (uuid) | Não |
Resposta
3 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
available | boolean | Sim |
slug | string | Sim |
valid | boolean | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/link-pages/slug-check" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/link-pages/slug-check", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/link-pages/slug-check",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/link-pages/slug-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/link-pages/slug-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/link-pages/slug-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/link-pages/slug-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/link-pages/slug-check");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"slug": "…",
"available": true,
"valid": true
}Eventos de webhook
Mudanças desta funcionalidade que os webhooks podem enviar.
link_page.createdCriarlink_page.updatedAtualizarlink_page.deletedExcluir