Empresas

Empresas y los contactos que trabajan en ellas.

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/companies

Lista y busca empresas, con filtros y orden.

ListarSi va bien: 200.Permiso: Leer.

Parámetros de consulta

CampoTipoObligatorioNotas
pageintegerNomin 1 · default 1
pageSizeintegerNomin 1 · max 100 · default 25
qstringNomin length 1 · max length 200
archivedstringNo
ownerIdstringNo

Respuesta

24 campos
CampoTipoSiempre presente
dataarray of objectSí
data[].addressnull en los ejemplosSí
data[].archivedbooleanSí
data[].citynull en los ejemplosSí
data[].countrynull en los ejemplosSí
data[].createdAtstring (date-time)Sí
data[].createdBystring (uuid)Sí
data[].customPropertiesobject of anySí
data[].descriptionnull en los ejemplosSí
data[].idstring (uuid)Sí
data[].industrynull en los ejemplosSí
data[].namestringSí
data[].organizationIdstring (uuid)Sí
data[].ownerIdstring (uuid)Sí
data[].postalCodenull en los ejemplosSí
data[].sizenull en los ejemplosSí
data[].socialProfilesobjectSí
data[].statenull en los ejemplosSí
data[].updatedAtstring (date-time)Sí
data[].updatedBystring (uuid)Sí
data[].websitenull en los ejemplosSí
pageintegerSí
pageSizeintegerSí
totalintegerSí
Ejemplo
curl -X GET "https://api.firmado.app/v1/companies" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

{
  "data": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "website": null,
      "industry": null,
      "size": null,
      "country": null,
      "state": null,
      "city": null,
      "postalCode": null,
      "address": null,
      "description": null,
      "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "socialProfiles": {},
      "customProperties": {},
      "archived": 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"
    }
  ],
  "page": 1,
  "pageSize": 1,
  "total": 1
}

POST/v1/companies

Crea una empresa.

CrearSi va bien: 201.Permiso: Crear.

Cuerpo

CampoTipoObligatorioNotas
namestringSímin length 1 · max length 200
websitestring (uri) | nullNo
industrystring | nullNo
size"1" | "2-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001+" | nullNo
countrystring | nullNo
statestring | nullNo
citystring | nullNo
postalCodestring | nullNo
addressstring | nullNo
descriptionstring | nullNo
ownerIdstring | nullNo
socialProfilesobject of string | nullNo
customPropertiesobject of anyNo
archivedbooleanNo

Respuesta

21 campos
CampoTipoSiempre presente
addressstring | nullSí
archivedbooleanSí
citystring | nullSí
contactsarray of anySí
countrystring | nullSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
customPropertiesobject of anySí
descriptionnull en los ejemplosSí
idstring (uuid)Sí
industrynull en los ejemplosSí
namestringSí
organizationIdstring (uuid)Sí
ownerIdstring | null (uuid)Sí
postalCodestring | nullSí
sizestring | nullSí
socialProfilesobjectSí
statestring | nullSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
websitestring | null (uri)Sí
Ejemplo
curl -X POST "https://api.firmado.app/v1/companies" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Ana Lima",
  "website": "https://example.com",
  "industry": "…",
  "size": "1"
}'

Respuesta (201), con valores de ejemplo:

{
  "address": "…",
  "archived": true,
  "city": "…",
  "contacts": [],
  "country": "…",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "customProperties": {},
  "description": null,
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "industry": null,
  "name": "Ana Lima",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "postalCode": "…",
  "size": "…",
  "socialProfiles": {},
  "state": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "website": "https://example.com"
}

DELETE/v1/companies/{id}

Elimina una empresa; sus contactos se mantienen.

EliminarSi va bien: 204.Permiso: Eliminar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí
Ejemplo
curl -X DELETE "https://api.firmado.app/v1/companies/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/companies/{id}

Devuelve una empresa con sus contactos y propiedades.

Ver unoSi va bien: 200.Permiso: Leer.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Respuesta

27 campos
CampoTipoSiempre presente
addressnull en los ejemplosSí
archivedbooleanSí
citynull en los ejemplosSí
contactsarray of objectSí
contacts[].avatarnull en los ejemplosSí
contacts[].contactIdstring (uuid)Sí
contacts[].firstNamestringSí
contacts[].isPrimarybooleanSí
contacts[].jobTitlestring | nullSí
contacts[].lastNamestring | nullSí
countrynull en los ejemplosSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
customPropertiesobject of anySí
descriptionnull en los ejemplosSí
idstring (uuid)Sí
industrynull en los ejemplosSí
namestringSí
organizationIdstring (uuid)Sí
ownerIdstring (uuid)Sí
postalCodenull en los ejemplosSí
sizestring | nullSí
socialProfilesobjectSí
statenull en los ejemplosSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
websitestring | null (uri)Sí
Ejemplo
curl -X GET "https://api.firmado.app/v1/companies/{id}" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

{
  "address": null,
  "archived": true,
  "city": null,
  "contacts": [
    {
      "avatar": null,
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "firstName": "Ana",
      "isPrimary": true,
      "jobTitle": "…",
      "lastName": "Lima"
    }
  ],
  "country": null,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "customProperties": {},
  "description": null,
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "industry": null,
  "name": "Ana Lima",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "postalCode": null,
  "size": "…",
  "socialProfiles": {},
  "state": null,
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "website": "https://example.com"
}

PATCH/v1/companies/{id}

Cambia los campos y las propiedades personalizadas de una empresa.

ActualizarSi va bien: 200.Permiso: Actualizar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Cuerpo

CampoTipoObligatorioNotas
namestringNomin length 1 · max length 200
websitestring (uri) | nullNo
industrystring | nullNo
size"1" | "2-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001+" | nullNo
countrystring | nullNo
statestring | nullNo
citystring | nullNo
postalCodestring | nullNo
addressstring | nullNo
descriptionstring | nullNo
ownerIdstring | nullNo
socialProfilesobject of string | nullNo
customPropertiesobject of anyNo
archivedbooleanNo

Respuesta

27 campos
CampoTipoSiempre presente
addressnull en los ejemplosSí
archivedbooleanSí
citynull en los ejemplosSí
contactsarray of objectSí
contacts[].avatarnull en los ejemplosSí
contacts[].contactIdstring (uuid)Sí
contacts[].firstNamestringSí
contacts[].isPrimarybooleanSí
contacts[].jobTitlestringSí
contacts[].lastNamenull en los ejemplosSí
countrynull en los ejemplosSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
customPropertiesobject of anySí
descriptionnull en los ejemplosSí
idstring (uuid)Sí
industrynull en los ejemplosSí
namestringSí
organizationIdstring (uuid)Sí
ownerIdstring (uuid)Sí
postalCodenull en los ejemplosSí
sizenull en los ejemplosSí
socialProfilesobjectSí
statenull en los ejemplosSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
websitenull en los ejemplosSí
Ejemplo
curl -X PATCH "https://api.firmado.app/v1/companies/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Ana Lima",
  "website": "https://example.com",
  "industry": "…",
  "size": "1"
}'

Respuesta (200), con valores de ejemplo:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "name": "Ana Lima",
  "website": null,
  "industry": null,
  "size": null,
  "country": null,
  "state": null,
  "city": null,
  "postalCode": null,
  "address": null,
  "description": null,
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "socialProfiles": {},
  "customProperties": {},
  "archived": 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",
  "contacts": [
    {
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "firstName": "Ana",
      "lastName": null,
      "avatar": null,
      "jobTitle": "…",
      "isPrimary": true
    }
  ]
}

GET/v1/companies/{id}/activity

La cronología de una empresa: propuestas, facturas, citas, formularios, eventos y notas.

Leer/{id}/activitySi va bien: 200.Permiso: Leer.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Parámetros de consulta

CampoTipoObligatorioNotas
limitintegerNomin 1 · max 1000 · default 200

Respuesta

31 campos
CampoTipoSiempre presente
lastViewedAtstring | null (date-time)Sí
timelinearray of objectSí
timeline[].actorNamestring | nullSí
timeline[].approvalobjectNo
timeline[].approval.idstring (uuid)Sí
timeline[].approval.titlestringSí
timeline[].contactobject | nullSí
timeline[].contact.idstring (uuid)Sí
timeline[].contact.namestringSí
timeline[].contactEventobjectNo
timeline[].contactEvent.channelnull en los ejemplosSí
timeline[].contactEvent.eventstringSí
timeline[].contactEvent.idstring (uuid)Sí
timeline[].contactEvent.occurredAtstring (date-time)Sí
timeline[].contactEvent.propertiesobject of anySí
timeline[].contactEvent.referencenull en los ejemplosSí
timeline[].createdAtstring (date-time)Sí
timeline[].dataobject of anySí
timeline[].dealobject | nullSí
timeline[].deal.idstring (uuid)Sí
timeline[].deal.titlestringSí
timeline[].idstring (uuid)Sí
timeline[].paymentobjectNo
timeline[].payment.appointmentnull en los ejemplosSí
timeline[].payment.invoiceobject | nullSí
timeline[].payment.invoice.idstring (uuid)Sí
timeline[].payment.invoice.numberstringSí
timeline[].payment.recordedstring | nullSí
timeline[].payment.sourcestringSí
timeline[].typestringSí
viewCountintegerSí
Ejemplo
curl -X GET "https://api.firmado.app/v1/companies/{id}/activity" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

{
  "lastViewedAt": "2026-11-21T14:00:00.000Z",
  "timeline": [
    {
      "actorName": "Ana Lima",
      "contact": {},
      "createdAt": "2026-11-21T14:00:00.000Z",
      "data": {},
      "deal": {},
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "type": "…",
      "approval": {},
      "contactEvent": {},
      "payment": {}
    }
  ],
  "viewCount": 1
}

GET/v1/companies/{id}/history

Cada cambio en las propiedades de una empresa, con quién lo hizo.

Leer/{id}/historySi va bien: 200.Permiso: Leer.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Parámetros de consulta

CampoTipoObligatorioNotas
fieldstringSímax length 120 · pattern ^[A-Za-z]+(\.[\w-]+)?$

Respuesta

13 campos
CampoTipoSiempre presente
entriesarray of objectSí
entries[].changedAtstring (date-time)Sí
entries[].changedByobjectSí
entries[].changedBy.idstring (uuid)Sí
entries[].changedBy.namestringSí
entries[].idstring (uuid)Sí
entries[].newLabelnull en los ejemplosSí
entries[].newValuestringSí
entries[].oldLabelnull en los ejemplosSí
entries[].oldValuestring | nullSí
fieldstringSí
limitintegerSí
totalintegerSí
Ejemplo
curl -X GET "https://api.firmado.app/v1/companies/{id}/history" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

{
  "field": "…",
  "limit": 1,
  "total": 1,
  "entries": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "oldValue": "…",
      "newValue": "…",
      "changedAt": "2026-11-21T14:00:00.000Z",
      "oldLabel": null,
      "newLabel": null,
      "changedBy": {}
    }
  ]
}

Eventos de webhook

Cambios de esta funcionalidad que los webhooks pueden enviar.

  • company.createdCrear
  • company.updatedActualizar
  • company.deletedEliminar