Servicios y productos
Servicios y productos del catálogo, con precios y fotos.
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/services
Lista los servicios y productos del catálogo.
ListarSi va bien: 200.Permiso: Leer.
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
q | string | No | min length 1 · max length 200 |
archived | string | No | |
kind | "service" | "product" | No |
Respuesta
28 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
data | array of object | Sí |
data[].archived | boolean | Sí |
data[].availability | string | Sí |
data[].brand | string | null | Sí |
data[].category | null en los ejemplos | Sí |
data[].condition | string | Sí |
data[].createdAt | string (date-time) | Sí |
data[].createdBy | string (uuid) | Sí |
data[].currency | string | Sí |
data[].description | null en los ejemplos | Sí |
data[].gtin | null en los ejemplos | Sí |
data[].id | string (uuid) | Sí |
data[].images | array of any | Sí |
data[].kind | string | Sí |
data[].mpn | null en los ejemplos | Sí |
data[].name | string | Sí |
data[].organizationId | string (uuid) | Sí |
data[].prices | object | Sí |
data[].productGroup | string | null | Sí |
data[].productUrl | null en los ejemplos | Sí |
data[].publicVisible | boolean | Sí |
data[].sku | string | null | Sí |
data[].unitPrice | integer | Sí |
data[].updatedAt | string (date-time) | Sí |
data[].updatedBy | string (uuid) | Sí |
page | integer | Sí |
pageSize | integer | Sí |
total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/services" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/services", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/services",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/services");
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/services")
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/services", 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/services"))
.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/services");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"kind": "…",
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": null,
"mpn": null,
"category": null,
"productUrl": null,
"condition": "…",
"availability": "…",
"images": [],
"name": "Ana Lima",
"description": null,
"currency": "USD",
"unitPrice": 1,
"prices": {},
"publicVisible": true,
"archived": 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"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/services
Crea un servicio o un producto.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
kind | "service" | "product" | No | default "service" |
sku | string | null | No | |
productGroup | string | null | No | |
brand | string | null | No | |
gtin | string | null | No | |
mpn | string | null | No | |
category | string | null | No | |
productUrl | string (uri) | null | No | |
condition | "new" | "refurbished" | "used" | No | |
availability | "in_stock" | "out_of_stock" | "preorder" | No | |
name | string | Sí | min length 1 · max length 200 |
description | string | null | No | |
currency | string | No | pattern ^[A-Z]{3}$ |
unitPrice | integer | Sí | min 0 · max 10000000000000 |
prices | object of integer | No | |
publicVisible | boolean | No | |
archived | boolean | No |
Respuesta
24 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
archived | boolean | Sí |
availability | string | Sí |
brand | string | null | Sí |
category | null en los ejemplos | Sí |
condition | string | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
description | string | null | Sí |
gtin | null en los ejemplos | Sí |
id | string (uuid) | Sí |
images | array of any | Sí |
kind | string | Sí |
mpn | null en los ejemplos | Sí |
name | string | Sí |
organizationId | string (uuid) | Sí |
prices | object | Sí |
productGroup | string | null | Sí |
productUrl | string | null (uri) | Sí |
publicVisible | boolean | Sí |
sku | string | null | Sí |
unitPrice | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/services" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"unitPrice": 0,
"kind": "service",
"sku": "…"
}'const res = await fetch("https://api.firmado.app/v1/services", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"unitPrice": 0,
"kind": "service",
"sku": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/services",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"unitPrice": 0,
"kind": "service",
"sku": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/services");
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",
"unitPrice": 0,
"kind": "service",
"sku": "…"
}
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/services")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"unitPrice": 0,
"kind": "service",
"sku": "…"
}
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",
"unitPrice": 0,
"kind": "service",
"sku": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/services", 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/services"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"unitPrice": 0,
"kind": "service",
"sku": "…"
}
"""))
.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/services");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"unitPrice": 0,
"kind": "service",
"sku": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"archived": true,
"availability": "…",
"brand": "…",
"category": null,
"condition": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"description": "…",
"gtin": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"images": [],
"kind": "…",
"mpn": null,
"name": "Ana Lima",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"prices": {},
"productGroup": "…",
"productUrl": "https://example.com",
"publicVisible": true,
"sku": "…",
"unitPrice": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}DELETE/v1/services/{id}
Elimina un servicio o producto; las propuestas y facturas conservan sus copias.
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/services/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/services/{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/services/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/services/{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/services/{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/services/{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/services/{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/services/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/services/{id}
Cambia un servicio o producto: precios, descripción y visibilidad.
ActualizarSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
sku | string | null | No | |
productGroup | string | null | No | |
brand | string | null | No | |
gtin | string | null | No | |
mpn | string | null | No | |
category | string | null | No | |
productUrl | string (uri) | null | No | |
condition | "new" | "refurbished" | "used" | No | |
availability | "in_stock" | "out_of_stock" | "preorder" | No | |
name | string | No | min length 1 · max length 200 |
description | string | null | No | |
currency | string | No | pattern ^[A-Z]{3}$ |
unitPrice | integer | No | min 0 · max 10000000000000 |
prices | object of integer | No | |
publicVisible | boolean | No | |
archived | boolean | No |
Respuesta
28 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
archived | boolean | Sí |
availability | string | Sí |
brand | null en los ejemplos | Sí |
category | null en los ejemplos | Sí |
condition | string | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
description | string | null | Sí |
gtin | null en los ejemplos | Sí |
id | string (uuid) | Sí |
images | array of object | Sí |
images[].id | string (uuid) | Sí |
images[].url | string (uri) | Sí |
kind | string | Sí |
mpn | null en los ejemplos | Sí |
name | string | Sí |
organizationId | string (uuid) | Sí |
prices | object | Sí |
prices.BRL | integer | No |
prices.USD | integer | No |
productGroup | null en los ejemplos | Sí |
productUrl | null en los ejemplos | Sí |
publicVisible | boolean | Sí |
sku | string | null | Sí |
unitPrice | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
curl -X PATCH "https://api.firmado.app/v1/services/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": "…"
}'const res = await fetch("https://api.firmado.app/v1/services/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": "…"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/services/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/services/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": "…"
}
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/services/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": "…"
}
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(`{
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": "…"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/services/{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/services/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": "…"
}
"""))
.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/services/{id}");
request.Content = new StringContent(""""
{
"sku": "…",
"productGroup": "…",
"brand": "…",
"gtin": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"archived": true,
"availability": "…",
"brand": null,
"category": null,
"condition": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"currency": "USD",
"description": "…",
"gtin": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"images": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com"
}
],
"kind": "…",
"mpn": null,
"name": "Ana Lima",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"prices": {
"BRL": 1,
"USD": 1
},
"productGroup": null,
"productUrl": null,
"publicVisible": true,
"sku": "…",
"unitPrice": 1,
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}POST/v1/services/{id}/images
Sube una foto para un servicio o producto.
Actualizar/{id}/imagesSi va bien: 201.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo: un formulario multipart, con el archivo en `file`
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
file | string (binary) | Sí |
Respuesta
3 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
images | array of object | Sí |
images[].id | string (uuid) | Sí |
images[].url | string (uri) | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/services/{id}/images" \
-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/services/{id}/images", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
body: form,
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/services/{id}/images",
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/services/{id}/images");
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/services/{id}/images")
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/services/{id}/images", &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/services/{id}/images")
.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/services/{id}/images");
request.Content = new MultipartFormDataContent { { new StreamContent(File.OpenRead("file.pdf")), "file", "file.pdf" } };
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"images": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com"
}
]
}DELETE/v1/services/{id}/images/{imageId}
Quita la foto de un servicio o producto.
Eliminar/{id}/images/{imageId}Si va bien: 200.Permiso: Eliminar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí | |
imageId | string | Sí |
Respuesta
3 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
images | array of object | Sí |
images[].id | string (uuid) | Sí |
images[].url | string (uri) | Sí |
Ejemplo
curl -X DELETE "https://api.firmado.app/v1/services/{id}/images/{imageId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/services/{id}/images/{imageId}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.delete(
"https://api.firmado.app/v1/services/{id}/images/{imageId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/services/{id}/images/{imageId}");
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/services/{id}/images/{imageId}")
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) }
data = JSON.parse(res.body)req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/services/{id}/images/{imageId}", 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/services/{id}/images/{imageId}"))
.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/services/{id}/images/{imageId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"images": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com"
}
]
}Eventos de webhook
Cambios de esta funcionalidad que los webhooks pueden enviar.
service.createdCrearservice.updatedActualizarservice.deletedEliminar