Formularios
Formularios, su aspecto y sus respuestas.
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/form-defaults
Con qué empiezan los formularios nuevos.
ListarSi va bien: 200.Permiso: Leer.
Ejemplo
curl -X GET "https://api.firmado.app/v1/form-defaults" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/form-defaults", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/form-defaults",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/form-defaults");
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/form-defaults")
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/form-defaults", 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/form-defaults"))
.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/form-defaults");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PUT/v1/form-defaults
Cambia con qué empiezan los formularios nuevos.
Actualizar/Si va bien: 200.Permiso: Actualizar.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
fields | array of object | null | Sí | |
submitLabel | string | null | No | |
successMessage | string | null | No | |
redirectUrl | string (uri) | null | "" | No | |
requireCaptcha | boolean | Sí | |
contactMode | "off" | "create_or_update" | "create_only" | Sí |
Respuesta
18 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
contactMode | string | Sí |
fields | array of object | Sí |
fields[].defaultValue | null en los ejemplos | Sí |
fields[].help | null en los ejemplos | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].mapTo | string | Sí |
fields[].max | null en los ejemplos | Sí |
fields[].min | null en los ejemplos | Sí |
fields[].options | array of any | Sí |
fields[].placeholder | null en los ejemplos | Sí |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
fields[].width | string | Sí |
redirectUrl | null en los ejemplos | Sí |
requireCaptcha | boolean | Sí |
submitLabel | string | Sí |
successMessage | string | Sí |
Ejemplo
curl -X PUT "https://api.firmado.app/v1/form-defaults" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}'const res = await fetch("https://api.firmado.app/v1/form-defaults", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/form-defaults",
headers={"X-Api-Key": "fmd_..."},
json={
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…",
},
],
"requireCaptcha": True,
"contactMode": "off",
"submitLabel": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/form-defaults");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}
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/form-defaults")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}
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(`{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/form-defaults", 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/form-defaults"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}
"""))
.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("PUT"), "https://api.firmado.app/v1/form-defaults");
request.Content = new StringContent(""""
{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"fields": [
{
"key": "…",
"max": null,
"min": null,
"help": null,
"type": "…",
"label": "…",
"mapTo": "…",
"width": "…",
"options": [],
"required": true,
"placeholder": null,
"defaultValue": null
}
],
"submitLabel": "…",
"successMessage": "…",
"redirectUrl": null,
"requireCaptcha": true,
"contactMode": "…"
}GET/v1/forms
Lista los formularios.
ListarSi va bien: 200.Permiso: Leer.
Respuesta
43 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
[].actions | object | Sí |
[].actions.listIds | array of string (uuid) | Sí |
[].actions.tagIds | array of string (uuid) | Sí |
[].actions.webhook | object | Sí |
[].actions.webhook.enabled | boolean | Sí |
[].actions.webhook.url | string | Sí |
[].active | boolean | Sí |
[].contactMode | string | Sí |
[].contactOwnerId | string (uuid) | Sí |
[].createdAt | string (date-time) | Sí |
[].createdBy | string (uuid) | Sí |
[].description | null en los ejemplos | Sí |
[].embedScriptUrl | string (uri) | Sí |
[].fields | array of object | Sí |
[].fields[].defaultValue | null en los ejemplos | Sí |
[].fields[].help | null en los ejemplos | Sí |
[].fields[].key | string | Sí |
[].fields[].label | string | Sí |
[].fields[].mapTo | string | Sí |
[].fields[].max | null en los ejemplos | Sí |
[].fields[].min | null en los ejemplos | Sí |
[].fields[].options | array of any | Sí |
[].fields[].placeholder | null en los ejemplos | Sí |
[].fields[].required | boolean | Sí |
[].fields[].type | string | Sí |
[].fields[].width | string | Sí |
[].id | string (uuid) | Sí |
[].lastSubmissionAt | string (date-time) | Sí |
[].name | string | Sí |
[].notifyMemberIds | array of any | Sí |
[].publicId | string | Sí |
[].redirectUrl | null en los ejemplos | Sí |
[].requireCaptcha | boolean | Sí |
[].submissionCount | integer | Sí |
[].submitLabel | null en los ejemplos | Sí |
[].successMessage | null en los ejemplos | Sí |
[].templateId | null en los ejemplos | Sí |
[].theme | object | Sí |
[].title | null en los ejemplos | Sí |
[].updatedAt | string (date-time) | Sí |
[].updatedBy | string (uuid) | Sí |
[].url | string (uri) | Sí |
[].webhookSecret | string | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/forms" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms");
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/forms")
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/forms", 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/forms"))
.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/forms");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
[
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"publicId": "…",
"name": "Ana Lima",
"title": null,
"description": null,
"fields": [
{}
],
"submitLabel": null,
"successMessage": null,
"redirectUrl": null,
"requireCaptcha": true,
"contactMode": "…",
"contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"actions": {
"tagIds": [],
"listIds": [],
"webhook": {}
},
"webhookSecret": "…",
"notifyMemberIds": [],
"templateId": null,
"theme": {},
"active": 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",
"url": "https://example.com",
"embedScriptUrl": "https://example.com",
"submissionCount": 1,
"lastSubmissionAt": "2026-11-21T14:00:00.000Z"
}
]POST/v1/forms
Crea un formulario.
CrearSi va bien: 201.Permiso: Crear.
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
name | string | Sí | min length 1 · max length 120 |
title | string | null | No | |
description | string | null | No | |
fields | array of object | No | max items 50 |
fields[].key | string | Sí | pattern ^[a-z][a-z0-9_]{0,39}$ |
fields[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden" | Sí | |
fields[].label | string | Sí | min length 1 · max length 200 |
fields[].placeholder | string | null | No | |
fields[].help | string | null | No | |
fields[].required | boolean | No | default false |
fields[].options | array of string | No | max items 100 |
fields[].min | number | null | No | |
fields[].max | number | null | No | |
fields[].defaultValue | string | null | No | |
fields[].width | "full" | "half" | No | default "full" |
fields[].mapTo | "firstName" | "lastName" | "fullName" | "email" | "phone" | "jobTitle" | "department" | "birthday" | "address" | "city" | "state" | "postalCode" | "country" | "marketingOptIn" | string | null | No | |
submitLabel | string | null | No | |
successMessage | string | null | No | |
redirectUrl | string (uri) | null | "" | No | |
requireCaptcha | boolean | No | |
contactMode | "off" | "create_or_update" | "create_only" | No | |
contactOwnerId | string | null | No | |
actions | object | No | |
actions.listIds | array of string (uuid) | No | max items 20 |
actions.tagIds | array of string (uuid) | No | max items 50 |
actions.webhook | object | No | |
actions.webhook.enabled | boolean | No | default false |
actions.webhook.url | string (uri) | "" | No | default "" |
notifyMemberIds | array of string | No | max items 50 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | No | |
theme | object | No | |
theme.primaryColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | No | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | No | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | No | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | No | |
active | boolean | No | default true |
Respuesta
43 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
actions | object | Sí |
actions.listIds | array of string (uuid) | Sí |
actions.tagIds | array of string (uuid) | Sí |
actions.webhook | object | Sí |
actions.webhook.enabled | boolean | Sí |
actions.webhook.url | string | Sí |
active | boolean | Sí |
contactMode | string | Sí |
contactOwnerId | string (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
description | null en los ejemplos | Sí |
embedScriptUrl | string (uri) | Sí |
fields | array of object | Sí |
fields[].defaultValue | string | null | Sí |
fields[].help | null en los ejemplos | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].mapTo | string | null | Sí |
fields[].max | integer | null | Sí |
fields[].min | integer | null | Sí |
fields[].options | array of string | Sí |
fields[].placeholder | null en los ejemplos | Sí |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
fields[].width | string | Sí |
id | string (uuid) | Sí |
lastSubmissionAt | null en los ejemplos | Sí |
name | string | Sí |
notifyMemberIds | array of string (uuid) | Sí |
publicId | string | Sí |
redirectUrl | string | null (uri) | Sí |
requireCaptcha | boolean | Sí |
submissionCount | integer | Sí |
submitLabel | string | null | Sí |
successMessage | string | null | Sí |
templateId | null en los ejemplos | Sí |
theme | object | Sí |
title | string | null | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
webhookSecret | string | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/forms" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}'const res = await fetch("https://api.firmado.app/v1/forms", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/forms",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms");
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",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
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/forms")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
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",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/forms", 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/forms"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""))
.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/forms");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"actions": {
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"webhook": {
"enabled": true,
"url": "https://example.com"
}
},
"active": true,
"contactMode": "…",
"contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"embedScriptUrl": "https://example.com",
"fields": [
{
"defaultValue": "…",
"help": null,
"key": "…",
"label": "…",
"mapTo": "…",
"max": 1,
"min": 1,
"options": [],
"placeholder": null,
"required": true,
"type": "…",
"width": "…"
}
],
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"lastSubmissionAt": null,
"name": "Ana Lima",
"notifyMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"publicId": "…",
"redirectUrl": "https://example.com",
"requireCaptcha": true,
"submissionCount": 1,
"submitLabel": "…",
"successMessage": "…",
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"webhookSecret": "…"
}DELETE/v1/forms/{id}
Elimina un formulario y sus respuestas.
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/forms/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{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/forms/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{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/forms/{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/forms/{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/forms/{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/forms/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/forms/{id}
Devuelve un formulario con sus preguntas y ajustes.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Respuesta
43 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
actions | object | Sí |
actions.listIds | array of string (uuid) | Sí |
actions.tagIds | array of string (uuid) | Sí |
actions.webhook | object | Sí |
actions.webhook.enabled | boolean | Sí |
actions.webhook.url | string | Sí |
active | boolean | Sí |
contactMode | string | Sí |
contactOwnerId | string (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
description | null en los ejemplos | Sí |
embedScriptUrl | string (uri) | Sí |
fields | array of object | Sí |
fields[].defaultValue | string | null | Sí |
fields[].help | null en los ejemplos | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].mapTo | string | null | Sí |
fields[].max | integer | null | Sí |
fields[].min | integer | null | Sí |
fields[].options | array of string | Sí |
fields[].placeholder | null en los ejemplos | Sí |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
fields[].width | string | Sí |
id | string (uuid) | Sí |
lastSubmissionAt | string (date-time) | Sí |
name | string | Sí |
notifyMemberIds | array of string (uuid) | Sí |
publicId | string | Sí |
redirectUrl | string | null (uri) | Sí |
requireCaptcha | boolean | Sí |
submissionCount | integer | Sí |
submitLabel | null en los ejemplos | Sí |
successMessage | null en los ejemplos | Sí |
templateId | null en los ejemplos | Sí |
theme | object | Sí |
title | string | null | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
webhookSecret | string | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{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/forms/{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/forms/{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/forms/{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/forms/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"actions": {
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"webhook": {
"enabled": true,
"url": "https://example.com"
}
},
"active": true,
"contactMode": "…",
"contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"embedScriptUrl": "https://example.com",
"fields": [
{
"defaultValue": "…",
"help": null,
"key": "…",
"label": "…",
"mapTo": "…",
"max": 1,
"min": 1,
"options": [],
"placeholder": null,
"required": true,
"type": "…",
"width": "…"
}
],
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"lastSubmissionAt": "2026-11-21T14:00:00.000Z",
"name": "Ana Lima",
"notifyMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"publicId": "…",
"redirectUrl": "https://example.com",
"requireCaptcha": true,
"submissionCount": 1,
"submitLabel": null,
"successMessage": null,
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"webhookSecret": "…"
}PATCH/v1/forms/{id}
Cambia un formulario: preguntas, aspecto y qué pasa después de responder.
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 |
title | string | null | No | |
description | string | null | No | |
fields | array of object | No | max items 50 |
fields[].key | string | Sí | pattern ^[a-z][a-z0-9_]{0,39}$ |
fields[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden" | Sí | |
fields[].label | string | Sí | min length 1 · max length 200 |
fields[].placeholder | string | null | No | |
fields[].help | string | null | No | |
fields[].required | boolean | No | default false |
fields[].options | array of string | No | max items 100 |
fields[].min | number | null | No | |
fields[].max | number | null | No | |
fields[].defaultValue | string | null | No | |
fields[].width | "full" | "half" | No | default "full" |
fields[].mapTo | "firstName" | "lastName" | "fullName" | "email" | "phone" | "jobTitle" | "department" | "birthday" | "address" | "city" | "state" | "postalCode" | "country" | "marketingOptIn" | string | null | No | |
submitLabel | string | null | No | |
successMessage | string | null | No | |
redirectUrl | string (uri) | null | "" | No | |
requireCaptcha | boolean | No | |
contactMode | "off" | "create_or_update" | "create_only" | No | |
contactOwnerId | string | null | No | |
actions | object | No | |
actions.listIds | array of string (uuid) | No | max items 20 |
actions.tagIds | array of string (uuid) | No | max items 50 |
actions.webhook | object | No | |
actions.webhook.enabled | boolean | No | default false |
actions.webhook.url | string (uri) | "" | No | default "" |
notifyMemberIds | array of string | No | max items 50 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | No | |
theme | object | No | |
theme.primaryColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | No | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | No | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | No | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | No | |
active | boolean | No |
Respuesta
43 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
actions | object | Sí |
actions.listIds | array of string (uuid) | Sí |
actions.tagIds | array of string (uuid) | Sí |
actions.webhook | object | Sí |
actions.webhook.enabled | boolean | Sí |
actions.webhook.url | string | Sí |
active | boolean | Sí |
contactMode | string | Sí |
contactOwnerId | string (uuid) | Sí |
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
description | null en los ejemplos | Sí |
embedScriptUrl | string (uri) | Sí |
fields | array of object | Sí |
fields[].defaultValue | string | null | Sí |
fields[].help | null en los ejemplos | Sí |
fields[].key | string | Sí |
fields[].label | string | Sí |
fields[].mapTo | string | null | Sí |
fields[].max | integer | null | Sí |
fields[].min | integer | null | Sí |
fields[].options | array of string | Sí |
fields[].placeholder | null en los ejemplos | Sí |
fields[].required | boolean | Sí |
fields[].type | string | Sí |
fields[].width | string | Sí |
id | string (uuid) | Sí |
lastSubmissionAt | string | null (date-time) | Sí |
name | string | Sí |
notifyMemberIds | array of string (uuid) | Sí |
publicId | string | Sí |
redirectUrl | string | null (uri) | Sí |
requireCaptcha | boolean | Sí |
submissionCount | integer | Sí |
submitLabel | null en los ejemplos | Sí |
successMessage | null en los ejemplos | Sí |
templateId | null en los ejemplos | Sí |
theme | object | Sí |
title | string | null | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
url | string (uri) | Sí |
webhookSecret | string | Sí |
Ejemplo
curl -X PATCH "https://api.firmado.app/v1/forms/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}'const res = await fetch("https://api.firmado.app/v1/forms/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/forms/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{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",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
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/forms/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
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",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/forms/{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/forms/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""))
.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/forms/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"actions": {
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"webhook": {
"enabled": true,
"url": "https://example.com"
}
},
"active": true,
"contactMode": "…",
"contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"embedScriptUrl": "https://example.com",
"fields": [
{
"defaultValue": "…",
"help": null,
"key": "…",
"label": "…",
"mapTo": "…",
"max": 1,
"min": 1,
"options": [],
"placeholder": null,
"required": true,
"type": "…",
"width": "…"
}
],
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"lastSubmissionAt": "2026-11-21T14:00:00.000Z",
"name": "Ana Lima",
"notifyMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"publicId": "…",
"redirectUrl": "https://example.com",
"requireCaptcha": true,
"submissionCount": 1,
"submitLabel": null,
"successMessage": null,
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"webhookSecret": "…"
}GET/v1/forms/{id}/submissions
Lista las respuestas de un formulario.
Leer/{id}/submissionsSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
Respuesta
20 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
data | array of object | Sí |
data[].answers | array of object | Sí |
data[].answers[].key | string | Sí |
data[].answers[].label | string | Sí |
data[].answers[].type | string | Sí |
data[].answers[].value | array | boolean | integer | string | null | Sí |
data[].contact | object | null | Sí |
data[].contact.id | string (uuid) | Sí |
data[].contact.name | string | Sí |
data[].contactId | string | null (uuid) | Sí |
data[].createdAt | string (date-time) | Sí |
data[].formId | string (uuid) | Sí |
data[].id | string (uuid) | Sí |
data[].pageUrl | string | null (uri) | Sí |
data[].source | string | Sí |
data[].webhookError | null en los ejemplos | Sí |
data[].webhookStatus | integer | null | Sí |
page | integer | Sí |
pageSize | integer | Sí |
total | integer | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/{id}/submissions",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions");
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/forms/{id}/submissions")
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/forms/{id}/submissions", 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/forms/{id}/submissions"))
.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/forms/{id}/submissions");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"answers": [],
"source": "…",
"pageUrl": "https://example.com",
"webhookStatus": 1,
"webhookError": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"contact": {}
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/forms/{id}/submissions
Envía el formulario desde los sistemas de la propia organización, como lo haría un visitante (Pro).
Crear/{id}/submissionsSi va bien: 201.Permiso: Crear.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
answers | object of any | Sí |
Respuesta
2 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
contactId | string (uuid) | Sí |
id | string (uuid) | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/forms/{id}/submissions" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"answers": {}
}'const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"answers": {}
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/forms/{id}/submissions",
headers={"X-Api-Key": "fmd_..."},
json={
"answers": {},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"answers": {}
}
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/forms/{id}/submissions")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"answers": {}
}
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(`{
"answers": {}
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/forms/{id}/submissions", 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/forms/{id}/submissions"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"answers": {}
}
"""))
.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/forms/{id}/submissions");
request.Content = new StringContent(""""
{
"answers": {}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (201), con valores de ejemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}DELETE/v1/forms/{id}/submissions/{submissionId}
Elimina una respuesta.
Eliminar/{id}/submissions/{submissionId}Si va bien: 204.Permiso: Eliminar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí | |
submissionId | string | Sí |
Ejemplo
curl -X DELETE "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}", {
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/forms/{id}/submissions/{submissionId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}");
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/forms/{id}/submissions/{submissionId}")
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/forms/{id}/submissions/{submissionId}", 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/forms/{id}/submissions/{submissionId}"))
.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/forms/{id}/submissions/{submissionId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/forms/{id}/submissions/{submissionId}
Devuelve una respuesta con sus valores.
Leer/{id}/submissions/{submissionId}Si va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí | |
submissionId | string | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}");
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/forms/{id}/submissions/{submissionId}")
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/forms/{id}/submissions/{submissionId}", 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/forms/{id}/submissions/{submissionId}"))
.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/forms/{id}/submissions/{submissionId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/forms/{id}/submissions/export
Descarga las respuestas de un formulario en CSV.
Leer/{id}/submissions/exportSi 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/forms/{id}/submissions/export" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions/export", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/{id}/submissions/export",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions/export");
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/forms/{id}/submissions/export")
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/forms/{id}/submissions/export", 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/forms/{id}/submissions/export"))
.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/forms/{id}/submissions/export");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/forms/{id}/webhook/test
Envía una respuesta inventada al webhook del formulario y dice cómo fue.
Actualizar/{id}/webhook/testSi va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
url | string (uri) | No | max length 2000 |
Respuesta
2 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
error | null en los ejemplos | Sí |
status | integer | Sí |
Ejemplo
curl -X POST "https://api.firmado.app/v1/forms/{id}/webhook/test" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'const res = await fetch("https://api.firmado.app/v1/forms/{id}/webhook/test", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"url": "https://example.com"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/forms/{id}/webhook/test",
headers={"X-Api-Key": "fmd_..."},
json={
"url": "https://example.com",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/webhook/test");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"url": "https://example.com"
}
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/forms/{id}/webhook/test")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"url": "https://example.com"
}
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(`{
"url": "https://example.com"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/forms/{id}/webhook/test", 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/forms/{id}/webhook/test"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"url": "https://example.com"
}
"""))
.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/forms/{id}/webhook/test");
request.Content = new StringContent(""""
{
"url": "https://example.com"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"status": 1,
"error": null
}GET/v1/forms/look
El aspecto del que parte la vista previa de un formulario; no guarda nada.
Leer/lookSi va bien: 200.Permiso: Leer.
Parámetros de consulta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
templateId | "classic" | "modern" | "minimal" | "bold" | No |
Respuesta
12 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
organization | object | Sí |
organization.language | string | Sí |
organization.name | string | Sí |
templateId | string | Sí |
theme | object | Sí |
theme.accentColor | string | Sí |
theme.backgroundColor | string | Sí |
theme.bodyFont | string | Sí |
theme.cornerRadius | string | Sí |
theme.headingFont | string | Sí |
theme.primaryColor | string | Sí |
theme.textColor | string | Sí |
Ejemplo
curl -X GET "https://api.firmado.app/v1/forms/look" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/look", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/look",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/look");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/look")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/forms/look", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/look"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/forms/look");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Respuesta (200), con valores de ejemplo:
{
"organization": {
"name": "Ana Lima",
"language": "…"
},
"templateId": "…",
"theme": {
"primaryColor": "…",
"accentColor": "…",
"backgroundColor": "…",
"textColor": "…",
"headingFont": "…",
"bodyFont": "…",
"cornerRadius": "…"
}
}Eventos de webhook
Cambios de esta funcionalidad que los webhooks pueden enviar.
form.createdCrearform.updatedActualizarform.deletedEliminarform.submittedCrearform.submission_deletedEliminar