Códigos QR
Códigos QR guardados, su aspecto y su enlace corto.
Valores de los ejemplos
Escríbelos una vez y todos los ejemplos de esta página los usan. La clave de API se queda solo en esta página y nunca se guarda.
GET/v1/qr-codes
Lista los códigos QR guardados.
ListarSi va bien: 200.Permiso: Leer.
Ejemplo
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
Guarda un código QR: lo que contiene y su aspecto.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
name | string | Sí | min length 1 · max length 120 |
content | object | Sí | |
content.kind | "url" | Sí | |
content.url | string | Sí | max length 2000 |
content.shortLinkId | string (uuid) | null | No | default null |
design | object | No | |
design.margin | integer | No | min 0 · max 10 · default 2 |
design.errorCorrection | "L" | "M" | "Q" | "H" | No | default "M" |
design.dotStyle | "square" | "rounded" | "dots" | "fluid" | "diamond" | "vertical" | "horizontal" | No | default "square" |
design.frameStyle | "square" | "rounded" | "circle" | No | default "square" |
design.eyeStyle | "square" | "rounded" | "circle" | No | default "square" |
design.foreground | string | No | default "#000000" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.gradient | object | null | No | default null |
design.gradient.kind | "linear" | "radial" | No | default "linear" |
design.gradient.angle | integer | No | min 0 · max 360 · default 45 |
design.gradient.from | string | Sí | pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.gradient.to | string | Sí | pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.frameColor | string | null | No | default null |
design.eyeColor | string | null | No | default null |
design.background | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.logo | string | No | max length 2000 · default "" |
design.logoSize | integer | No | min 10 · max 35 · default 22 |
design.logoClear | boolean | No | default true |
design.logoMargin | integer | No | min 0 · max 4 · default 1 |
design.logoRadius | integer | No | min 0 · max 50 · default 0 |
design.caption | string | No | max length 60 · default "" |
design.captionColor | string | No | default "#000000" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
Respuesta
39 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
content | object | Sí |
content.kind | string | Sí |
content.shortLinkId | string | null (uuid) | Sí |
content.url | string (uri) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
design | object | Sí |
design.background | string | Sí |
design.caption | string | Sí |
design.captionColor | string | Sí |
design.dotStyle | string | Sí |
design.errorCorrection | string | Sí |
design.eyeColor | null en los ejemplos | Sí |
design.eyeStyle | string | Sí |
design.foreground | string | Sí |
design.frameColor | null en los ejemplos | Sí |
design.frameStyle | string | Sí |
design.gradient | object | null | Sí |
design.gradient.angle | integer | Sí |
design.gradient.from | string | Sí |
design.gradient.kind | string | Sí |
design.gradient.to | string | Sí |
design.logo | string | Sí |
design.logoClear | boolean | Sí |
design.logoMargin | integer | Sí |
design.logoRadius | integer | Sí |
design.logoSize | integer | Sí |
design.margin | integer | Sí |
id | string (uuid) | Sí |
name | string | Sí |
shortLink | object | null | Sí |
shortLink.active | boolean | Sí |
shortLink.code | string | Sí |
shortLink.id | string (uuid) | Sí |
shortLink.shortUrl | string (uri) | Sí |
shortLink.url | string (uri) | Sí |
shortLinkId | string | null (uuid) | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"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}
Elimina un código QR guardado.
EliminarSi va bien: 204.Permiso: Eliminar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
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}
Devuelve un código QR guardado.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
30 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
content | object | Sí |
content.kind | string | Sí |
content.shortLinkId | string (uuid) | Sí |
content.url | string (uri) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
design | object | Sí |
design.background | string | Sí |
design.caption | string | Sí |
design.captionColor | string | Sí |
design.dotStyle | string | Sí |
design.errorCorrection | string | Sí |
design.eyeColor | null en los ejemplos | Sí |
design.eyeStyle | string | Sí |
design.foreground | string | Sí |
design.frameColor | null en los ejemplos | Sí |
design.frameStyle | string | Sí |
design.gradient | null en los ejemplos | Sí |
design.logo | string | Sí |
design.logoClear | boolean | Sí |
design.logoMargin | integer | Sí |
design.logoRadius | integer | Sí |
design.logoSize | integer | Sí |
design.margin | integer | Sí |
id | string (uuid) | Sí |
name | string | Sí |
shortLink | null en los ejemplos | Sí |
shortLinkId | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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}
Cambia un código QR guardado.
ActualizarSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
name | string | No | min length 1 · max length 120 |
content | object | No | |
content.kind | "url" | Sí | |
content.url | string | Sí | max length 2000 |
content.shortLinkId | string (uuid) | null | No | default null |
design | object | No | |
design.margin | integer | No | min 0 · max 10 · default 2 |
design.errorCorrection | "L" | "M" | "Q" | "H" | No | default "M" |
design.dotStyle | "square" | "rounded" | "dots" | "fluid" | "diamond" | "vertical" | "horizontal" | No | default "square" |
design.frameStyle | "square" | "rounded" | "circle" | No | default "square" |
design.eyeStyle | "square" | "rounded" | "circle" | No | default "square" |
design.foreground | string | No | default "#000000" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.gradient | object | null | No | default null |
design.gradient.kind | "linear" | "radial" | No | default "linear" |
design.gradient.angle | integer | No | min 0 · max 360 · default 45 |
design.gradient.from | string | Sí | pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.gradient.to | string | Sí | pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.frameColor | string | null | No | default null |
design.eyeColor | string | null | No | default null |
design.background | string | No | default "#ffffff" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
design.logo | string | No | max length 2000 · default "" |
design.logoSize | integer | No | min 10 · max 35 · default 22 |
design.logoClear | boolean | No | default true |
design.logoMargin | integer | No | min 0 · max 4 · default 1 |
design.logoRadius | integer | No | min 0 · max 50 · default 0 |
design.caption | string | No | max length 60 · default "" |
design.captionColor | string | No | default "#000000" · pattern ^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$ |
Respuesta
36 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
content | object | Sí |
content.encryption | string | Sí |
content.hidden | boolean | Sí |
content.kind | string | Sí |
content.password | string | Sí |
content.ssid | string | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
design | object | Sí |
design.background | string | Sí |
design.caption | string | Sí |
design.captionColor | string | Sí |
design.dotStyle | string | Sí |
design.errorCorrection | string | Sí |
design.eyeColor | null en los ejemplos | Sí |
design.eyeStyle | string | Sí |
design.foreground | string | Sí |
design.frameColor | null en los ejemplos | Sí |
design.frameStyle | string | Sí |
design.gradient | object | Sí |
design.gradient.angle | integer | Sí |
design.gradient.from | string | Sí |
design.gradient.kind | string | Sí |
design.gradient.to | string | Sí |
design.logo | string | Sí |
design.logoClear | boolean | Sí |
design.logoMargin | integer | Sí |
design.logoRadius | integer | Sí |
design.logoSize | integer | Sí |
design.margin | integer | Sí |
id | string (uuid) | Sí |
name | string | Sí |
shortLink | null en los ejemplos | Sí |
shortLinkId | null en los ejemplos | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (200), con valores de ejemplo:
{
"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
Una de las imágenes de la organización, para el centro de un código.
Leer/logoSi va bien: 200.Permiso: Leer.
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
url | string | Sí | max length 2000 |
Ejemplo
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
Cambios de esta funcionalidad que los webhooks pueden enviar.
qr_code.createdCrearqr_code.updatedActualizarqr_code.deletedEliminar