Propiedades personalizadas
Tus propios campos en contactos, empresas y propuestas.
Valores de los ejemplos
Escríbelos una vez y todos los ejemplos de esta página los usan. La clave de API se queda solo en esta página y nunca se guarda.
GET/v1/custom-properties
Las propiedades personalizadas de contactos, empresas y propuestas.
ListarSi va bien: 200.Permiso: Leer.
Ejemplo
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}
Las propiedades personalizadas de un tipo de registro.
Ver unoSi va bien: 200.Permiso: Leer.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
entity | string | Sí |
Ejemplo
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}
Crea una propiedad personalizada: su tipo, opciones y dónde aparece.
Crear/{entity}Si va bien: 201.Permiso: Crear.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
entity | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
key | string | Sí | pattern ^[a-z][a-z0-9_]{0,49}$ |
label | string | Sí | min length 1 · max length 100 |
description | string | null | No | |
type | "text" | "number" | "boolean" | "date" | "select" | "multiselect" | "url" | Sí | |
options | array of object | No | max items 100 |
options[].value | string | Sí | min length 1 · max length 100 |
options[].label | string | Sí | min length 1 · max length 100 |
required | boolean | No | default false |
position | integer | No | min 0 · default 0 |
Respuesta
16 campos
| Campo | Tipo | Siempre presente |
|---|---|---|
createdAt | string (date-time) | Sí |
createdBy | string (uuid) | Sí |
description | null en los ejemplos | Sí |
entityType | string | Sí |
id | string (uuid) | Sí |
key | string | Sí |
label | string | Sí |
options | array of object | Sí |
options[].label | string | Sí |
options[].value | string | Sí |
organizationId | string (uuid) | Sí |
position | integer | Sí |
required | boolean | Sí |
type | string | Sí |
updatedAt | string (date-time) | Sí |
updatedBy | string (uuid) | Sí |
Ejemplo
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();Respuesta (201), con valores de ejemplo:
{
"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}
Elimina una propiedad personalizada y sus valores.
Eliminar/{entity}/{id}Si va bien: 204.Permiso: Eliminar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
entity | string | Sí | |
id | string | Sí |
Ejemplo
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}
Cambia la etiqueta, las opciones o el orden de una propiedad personalizada.
Actualizar/{entity}/{id}Si va bien: 200.Permiso: Actualizar.
Parámetros de ruta
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
entity | string | Sí | |
id | string | Sí |
Cuerpo
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
label | string | No | min length 1 · max length 100 |
description | string | null | No | |
options | array of object | No | max items 100 |
options[].value | string | Sí | min length 1 · max length 100 |
options[].label | string | Sí | min length 1 · max length 100 |
required | boolean | No | default false |
position | integer | No | min 0 · default 0 |
Ejemplo
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
Cambios de esta funcionalidad que los webhooks pueden enviar.
custom_property.createdCrearcustom_property.updatedActualizarcustom_property.deletedEliminar