Propriedades personalizadas
Seus próprios campos em contatos, empresas e propostas.
Valores dos exemplos
Digite uma vez e todos os exemplos desta página passam a usá-los. A chave de API fica só nesta página e nunca é guardada.
GET/v1/custom-properties
As propriedades personalizadas de contatos, empresas e propostas.
ListarEm caso de sucesso: 200.Permissão: Ler.
Exemplo
curl -X GET "https://api.firmado.app/v1/custom-properties" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/custom-properties", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/custom-properties",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/custom-properties");
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/custom-properties")
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/custom-properties", 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/custom-properties"))
.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/custom-properties");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/custom-properties/{entity}
As propriedades personalizadas de um tipo de registro.
Ver umEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
entity | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/custom-properties/{entity}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/custom-properties/{entity}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/custom-properties/{entity}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/custom-properties/{entity}");
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/custom-properties/{entity}")
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/custom-properties/{entity}", 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/custom-properties/{entity}"))
.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/custom-properties/{entity}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/custom-properties/{entity}
Cria uma propriedade personalizada: tipo, opções e onde aparece.
Criar/{entity}Em caso de sucesso: 201.Permissão: Criar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
entity | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
key | string | Sim | pattern ^[a-z][a-z0-9_]{0,49}$ |
label | string | Sim | min length 1 · max length 100 |
description | string | null | Não | |
type | "text" | "number" | "boolean" | "date" | "select" | "multiselect" | "url" | Sim | |
options | array of object | Não | max items 100 |
options[].value | string | Sim | min length 1 · max length 100 |
options[].label | string | Sim | min length 1 · max length 100 |
required | boolean | Não | default false |
position | integer | Não | min 0 · default 0 |
Resposta
16 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
entityType | string | Sim |
id | string (uuid) | Sim |
key | string | Sim |
label | string | Sim |
options | array of object | Sim |
options[].label | string | Sim |
options[].value | string | Sim |
organizationId | string (uuid) | Sim |
position | integer | Sim |
required | boolean | Sim |
type | string | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/custom-properties/{entity}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"key": "…",
"label": "…",
"type": "text",
"description": "…"
}'const res = await fetch("https://api.firmado.app/v1/custom-properties/{entity}", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"key": "…",
"label": "…",
"type": "text",
"description": "…"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/custom-properties/{entity}",
headers={"X-Api-Key": "fmd_..."},
json={
"key": "…",
"label": "…",
"type": "text",
"description": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/custom-properties/{entity}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"key": "…",
"label": "…",
"type": "text",
"description": "…"
}
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/custom-properties/{entity}")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"key": "…",
"label": "…",
"type": "text",
"description": "…"
}
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(`{
"key": "…",
"label": "…",
"type": "text",
"description": "…"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/custom-properties/{entity}", 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/custom-properties/{entity}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"key": "…",
"label": "…",
"type": "text",
"description": "…"
}
"""))
.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/custom-properties/{entity}");
request.Content = new StringContent(""""
{
"key": "…",
"label": "…",
"type": "text",
"description": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (201), com valores de exemplo:
{
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"entityType": "…",
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"key": "…",
"label": "…",
"options": [
{
"label": "…",
"value": "…"
}
],
"organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"position": 1,
"required": true,
"type": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}DELETE/v1/custom-properties/{entity}/{id}
Exclui uma propriedade personalizada e seus valores.
Excluir/{entity}/{id}Em caso de sucesso: 204.Permissão: Excluir.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
entity | string | Sim | |
id | string | Sim |
Exemplo
curl -X DELETE "https://api.firmado.app/v1/custom-properties/{entity}/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/custom-properties/{entity}/{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/custom-properties/{entity}/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/custom-properties/{entity}/{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/custom-properties/{entity}/{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/custom-properties/{entity}/{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/custom-properties/{entity}/{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/custom-properties/{entity}/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/custom-properties/{entity}/{id}
Altera o rótulo, as opções ou a ordem de uma propriedade personalizada.
Atualizar/{entity}/{id}Em caso de sucesso: 200.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
entity | string | Sim | |
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
label | string | Não | min length 1 · max length 100 |
description | string | null | Não | |
options | array of object | Não | max items 100 |
options[].value | string | Sim | min length 1 · max length 100 |
options[].label | string | Sim | min length 1 · max length 100 |
required | boolean | Não | default false |
position | integer | Não | min 0 · default 0 |
Exemplo
curl -X PATCH "https://api.firmado.app/v1/custom-properties/{entity}/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"label": "…",
"description": "…",
"options": [
{
"value": "…",
"label": "…"
}
],
"required": false
}'const res = await fetch("https://api.firmado.app/v1/custom-properties/{entity}/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"label": "…",
"description": "…",
"options": [
{
"value": "…",
"label": "…"
}
],
"required": false
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/custom-properties/{entity}/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"label": "…",
"description": "…",
"options": [
{
"value": "…",
"label": "…",
},
],
"required": False,
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/custom-properties/{entity}/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"label": "…",
"description": "…",
"options": [
{
"value": "…",
"label": "…"
}
],
"required": false
}
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/custom-properties/{entity}/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"label": "…",
"description": "…",
"options": [
{
"value": "…",
"label": "…"
}
],
"required": false
}
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(`{
"label": "…",
"description": "…",
"options": [
{
"value": "…",
"label": "…"
}
],
"required": false
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/custom-properties/{entity}/{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/custom-properties/{entity}/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"label": "…",
"description": "…",
"options": [
{
"value": "…",
"label": "…"
}
],
"required": false
}
"""))
.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/custom-properties/{entity}/{id}");
request.Content = new StringContent(""""
{
"label": "…",
"description": "…",
"options": [
{
"value": "…",
"label": "…"
}
],
"required": false
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Eventos de webhook
Mudanças desta funcionalidade que os webhooks podem enviar.
custom_property.createdCriarcustom_property.updatedAtualizarcustom_property.deletedExcluir