Contrats
Modèles de contrat et contrats envoyés à signer.
Valeurs des exemples
Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.
GET/v1/contract-templates
Liste les modèles de contrat.
ListerEn cas de succès : 200.Permission : Lire.
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
page | integer | Non | min 1 · default 1 |
pageSize | integer | Non | min 1 · max 100 · default 25 |
q | string | Non | min length 1 · max length 200 |
archived | string | Non | |
sort | "updatedAt" | "name" | Non | default "updatedAt" |
order | "asc" | "desc" | Non | default "desc" |
Réponse
16 champs
| Champ | Type | Toujours présent |
|---|---|---|
data | array of object | Oui |
data[].contracts | object | Oui |
data[].contracts.signed | integer | Oui |
data[].contracts.total | integer | Oui |
data[].createdAt | string (date-time) | Oui |
data[].currency | string | Oui |
data[].description | null dans les exemples | Oui |
data[].fields | integer | Oui |
data[].id | string (uuid) | Oui |
data[].items | integer | Oui |
data[].name | string | Oui |
data[].title | string | Oui |
data[].updatedAt | string (date-time) | Oui |
page | integer | Oui |
pageSize | integer | Oui |
total | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Crée un modèle de contrat.
CréerEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Oui | min length 1 · max length 120 |
description | string | null | Non | |
title | string | Non | min length 1 · max length 200 |
body | string | Non | max length 200000 · default "" |
fields | array of object | Non | max items 50 |
fields[].key | string | Oui | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Oui | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Oui | |
fields[].filledBy | "team" | "signer" | Oui | |
fields[].required | boolean | Non | default false |
fields[].help | string | null | Non | |
fields[].options | array of string | Non | max items 30 |
fields[].defaultValue | string | number | boolean | null | Non | |
items | array of object | Non | max items 100 |
items[].serviceId | string (uuid) | null | Non | |
items[].name | string | Oui | min length 1 · max length 200 |
items[].description | string | null | Non | |
items[].quantity | number | Oui | min 0 · max 1000000 |
items[].unitPrice | integer | Oui | min 0 · max 10000000000000 |
currency | string | Non | pattern ^[A-Za-z]{3}$ |
discount | object | null | Non | |
language | "pt" | "es" | "en" | "fr" | null | Non | |
roles | array of string | Non | max items 10 |
settings | object | Non | |
settings.requireTaxId | boolean | Non | default true |
settings.verifySignerEmail | boolean | Non | default true |
settings.expiresInDays | integer | null | Non | default 30 |
settings.chargeOnSign | boolean | Non | default false |
Réponse
36 champs
| Champ | Type | Toujours présent |
|---|---|---|
body | string | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
description | null dans les exemples | Oui |
discount | object | null | Oui |
discount.type | string | Oui |
discount.value | integer | Oui |
fields | array of object | Oui |
fields[].defaultValue | integer | Non |
fields[].filledBy | string | Oui |
fields[].key | string | Oui |
fields[].label | string | Oui |
fields[].options | array of string | Non |
fields[].required | boolean | Oui |
fields[].type | string | Oui |
id | string (uuid) | Oui |
items | array of object | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
name | string | Oui |
organizationId | string (uuid) | Oui |
roles | array of string | Oui |
settings | object | Oui |
settings.chargeOnSign | boolean | Oui |
settings.expiresInDays | integer | Oui |
settings.requireTaxId | boolean | Oui |
settings.verifySignerEmail | boolean | Oui |
title | string | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
variables | object | Oui |
variables.organization.name | string | Oui |
variables.organization.postalAddress | null dans les exemples | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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}
Supprime un modèle de contrat.
SupprimerEn cas de succès : 204.Permission : Supprimer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Renvoie un modèle de contrat avec son texte, ses champs et ses réglages.
Voir unEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Modifie un modèle de contrat ; les contrats faits avec lui gardent leur copie.
ModifierEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Non | min length 1 · max length 120 |
description | string | null | Non | |
title | string | Non | min length 1 · max length 200 |
body | string | Non | max length 200000 |
fields | array of object | Non | max items 50 |
fields[].key | string | Oui | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Oui | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Oui | |
fields[].filledBy | "team" | "signer" | Oui | |
fields[].required | boolean | Non | default false |
fields[].help | string | null | Non | |
fields[].options | array of string | Non | max items 30 |
fields[].defaultValue | string | number | boolean | null | Non | |
items | array of object | Non | max items 100 |
items[].serviceId | string (uuid) | null | Non | |
items[].name | string | Oui | min length 1 · max length 200 |
items[].description | string | null | Non | |
items[].quantity | number | Oui | min 0 · max 1000000 |
items[].unitPrice | integer | Oui | min 0 · max 10000000000000 |
currency | string | Non | pattern ^[A-Za-z]{3}$ |
discount | object | null | Non | |
language | "pt" | "es" | "en" | "fr" | null | Non | |
roles | array of string | Non | max items 10 |
settings | object | Non | |
settings.requireTaxId | boolean | Non | default true |
settings.verifySignerEmail | boolean | Non | default true |
settings.expiresInDays | integer | null | Non | default 30 |
settings.chargeOnSign | boolean | Non | default false |
Exemple
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
Copie un modèle de contrat.
Créer/{id}/duplicateEn cas de succès : 201.Permission : Créer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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
Les variables {{...}} qu’un contrat peut afficher : contact, entreprise, organisation et champs.
Lire/variablesEn cas de succès : 200.Permission : Lire.
Exemple
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
Liste les contrats, par statut, contact ou modèle.
ListerEn cas de succès : 200.Permission : Lire.
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
page | integer | Non | min 1 · default 1 |
pageSize | integer | Non | min 1 · max 100 · default 25 |
q | string | Non | min length 1 · max length 200 |
archived | string | Non | |
status | "draft" | "sent" | "signed" | "declined" | "canceled" | "expired" | Non | |
templateId | string (uuid) | Non | |
contactId | string (uuid) | Non | |
companyId | string (uuid) | Non | |
ownerId | string | Non | min length 1 |
sort | "createdAt" | "title" | Non | default "createdAt" |
order | "asc" | "desc" | Non | default "desc" |
Réponse
23 champs
| Champ | Type | Toujours présent |
|---|---|---|
data | array of object | Oui |
data[].completedAt | string (date-time) | Oui |
data[].contact | object | Oui |
data[].contact.id | string (uuid) | Oui |
data[].contact.name | string | Oui |
data[].createdAt | string (date-time) | Oui |
data[].currency | string | Oui |
data[].expiresAt | string (date-time) | Oui |
data[].id | string (uuid) | Oui |
data[].ownerId | string (uuid) | Oui |
data[].sentAt | string (date-time) | Oui |
data[].signers | object | Oui |
data[].signers.signed | integer | Oui |
data[].signers.total | integer | Oui |
data[].status | string | Oui |
data[].template | object | Oui |
data[].template.id | string (uuid) | Oui |
data[].template.name | string | Oui |
data[].title | string | Oui |
data[].total | integer | Oui |
page | integer | Oui |
pageSize | integer | Oui |
total | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Crée un brouillon de contrat à partir d’un modèle.
CréerEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
templateId | string (uuid) | Non | |
title | string | Non | min length 1 · max length 200 |
contactId | string (uuid) | null | Non | |
companyId | string (uuid) | null | Non | |
message | string | null | Non | |
signers | array of object | Non | max items 10 |
signers[].contactId | string (uuid) | Non | |
signers[].email | string (email) | Non | max length 320 |
signers[].name | string | Non | min length 1 · max length 200 |
signers[].role | string | null | Non | |
values | object of string | number | boolean | null | Non |
Réponse
74 champs
| Champ | Type | Toujours présent |
|---|---|---|
body | string | Oui |
canceledAt | null dans les exemples | Oui |
company | null dans les exemples | Oui |
completedAt | null dans les exemples | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contentHash | null dans les exemples | Oui |
context | object of any | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
discount | object | null | Oui |
discount.type | string | Oui |
discount.value | integer | Oui |
expiresAt | null dans les exemples | Oui |
fields | array of object | Oui |
fields[].defaultValue | integer | Non |
fields[].filledBy | string | Oui |
fields[].key | string | Oui |
fields[].label | string | Oui |
fields[].options | array of string | Non |
fields[].required | boolean | Oui |
fields[].type | string | Oui |
id | string (uuid) | Oui |
invoiceId | null dans les exemples | Oui |
items | array of object | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
message | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
ownerId | string (uuid) | Oui |
payment | null dans les exemples | Oui |
sentAt | null dans les exemples | Oui |
settings | object | Oui |
settings.chargeOnSign | boolean | Oui |
settings.expiresInDays | integer | Oui |
settings.requireTaxId | boolean | Oui |
settings.verifySignerEmail | boolean | Oui |
signers | array of object | Oui |
signers[].contactId | string | null (uuid) | Oui |
signers[].decidedAt | null dans les exemples | Oui |
signers[].declineReason | null dans les exemples | Oui |
signers[].documentHash | null dans les exemples | Oui |
signers[].email | string (email) | Oui |
signers[].firstViewedAt | null dans les exemples | Oui |
signers[].id | string (uuid) | Oui |
signers[].ipAddress | null dans les exemples | Oui |
signers[].lastViewedAt | null dans les exemples | Oui |
signers[].name | string | null | Oui |
signers[].position | integer | Oui |
signers[].role | string | null | Oui |
signers[].sendCount | integer | Oui |
signers[].sentAt | null dans les exemples | Oui |
signers[].signature | null dans les exemples | Oui |
signers[].signerName | null dans les exemples | Oui |
signers[].signerTaxId | null dans les exemples | Oui |
signers[].status | string | Oui |
signers[].url | null dans les exemples | Oui |
signers[].userAgent | null dans les exemples | Oui |
signers[].verification | null dans les exemples | Oui |
signers[].viewCount | integer | Oui |
status | string | Oui |
template | object | null | Oui |
template.id | string (uuid) | Oui |
template.name | string | Oui |
template.roles | array of string | Oui |
title | string | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
values | object of any | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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}
Supprime un contrat.
SupprimerEn cas de succès : 204.Permission : Supprimer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Renvoie un contrat avec ses signataires et leurs signatures.
Voir unEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
89 champs
| Champ | Type | Toujours présent |
|---|---|---|
body | string | Oui |
canceledAt | null dans les exemples | Oui |
company | null dans les exemples | Oui |
completedAt | string | null (date-time) | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contentHash | string | null | Oui |
context | object of any | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
discount | object | null | Oui |
discount.type | string | Oui |
discount.value | integer | Oui |
expiresAt | string | null (date-time) | Oui |
fields | array of object | Oui |
fields[].defaultValue | integer | Non |
fields[].filledBy | string | Oui |
fields[].key | string | Oui |
fields[].label | string | Oui |
fields[].options | array of string | Non |
fields[].required | boolean | Oui |
fields[].type | string | Oui |
id | string (uuid) | Oui |
invoiceId | string | null (uuid) | Oui |
items | array of object | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].unitPrice | integer | Oui |
language | string | null | Oui |
message | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
ownerId | string (uuid) | Oui |
payment | object | null | Oui |
payment.amount | integer | Oui |
payment.canPay | boolean | Oui |
payment.currency | string | Oui |
payment.invoice | object | Oui |
payment.invoice.id | string (uuid) | Oui |
payment.invoice.number | string | Oui |
payment.invoice.url | string (uri) | Oui |
payment.paidAt | null dans les exemples | Oui |
payment.status | string | Oui |
sentAt | string | null (date-time) | Oui |
settings | object | Oui |
settings.chargeOnSign | boolean | Oui |
settings.expiresInDays | integer | Oui |
settings.requireTaxId | boolean | Oui |
settings.verifySignerEmail | boolean | Oui |
signers | array of object | Oui |
signers[].contactId | string | null (uuid) | Oui |
signers[].decidedAt | string | null (date-time) | Oui |
signers[].declineReason | string | null | Oui |
signers[].documentHash | string | null | Oui |
signers[].email | string (email) | Oui |
signers[].firstViewedAt | string | null (date-time) | Oui |
signers[].id | string (uuid) | Oui |
signers[].ipAddress | string | null | Oui |
signers[].lastViewedAt | string | null (date-time) | Oui |
signers[].name | string | null | Oui |
signers[].position | integer | Oui |
signers[].role | string | null | Oui |
signers[].sendCount | integer | Oui |
signers[].sentAt | string | null (date-time) | Oui |
signers[].signature | object | null | Oui |
signers[].signature.image | string | Non |
signers[].signature.kind | string | Oui |
signers[].signature.text | string | Non |
signers[].signerName | string | null | Oui |
signers[].signerTaxId | string | null | Oui |
signers[].status | string | Oui |
signers[].url | string | null (uri) | Oui |
signers[].userAgent | null dans les exemples | Oui |
signers[].verification | object | null | Oui |
signers[].verification.sendCount | integer | Oui |
signers[].verification.sentAt | string (date-time) | Oui |
signers[].verification.verifiedAt | string | null (date-time) | Oui |
signers[].viewCount | integer | Oui |
status | string | Oui |
template | object | null | Oui |
template.id | string (uuid) | Oui |
template.name | string | Oui |
template.roles | array of string | Oui |
title | string | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
values | object of any | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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}
Modifie un brouillon de contrat : texte, champs, prix et signataires.
ModifierEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
title | string | Non | min length 1 · max length 200 |
body | string | Non | max length 200000 |
fields | array of object | Non | max items 50 |
fields[].key | string | Oui | pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ |
fields[].label | string | Oui | min length 1 · max length 100 |
fields[].type | "text" | "longText" | "number" | "money" | "date" | "email" | "phone" | "taxId" | "address" | "select" | "checkbox" | Oui | |
fields[].filledBy | "team" | "signer" | Oui | |
fields[].required | boolean | Non | default false |
fields[].help | string | null | Non | |
fields[].options | array of string | Non | max items 30 |
fields[].defaultValue | string | number | boolean | null | Non | |
items | array of object | Non | max items 100 |
items[].serviceId | string (uuid) | null | Non | |
items[].name | string | Oui | min length 1 · max length 200 |
items[].description | string | null | Non | |
items[].quantity | number | Oui | min 0 · max 1000000 |
items[].unitPrice | integer | Oui | min 0 · max 10000000000000 |
currency | string | Non | pattern ^[A-Za-z]{3}$ |
discount | object | null | Non | |
language | "pt" | "es" | "en" | "fr" | null | Non | |
contactId | string (uuid) | null | Non | |
companyId | string (uuid) | null | Non | |
message | string | null | Non | |
signers | array of object | Non | max items 10 |
signers[].contactId | string (uuid) | Non | |
signers[].email | string (email) | Non | max length 320 |
signers[].name | string | Non | min length 1 · max length 200 |
signers[].role | string | null | Non | |
values | object of string | number | boolean | null | Non | |
settings | object | Non | |
settings.requireTaxId | boolean | Non | default true |
settings.verifySignerEmail | boolean | Non | default true |
settings.expiresInDays | integer | null | Non | default 30 |
settings.chargeOnSign | boolean | Non | default false |
expiresAt | string (date-time) | null | Non |
Réponse
74 champs
| Champ | Type | Toujours présent |
|---|---|---|
body | string | Oui |
canceledAt | null dans les exemples | Oui |
company | null dans les exemples | Oui |
completedAt | null dans les exemples | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contentHash | null dans les exemples | Oui |
context | object of any | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
discount | object | null | Oui |
discount.type | string | Oui |
discount.value | integer | Oui |
expiresAt | string | null (date-time) | Oui |
fields | array of object | Oui |
fields[].defaultValue | integer | Non |
fields[].filledBy | string | Oui |
fields[].key | string | Oui |
fields[].label | string | Oui |
fields[].options | array of string | Non |
fields[].required | boolean | Oui |
fields[].type | string | Oui |
id | string (uuid) | Oui |
invoiceId | null dans les exemples | Oui |
items | array of object | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].unitPrice | integer | Oui |
language | null dans les exemples | Oui |
message | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
ownerId | string (uuid) | Oui |
payment | null dans les exemples | Oui |
sentAt | null dans les exemples | Oui |
settings | object | Oui |
settings.chargeOnSign | boolean | Oui |
settings.expiresInDays | integer | Oui |
settings.requireTaxId | boolean | Oui |
settings.verifySignerEmail | boolean | Oui |
signers | array of object | Oui |
signers[].contactId | string | null (uuid) | Oui |
signers[].decidedAt | null dans les exemples | Oui |
signers[].declineReason | null dans les exemples | Oui |
signers[].documentHash | null dans les exemples | Oui |
signers[].email | string (email) | Oui |
signers[].firstViewedAt | null dans les exemples | Oui |
signers[].id | string (uuid) | Oui |
signers[].ipAddress | null dans les exemples | Oui |
signers[].lastViewedAt | null dans les exemples | Oui |
signers[].name | string | null | Oui |
signers[].position | integer | Oui |
signers[].role | string | null | Oui |
signers[].sendCount | integer | Oui |
signers[].sentAt | null dans les exemples | Oui |
signers[].signature | null dans les exemples | Oui |
signers[].signerName | null dans les exemples | Oui |
signers[].signerTaxId | null dans les exemples | Oui |
signers[].status | string | Oui |
signers[].url | null dans les exemples | Oui |
signers[].userAgent | null dans les exemples | Oui |
signers[].verification | null dans les exemples | Oui |
signers[].viewCount | integer | Oui |
status | string | Oui |
template | object | null | Oui |
template.id | string (uuid) | Oui |
template.name | string | Oui |
template.roles | array of string | Oui |
title | string | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
values | object of any | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Annule un contrat envoyé ; ses liens cessent de fonctionner.
Modifier/{id}/cancelEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
57 champs
| Champ | Type | Toujours présent |
|---|---|---|
body | string | Oui |
canceledAt | string (date-time) | Oui |
company | null dans les exemples | Oui |
completedAt | null dans les exemples | Oui |
contact | null dans les exemples | Oui |
contentHash | string | Oui |
context | object of any | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
discount | null dans les exemples | Oui |
expiresAt | string (date-time) | Oui |
fields | array of any | Oui |
id | string (uuid) | Oui |
invoiceId | null dans les exemples | Oui |
items | array of any | Oui |
language | string | Oui |
message | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
ownerId | string (uuid) | Oui |
payment | null dans les exemples | Oui |
sentAt | string (date-time) | Oui |
settings | object | Oui |
settings.chargeOnSign | boolean | Oui |
settings.expiresInDays | integer | Oui |
settings.requireTaxId | boolean | Oui |
settings.verifySignerEmail | boolean | Oui |
signers | array of object | Oui |
signers[].contactId | null dans les exemples | Oui |
signers[].decidedAt | null dans les exemples | Oui |
signers[].declineReason | null dans les exemples | Oui |
signers[].documentHash | null dans les exemples | Oui |
signers[].email | string (email) | Oui |
signers[].firstViewedAt | null dans les exemples | Oui |
signers[].id | string (uuid) | Oui |
signers[].ipAddress | null dans les exemples | Oui |
signers[].lastViewedAt | null dans les exemples | Oui |
signers[].name | string | Oui |
signers[].position | integer | Oui |
signers[].role | null dans les exemples | Oui |
signers[].sendCount | integer | Oui |
signers[].sentAt | string (date-time) | Oui |
signers[].signature | null dans les exemples | Oui |
signers[].signerName | null dans les exemples | Oui |
signers[].signerTaxId | null dans les exemples | Oui |
signers[].status | string | Oui |
signers[].url | string (uri) | Oui |
signers[].userAgent | null dans les exemples | Oui |
signers[].verification | null dans les exemples | Oui |
signers[].viewCount | integer | Oui |
status | string | Oui |
template | null dans les exemples | Oui |
title | string | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
values | object of any | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"title": "…",
"status": "…",
"message": null,
"ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"body": "…",
"fields": [],
"values": {},
"items": [],
"currency": "USD",
"discount": null,
"language": "…",
"settings": {
"chargeOnSign": true,
"requireTaxId": true,
"expiresInDays": 1,
"verifySignerEmail": true
},
"contentHash": "…",
"invoiceId": null,
"expiresAt": "2026-11-21T14:00:00.000Z",
"sentAt": "2026-11-21T14:00:00.000Z",
"completedAt": null,
"canceledAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"total": 1,
"contact": null,
"company": null,
"template": null,
"context": {},
"payment": null,
"signers": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": null,
"name": "Ana Lima",
"email": "[email protected]",
"role": null,
"position": 1,
"status": "…",
"url": "https://example.com",
"sentAt": "2026-11-21T14:00:00.000Z",
"sendCount": 1,
"viewCount": 1,
"firstViewedAt": null,
"lastViewedAt": null,
"decidedAt": null,
"signerName": null,
"signerTaxId": null,
"signature": null,
"documentHash": null,
"ipAddress": null,
"userAgent": null,
"declineReason": null,
"verification": null
}
]
}POST/v1/contracts/{id}/duplicate
Un nouveau brouillon avec le même contenu et les mêmes signataires.
Créer/{id}/duplicateEn cas de succès : 201.Permission : Créer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
74 champs
| Champ | Type | Toujours présent |
|---|---|---|
body | string | Oui |
canceledAt | null dans les exemples | Oui |
company | null dans les exemples | Oui |
completedAt | null dans les exemples | Oui |
contact | object | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contentHash | null dans les exemples | Oui |
context | object of any | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
discount | object | Oui |
discount.type | string | Oui |
discount.value | integer | Oui |
expiresAt | null dans les exemples | Oui |
fields | array of object | Oui |
fields[].defaultValue | integer | Non |
fields[].filledBy | string | Oui |
fields[].key | string | Oui |
fields[].label | string | Oui |
fields[].options | array of string | Non |
fields[].required | boolean | Oui |
fields[].type | string | Oui |
id | string (uuid) | Oui |
invoiceId | null dans les exemples | Oui |
items | array of object | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].unitPrice | integer | Oui |
language | string | Oui |
message | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
ownerId | string (uuid) | Oui |
payment | null dans les exemples | Oui |
sentAt | null dans les exemples | Oui |
settings | object | Oui |
settings.chargeOnSign | boolean | Oui |
settings.expiresInDays | integer | Oui |
settings.requireTaxId | boolean | Oui |
settings.verifySignerEmail | boolean | Oui |
signers | array of object | Oui |
signers[].contactId | string | null (uuid) | Oui |
signers[].decidedAt | null dans les exemples | Oui |
signers[].declineReason | null dans les exemples | Oui |
signers[].documentHash | null dans les exemples | Oui |
signers[].email | string (email) | Oui |
signers[].firstViewedAt | null dans les exemples | Oui |
signers[].id | string (uuid) | Oui |
signers[].ipAddress | null dans les exemples | Oui |
signers[].lastViewedAt | null dans les exemples | Oui |
signers[].name | string | Oui |
signers[].position | integer | Oui |
signers[].role | string | Oui |
signers[].sendCount | integer | Oui |
signers[].sentAt | null dans les exemples | Oui |
signers[].signature | null dans les exemples | Oui |
signers[].signerName | null dans les exemples | Oui |
signers[].signerTaxId | null dans les exemples | Oui |
signers[].status | string | Oui |
signers[].url | null dans les exemples | Oui |
signers[].userAgent | null dans les exemples | Oui |
signers[].verification | null dans les exemples | Oui |
signers[].viewCount | integer | Oui |
status | string | Oui |
template | object | Oui |
template.id | string (uuid) | Oui |
template.name | string | Oui |
template.roles | array of string | Oui |
title | string | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
values | object of any | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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
Envoie le brouillon : chaque signataire utilise une des signatures du mois et reçoit son lien.
Modifier/{id}/sendEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
74 champs
| Champ | Type | Toujours présent |
|---|---|---|
body | string | Oui |
canceledAt | null dans les exemples | Oui |
company | null dans les exemples | Oui |
completedAt | null dans les exemples | Oui |
contact | object | null | Oui |
contact.id | string (uuid) | Oui |
contact.name | string | Oui |
contentHash | string | Oui |
context | object of any | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
currency | string | Oui |
discount | object | null | Oui |
discount.type | string | Oui |
discount.value | integer | Oui |
expiresAt | string (date-time) | Oui |
fields | array of object | Oui |
fields[].defaultValue | integer | Non |
fields[].filledBy | string | Oui |
fields[].key | string | Oui |
fields[].label | string | Oui |
fields[].options | array of string | Non |
fields[].required | boolean | Oui |
fields[].type | string | Oui |
id | string (uuid) | Oui |
invoiceId | null dans les exemples | Oui |
items | array of object | Oui |
items[].name | string | Oui |
items[].quantity | integer | Oui |
items[].unitPrice | integer | Oui |
language | string | Oui |
message | null dans les exemples | Oui |
organizationId | string (uuid) | Oui |
ownerId | string (uuid) | Oui |
payment | null dans les exemples | Oui |
sentAt | string (date-time) | Oui |
settings | object | Oui |
settings.chargeOnSign | boolean | Oui |
settings.expiresInDays | integer | Oui |
settings.requireTaxId | boolean | Oui |
settings.verifySignerEmail | boolean | Oui |
signers | array of object | Oui |
signers[].contactId | string | null (uuid) | Oui |
signers[].decidedAt | null dans les exemples | Oui |
signers[].declineReason | null dans les exemples | Oui |
signers[].documentHash | null dans les exemples | Oui |
signers[].email | string (email) | Oui |
signers[].firstViewedAt | null dans les exemples | Oui |
signers[].id | string (uuid) | Oui |
signers[].ipAddress | null dans les exemples | Oui |
signers[].lastViewedAt | null dans les exemples | Oui |
signers[].name | string | null | Oui |
signers[].position | integer | Oui |
signers[].role | string | null | Oui |
signers[].sendCount | integer | Oui |
signers[].sentAt | string | null (date-time) | Oui |
signers[].signature | null dans les exemples | Oui |
signers[].signerName | null dans les exemples | Oui |
signers[].signerTaxId | null dans les exemples | Oui |
signers[].status | string | Oui |
signers[].url | string (uri) | Oui |
signers[].userAgent | null dans les exemples | Oui |
signers[].verification | null dans les exemples | Oui |
signers[].viewCount | integer | Oui |
status | string | Oui |
template | object | null | Oui |
template.id | string (uuid) | Oui |
template.name | string | Oui |
template.roles | array of string | Oui |
title | string | Oui |
total | integer | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
values | object of any | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Renvoie à un signataire son lien par e-mail.
Modifier/{id}/signers/{signerId}/resendEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui | |
signerId | string | Oui |
Exemple
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
Envoie à un signataire un nouveau lien pour confirmer son e-mail.
Modifier/{id}/signers/{signerId}/verification/resendEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui | |
signerId | string | Oui |
Exemple
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();Événements de webhook
Les changements de cette fonctionnalité que les webhooks peuvent envoyer.
contract_template.createdCréercontract_template.updatedModifiercontract_template.deletedSupprimercontract.createdCréercontract.updatedModifiercontract.sentModifiercontract.signedModifiercontract.completedModifiercontract.declinedModifiercontract.canceledModifiercontract.deletedSupprimer