Contratos
Plantillas de contrato y contratos enviados a firmar.
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/contract-templates
Lista las plantillas de contrato.
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 | |
sort | "updatedAt" | "name" | No | default "updatedAt" |
order | "asc" | "desc" | No | default "desc" |
Respuesta
16 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
data | array of object | Sí |
data[].contracts | object | Sí |
data[].contracts.signed | integer | Sí |
data[].contracts.total | integer | Sí |
data[].createdAt | string (date-time) | Sí |
data[].currency | string | Sí |
data[].description | null en los ejemplos | Sí |
data[].fields | integer | Sí |
data[].id | string (uuid) | Sí |
data[].items | integer | Sí |
data[].name | string | Sí |
data[].title | string | Sí |
data[].updatedAt | string (date-time) | Sí |
page | integer | Sí |
pageSize | integer | Sí |
total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contract-templates" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contract-templates",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates");
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/contract-templates")
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/contract-templates", 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/contract-templates"))
.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/contract-templates");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"description": null,
"title": "…",
"currency": "USD",
"fields": 1,
"items": 1,
"contracts": {},
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/contract-templates
Crea una plantilla de contrato.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
name | string | Sí | min length 1 · max length 120 |
description | string | null | No | |
title | string | No | min length 1 · max length 200 |
body | string | No | max length 200000 · default "" |
fields | array of object | No | max items 50 |
fields[].key | string | Sí | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Sí | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Sí | |
fields[].filledBy | "team" | "signer" | Sí | |
fields[].required | boolean | No | default false |
fields[].help | string | null | No | |
fields[].options | array of string | No | max items 30 |
fields[].defaultValue | string | number | boolean | null | No | |
items | array of object | No | max items 100 |
items[].serviceId | string (uuid) | null | No | |
items[].name | string | Sí | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | Sí | min 0 · max 1000000 |
items[].unitPrice | integer | Sí | min 0 · max 10000000000000 |
currency | string | No | pattern ^[A-Za-z]{3}$ |
discount | object | null | No | |
language | "pt" | "es" | "en" | "fr" | null | No | |
roles | array of string | No | max items 10 |
settings | object | No | |
settings.requireTaxId | boolean | No | default true |
settings.verifySignerEmail | boolean | No | default true |
settings.expiresInDays | integer | null | No | default 30 |
settings.chargeOnSign | boolean | No | default false |
Respuesta
36 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
body | string | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
description | null en los ejemplos | Sí |
discount | object | null | Sí |
discount.type | string | Sí |
discount.value | integer | Sí |
fields | array of object | Sí |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].options | array of string | No |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
id | string (uuid) | Sí |
items | array of object | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
name | string | Sí |
organizationId | string (uuid) | Sí |
roles | array of string | Sí |
settings | object | Sí |
settings.chargeOnSign | boolean | Sí |
settings.expiresInDays | integer | Sí |
settings.requireTaxId | boolean | Sí |
settings.verifySignerEmail | boolean | Sí |
title | string | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
variables | object | Sí |
variables.organization.name | string | Sí |
variables.organization.postalAddress | null en los ejemplos | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contract-templates" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}'const res = await fetch("https://api.firmado.app/v1/contract-templates", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contract-templates",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates");
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",
"description": "…",
"title": "…",
"body": ""
}
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/contract-templates")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}
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",
"description": "…",
"title": "…",
"body": ""
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contract-templates", 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/contract-templates"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}
"""))
.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/contract-templates");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"description": null,
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": null,
"roles": [
"…"
],
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": 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",
"variables": {
"organization.name": "Ana Lima",
"organization.postalAddress": null
}
}DELETE/v1/contract-templates/{id}
Elimina una plantilla de contrato.
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/contract-templates/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates/{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/contract-templates/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/{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/contract-templates/{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/contract-templates/{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/contract-templates/{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/contract-templates/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contract-templates/{id}
Devuelve una plantilla de contrato con su texto, campos y ajustes.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contract-templates/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contract-templates/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/{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/contract-templates/{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/contract-templates/{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/contract-templates/{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/contract-templates/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/contract-templates/{id}
Cambia una plantilla de contrato; los contratos hechos con ella conservan su copia.
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 |
description | string | null | No | |
title | string | No | min length 1 · max length 200 |
body | string | No | max length 200000 |
fields | array of object | No | max items 50 |
fields[].key | string | Sí | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Sí | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Sí | |
fields[].filledBy | "team" | "signer" | Sí | |
fields[].required | boolean | No | default false |
fields[].help | string | null | No | |
fields[].options | array of string | No | max items 30 |
fields[].defaultValue | string | number | boolean | null | No | |
items | array of object | No | max items 100 |
items[].serviceId | string (uuid) | null | No | |
items[].name | string | Sí | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | Sí | min 0 · max 1000000 |
items[].unitPrice | integer | Sí | min 0 · max 10000000000000 |
currency | string | No | pattern ^[A-Za-z]{3}$ |
discount | object | null | No | |
language | "pt" | "es" | "en" | "fr" | null | No | |
roles | array of string | No | max items 10 |
settings | object | No | |
settings.requireTaxId | boolean | No | default true |
settings.verifySignerEmail | boolean | No | default true |
settings.expiresInDays | integer | null | No | default 30 |
settings.chargeOnSign | boolean | No | default false |
Ejemplo
curl -X PATCH "https://api.firmado.app/v1/contract-templates/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}'const res = await fetch("https://api.firmado.app/v1/contract-templates/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/contract-templates/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/{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",
"description": "…",
"title": "…",
"body": "…"
}
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/contract-templates/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}
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",
"description": "…",
"title": "…",
"body": "…"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/contract-templates/{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/contract-templates/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}
"""))
.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/contract-templates/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/contract-templates/{id}/duplicate
Copia una plantilla de contrato.
Crear/{id}/duplicateSi va bien: 201.Permiso: Crear.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contract-templates/{id}/duplicate" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contract-templates/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/{id}/duplicate");
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/contract-templates/{id}/duplicate")
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) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contract-templates/{id}/duplicate", 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/contract-templates/{id}/duplicate"))
.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/contract-templates/{id}/duplicate");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contract-templates/variables
Las variables {{...}} que puede mostrar un contrato: contacto, empresa, organización y campos.
Leer/variablesSi va bien: 200.Permiso: Leer.
Ejemplo
curl -X GET "https://api.firmado.app/v1/contract-templates/variables" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates/variables", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contract-templates/variables",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/variables");
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/contract-templates/variables")
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/contract-templates/variables", 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/contract-templates/variables"))
.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/contract-templates/variables");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contracts
Lista contratos, por estado, contacto o plantilla.
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 | |
status | "draft" | "sent" | "signed" | "declined" | "canceled" | "expired" | No | |
templateId | string (uuid) | No | |
contactId | string (uuid) | No | |
companyId | string (uuid) | No | |
ownerId | string | No | min length 1 |
sort | "createdAt" | "title" | No | default "createdAt" |
order | "asc" | "desc" | No | default "desc" |
Respuesta
23 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
data | array of object | Sí |
data[].completedAt | string (date-time) | Sí |
data[].contact | object | Sí |
data[].contact.id | string (uuid) | Sí |
data[].contact.name | string | Sí |
data[].createdAt | string (date-time) | Sí |
data[].currency | string | Sí |
data[].expiresAt | string (date-time) | Sí |
data[].id | string (uuid) | Sí |
data[].ownerId | string (uuid) | Sí |
data[].sentAt | string (date-time) | Sí |
data[].signers | object | Sí |
data[].signers.signed | integer | Sí |
data[].signers.total | integer | Sí |
data[].status | string | Sí |
data[].template | object | Sí |
data[].template.id | string (uuid) | Sí |
data[].template.name | string | Sí |
data[].title | string | Sí |
data[].total | integer | Sí |
page | integer | Sí |
pageSize | integer | Sí |
total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contracts" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contracts",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts");
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/contracts")
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/contracts", 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/contracts"))
.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/contracts");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"total": 1,
"currency": "USD",
"template": {},
"contact": {},
"signers": {},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": "2026-11-21T14:00:00.000Z",
"createdAt": "2026-11-21T14:00:00.000Z"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/contracts
Crea un borrador de contrato a partir de una plantilla.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
templateId | string (uuid) | No | |
title | string | No | min length 1 · max length 200 |
contactId | string (uuid) | null | No | |
companyId | string (uuid) | null | No | |
message | string | null | No | |
signers | array of object | No | max items 10 |
signers[].contactId | string (uuid) | No | |
signers[].email | string (email) | No | max length 320 |
signers[].name | string | No | min length 1 · max length 200 |
signers[].role | string | null | No | |
values | object of string | number | boolean | null | No |
Respuesta
74 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
body | string | Sí |
canceledAt | null en los ejemplos | Sí |
company | null en los ejemplos | Sí |
completedAt | null en los ejemplos | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contentHash | null en los ejemplos | Sí |
context | object of any | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
discount | object | null | Sí |
discount.type | string | Sí |
discount.value | integer | Sí |
expiresAt | null en los ejemplos | Sí |
fields | array of object | Sí |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].options | array of string | No |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
id | string (uuid) | Sí |
invoiceId | null en los ejemplos | Sí |
items | array of object | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
message | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
payment | null en los ejemplos | Sí |
sentAt | null en los ejemplos | Sí |
settings | object | Sí |
settings.chargeOnSign | boolean | Sí |
settings.expiresInDays | integer | Sí |
settings.requireTaxId | boolean | Sí |
settings.verifySignerEmail | boolean | Sí |
signers | array of object | Sí |
signers[].contactId | string | null (uuid) | Sí |
signers[].decidedAt | null en los ejemplos | Sí |
signers[].declineReason | null en los ejemplos | Sí |
signers[].documentHash | null en los ejemplos | Sí |
signers[].email | string (email) | Sí |
signers[].firstViewedAt | null en los ejemplos | Sí |
signers[].id | string (uuid) | Sí |
signers[].ipAddress | null en los ejemplos | Sí |
signers[].lastViewedAt | null en los ejemplos | Sí |
signers[].name | string | null | Sí |
signers[].position | integer | Sí |
signers[].role | string | null | Sí |
signers[].sendCount | integer | Sí |
signers[].sentAt | null en los ejemplos | Sí |
signers[].signature | null en los ejemplos | Sí |
signers[].signerName | null en los ejemplos | Sí |
signers[].signerTaxId | null en los ejemplos | Sí |
signers[].status | string | Sí |
signers[].url | null en los ejemplos | Sí |
signers[].userAgent | null en los ejemplos | Sí |
signers[].verification | null en los ejemplos | Sí |
signers[].viewCount | integer | Sí |
status | string | Sí |
template | object | null | Sí |
template.id | string (uuid) | Sí |
template.name | string | Sí |
template.roles | array of string | Sí |
title | string | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
values | object of any | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contracts" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'const res = await fetch("https://api.firmado.app/v1/contracts", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts",
headers={"X-Api-Key": "fmd_..."},
json={
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "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/contracts")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "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(`{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts", 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/contracts"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "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("POST"), "https://api.firmado.app/v1/contracts");
request.Content = new StringContent(""""
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": null,
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": null,
"invoiceId": null,
"expiresAt": null,
"sentAt": null,
"completedAt": null,
"canceledAt": 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",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": null,
"sentAt": null,
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}DELETE/v1/contracts/{id}
Elimina un contrato.
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/contracts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{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/contracts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{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/contracts/{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/contracts/{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/contracts/{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/contracts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contracts/{id}
Devuelve un contrato con sus firmantes y sus firmas.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
89 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
body | string | Sí |
canceledAt | null en los ejemplos | Sí |
company | null en los ejemplos | Sí |
completedAt | string | null (date-time) | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contentHash | string | null | Sí |
context | object of any | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
discount | object | null | Sí |
discount.type | string | Sí |
discount.value | integer | Sí |
expiresAt | string | null (date-time) | Sí |
fields | array of object | Sí |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].options | array of string | No |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
id | string (uuid) | Sí |
invoiceId | string | null (uuid) | Sí |
items | array of object | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].unitPrice | integer | Sí |
language | string | null | Sí |
message | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
payment | object | null | Sí |
payment.amount | integer | Sí |
payment.canPay | boolean | Sí |
payment.currency | string | Sí |
payment.invoice | object | Sí |
payment.invoice.id | string (uuid) | Sí |
payment.invoice.number | string | Sí |
payment.invoice.url | string (uri) | Sí |
payment.paidAt | null en los ejemplos | Sí |
payment.status | string | Sí |
sentAt | string | null (date-time) | Sí |
settings | object | Sí |
settings.chargeOnSign | boolean | Sí |
settings.expiresInDays | integer | Sí |
settings.requireTaxId | boolean | Sí |
settings.verifySignerEmail | boolean | Sí |
signers | array of object | Sí |
signers[].contactId | string | null (uuid) | Sí |
signers[].decidedAt | string | null (date-time) | Sí |
signers[].declineReason | string | null | Sí |
signers[].documentHash | string | null | Sí |
signers[].email | string (email) | Sí |
signers[].firstViewedAt | string | null (date-time) | Sí |
signers[].id | string (uuid) | Sí |
signers[].ipAddress | string | null | Sí |
signers[].lastViewedAt | string | null (date-time) | Sí |
signers[].name | string | null | Sí |
signers[].position | integer | Sí |
signers[].role | string | null | Sí |
signers[].sendCount | integer | Sí |
signers[].sentAt | string | null (date-time) | Sí |
signers[].signature | object | null | Sí |
signers[].signature.image | string | No |
signers[].signature.kind | string | Sí |
signers[].signature.text | string | No |
signers[].signerName | string | null | Sí |
signers[].signerTaxId | string | null | Sí |
signers[].status | string | Sí |
signers[].url | string | null (uri) | Sí |
signers[].userAgent | null en los ejemplos | Sí |
signers[].verification | object | null | Sí |
signers[].verification.sendCount | integer | Sí |
signers[].verification.sentAt | string (date-time) | Sí |
signers[].verification.verifiedAt | string | null (date-time) | Sí |
signers[].viewCount | integer | Sí |
status | string | Sí |
template | object | null | Sí |
template.id | string (uuid) | Sí |
template.name | string | Sí |
template.roles | array of string | Sí |
title | string | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
values | object of any | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/contracts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contracts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{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/contracts/{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/contracts/{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/contracts/{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/contracts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": "…",
"invoiceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": "2026-11-21T14:00:00.000Z",
"canceledAt": 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",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": {
"amount": 1,
"currency": "USD",
"status": "…",
"paidAt": null,
"canPay": true,
"invoice": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"number": "…",
"url": "https://example.com"
}
},
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": "https://example.com",
"sentAt": "2026-11-21T14:00:00.000Z",
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": "2026-11-21T14:00:00.000Z",
"lastViewedAt": "2026-11-21T14:00:00.000Z",
"decidedAt": "2026-11-21T14:00:00.000Z",
"signerName": "Ana Lima",
"signerTaxId": "…",
"signature": {},
"documentHash": "…",
"ipAddress": "…",
"userAgent": null,
"declineReason": "…",
"verification": {}
}
]
}PATCH/v1/contracts/{id}
Cambia un borrador de contrato: texto, campos, precios y firmantes.
ActualizarSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
title | string | No | min length 1 · max length 200 |
body | string | No | max length 200000 |
fields | array of object | No | max items 50 |
fields[].key | string | Sí | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Sí | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Sí | |
fields[].filledBy | "team" | "signer" | Sí | |
fields[].required | boolean | No | default false |
fields[].help | string | null | No | |
fields[].options | array of string | No | max items 30 |
fields[].defaultValue | string | number | boolean | null | No | |
items | array of object | No | max items 100 |
items[].serviceId | string (uuid) | null | No | |
items[].name | string | Sí | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | Sí | min 0 · max 1000000 |
items[].unitPrice | integer | Sí | min 0 · max 10000000000000 |
currency | string | No | pattern ^[A-Za-z]{3}$ |
discount | object | null | No | |
language | "pt" | "es" | "en" | "fr" | null | No | |
contactId | string (uuid) | null | No | |
companyId | string (uuid) | null | No | |
message | string | null | No | |
signers | array of object | No | max items 10 |
signers[].contactId | string (uuid) | No | |
signers[].email | string (email) | No | max length 320 |
signers[].name | string | No | min length 1 · max length 200 |
signers[].role | string | null | No | |
values | object of string | number | boolean | null | No | |
settings | object | No | |
settings.requireTaxId | boolean | No | default true |
settings.verifySignerEmail | boolean | No | default true |
settings.expiresInDays | integer | null | No | default 30 |
settings.chargeOnSign | boolean | No | default false |
expiresAt | string (date-time) | null | No |
Respuesta
74 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
body | string | Sí |
canceledAt | null en los ejemplos | Sí |
company | null en los ejemplos | Sí |
completedAt | null en los ejemplos | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contentHash | null en los ejemplos | Sí |
context | object of any | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
discount | object | null | Sí |
discount.type | string | Sí |
discount.value | integer | Sí |
expiresAt | string | null (date-time) | Sí |
fields | array of object | Sí |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].options | array of string | No |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
id | string (uuid) | Sí |
invoiceId | null en los ejemplos | Sí |
items | array of object | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].unitPrice | integer | Sí |
language | null en los ejemplos | Sí |
message | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
payment | null en los ejemplos | Sí |
sentAt | null en los ejemplos | Sí |
settings | object | Sí |
settings.chargeOnSign | boolean | Sí |
settings.expiresInDays | integer | Sí |
settings.requireTaxId | boolean | Sí |
settings.verifySignerEmail | boolean | Sí |
signers | array of object | Sí |
signers[].contactId | string | null (uuid) | Sí |
signers[].decidedAt | null en los ejemplos | Sí |
signers[].declineReason | null en los ejemplos | Sí |
signers[].documentHash | null en los ejemplos | Sí |
signers[].email | string (email) | Sí |
signers[].firstViewedAt | null en los ejemplos | Sí |
signers[].id | string (uuid) | Sí |
signers[].ipAddress | null en los ejemplos | Sí |
signers[].lastViewedAt | null en los ejemplos | Sí |
signers[].name | string | null | Sí |
signers[].position | integer | Sí |
signers[].role | string | null | Sí |
signers[].sendCount | integer | Sí |
signers[].sentAt | null en los ejemplos | Sí |
signers[].signature | null en los ejemplos | Sí |
signers[].signerName | null en los ejemplos | Sí |
signers[].signerTaxId | null en los ejemplos | Sí |
signers[].status | string | Sí |
signers[].url | null en los ejemplos | Sí |
signers[].userAgent | null en los ejemplos | Sí |
signers[].verification | null en los ejemplos | Sí |
signers[].viewCount | integer | Sí |
status | string | Sí |
template | object | null | Sí |
template.id | string (uuid) | Sí |
template.name | string | Sí |
template.roles | array of string | Sí |
title | string | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
values | object of any | Sí |
Ejemplo
curl -X PATCH "https://api.firmado.app/v1/contracts/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}'const res = await fetch("https://api.firmado.app/v1/contracts/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/contracts/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team",
},
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{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": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "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/contracts/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "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": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/contracts/{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/contracts/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "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/contracts/{id}");
request.Content = new StringContent(""""
{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": null,
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": null,
"invoiceId": null,
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": null,
"completedAt": null,
"canceledAt": 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",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": null,
"sentAt": null,
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/cancel
Cancela un contrato enviado; sus enlaces dejan de funcionar.
Actualizar/{id}/cancelSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
57 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
body | string | Sí |
canceledAt | string (date-time) | Sí |
company | null en los ejemplos | Sí |
completedAt | null en los ejemplos | Sí |
contact | null en los ejemplos | Sí |
contentHash | string | Sí |
context | object of any | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
discount | null en los ejemplos | Sí |
expiresAt | string (date-time) | Sí |
fields | array of any | Sí |
id | string (uuid) | Sí |
invoiceId | null en los ejemplos | Sí |
items | array of any | Sí |
language | string | Sí |
message | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
payment | null en los ejemplos | Sí |
sentAt | string (date-time) | Sí |
settings | object | Sí |
settings.chargeOnSign | boolean | Sí |
settings.expiresInDays | integer | Sí |
settings.requireTaxId | boolean | Sí |
settings.verifySignerEmail | boolean | Sí |
signers | array of object | Sí |
signers[].contactId | null en los ejemplos | Sí |
signers[].decidedAt | null en los ejemplos | Sí |
signers[].declineReason | null en los ejemplos | Sí |
signers[].documentHash | null en los ejemplos | Sí |
signers[].email | string (email) | Sí |
signers[].firstViewedAt | null en los ejemplos | Sí |
signers[].id | string (uuid) | Sí |
signers[].ipAddress | null en los ejemplos | Sí |
signers[].lastViewedAt | null en los ejemplos | Sí |
signers[].name | string | Sí |
signers[].position | integer | Sí |
signers[].role | null en los ejemplos | Sí |
signers[].sendCount | integer | Sí |
signers[].sentAt | string (date-time) | Sí |
signers[].signature | null en los ejemplos | Sí |
signers[].signerName | null en los ejemplos | Sí |
signers[].signerTaxId | null en los ejemplos | Sí |
signers[].status | string | Sí |
signers[].url | string (uri) | Sí |
signers[].userAgent | null en los ejemplos | Sí |
signers[].verification | null en los ejemplos | Sí |
signers[].viewCount | integer | Sí |
status | string | Sí |
template | null en los ejemplos | Sí |
title | string | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
values | object of any | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contracts/{id}/cancel" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/cancel", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/cancel",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/cancel");
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/contracts/{id}/cancel")
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) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/cancel", 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/contracts/{id}/cancel"))
.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/contracts/{id}/cancel");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [],
"values": {},
"items": [],
"currency": "USD",
"discount": null,
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": "…",
"invoiceId": null,
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": null,
"canceledAt": "2026-11-21T14:00:00.000Z",
"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",
"total": 1,
"contact": null,
"company": null,
"template": null,
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": null,
"name": "Ana Lima",
"email": "[email protected]",
"role": null,
"position": 1,
"status": "…",
"url": "https://example.com",
"sentAt": "2026-11-21T14:00:00.000Z",
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/duplicate
Un nuevo borrador con el mismo contenido y firmantes.
Crear/{id}/duplicateSi va bien: 201.Permiso: Crear.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
74 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
body | string | Sí |
canceledAt | null en los ejemplos | Sí |
company | null en los ejemplos | Sí |
completedAt | null en los ejemplos | Sí |
contact | object | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contentHash | null en los ejemplos | Sí |
context | object of any | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
discount | object | Sí |
discount.type | string | Sí |
discount.value | integer | Sí |
expiresAt | null en los ejemplos | Sí |
fields | array of object | Sí |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].options | array of string | No |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
id | string (uuid) | Sí |
invoiceId | null en los ejemplos | Sí |
items | array of object | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].unitPrice | integer | Sí |
language | string | Sí |
message | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
payment | null en los ejemplos | Sí |
sentAt | null en los ejemplos | Sí |
settings | object | Sí |
settings.chargeOnSign | boolean | Sí |
settings.expiresInDays | integer | Sí |
settings.requireTaxId | boolean | Sí |
settings.verifySignerEmail | boolean | Sí |
signers | array of object | Sí |
signers[].contactId | string | null (uuid) | Sí |
signers[].decidedAt | null en los ejemplos | Sí |
signers[].declineReason | null en los ejemplos | Sí |
signers[].documentHash | null en los ejemplos | Sí |
signers[].email | string (email) | Sí |
signers[].firstViewedAt | null en los ejemplos | Sí |
signers[].id | string (uuid) | Sí |
signers[].ipAddress | null en los ejemplos | Sí |
signers[].lastViewedAt | null en los ejemplos | Sí |
signers[].name | string | Sí |
signers[].position | integer | Sí |
signers[].role | string | Sí |
signers[].sendCount | integer | Sí |
signers[].sentAt | null en los ejemplos | Sí |
signers[].signature | null en los ejemplos | Sí |
signers[].signerName | null en los ejemplos | Sí |
signers[].signerTaxId | null en los ejemplos | Sí |
signers[].status | string | Sí |
signers[].url | null en los ejemplos | Sí |
signers[].userAgent | null en los ejemplos | Sí |
signers[].verification | null en los ejemplos | Sí |
signers[].viewCount | integer | Sí |
status | string | Sí |
template | object | Sí |
template.id | string (uuid) | Sí |
template.name | string | Sí |
template.roles | array of string | Sí |
title | string | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
values | object of any | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contracts/{id}/duplicate" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/duplicate");
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/contracts/{id}/duplicate")
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) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/duplicate", 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/contracts/{id}/duplicate"))
.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/contracts/{id}/duplicate");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": null,
"invoiceId": null,
"expiresAt": null,
"sentAt": null,
"completedAt": null,
"canceledAt": 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",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": null,
"sentAt": null,
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/send
Envía el borrador: cada firmante usa una de las firmas del mes y recibe su enlace.
Actualizar/{id}/sendSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
74 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
body | string | Sí |
canceledAt | null en los ejemplos | Sí |
company | null en los ejemplos | Sí |
completedAt | null en los ejemplos | Sí |
contact | object | null | Sí |
contact.id | string (uuid) | Sí |
contact.name | string | Sí |
contentHash | string | Sí |
context | object of any | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
currency | string | Sí |
discount | object | null | Sí |
discount.type | string | Sí |
discount.value | integer | Sí |
expiresAt | string (date-time) | Sí |
fields | array of object | Sí |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].options | array of string | No |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
id | string (uuid) | Sí |
invoiceId | null en los ejemplos | Sí |
items | array of object | Sí |
items[].name | string | Sí |
items[].quantity | integer | Sí |
items[].unitPrice | integer | Sí |
language | string | Sí |
message | null en los ejemplos | Sí |
organizationId | string (uuid) | Sí |
ownerId | string (uuid) | Sí |
payment | null en los ejemplos | Sí |
sentAt | string (date-time) | Sí |
settings | object | Sí |
settings.chargeOnSign | boolean | Sí |
settings.expiresInDays | integer | Sí |
settings.requireTaxId | boolean | Sí |
settings.verifySignerEmail | boolean | Sí |
signers | array of object | Sí |
signers[].contactId | string | null (uuid) | Sí |
signers[].decidedAt | null en los ejemplos | Sí |
signers[].declineReason | null en los ejemplos | Sí |
signers[].documentHash | null en los ejemplos | Sí |
signers[].email | string (email) | Sí |
signers[].firstViewedAt | null en los ejemplos | Sí |
signers[].id | string (uuid) | Sí |
signers[].ipAddress | null en los ejemplos | Sí |
signers[].lastViewedAt | null en los ejemplos | Sí |
signers[].name | string | null | Sí |
signers[].position | integer | Sí |
signers[].role | string | null | Sí |
signers[].sendCount | integer | Sí |
signers[].sentAt | string | null (date-time) | Sí |
signers[].signature | null en los ejemplos | Sí |
signers[].signerName | null en los ejemplos | Sí |
signers[].signerTaxId | null en los ejemplos | Sí |
signers[].status | string | Sí |
signers[].url | string (uri) | Sí |
signers[].userAgent | null en los ejemplos | Sí |
signers[].verification | null en los ejemplos | Sí |
signers[].viewCount | integer | Sí |
status | string | Sí |
template | object | null | Sí |
template.id | string (uuid) | Sí |
template.name | string | Sí |
template.roles | array of string | Sí |
title | string | Sí |
total | integer | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
values | object of any | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contracts/{id}/send" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/send", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/send",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/send");
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/contracts/{id}/send")
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) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/send", 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/contracts/{id}/send"))
.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/contracts/{id}/send");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": "…",
"invoiceId": null,
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": null,
"canceledAt": 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",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": "https://example.com",
"sentAt": "2026-11-21T14:00:00.000Z",
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/signers/{signerId}/resend
Vuelve a enviar a un firmante su enlace por correo.
Actualizar/{id}/signers/{signerId}/resendSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí | |
signerId | string | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/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/contracts/{id}/signers/{signerId}/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) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/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/contracts/{id}/signers/{signerId}/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/contracts/{id}/signers/{signerId}/resend");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/contracts/{id}/signers/{signerId}/verification/resend
Envía a un firmante un nuevo enlace para confirmar su correo.
Actualizar/{id}/signers/{signerId}/verification/resendSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí | |
signerId | string | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/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/contracts/{id}/signers/{signerId}/verification/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) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/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/contracts/{id}/signers/{signerId}/verification/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/contracts/{id}/signers/{signerId}/verification/resend");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Eventos de webhook
Cambios de esta funcionalidad que los webhooks pueden enviar.
contract_template.createdCrearcontract_template.updatedActualizarcontract_template.deletedEliminarcontract.createdCrearcontract.updatedActualizarcontract.sentActualizarcontract.signedActualizarcontract.completedActualizarcontract.declinedActualizarcontract.canceledActualizarcontract.deletedEliminar