Empresas

Empresas e os contatos que trabalham nelas.

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

Lista e busca empresas, com filtros e ordenação.

ListarEm caso de sucesso: 200.Permissão: Ler.

Parâmetros da consulta

CampoTipoObrigatórioObservações
pageintegerNãomin 1 · default 1
pageSizeintegerNãomin 1 · max 100 · default 25
qstringNãomin length 1 · max length 200
archivedstringNão
ownerIdstringNão

Resposta

24 campos
CampoTipoSempre presente
dataarray of objectSim
data[].addressnull nos exemplosSim
data[].archivedbooleanSim
data[].citynull nos exemplosSim
data[].countrynull nos exemplosSim
data[].createdAtstring (date-time)Sim
data[].createdBystring (uuid)Sim
data[].customPropertiesobject of anySim
data[].descriptionnull nos exemplosSim
data[].idstring (uuid)Sim
data[].industrynull nos exemplosSim
data[].namestringSim
data[].organizationIdstring (uuid)Sim
data[].ownerIdstring (uuid)Sim
data[].postalCodenull nos exemplosSim
data[].sizenull nos exemplosSim
data[].socialProfilesobjectSim
data[].statenull nos exemplosSim
data[].updatedAtstring (date-time)Sim
data[].updatedBystring (uuid)Sim
data[].websitenull nos exemplosSim
pageintegerSim
pageSizeintegerSim
totalintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/companies" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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

Cria uma empresa.

CriarEm caso de sucesso: 201.Permissão: Criar.

Corpo

CampoTipoObrigatórioObservações
namestringSimmin length 1 · max length 200
websitestring (uri) | nullNão
industrystring | nullNão
size"1" | "2-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001+" | nullNão
countrystring | nullNão
statestring | nullNão
citystring | nullNão
postalCodestring | nullNão
addressstring | nullNão
descriptionstring | nullNão
ownerIdstring | nullNão
socialProfilesobject of string | nullNão
customPropertiesobject of anyNão
archivedbooleanNão

Resposta

21 campos
CampoTipoSempre presente
addressstring | nullSim
archivedbooleanSim
citystring | nullSim
contactsarray of anySim
countrystring | nullSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
customPropertiesobject of anySim
descriptionnull nos exemplosSim
idstring (uuid)Sim
industrynull nos exemplosSim
namestringSim
organizationIdstring (uuid)Sim
ownerIdstring | null (uuid)Sim
postalCodestring | nullSim
sizestring | nullSim
socialProfilesobjectSim
statestring | nullSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
websitestring | null (uri)Sim
Exemplo
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"
}'

Resposta (201), com valores de exemplo:

{
  "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}

Exclui uma empresa; seus contatos continuam.

ExcluirEm caso de sucesso: 204.Permissão: Excluir.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
Exemplo
curl -X DELETE "https://api.firmado.app/v1/companies/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/companies/{id}

Retorna uma empresa com seus contatos e propriedades.

Ver umEm caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

27 campos
CampoTipoSempre presente
addressnull nos exemplosSim
archivedbooleanSim
citynull nos exemplosSim
contactsarray of objectSim
contacts[].avatarnull nos exemplosSim
contacts[].contactIdstring (uuid)Sim
contacts[].firstNamestringSim
contacts[].isPrimarybooleanSim
contacts[].jobTitlestring | nullSim
contacts[].lastNamestring | nullSim
countrynull nos exemplosSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
customPropertiesobject of anySim
descriptionnull nos exemplosSim
idstring (uuid)Sim
industrynull nos exemplosSim
namestringSim
organizationIdstring (uuid)Sim
ownerIdstring (uuid)Sim
postalCodenull nos exemplosSim
sizestring | nullSim
socialProfilesobjectSim
statenull nos exemplosSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
websitestring | null (uri)Sim
Exemplo
curl -X GET "https://api.firmado.app/v1/companies/{id}" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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}

Altera os campos e as propriedades personalizadas de uma empresa.

AtualizarEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
namestringNãomin length 1 · max length 200
websitestring (uri) | nullNão
industrystring | nullNão
size"1" | "2-10" | "11-50" | "51-200" | "201-500" | "501-1000" | "1001+" | nullNão
countrystring | nullNão
statestring | nullNão
citystring | nullNão
postalCodestring | nullNão
addressstring | nullNão
descriptionstring | nullNão
ownerIdstring | nullNão
socialProfilesobject of string | nullNão
customPropertiesobject of anyNão
archivedbooleanNão

Resposta

27 campos
CampoTipoSempre presente
addressnull nos exemplosSim
archivedbooleanSim
citynull nos exemplosSim
contactsarray of objectSim
contacts[].avatarnull nos exemplosSim
contacts[].contactIdstring (uuid)Sim
contacts[].firstNamestringSim
contacts[].isPrimarybooleanSim
contacts[].jobTitlestringSim
contacts[].lastNamenull nos exemplosSim
countrynull nos exemplosSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
customPropertiesobject of anySim
descriptionnull nos exemplosSim
idstring (uuid)Sim
industrynull nos exemplosSim
namestringSim
organizationIdstring (uuid)Sim
ownerIdstring (uuid)Sim
postalCodenull nos exemplosSim
sizenull nos exemplosSim
socialProfilesobjectSim
statenull nos exemplosSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
websitenull nos exemplosSim
Exemplo
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"
}'

Resposta (200), com valores de exemplo:

{
  "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

A linha do tempo de uma empresa: propostas, faturas, agendamentos, formulários, eventos e notas.

Ler/{id}/activityEm caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Parâmetros da consulta

CampoTipoObrigatórioObservações
limitintegerNãomin 1 · max 1000 · default 200

Resposta

31 campos
CampoTipoSempre presente
lastViewedAtstring | null (date-time)Sim
timelinearray of objectSim
timeline[].actorNamestring | nullSim
timeline[].approvalobjectNão
timeline[].approval.idstring (uuid)Sim
timeline[].approval.titlestringSim
timeline[].contactobject | nullSim
timeline[].contact.idstring (uuid)Sim
timeline[].contact.namestringSim
timeline[].contactEventobjectNão
timeline[].contactEvent.channelnull nos exemplosSim
timeline[].contactEvent.eventstringSim
timeline[].contactEvent.idstring (uuid)Sim
timeline[].contactEvent.occurredAtstring (date-time)Sim
timeline[].contactEvent.propertiesobject of anySim
timeline[].contactEvent.referencenull nos exemplosSim
timeline[].createdAtstring (date-time)Sim
timeline[].dataobject of anySim
timeline[].dealobject | nullSim
timeline[].deal.idstring (uuid)Sim
timeline[].deal.titlestringSim
timeline[].idstring (uuid)Sim
timeline[].paymentobjectNão
timeline[].payment.appointmentnull nos exemplosSim
timeline[].payment.invoiceobject | nullSim
timeline[].payment.invoice.idstring (uuid)Sim
timeline[].payment.invoice.numberstringSim
timeline[].payment.recordedstring | nullSim
timeline[].payment.sourcestringSim
timeline[].typestringSim
viewCountintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/companies/{id}/activity" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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 mudança nas propriedades de uma empresa, com quem a fez.

Ler/{id}/historyEm caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Parâmetros da consulta

CampoTipoObrigatórioObservações
fieldstringSimmax length 120 · pattern ^[A-Za-z]+(\.[\w-]+)?$

Resposta

13 campos
CampoTipoSempre presente
entriesarray of objectSim
entries[].changedAtstring (date-time)Sim
entries[].changedByobjectSim
entries[].changedBy.idstring (uuid)Sim
entries[].changedBy.namestringSim
entries[].idstring (uuid)Sim
entries[].newLabelnull nos exemplosSim
entries[].newValuestringSim
entries[].oldLabelnull nos exemplosSim
entries[].oldValuestring | nullSim
fieldstringSim
limitintegerSim
totalintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/companies/{id}/history" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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

Mudanças desta funcionalidade que os webhooks podem enviar.

  • company.createdCriar
  • company.updatedAtualizar
  • company.deletedExcluir