Arquivos compartilhados
Arquivos compartilhados por uma página, livres, com formulário ou pagamento.
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/shared-files
Lista os arquivos compartilhados.
ListarEm caso de sucesso: 200.Permissão: Ler.
Exemplo
curl -X GET "https://api.firmado.app/v1/shared-files" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/shared-files", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/shared-files",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files");
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/shared-files")
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/shared-files", 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/shared-files"))
.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/shared-files");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/shared-files
Compartilha um arquivo numa página pública: aberto, atrás de um formulário ou de um pagamento.
CriarEm caso de sucesso: 201.Permissão: Criar.
Corpo: um formulário multipart, com o arquivo em `file`
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
file | string (binary) | Sim |
Resposta
27 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
access | string | Sim |
active | boolean | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
downloads | integer | Sim |
downloads30 | integer | Sim |
fileBytes | integer | Sim |
fileKind | string | Sim |
fileName | string | Sim |
form | null nos exemplos | Sim |
formId | null nos exemplos | Sim |
id | string (uuid) | Sim |
issue | null nos exemplos | Sim |
leads | integer | Sim |
priceAmount | null nos exemplos | Sim |
priceCurrency | null nos exemplos | Sim |
publicId | string | Sim |
sales | integer | 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 |
views | integer | Sim |
views30 | integer | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/shared-files" \
-H "X-Api-Key: fmd_..." \
-F "file=@./file.pdf"import { openAsBlob } from "node:fs"
const form = new FormData()
form.append("file", await openAsBlob("./file.pdf"), "file.pdf")
const res = await fetch("https://api.firmado.app/v1/shared-files", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
body: form,
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/shared-files",
headers={"X-Api-Key": "fmd_..."},
files={"file": open("file.pdf", "rb")},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
CURLOPT_POSTFIELDS => ["file" => new CURLFile("file.pdf")],
]);
$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/shared-files")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req.set_form([["file", File.open("file.pdf")]], "multipart/form-data")
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)var buf bytes.Buffer
form := multipart.NewWriter(&buf)
part, _ := form.CreateFormFile("file", "file.pdf")
f, _ := os.Open("file.pdf")
io.Copy(part, f)
form.Close()
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/shared-files", &buf)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", form.FormDataContentType())
res, err := http.DefaultClient.Do(req)// Multipart is simplest with OkHttp (com.squareup.okhttp3:okhttp)
var body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("file", "file.pdf", RequestBody.create(new File("file.pdf"), null))
.build();
var request = new Request.Builder()
.url("https://api.firmado.app/v1/shared-files")
.header("X-Api-Key", "fmd_...")
.method("POST", body)
.build();
var response = new OkHttpClient().newCall(request).execute();using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/shared-files");
request.Content = new MultipartFormDataContent { { new StreamContent(File.OpenRead("file.pdf")), "file", "file.pdf" } };
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (201), com valores de exemplo:
{
"access": "…",
"active": true,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"downloads": 1,
"downloads30": 1,
"fileBytes": 1,
"fileKind": "…",
"fileName": "Ana Lima",
"form": null,
"formId": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"issue": null,
"leads": 1,
"priceAmount": null,
"priceCurrency": null,
"publicId": "…",
"sales": 1,
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"views": 1,
"views30": 1
}DELETE/v1/shared-files/{id}
Exclui um arquivo compartilhado e sua página.
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/shared-files/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/shared-files/{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/shared-files/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files/{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/shared-files/{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/shared-files/{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/shared-files/{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/shared-files/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/shared-files/{id}
Retorna um arquivo compartilhado com suas configurações.
Ver umEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
27 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
access | string | Sim |
active | boolean | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
downloads | integer | Sim |
downloads30 | integer | Sim |
fileBytes | integer | Sim |
fileKind | string | Sim |
fileName | string | Sim |
form | null nos exemplos | Sim |
formId | null nos exemplos | Sim |
id | string (uuid) | Sim |
issue | string | Sim |
leads | integer | Sim |
priceAmount | null nos exemplos | Sim |
priceCurrency | null nos exemplos | Sim |
publicId | string | Sim |
sales | integer | 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 |
views | integer | Sim |
views30 | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/shared-files/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/shared-files/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files/{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/shared-files/{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/shared-files/{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/shared-files/{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/shared-files/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"publicId": "…",
"title": "…",
"description": null,
"fileName": "Ana Lima",
"fileBytes": 1,
"fileKind": "…",
"access": "…",
"formId": null,
"priceAmount": null,
"priceCurrency": null,
"active": true,
"templateId": null,
"theme": {},
"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",
"form": null,
"issue": "…",
"views": 1,
"views30": 1,
"downloads": 1,
"downloads30": 1,
"leads": 1,
"sales": 1
}PATCH/v1/shared-files/{id}
Altera a página de um arquivo compartilhado e o que ela pede.
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 | |
access | "link" | "form" | "form_email" | Não | |
formId | string (uuid) | null | Não | |
priceAmount | integer | null | Não | |
priceCurrency | string | null | Não | |
active | boolean | Não | |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Não | |
theme | object | Não | |
theme.primaryColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Não | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Não |
Resposta
31 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
access | string | Sim |
active | boolean | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
downloads | integer | Sim |
downloads30 | integer | Sim |
fileBytes | integer | Sim |
fileKind | string | Sim |
fileName | string | Sim |
form | object | null | Sim |
form.active | boolean | Sim |
form.id | string (uuid) | Sim |
form.name | string | Sim |
formId | string | null (uuid) | Sim |
id | string (uuid) | Sim |
issue | null nos exemplos | Sim |
leads | integer | Sim |
priceAmount | integer | null | Sim |
priceCurrency | string | null | Sim |
publicId | string | Sim |
sales | integer | Sim |
templateId | string | null | Sim |
theme | object | Sim |
theme.primaryColor | string | Não |
title | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
views | integer | Sim |
views30 | integer | Sim |
Exemplo
curl -X PATCH "https://api.firmado.app/v1/shared-files/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"title": "…",
"description": "…",
"access": "link",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'const res = await fetch("https://api.firmado.app/v1/shared-files/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"description": "…",
"access": "link",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/shared-files/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"description": "…",
"access": "link",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files/{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": "…",
"access": "link",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
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/shared-files/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"description": "…",
"access": "link",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
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": "…",
"access": "link",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/shared-files/{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/shared-files/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"description": "…",
"access": "link",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""))
.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/shared-files/{id}");
request.Content = new StringContent(""""
{
"title": "…",
"description": "…",
"access": "link",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"publicId": "…",
"title": "…",
"description": null,
"fileName": "Ana Lima",
"fileBytes": 1,
"fileKind": "…",
"access": "…",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"priceAmount": 1,
"priceCurrency": "USD",
"active": true,
"templateId": "…",
"theme": {
"primaryColor": "…"
},
"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",
"form": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"active": true
},
"issue": null,
"views": 1,
"views30": 1,
"downloads": 1,
"downloads30": 1,
"leads": 1,
"sales": 1
}PUT/v1/shared-files/{id}/file
Substitui o arquivo; a página mantém o endereço.
Atualizar/{id}/fileEm caso de sucesso: 200.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo: um formulário multipart, com o arquivo em `file`
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
file | string (binary) | Sim |
Exemplo
curl -X PUT "https://api.firmado.app/v1/shared-files/{id}/file" \
-H "X-Api-Key: fmd_..." \
-F "file=@./file.pdf"import { openAsBlob } from "node:fs"
const form = new FormData()
form.append("file", await openAsBlob("./file.pdf"), "file.pdf")
const res = await fetch("https://api.firmado.app/v1/shared-files/{id}/file", {
method: "PUT",
headers: { "X-Api-Key": "fmd_..." },
body: form,
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/shared-files/{id}/file",
headers={"X-Api-Key": "fmd_..."},
files={"file": open("file.pdf", "rb")},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files/{id}/file");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
CURLOPT_POSTFIELDS => ["file" => new CURLFile("file.pdf")],
]);
$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/shared-files/{id}/file")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req.set_form([["file", File.open("file.pdf")]], "multipart/form-data")
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)var buf bytes.Buffer
form := multipart.NewWriter(&buf)
part, _ := form.CreateFormFile("file", "file.pdf")
f, _ := os.Open("file.pdf")
io.Copy(part, f)
form.Close()
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/shared-files/{id}/file", &buf)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", form.FormDataContentType())
res, err := http.DefaultClient.Do(req)// Multipart is simplest with OkHttp (com.squareup.okhttp3:okhttp)
var body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("file", "file.pdf", RequestBody.create(new File("file.pdf"), null))
.build();
var request = new Request.Builder()
.url("https://api.firmado.app/v1/shared-files/{id}/file")
.header("X-Api-Key", "fmd_...")
.method("PUT", body)
.build();
var response = new OkHttpClient().newCall(request).execute();using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://api.firmado.app/v1/shared-files/{id}/file");
request.Content = new MultipartFormDataContent { { new StreamContent(File.OpenRead("file.pdf")), "file", "file.pdf" } };
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/shared-files/{id}/leads
Quem recebeu o arquivo, e como.
Ler/{id}/leadsEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
12 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
[].contact | object | Sim |
[].contact.id | string (uuid) | Sim |
[].contact.name | string | Sim |
[].createdAt | string (date-time) | Sim |
[].delivery | string | Sim |
[].downloads | integer | Sim |
[].email | string (email) | Sim |
[].emailedAt | null nos exemplos | Sim |
[].expiresAt | string (date-time) | Sim |
[].id | string (uuid) | Sim |
[].lastDownloadAt | string (date-time) | Sim |
[].status | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}/leads" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/shared-files/{id}/leads", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/shared-files/{id}/leads",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files/{id}/leads");
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/shared-files/{id}/leads")
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/shared-files/{id}/leads", 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/shared-files/{id}/leads"))
.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/shared-files/{id}/leads");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
[
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"status": "…",
"delivery": "…",
"email": "[email protected]",
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"downloads": 1,
"lastDownloadAt": "2026-11-21T14:00:00.000Z",
"expiresAt": "2026-11-21T14:00:00.000Z",
"emailedAt": null,
"createdAt": "2026-11-21T14:00:00.000Z"
}
]POST/v1/shared-files/{id}/leads/{accessId}/resend
Envia de novo o link de download de alguém por e-mail.
Atualizar/{id}/leads/{accessId}/resendEm caso de sucesso: 204.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim | |
accessId | string | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/shared-files/{id}/leads/{accessId}/resend" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/shared-files/{id}/leads/{accessId}/resend", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.post(
"https://api.firmado.app/v1/shared-files/{id}/leads/{accessId}/resend",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files/{id}/leads/{accessId}/resend");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
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/shared-files/{id}/leads/{accessId}/resend")
req = Net::HTTP::Post.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("POST", "https://api.firmado.app/v1/shared-files/{id}/leads/{accessId}/resend", 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/shared-files/{id}/leads/{accessId}/resend"))
.header("X-Api-Key", "fmd_...")
.method("POST", 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("POST"), "https://api.firmado.app/v1/shared-files/{id}/leads/{accessId}/resend");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/shared-files/{id}/stats
Visitas e downloads de um arquivo compartilhado, 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
19 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
countries | array of any | Sim |
days | integer | Sim |
devices | array of object | Sim |
devices[].key | string | Sim |
devices[].views | integer | Sim |
downloads | integer | Sim |
leads | integer | Sim |
revenue | array of object | Sim |
revenue[].amount | integer | Sim |
revenue[].currency | string | Sim |
sales | integer | Sim |
series | array of object | Sim |
series[].day | string (date) | Sim |
series[].downloads | integer | Sim |
series[].views | integer | Sim |
sources | array of object | Sim |
sources[].key | string | Sim |
sources[].views | integer | Sim |
views | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}/stats" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/shared-files/{id}/stats", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/shared-files/{id}/stats",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files/{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/shared-files/{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/shared-files/{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/shared-files/{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/shared-files/{id}/stats");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"days": 1,
"views": 1,
"downloads": 1,
"leads": 1,
"sales": 1,
"revenue": [
{
"currency": "USD",
"amount": 1
}
],
"series": [
{
"day": "2026-11-21",
"views": 1,
"downloads": 1
}
],
"sources": [
{
"key": "…",
"views": 1
}
],
"countries": [],
"devices": [
{
"key": "…",
"views": 1
}
]
}GET/v1/shared-files/look
O visual de que parte a prévia da página de um arquivo; 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 |
Resposta
12 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
organization | object | Sim |
organization.language | string | Sim |
organization.name | string | Sim |
templateId | string | Sim |
theme | object | Sim |
theme.accentColor | string | Sim |
theme.backgroundColor | string | Sim |
theme.bodyFont | string | Sim |
theme.cornerRadius | string | Sim |
theme.headingFont | string | Sim |
theme.primaryColor | string | Sim |
theme.textColor | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/shared-files/look" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/shared-files/look", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/shared-files/look",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/shared-files/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/shared-files/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/shared-files/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/shared-files/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/shared-files/look");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"organization": {
"name": "Ana Lima",
"language": "…"
},
"templateId": "…",
"theme": {
"primaryColor": "…",
"accentColor": "…",
"backgroundColor": "…",
"textColor": "…",
"headingFont": "…",
"bodyFont": "…",
"cornerRadius": "…"
}
}Eventos de webhook
Mudanças desta funcionalidade que os webhooks podem enviar.
shared_file.createdCriarshared_file.updatedAtualizarshared_file.deletedExcluirshared_file.requestedCriar