Contracts
Contract templates and contracts sent for signature.
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/contract-templates
Lists the contract templates.
ListOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
q | string | No | min length 1 · max length 200 |
archived | string | No | |
sort | "updatedAt" | "name" | No | default "updatedAt" |
order | "asc" | "desc" | No | default "desc" |
Response
16 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].contracts | object | Yes |
data[].contracts.signed | integer | Yes |
data[].contracts.total | integer | Yes |
data[].createdAt | string (date-time) | Yes |
data[].currency | string | Yes |
data[].description | null in the examples | Yes |
data[].fields | integer | Yes |
data[].id | string (uuid) | Yes |
data[].items | integer | Yes |
data[].name | string | Yes |
data[].title | string | Yes |
data[].updatedAt | string (date-time) | Yes |
page | integer | Yes |
pageSize | integer | Yes |
total | integer | Yes |
Example
curl -X GET "https://api.firmado.app/v1/contract-templates" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contract-templates",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contract-templates")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contract-templates", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contract-templates"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contract-templates");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"description": null,
"title": "…",
"currency": "USD",
"fields": 1,
"items": 1,
"contracts": {},
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/contract-templates
Creates a contract template.
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 120 |
description | string | null | No | |
title | string | No | min length 1 · max length 200 |
body | string | No | max length 200000 · default "" |
fields | array of object | No | max items 50 |
fields[].key | string | Yes | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Yes | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Yes | |
fields[].filledBy | "team" | "signer" | Yes | |
fields[].required | boolean | No | default false |
fields[].help | string | null | No | |
fields[].options | array of string | No | max items 30 |
fields[].defaultValue | string | number | boolean | null | No | |
items | array of object | No | max items 100 |
items[].serviceId | string (uuid) | null | No | |
items[].name | string | Yes | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | Yes | min 0 · max 1000000 |
items[].unitPrice | integer | Yes | min 0 · max 10000000000000 |
currency | string | No | pattern ^[A-Za-z]{3}$ |
discount | object | null | No | |
language | "pt" | "es" | "en" | "fr" | null | No | |
roles | array of string | No | max items 10 |
settings | object | No | |
settings.requireTaxId | boolean | No | default true |
settings.verifySignerEmail | boolean | No | default true |
settings.expiresInDays | integer | null | No | default 30 |
settings.chargeOnSign | boolean | No | default false |
Response
36 fields
| Field | Type | Always there |
|---|---|---|
body | string | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
description | null in the examples | Yes |
discount | object | null | Yes |
discount.type | string | Yes |
discount.value | integer | Yes |
fields | array of object | Yes |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].options | array of string | No |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
id | string (uuid) | Yes |
items | array of object | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
name | string | Yes |
organizationId | string (uuid) | Yes |
roles | array of string | Yes |
settings | object | Yes |
settings.chargeOnSign | boolean | Yes |
settings.expiresInDays | integer | Yes |
settings.requireTaxId | boolean | Yes |
settings.verifySignerEmail | boolean | Yes |
title | string | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
variables | object | Yes |
variables.organization.name | string | Yes |
variables.organization.postalAddress | null in the examples | Yes |
Example
curl -X POST "https://api.firmado.app/v1/contract-templates" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}'const res = await fetch("https://api.firmado.app/v1/contract-templates", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contract-templates",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contract-templates")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contract-templates", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contract-templates"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contract-templates");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": ""
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"description": null,
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": null,
"roles": [
"…"
],
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"variables": {
"organization.name": "Ana Lima",
"organization.postalAddress": null
}
}DELETE/v1/contract-templates/{id}
Deletes a contract template.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/contract-templates/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/contract-templates/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contract-templates/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/contract-templates/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contract-templates/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/contract-templates/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contract-templates/{id}
Returns a contract template with its text, fields and settings.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X GET "https://api.firmado.app/v1/contract-templates/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contract-templates/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contract-templates/{id}")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contract-templates/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contract-templates/{id}"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contract-templates/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/contract-templates/{id}
Changes a contract template; contracts made from it keep their copy.
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 |
description | string | null | No | |
title | string | No | min length 1 · max length 200 |
body | string | No | max length 200000 |
fields | array of object | No | max items 50 |
fields[].key | string | Yes | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Yes | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Yes | |
fields[].filledBy | "team" | "signer" | Yes | |
fields[].required | boolean | No | default false |
fields[].help | string | null | No | |
fields[].options | array of string | No | max items 30 |
fields[].defaultValue | string | number | boolean | null | No | |
items | array of object | No | max items 100 |
items[].serviceId | string (uuid) | null | No | |
items[].name | string | Yes | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | Yes | min 0 · max 1000000 |
items[].unitPrice | integer | Yes | min 0 · max 10000000000000 |
currency | string | No | pattern ^[A-Za-z]{3}$ |
discount | object | null | No | |
language | "pt" | "es" | "en" | "fr" | null | No | |
roles | array of string | No | max items 10 |
settings | object | No | |
settings.requireTaxId | boolean | No | default true |
settings.verifySignerEmail | boolean | No | default true |
settings.expiresInDays | integer | null | No | default 30 |
settings.chargeOnSign | boolean | No | default false |
Example
curl -X PATCH "https://api.firmado.app/v1/contract-templates/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}'const res = await fetch("https://api.firmado.app/v1/contract-templates/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/contract-templates/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contract-templates/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/contract-templates/{id}", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contract-templates/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PATCH"), "https://api.firmado.app/v1/contract-templates/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"description": "…",
"title": "…",
"body": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/contract-templates/{id}/duplicate
Copies a contract template.
Create/{id}/duplicateOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X POST "https://api.firmado.app/v1/contract-templates/{id}/duplicate" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contract-templates/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/{id}/duplicate");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contract-templates/{id}/duplicate")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contract-templates/{id}/duplicate", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contract-templates/{id}/duplicate"))
.header("X-Api-Key", "fmd_...")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contract-templates/{id}/duplicate");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contract-templates/variables
The {{...}} variables a contract can show: contact, company, organization and fields.
Read/variablesOn success: 200.Permission: Read.
Example
curl -X GET "https://api.firmado.app/v1/contract-templates/variables" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contract-templates/variables", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contract-templates/variables",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contract-templates/variables");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contract-templates/variables")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contract-templates/variables", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contract-templates/variables"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contract-templates/variables");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contracts
Lists contracts, by status, contact or template.
ListOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
q | string | No | min length 1 · max length 200 |
archived | string | No | |
status | "draft" | "sent" | "signed" | "declined" | "canceled" | "expired" | No | |
templateId | string (uuid) | No | |
contactId | string (uuid) | No | |
companyId | string (uuid) | No | |
ownerId | string | No | min length 1 |
sort | "createdAt" | "title" | No | default "createdAt" |
order | "asc" | "desc" | No | default "desc" |
Response
23 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].completedAt | string (date-time) | Yes |
data[].contact | object | Yes |
data[].contact.id | string (uuid) | Yes |
data[].contact.name | string | Yes |
data[].createdAt | string (date-time) | Yes |
data[].currency | string | Yes |
data[].expiresAt | string (date-time) | Yes |
data[].id | string (uuid) | Yes |
data[].ownerId | string (uuid) | Yes |
data[].sentAt | string (date-time) | Yes |
data[].signers | object | Yes |
data[].signers.signed | integer | Yes |
data[].signers.total | integer | Yes |
data[].status | string | Yes |
data[].template | object | Yes |
data[].template.id | string (uuid) | Yes |
data[].template.name | string | Yes |
data[].title | string | Yes |
data[].total | integer | Yes |
page | integer | Yes |
pageSize | integer | Yes |
total | integer | Yes |
Example
curl -X GET "https://api.firmado.app/v1/contracts" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contracts",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contracts", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contracts");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"total": 1,
"currency": "USD",
"template": {},
"contact": {},
"signers": {},
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": "2026-11-21T14:00:00.000Z",
"createdAt": "2026-11-21T14:00:00.000Z"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/contracts
Creates a contract draft from a template.
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
templateId | string (uuid) | No | |
title | string | No | min length 1 · max length 200 |
contactId | string (uuid) | null | No | |
companyId | string (uuid) | null | No | |
message | string | null | No | |
signers | array of object | No | max items 10 |
signers[].contactId | string (uuid) | No | |
signers[].email | string (email) | No | max length 320 |
signers[].name | string | No | min length 1 · max length 200 |
signers[].role | string | null | No | |
values | object of string | number | boolean | null | No |
Response
74 fields
| Field | Type | Always there |
|---|---|---|
body | string | Yes |
canceledAt | null in the examples | Yes |
company | null in the examples | Yes |
completedAt | null in the examples | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contentHash | null in the examples | Yes |
context | object of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
discount | object | null | Yes |
discount.type | string | Yes |
discount.value | integer | Yes |
expiresAt | null in the examples | Yes |
fields | array of object | Yes |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].options | array of string | No |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
id | string (uuid) | Yes |
invoiceId | null in the examples | Yes |
items | array of object | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
message | null in the examples | Yes |
organizationId | string (uuid) | Yes |
ownerId | string (uuid) | Yes |
payment | null in the examples | Yes |
sentAt | null in the examples | Yes |
settings | object | Yes |
settings.chargeOnSign | boolean | Yes |
settings.expiresInDays | integer | Yes |
settings.requireTaxId | boolean | Yes |
settings.verifySignerEmail | boolean | Yes |
signers | array of object | Yes |
signers[].contactId | string | null (uuid) | Yes |
signers[].decidedAt | null in the examples | Yes |
signers[].declineReason | null in the examples | Yes |
signers[].documentHash | null in the examples | Yes |
signers[].email | string (email) | Yes |
signers[].firstViewedAt | null in the examples | Yes |
signers[].id | string (uuid) | Yes |
signers[].ipAddress | null in the examples | Yes |
signers[].lastViewedAt | null in the examples | Yes |
signers[].name | string | null | Yes |
signers[].position | integer | Yes |
signers[].role | string | null | Yes |
signers[].sendCount | integer | Yes |
signers[].sentAt | null in the examples | Yes |
signers[].signature | null in the examples | Yes |
signers[].signerName | null in the examples | Yes |
signers[].signerTaxId | null in the examples | Yes |
signers[].status | string | Yes |
signers[].url | null in the examples | Yes |
signers[].userAgent | null in the examples | Yes |
signers[].verification | null in the examples | Yes |
signers[].viewCount | integer | Yes |
status | string | Yes |
template | object | null | Yes |
template.id | string (uuid) | Yes |
template.name | string | Yes |
template.roles | array of string | Yes |
title | string | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
values | object of any | Yes |
Example
curl -X POST "https://api.firmado.app/v1/contracts" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'const res = await fetch("https://api.firmado.app/v1/contracts", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts",
headers={"X-Api-Key": "fmd_..."},
json={
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contracts");
request.Content = new StringContent(""""
{
"templateId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": null,
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": null,
"invoiceId": null,
"expiresAt": null,
"sentAt": null,
"completedAt": null,
"canceledAt": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": null,
"sentAt": null,
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}DELETE/v1/contracts/{id}
Deletes a contract.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
curl -X DELETE "https://api.firmado.app/v1/contracts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/contracts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/contracts/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/contracts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/contracts/{id}
Returns a contract with its signers and their signatures.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
89 fields
| Field | Type | Always there |
|---|---|---|
body | string | Yes |
canceledAt | null in the examples | Yes |
company | null in the examples | Yes |
completedAt | string | null (date-time) | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contentHash | string | null | Yes |
context | object of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
discount | object | null | Yes |
discount.type | string | Yes |
discount.value | integer | Yes |
expiresAt | string | null (date-time) | Yes |
fields | array of object | Yes |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].options | array of string | No |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
id | string (uuid) | Yes |
invoiceId | string | null (uuid) | Yes |
items | array of object | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].unitPrice | integer | Yes |
language | string | null | Yes |
message | null in the examples | Yes |
organizationId | string (uuid) | Yes |
ownerId | string (uuid) | Yes |
payment | object | null | Yes |
payment.amount | integer | Yes |
payment.canPay | boolean | Yes |
payment.currency | string | Yes |
payment.invoice | object | Yes |
payment.invoice.id | string (uuid) | Yes |
payment.invoice.number | string | Yes |
payment.invoice.url | string (uri) | Yes |
payment.paidAt | null in the examples | Yes |
payment.status | string | Yes |
sentAt | string | null (date-time) | Yes |
settings | object | Yes |
settings.chargeOnSign | boolean | Yes |
settings.expiresInDays | integer | Yes |
settings.requireTaxId | boolean | Yes |
settings.verifySignerEmail | boolean | Yes |
signers | array of object | Yes |
signers[].contactId | string | null (uuid) | Yes |
signers[].decidedAt | string | null (date-time) | Yes |
signers[].declineReason | string | null | Yes |
signers[].documentHash | string | null | Yes |
signers[].email | string (email) | Yes |
signers[].firstViewedAt | string | null (date-time) | Yes |
signers[].id | string (uuid) | Yes |
signers[].ipAddress | string | null | Yes |
signers[].lastViewedAt | string | null (date-time) | Yes |
signers[].name | string | null | Yes |
signers[].position | integer | Yes |
signers[].role | string | null | Yes |
signers[].sendCount | integer | Yes |
signers[].sentAt | string | null (date-time) | Yes |
signers[].signature | object | null | Yes |
signers[].signature.image | string | No |
signers[].signature.kind | string | Yes |
signers[].signature.text | string | No |
signers[].signerName | string | null | Yes |
signers[].signerTaxId | string | null | Yes |
signers[].status | string | Yes |
signers[].url | string | null (uri) | Yes |
signers[].userAgent | null in the examples | Yes |
signers[].verification | object | null | Yes |
signers[].verification.sendCount | integer | Yes |
signers[].verification.sentAt | string (date-time) | Yes |
signers[].verification.verifiedAt | string | null (date-time) | Yes |
signers[].viewCount | integer | Yes |
status | string | Yes |
template | object | null | Yes |
template.id | string (uuid) | Yes |
template.name | string | Yes |
template.roles | array of string | Yes |
title | string | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
values | object of any | Yes |
Example
curl -X GET "https://api.firmado.app/v1/contracts/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/contracts/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts/{id}")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/contracts/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts/{id}"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/contracts/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": "…",
"invoiceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": "2026-11-21T14:00:00.000Z",
"canceledAt": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": {
"amount": 1,
"currency": "USD",
"status": "…",
"paidAt": null,
"canPay": true,
"invoice": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"number": "…",
"url": "https://example.com"
}
},
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": "https://example.com",
"sentAt": "2026-11-21T14:00:00.000Z",
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": "2026-11-21T14:00:00.000Z",
"lastViewedAt": "2026-11-21T14:00:00.000Z",
"decidedAt": "2026-11-21T14:00:00.000Z",
"signerName": "Ana Lima",
"signerTaxId": "…",
"signature": {},
"documentHash": "…",
"ipAddress": "…",
"userAgent": null,
"declineReason": "…",
"verification": {}
}
]
}PATCH/v1/contracts/{id}
Changes a contract draft: text, fields, prices and signers.
UpdateOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | No | min length 1 · max length 200 |
body | string | No | max length 200000 |
fields | array of object | No | max items 50 |
fields[].key | string | Yes | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Yes | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Yes | |
fields[].filledBy | "team" | "signer" | Yes | |
fields[].required | boolean | No | default false |
fields[].help | string | null | No | |
fields[].options | array of string | No | max items 30 |
fields[].defaultValue | string | number | boolean | null | No | |
items | array of object | No | max items 100 |
items[].serviceId | string (uuid) | null | No | |
items[].name | string | Yes | min length 1 · max length 200 |
items[].description | string | null | No | |
items[].quantity | number | Yes | min 0 · max 1000000 |
items[].unitPrice | integer | Yes | min 0 · max 10000000000000 |
currency | string | No | pattern ^[A-Za-z]{3}$ |
discount | object | null | No | |
language | "pt" | "es" | "en" | "fr" | null | No | |
contactId | string (uuid) | null | No | |
companyId | string (uuid) | null | No | |
message | string | null | No | |
signers | array of object | No | max items 10 |
signers[].contactId | string (uuid) | No | |
signers[].email | string (email) | No | max length 320 |
signers[].name | string | No | min length 1 · max length 200 |
signers[].role | string | null | No | |
values | object of string | number | boolean | null | No | |
settings | object | No | |
settings.requireTaxId | boolean | No | default true |
settings.verifySignerEmail | boolean | No | default true |
settings.expiresInDays | integer | null | No | default 30 |
settings.chargeOnSign | boolean | No | default false |
expiresAt | string (date-time) | null | No |
Response
74 fields
| Field | Type | Always there |
|---|---|---|
body | string | Yes |
canceledAt | null in the examples | Yes |
company | null in the examples | Yes |
completedAt | null in the examples | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contentHash | null in the examples | Yes |
context | object of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
discount | object | null | Yes |
discount.type | string | Yes |
discount.value | integer | Yes |
expiresAt | string | null (date-time) | Yes |
fields | array of object | Yes |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].options | array of string | No |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
id | string (uuid) | Yes |
invoiceId | null in the examples | Yes |
items | array of object | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].unitPrice | integer | Yes |
language | null in the examples | Yes |
message | null in the examples | Yes |
organizationId | string (uuid) | Yes |
ownerId | string (uuid) | Yes |
payment | null in the examples | Yes |
sentAt | null in the examples | Yes |
settings | object | Yes |
settings.chargeOnSign | boolean | Yes |
settings.expiresInDays | integer | Yes |
settings.requireTaxId | boolean | Yes |
settings.verifySignerEmail | boolean | Yes |
signers | array of object | Yes |
signers[].contactId | string | null (uuid) | Yes |
signers[].decidedAt | null in the examples | Yes |
signers[].declineReason | null in the examples | Yes |
signers[].documentHash | null in the examples | Yes |
signers[].email | string (email) | Yes |
signers[].firstViewedAt | null in the examples | Yes |
signers[].id | string (uuid) | Yes |
signers[].ipAddress | null in the examples | Yes |
signers[].lastViewedAt | null in the examples | Yes |
signers[].name | string | null | Yes |
signers[].position | integer | Yes |
signers[].role | string | null | Yes |
signers[].sendCount | integer | Yes |
signers[].sentAt | null in the examples | Yes |
signers[].signature | null in the examples | Yes |
signers[].signerName | null in the examples | Yes |
signers[].signerTaxId | null in the examples | Yes |
signers[].status | string | Yes |
signers[].url | null in the examples | Yes |
signers[].userAgent | null in the examples | Yes |
signers[].verification | null in the examples | Yes |
signers[].viewCount | integer | Yes |
status | string | Yes |
template | object | null | Yes |
template.id | string (uuid) | Yes |
template.name | string | Yes |
template.roles | array of string | Yes |
title | string | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
values | object of any | Yes |
Example
curl -X PATCH "https://api.firmado.app/v1/contracts/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}'const res = await fetch("https://api.firmado.app/v1/contracts/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/contracts/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team",
},
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/contracts/{id}", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PATCH"), "https://api.firmado.app/v1/contracts/{id}");
request.Content = new StringContent(""""
{
"title": "…",
"body": "…",
"fields": [
{
"key": "…",
"label": "…",
"type": "text",
"filledBy": "team"
}
],
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 0,
"serviceId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": null,
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": null,
"invoiceId": null,
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": null,
"completedAt": null,
"canceledAt": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": null,
"sentAt": null,
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/cancel
Cancels a sent contract; its links stop working.
Update/{id}/cancelOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
57 fields
| Field | Type | Always there |
|---|---|---|
body | string | Yes |
canceledAt | string (date-time) | Yes |
company | null in the examples | Yes |
completedAt | null in the examples | Yes |
contact | null in the examples | Yes |
contentHash | string | Yes |
context | object of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
discount | null in the examples | Yes |
expiresAt | string (date-time) | Yes |
fields | array of any | Yes |
id | string (uuid) | Yes |
invoiceId | null in the examples | Yes |
items | array of any | Yes |
language | string | Yes |
message | null in the examples | Yes |
organizationId | string (uuid) | Yes |
ownerId | string (uuid) | Yes |
payment | null in the examples | Yes |
sentAt | string (date-time) | Yes |
settings | object | Yes |
settings.chargeOnSign | boolean | Yes |
settings.expiresInDays | integer | Yes |
settings.requireTaxId | boolean | Yes |
settings.verifySignerEmail | boolean | Yes |
signers | array of object | Yes |
signers[].contactId | null in the examples | Yes |
signers[].decidedAt | null in the examples | Yes |
signers[].declineReason | null in the examples | Yes |
signers[].documentHash | null in the examples | Yes |
signers[].email | string (email) | Yes |
signers[].firstViewedAt | null in the examples | Yes |
signers[].id | string (uuid) | Yes |
signers[].ipAddress | null in the examples | Yes |
signers[].lastViewedAt | null in the examples | Yes |
signers[].name | string | Yes |
signers[].position | integer | Yes |
signers[].role | null in the examples | Yes |
signers[].sendCount | integer | Yes |
signers[].sentAt | string (date-time) | Yes |
signers[].signature | null in the examples | Yes |
signers[].signerName | null in the examples | Yes |
signers[].signerTaxId | null in the examples | Yes |
signers[].status | string | Yes |
signers[].url | string (uri) | Yes |
signers[].userAgent | null in the examples | Yes |
signers[].verification | null in the examples | Yes |
signers[].viewCount | integer | Yes |
status | string | Yes |
template | null in the examples | Yes |
title | string | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
values | object of any | Yes |
Example
curl -X POST "https://api.firmado.app/v1/contracts/{id}/cancel" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/cancel", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/cancel",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/cancel");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts/{id}/cancel")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/cancel", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts/{id}/cancel"))
.header("X-Api-Key", "fmd_...")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contracts/{id}/cancel");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [],
"values": {},
"items": [],
"currency": "USD",
"discount": null,
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": "…",
"invoiceId": null,
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": null,
"canceledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"total": 1,
"contact": null,
"company": null,
"template": null,
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": null,
"name": "Ana Lima",
"email": "[email protected]",
"role": null,
"position": 1,
"status": "…",
"url": "https://example.com",
"sentAt": "2026-11-21T14:00:00.000Z",
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/duplicate
A new draft with the same content and signers.
Create/{id}/duplicateOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
74 fields
| Field | Type | Always there |
|---|---|---|
body | string | Yes |
canceledAt | null in the examples | Yes |
company | null in the examples | Yes |
completedAt | null in the examples | Yes |
contact | object | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contentHash | null in the examples | Yes |
context | object of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
discount | object | Yes |
discount.type | string | Yes |
discount.value | integer | Yes |
expiresAt | null in the examples | Yes |
fields | array of object | Yes |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].options | array of string | No |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
id | string (uuid) | Yes |
invoiceId | null in the examples | Yes |
items | array of object | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].unitPrice | integer | Yes |
language | string | Yes |
message | null in the examples | Yes |
organizationId | string (uuid) | Yes |
ownerId | string (uuid) | Yes |
payment | null in the examples | Yes |
sentAt | null in the examples | Yes |
settings | object | Yes |
settings.chargeOnSign | boolean | Yes |
settings.expiresInDays | integer | Yes |
settings.requireTaxId | boolean | Yes |
settings.verifySignerEmail | boolean | Yes |
signers | array of object | Yes |
signers[].contactId | string | null (uuid) | Yes |
signers[].decidedAt | null in the examples | Yes |
signers[].declineReason | null in the examples | Yes |
signers[].documentHash | null in the examples | Yes |
signers[].email | string (email) | Yes |
signers[].firstViewedAt | null in the examples | Yes |
signers[].id | string (uuid) | Yes |
signers[].ipAddress | null in the examples | Yes |
signers[].lastViewedAt | null in the examples | Yes |
signers[].name | string | Yes |
signers[].position | integer | Yes |
signers[].role | string | Yes |
signers[].sendCount | integer | Yes |
signers[].sentAt | null in the examples | Yes |
signers[].signature | null in the examples | Yes |
signers[].signerName | null in the examples | Yes |
signers[].signerTaxId | null in the examples | Yes |
signers[].status | string | Yes |
signers[].url | null in the examples | Yes |
signers[].userAgent | null in the examples | Yes |
signers[].verification | null in the examples | Yes |
signers[].viewCount | integer | Yes |
status | string | Yes |
template | object | Yes |
template.id | string (uuid) | Yes |
template.name | string | Yes |
template.roles | array of string | Yes |
title | string | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
values | object of any | Yes |
Example
curl -X POST "https://api.firmado.app/v1/contracts/{id}/duplicate" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/duplicate");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts/{id}/duplicate")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/duplicate", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts/{id}/duplicate"))
.header("X-Api-Key", "fmd_...")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contracts/{id}/duplicate");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (201), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": null,
"invoiceId": null,
"expiresAt": null,
"sentAt": null,
"completedAt": null,
"canceledAt": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": null,
"sentAt": null,
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/send
Sends the draft: each signer uses one of the month’s signatures and gets their link.
Update/{id}/sendOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
74 fields
| Field | Type | Always there |
|---|---|---|
body | string | Yes |
canceledAt | null in the examples | Yes |
company | null in the examples | Yes |
completedAt | null in the examples | Yes |
contact | object | null | Yes |
contact.id | string (uuid) | Yes |
contact.name | string | Yes |
contentHash | string | Yes |
context | object of any | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
currency | string | Yes |
discount | object | null | Yes |
discount.type | string | Yes |
discount.value | integer | Yes |
expiresAt | string (date-time) | Yes |
fields | array of object | Yes |
fields[].defaultValue | integer | No |
fields[].filledBy | string | Yes |
fields[].key | string | Yes |
fields[].label | string | Yes |
fields[].options | array of string | No |
fields[].required | boolean | Yes |
fields[].type | string | Yes |
id | string (uuid) | Yes |
invoiceId | null in the examples | Yes |
items | array of object | Yes |
items[].name | string | Yes |
items[].quantity | integer | Yes |
items[].unitPrice | integer | Yes |
language | string | Yes |
message | null in the examples | Yes |
organizationId | string (uuid) | Yes |
ownerId | string (uuid) | Yes |
payment | null in the examples | Yes |
sentAt | string (date-time) | Yes |
settings | object | Yes |
settings.chargeOnSign | boolean | Yes |
settings.expiresInDays | integer | Yes |
settings.requireTaxId | boolean | Yes |
settings.verifySignerEmail | boolean | Yes |
signers | array of object | Yes |
signers[].contactId | string | null (uuid) | Yes |
signers[].decidedAt | null in the examples | Yes |
signers[].declineReason | null in the examples | Yes |
signers[].documentHash | null in the examples | Yes |
signers[].email | string (email) | Yes |
signers[].firstViewedAt | null in the examples | Yes |
signers[].id | string (uuid) | Yes |
signers[].ipAddress | null in the examples | Yes |
signers[].lastViewedAt | null in the examples | Yes |
signers[].name | string | null | Yes |
signers[].position | integer | Yes |
signers[].role | string | null | Yes |
signers[].sendCount | integer | Yes |
signers[].sentAt | string | null (date-time) | Yes |
signers[].signature | null in the examples | Yes |
signers[].signerName | null in the examples | Yes |
signers[].signerTaxId | null in the examples | Yes |
signers[].status | string | Yes |
signers[].url | string (uri) | Yes |
signers[].userAgent | null in the examples | Yes |
signers[].verification | null in the examples | Yes |
signers[].viewCount | integer | Yes |
status | string | Yes |
template | object | null | Yes |
template.id | string (uuid) | Yes |
template.name | string | Yes |
template.roles | array of string | Yes |
title | string | Yes |
total | integer | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
values | object of any | Yes |
Example
curl -X POST "https://api.firmado.app/v1/contracts/{id}/send" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/send", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/send",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/send");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts/{id}/send")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/send", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts/{id}/send"))
.header("X-Api-Key", "fmd_...")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contracts/{id}/send");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Response (200), with sample values:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [
{
"key": "…",
"type": "…",
"label": "…",
"filledBy": "…",
"required": true,
"defaultValue": 1,
"options": []
}
],
"values": {},
"items": [
{
"name": "Ana Lima",
"quantity": 1,
"unitPrice": 1
}
],
"currency": "USD",
"discount": {
"type": "…",
"value": 1
},
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": "…",
"invoiceId": null,
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": null,
"canceledAt": null,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"total": 1,
"contact": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima"
},
"company": null,
"template": {
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"roles": [
"…"
]
},
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"email": "[email protected]",
"role": "…",
"position": 1,
"status": "…",
"url": "https://example.com",
"sentAt": "2026-11-21T14:00:00.000Z",
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/signers/{signerId}/resend
Emails a signer their link again.
Update/{id}/signers/{signerId}/resendOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | |
signerId | string | Yes |
Example
curl -X POST "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend"))
.header("X-Api-Key", "fmd_...")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/resend");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/contracts/{id}/signers/{signerId}/verification/resend
Sends a signer a new link to confirm their email address.
Update/{id}/signers/{signerId}/verification/resendOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | |
signerId | string | Yes |
Example
curl -X POST "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend"))
.header("X-Api-Key", "fmd_...")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/contracts/{id}/signers/{signerId}/verification/resend");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Webhook events
Changes of this feature that webhooks can send.
contract_template.createdCreatecontract_template.updatedUpdatecontract_template.deletedDeletecontract.createdCreatecontract.updatedUpdatecontract.sentUpdatecontract.signedUpdatecontract.completedUpdatecontract.declinedUpdatecontract.canceledUpdatecontract.deletedDelete