QR codes
QR codes guardados, a aparência e o link curto deles.
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/qr-codes
Lista os QR codes salvos.
ListarEm caso de sucesso: 200.Permissão: Ler.
Exemplo
curl -X GET "https://api.firmado.app/v1/qr-codes" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/qr-codes", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/qr-codes",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/qr-codes");
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/qr-codes")
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/qr-codes", 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/qr-codes"))
.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/qr-codes");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/qr-codes
Salva um QR code: o que ele guarda e seu visual.
CriarEm caso de sucesso: 201.Permissão: Criar.
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
name | string | Sim | min length 1 · max length 120 |
content | object | Sim | |
content.kind | "url" | Sim | |
content.url | string | Sim | max length 2000 |
content.shortLinkId | string (uuid) | null | Não | default null |
design | object | Não | |
design.margin | integer | Não | min 0 · max 10 · default 2 |
design.errorCorrection | "L" | "M" | "Q" | "H" | Não | default "M" |
design.dotStyle | "square" | "rounded" | "dots" | "fluid" | "diamond" | "vertical" | "horizontal" | Não | default "square" |
design.frameStyle | "square" | "rounded" | "circle" | Não | default "square" |
design.eyeStyle | "square" | "rounded" | "circle" | Não | default "square" |
design.foreground | string | Não | default "#000000" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.gradient | object | null | Não | default null |
design.gradient.kind | "linear" | "radial" | Não | default "linear" |
design.gradient.angle | integer | Não | min 0 · max 360 · default 45 |
design.gradient.from | string | Sim | pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.gradient.to | string | Sim | pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.frameColor | string | null | Não | default null |
design.eyeColor | string | null | Não | default null |
design.background | string | Não | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.logo | string | Não | max length 2000 · default "" |
design.logoSize | integer | Não | min 10 · max 35 · default 22 |
design.logoClear | boolean | Não | default true |
design.logoMargin | integer | Não | min 0 · max 4 · default 1 |
design.logoRadius | integer | Não | min 0 · max 50 · default 0 |
design.caption | string | Não | max length 60 · default "" |
design.captionColor | string | Não | default "#000000" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
Resposta
39 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
content | object | Sim |
content.kind | string | Sim |
content.shortLinkId | string | null (uuid) | Sim |
content.url | string (uri) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
design | object | Sim |
design.background | string | Sim |
design.caption | string | Sim |
design.captionColor | string | Sim |
design.dotStyle | string | Sim |
design.errorCorrection | string | Sim |
design.eyeColor | null nos exemplos | Sim |
design.eyeStyle | string | Sim |
design.foreground | string | Sim |
design.frameColor | null nos exemplos | Sim |
design.frameStyle | string | Sim |
design.gradient | object | null | Sim |
design.gradient.angle | integer | Sim |
design.gradient.from | string | Sim |
design.gradient.kind | string | Sim |
design.gradient.to | string | Sim |
design.logo | string | Sim |
design.logoClear | boolean | Sim |
design.logoMargin | integer | Sim |
design.logoRadius | integer | Sim |
design.logoSize | integer | Sim |
design.margin | integer | Sim |
id | string (uuid) | Sim |
name | string | Sim |
shortLink | object | null | Sim |
shortLink.active | boolean | Sim |
shortLink.code | string | Sim |
shortLink.id | string (uuid) | Sim |
shortLink.shortUrl | string (uri) | Sim |
shortLink.url | string (uri) | Sim |
shortLinkId | string | null (uuid) | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/qr-codes" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}'const res = await fetch("https://api.firmado.app/v1/qr-codes", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/qr-codes",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square",
},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/qr-codes");
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",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}
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/qr-codes")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}
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",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/qr-codes", 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/qr-codes"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}
"""))
.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/qr-codes");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (201), com valores de exemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"content": {
"url": "https://example.com",
"kind": "…",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"logo": "…",
"margin": 1,
"caption": "…",
"dotStyle": "…",
"eyeColor": null,
"eyeStyle": "…",
"gradient": {
"to": "…",
"from": "…",
"kind": "…",
"angle": 1
},
"logoSize": 1,
"logoClear": true,
"background": "…",
"foreground": "…",
"frameColor": null,
"frameStyle": "…",
"logoMargin": 1,
"logoRadius": 1,
"captionColor": "…",
"errorCorrection": "…"
},
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"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",
"shortLink": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"code": "…",
"url": "https://example.com",
"active": true,
"shortUrl": "https://example.com"
}
}DELETE/v1/qr-codes/{id}
Exclui um QR code salvo.
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/qr-codes/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/qr-codes/{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/qr-codes/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/qr-codes/{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/qr-codes/{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/qr-codes/{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/qr-codes/{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/qr-codes/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/qr-codes/{id}
Retorna um QR code salvo.
Ver umEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
30 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
content | object | Sim |
content.kind | string | Sim |
content.shortLinkId | string (uuid) | Sim |
content.url | string (uri) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
design | object | Sim |
design.background | string | Sim |
design.caption | string | Sim |
design.captionColor | string | Sim |
design.dotStyle | string | Sim |
design.errorCorrection | string | Sim |
design.eyeColor | null nos exemplos | Sim |
design.eyeStyle | string | Sim |
design.foreground | string | Sim |
design.frameColor | null nos exemplos | Sim |
design.frameStyle | string | Sim |
design.gradient | null nos exemplos | Sim |
design.logo | string | Sim |
design.logoClear | boolean | Sim |
design.logoMargin | integer | Sim |
design.logoRadius | integer | Sim |
design.logoSize | integer | Sim |
design.margin | integer | Sim |
id | string (uuid) | Sim |
name | string | Sim |
shortLink | null nos exemplos | Sim |
shortLinkId | null nos exemplos | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/qr-codes/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/qr-codes/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/qr-codes/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/qr-codes/{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/qr-codes/{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/qr-codes/{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/qr-codes/{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/qr-codes/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"content": {
"url": "https://example.com",
"kind": "…",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"logo": "…",
"margin": 1,
"caption": "…",
"dotStyle": "…",
"eyeColor": null,
"eyeStyle": "…",
"gradient": null,
"logoSize": 1,
"logoClear": true,
"background": "…",
"foreground": "…",
"frameColor": null,
"frameStyle": "…",
"logoMargin": 1,
"logoRadius": 1,
"captionColor": "…",
"errorCorrection": "…"
},
"shortLinkId": null,
"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",
"shortLink": null
}PATCH/v1/qr-codes/{id}
Altera um QR code salvo.
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 |
content | object | Não | |
content.kind | "url" | Sim | |
content.url | string | Sim | max length 2000 |
content.shortLinkId | string (uuid) | null | Não | default null |
design | object | Não | |
design.margin | integer | Não | min 0 · max 10 · default 2 |
design.errorCorrection | "L" | "M" | "Q" | "H" | Não | default "M" |
design.dotStyle | "square" | "rounded" | "dots" | "fluid" | "diamond" | "vertical" | "horizontal" | Não | default "square" |
design.frameStyle | "square" | "rounded" | "circle" | Não | default "square" |
design.eyeStyle | "square" | "rounded" | "circle" | Não | default "square" |
design.foreground | string | Não | default "#000000" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.gradient | object | null | Não | default null |
design.gradient.kind | "linear" | "radial" | Não | default "linear" |
design.gradient.angle | integer | Não | min 0 · max 360 · default 45 |
design.gradient.from | string | Sim | pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.gradient.to | string | Sim | pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.frameColor | string | null | Não | default null |
design.eyeColor | string | null | Não | default null |
design.background | string | Não | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.logo | string | Não | max length 2000 · default "" |
design.logoSize | integer | Não | min 10 · max 35 · default 22 |
design.logoClear | boolean | Não | default true |
design.logoMargin | integer | Não | min 0 · max 4 · default 1 |
design.logoRadius | integer | Não | min 0 · max 50 · default 0 |
design.caption | string | Não | max length 60 · default "" |
design.captionColor | string | Não | default "#000000" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
Resposta
36 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
content | object | Sim |
content.encryption | string | Sim |
content.hidden | boolean | Sim |
content.kind | string | Sim |
content.password | string | Sim |
content.ssid | string | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
design | object | Sim |
design.background | string | Sim |
design.caption | string | Sim |
design.captionColor | string | Sim |
design.dotStyle | string | Sim |
design.errorCorrection | string | Sim |
design.eyeColor | null nos exemplos | Sim |
design.eyeStyle | string | Sim |
design.foreground | string | Sim |
design.frameColor | null nos exemplos | Sim |
design.frameStyle | string | Sim |
design.gradient | object | Sim |
design.gradient.angle | integer | Sim |
design.gradient.from | string | Sim |
design.gradient.kind | string | Sim |
design.gradient.to | string | Sim |
design.logo | string | Sim |
design.logoClear | boolean | Sim |
design.logoMargin | integer | Sim |
design.logoRadius | integer | Sim |
design.logoSize | integer | Sim |
design.margin | integer | Sim |
id | string (uuid) | Sim |
name | string | Sim |
shortLink | null nos exemplos | Sim |
shortLinkId | null nos exemplos | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
Exemplo
curl -X PATCH "https://api.firmado.app/v1/qr-codes/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}'const res = await fetch("https://api.firmado.app/v1/qr-codes/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/qr-codes/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square",
},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/qr-codes/{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",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}
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/qr-codes/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}
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",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/qr-codes/{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/qr-codes/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}
"""))
.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/qr-codes/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"content": {
"kind": "url",
"url": "https://example.com",
"shortLinkId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
},
"design": {
"margin": 2,
"errorCorrection": "L",
"dotStyle": "square",
"frameStyle": "square"
}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"content": {
"kind": "…",
"ssid": "…",
"hidden": true,
"password": "…",
"encryption": "…"
},
"design": {
"logo": "…",
"margin": 1,
"caption": "…",
"dotStyle": "…",
"eyeColor": null,
"eyeStyle": "…",
"gradient": {
"to": "…",
"from": "…",
"kind": "…",
"angle": 1
},
"logoSize": 1,
"logoClear": true,
"background": "…",
"foreground": "…",
"frameColor": null,
"frameStyle": "…",
"logoMargin": 1,
"logoRadius": 1,
"captionColor": "…",
"errorCorrection": "…"
},
"shortLinkId": null,
"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",
"shortLink": null
}GET/v1/qr-codes/logo
Uma das imagens da organização, para o meio de um código.
Ler/logoEm caso de sucesso: 200.Permissão: Ler.
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
url | string | Sim | max length 2000 |
Exemplo
curl -X GET "https://api.firmado.app/v1/qr-codes/logo" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/qr-codes/logo", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/qr-codes/logo",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/qr-codes/logo");
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/qr-codes/logo")
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/qr-codes/logo", 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/qr-codes/logo"))
.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/qr-codes/logo");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Eventos de webhook
Mudanças desta funcionalidade que os webhooks podem enviar.
qr_code.createdCriarqr_code.updatedAtualizarqr_code.deletedExcluir