Forms
Forms, their look and their submissions.
Values for the examples
Type them once and every example on this page uses them. The API key stays on this page only and is never saved.
GET/v1/form-defaults
What new forms start with.
ListOn success: 200.Permission: Read.
Example
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
Changes what new forms start with.
Update/On success: 200.Permission: Update.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
fields | array of object | null | Yes | |
submitLabel | string | null | No | |
successMessage | string | null | No | |
redirectUrl | string (uri) | null | "" | No | |
requireCaptcha | boolean | Yes | |
contactMode | "off" | "create_or_update" | "create_only" | Yes |
Response
18 fields
| Field | Type | Always there |
|---|---|---|
contactMode | string | Yes |
fields | array of object | Yes |
fields[].defaultValue | null in the examples | Yes |
fields[].help | null in the examples | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].mapTo | string | Yes |
fields[].max | null in the examples | Yes |
fields[].min | null in the examples | Yes |
fields[].options | array of any | Yes |
fields[].placeholder | null in the examples | Yes |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
fields[].width | string | Yes |
redirectUrl | null in the examples | Yes |
requireCaptcha | boolean | Yes |
submitLabel | string | Yes |
successMessage | string | Yes |
Example
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();Response (200), with sample values:
{
"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
Lists the forms.
ListOn success: 200.Permission: Read.
Response
43 fields
| Field | Type | Always there |
|---|---|---|
[].actions | object | Yes |
[].actions.listIds | array of string (uuid) | Yes |
[].actions.tagIds | array of string (uuid) | Yes |
[].actions.webhook | object | Yes |
[].actions.webhook.enabled | boolean | Yes |
[].actions.webhook.url | string | Yes |
[].active | boolean | Yes |
[].contactMode | string | Yes |
[].contactOwnerId | string (uuid) | Yes |
[].createdAt | string (date-time) | Yes |
[].createdBy | string (uuid) | Yes |
[].description | null in the examples | Yes |
[].embedScriptUrl | string (uri) | Yes |
[].fields | array of object | Yes |
[].fields[].defaultValue | null in the examples | Yes |
[].fields[].help | null in the examples | Yes |
[].fields[].key | string | Yes |
[].fields[].label | string | Yes |
[].fields[].mapTo | string | Yes |
[].fields[].max | null in the examples | Yes |
[].fields[].min | null in the examples | Yes |
[].fields[].options | array of any | Yes |
[].fields[].placeholder | null in the examples | Yes |
[].fields[].required | boolean | Yes |
[].fields[].type | string | Yes |
[].fields[].width | string | Yes |
[].id | string (uuid) | Yes |
[].lastSubmissionAt | string (date-time) | Yes |
[].name | string | Yes |
[].notifyMemberIds | array of any | Yes |
[].publicId | string | Yes |
[].redirectUrl | null in the examples | Yes |
[].requireCaptcha | boolean | Yes |
[].submissionCount | integer | Yes |
[].submitLabel | null in the examples | Yes |
[].successMessage | null in the examples | Yes |
[].templateId | null in the examples | Yes |
[].theme | object | Yes |
[].title | null in the examples | Yes |
[].updatedAt | string (date-time) | Yes |
[].updatedBy | string (uuid) | Yes |
[].url | string (uri) | Yes |
[].webhookSecret | string | Yes |
Example
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();Response (200), with sample values:
[
{
"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
Creates a form.
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | 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 | Yes | pattern ^[a-z][a-z0-9_]{0,39}$ |
fields[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden" | Yes | |
fields[].label | string | Yes | 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 |
Response
43 fields
| Field | Type | Always there |
|---|---|---|
actions | object | Yes |
actions.listIds | array of string (uuid) | Yes |
actions.tagIds | array of string (uuid) | Yes |
actions.webhook | object | Yes |
actions.webhook.enabled | boolean | Yes |
actions.webhook.url | string | Yes |
active | boolean | Yes |
contactMode | string | Yes |
contactOwnerId | string (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
description | null in the examples | Yes |
embedScriptUrl | string (uri) | Yes |
fields | array of object | Yes |
fields[].defaultValue | string | null | Yes |
fields[].help | null in the examples | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].mapTo | string | null | Yes |
fields[].max | integer | null | Yes |
fields[].min | integer | null | Yes |
fields[].options | array of string | Yes |
fields[].placeholder | null in the examples | Yes |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
fields[].width | string | Yes |
id | string (uuid) | Yes |
lastSubmissionAt | null in the examples | Yes |
name | string | Yes |
notifyMemberIds | array of string (uuid) | Yes |
publicId | string | Yes |
redirectUrl | string | null (uri) | Yes |
requireCaptcha | boolean | Yes |
submissionCount | integer | Yes |
submitLabel | string | null | Yes |
successMessage | string | null | Yes |
templateId | null in the examples | Yes |
theme | object | Yes |
title | string | null | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
webhookSecret | string | Yes |
Example
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();Response (201), with sample values:
{
"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}
Deletes a form and its submissions.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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}
Returns a form with its questions and settings.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
43 fields
| Field | Type | Always there |
|---|---|---|
actions | object | Yes |
actions.listIds | array of string (uuid) | Yes |
actions.tagIds | array of string (uuid) | Yes |
actions.webhook | object | Yes |
actions.webhook.enabled | boolean | Yes |
actions.webhook.url | string | Yes |
active | boolean | Yes |
contactMode | string | Yes |
contactOwnerId | string (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
description | null in the examples | Yes |
embedScriptUrl | string (uri) | Yes |
fields | array of object | Yes |
fields[].defaultValue | string | null | Yes |
fields[].help | null in the examples | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].mapTo | string | null | Yes |
fields[].max | integer | null | Yes |
fields[].min | integer | null | Yes |
fields[].options | array of string | Yes |
fields[].placeholder | null in the examples | Yes |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
fields[].width | string | Yes |
id | string (uuid) | Yes |
lastSubmissionAt | string (date-time) | Yes |
name | string | Yes |
notifyMemberIds | array of string (uuid) | Yes |
publicId | string | Yes |
redirectUrl | string | null (uri) | Yes |
requireCaptcha | boolean | Yes |
submissionCount | integer | Yes |
submitLabel | null in the examples | Yes |
successMessage | null in the examples | Yes |
templateId | null in the examples | Yes |
theme | object | Yes |
title | string | null | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
webhookSecret | string | Yes |
Example
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();Response (200), with sample values:
{
"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}
Changes a form: questions, look, what happens after answering.
UpdateOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
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 | Yes | pattern ^[a-z][a-z0-9_]{0,39}$ |
fields[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden" | Yes | |
fields[].label | string | Yes | 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 |
Response
43 fields
| Field | Type | Always there |
|---|---|---|
actions | object | Yes |
actions.listIds | array of string (uuid) | Yes |
actions.tagIds | array of string (uuid) | Yes |
actions.webhook | object | Yes |
actions.webhook.enabled | boolean | Yes |
actions.webhook.url | string | Yes |
active | boolean | Yes |
contactMode | string | Yes |
contactOwnerId | string (uuid) | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
description | null in the examples | Yes |
embedScriptUrl | string (uri) | Yes |
fields | array of object | Yes |
fields[].defaultValue | string | null | Yes |
fields[].help | null in the examples | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].mapTo | string | null | Yes |
fields[].max | integer | null | Yes |
fields[].min | integer | null | Yes |
fields[].options | array of string | Yes |
fields[].placeholder | null in the examples | Yes |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
fields[].width | string | Yes |
id | string (uuid) | Yes |
lastSubmissionAt | string | null (date-time) | Yes |
name | string | Yes |
notifyMemberIds | array of string (uuid) | Yes |
publicId | string | Yes |
redirectUrl | string | null (uri) | Yes |
requireCaptcha | boolean | Yes |
submissionCount | integer | Yes |
submitLabel | null in the examples | Yes |
successMessage | null in the examples | Yes |
templateId | null in the examples | Yes |
theme | object | Yes |
title | string | null | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
webhookSecret | string | Yes |
Example
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();Response (200), with sample values:
{
"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
Lists a form’s submissions.
Read/{id}/submissionsOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
Response
20 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].answers | array of object | Yes |
data[].answers[].key | string | Yes |
data[].answers[].label | string | Yes |
data[].answers[].type | string | Yes |
data[].answers[].value | array | boolean | integer | string | null | Yes |
data[].contact | object | null | Yes |
data[].contact.id | string (uuid) | Yes |
data[].contact.name | string | Yes |
data[].contactId | string | null (uuid) | Yes |
data[].createdAt | string (date-time) | Yes |
data[].formId | string (uuid) | Yes |
data[].id | string (uuid) | Yes |
data[].pageUrl | string | null (uri) | Yes |
data[].source | string | Yes |
data[].webhookError | null in the examples | Yes |
data[].webhookStatus | integer | null | Yes |
page | integer | Yes |
pageSize | integer | Yes |
total | integer | Yes |
Example
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();Response (200), with sample values:
{
"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
Submits the form from the organization’s own systems, as a visitor would (Pro).
Create/{id}/submissionsOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
answers | object of any | Yes |
Response
2 fields
| Field | Type | Always there |
|---|---|---|
contactId | string (uuid) | Yes |
id | string (uuid) | Yes |
Example
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();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}DELETE/v1/forms/{id}/submissions/{submissionId}
Deletes one submission.
Delete/{id}/submissions/{submissionId}On success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | |
submissionId | string | Yes |
Example
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}
Returns one submission with its answers.
Read/{id}/submissions/{submissionId}On success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | |
submissionId | string | Yes |
Example
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
Downloads a form’s submissions as a CSV file.
Read/{id}/submissions/exportOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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
Sends a made-up submission to the form’s webhook and says how it went.
Update/{id}/webhook/testOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
url | string (uri) | No | max length 2000 |
Response
2 fields
| Field | Type | Always there |
|---|---|---|
error | null in the examples | Yes |
status | integer | Yes |
Example
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();Response (200), with sample values:
{
"status": 1,
"error": null
}GET/v1/forms/look
The look a form’s preview starts from; saves nothing.
Read/lookOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
templateId | "classic" | "modern" | "minimal" | "bold" | No |
Response
12 fields
| Field | Type | Always there |
|---|---|---|
organization | object | Yes |
organization.language | string | Yes |
organization.name | string | Yes |
templateId | string | Yes |
theme | object | Yes |
theme.accentColor | string | Yes |
theme.backgroundColor | string | Yes |
theme.bodyFont | string | Yes |
theme.cornerRadius | string | Yes |
theme.headingFont | string | Yes |
theme.primaryColor | string | Yes |
theme.textColor | string | Yes |
Example
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();Response (200), with sample values:
{
"organization": {
"name": "Ana Lima",
"language": "…"
},
"templateId": "…",
"theme": {
"primaryColor": "…",
"accentColor": "…",
"backgroundColor": "…",
"textColor": "…",
"headingFont": "…",
"bodyFont": "…",
"cornerRadius": "…"
}
}Webhook events
Changes of this feature that webhooks can send.
form.createdCreateform.updatedUpdateform.deletedDeleteform.submittedCreateform.submission_deletedDelete