Companies

Companies and the contacts who work there.

Values for the examples

Type them once and every example on this page uses them. The API key stays on this page only and is never saved.

GET/v1/companies

Lists and searches companies, with filters and sorting.

ListOn success: 200.Permission: Read.

Query parameters

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

Response

24 fields
FieldTypeAlways there
dataarray of objectYes
data[].addressnull in the examplesYes
data[].archivedbooleanYes
data[].citynull in the examplesYes
data[].countrynull in the examplesYes
data[].createdAtstring (date-time)Yes
data[].createdBystring (uuid)Yes
data[].customPropertiesobject of anyYes
data[].descriptionnull in the examplesYes
data[].idstring (uuid)Yes
data[].industrynull in the examplesYes
data[].namestringYes
data[].organizationIdstring (uuid)Yes
data[].ownerIdstring (uuid)Yes
data[].postalCodenull in the examplesYes
data[].sizenull in the examplesYes
data[].socialProfilesobjectYes
data[].statenull in the examplesYes
data[].updatedAtstring (date-time)Yes
data[].updatedBystring (uuid)Yes
data[].websitenull in the examplesYes
pageintegerYes
pageSizeintegerYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/companies" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

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

Creates a company.

CreateOn success: 201.Permission: Create.

Body

FieldTypeRequiredNotes
namestringYesmin 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

Response

21 fields
FieldTypeAlways there
addressstring | nullYes
archivedbooleanYes
citystring | nullYes
contactsarray of anyYes
countrystring | nullYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
customPropertiesobject of anyYes
descriptionnull in the examplesYes
idstring (uuid)Yes
industrynull in the examplesYes
namestringYes
organizationIdstring (uuid)Yes
ownerIdstring | null (uuid)Yes
postalCodestring | nullYes
sizestring | nullYes
socialProfilesobjectYes
statestring | nullYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
websitestring | null (uri)Yes
Example
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"
}'

Response (201), with sample values:

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

Deletes a company; its contacts stay.

DeleteOn success: 204.Permission: Delete.

Path parameters

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/companies/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/companies/{id}

Returns a company with its contacts and properties.

Get oneOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

27 fields
FieldTypeAlways there
addressnull in the examplesYes
archivedbooleanYes
citynull in the examplesYes
contactsarray of objectYes
contacts[].avatarnull in the examplesYes
contacts[].contactIdstring (uuid)Yes
contacts[].firstNamestringYes
contacts[].isPrimarybooleanYes
contacts[].jobTitlestring | nullYes
contacts[].lastNamestring | nullYes
countrynull in the examplesYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
customPropertiesobject of anyYes
descriptionnull in the examplesYes
idstring (uuid)Yes
industrynull in the examplesYes
namestringYes
organizationIdstring (uuid)Yes
ownerIdstring (uuid)Yes
postalCodenull in the examplesYes
sizestring | nullYes
socialProfilesobjectYes
statenull in the examplesYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
websitestring | null (uri)Yes
Example
curl -X GET "https://api.firmado.app/v1/companies/{id}" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

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

Changes a company’s fields and custom properties.

UpdateOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
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

Response

27 fields
FieldTypeAlways there
addressnull in the examplesYes
archivedbooleanYes
citynull in the examplesYes
contactsarray of objectYes
contacts[].avatarnull in the examplesYes
contacts[].contactIdstring (uuid)Yes
contacts[].firstNamestringYes
contacts[].isPrimarybooleanYes
contacts[].jobTitlestringYes
contacts[].lastNamenull in the examplesYes
countrynull in the examplesYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
customPropertiesobject of anyYes
descriptionnull in the examplesYes
idstring (uuid)Yes
industrynull in the examplesYes
namestringYes
organizationIdstring (uuid)Yes
ownerIdstring (uuid)Yes
postalCodenull in the examplesYes
sizenull in the examplesYes
socialProfilesobjectYes
statenull in the examplesYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
websitenull in the examplesYes
Example
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"
}'

Response (200), with sample values:

{
  "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 company’s timeline: proposals, invoices, meetings, forms, events and notes.

Read/{id}/activityOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Query parameters

FieldTypeRequiredNotes
limitintegerNomin 1 · max 1000 · default 200

Response

31 fields
FieldTypeAlways there
lastViewedAtstring | null (date-time)Yes
timelinearray of objectYes
timeline[].actorNamestring | nullYes
timeline[].approvalobjectNo
timeline[].approval.idstring (uuid)Yes
timeline[].approval.titlestringYes
timeline[].contactobject | nullYes
timeline[].contact.idstring (uuid)Yes
timeline[].contact.namestringYes
timeline[].contactEventobjectNo
timeline[].contactEvent.channelnull in the examplesYes
timeline[].contactEvent.eventstringYes
timeline[].contactEvent.idstring (uuid)Yes
timeline[].contactEvent.occurredAtstring (date-time)Yes
timeline[].contactEvent.propertiesobject of anyYes
timeline[].contactEvent.referencenull in the examplesYes
timeline[].createdAtstring (date-time)Yes
timeline[].dataobject of anyYes
timeline[].dealobject | nullYes
timeline[].deal.idstring (uuid)Yes
timeline[].deal.titlestringYes
timeline[].idstring (uuid)Yes
timeline[].paymentobjectNo
timeline[].payment.appointmentnull in the examplesYes
timeline[].payment.invoiceobject | nullYes
timeline[].payment.invoice.idstring (uuid)Yes
timeline[].payment.invoice.numberstringYes
timeline[].payment.recordedstring | nullYes
timeline[].payment.sourcestringYes
timeline[].typestringYes
viewCountintegerYes
Example
curl -X GET "https://api.firmado.app/v1/companies/{id}/activity" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

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

Every change to a company’s properties, with who made it.

Read/{id}/historyOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Query parameters

FieldTypeRequiredNotes
fieldstringYesmax length 120 · pattern ^[A-Za-z]+(\.[\w-]+)?$

Response

13 fields
FieldTypeAlways there
entriesarray of objectYes
entries[].changedAtstring (date-time)Yes
entries[].changedByobjectYes
entries[].changedBy.idstring (uuid)Yes
entries[].changedBy.namestringYes
entries[].idstring (uuid)Yes
entries[].newLabelnull in the examplesYes
entries[].newValuestringYes
entries[].oldLabelnull in the examplesYes
entries[].oldValuestring | nullYes
fieldstringYes
limitintegerYes
totalintegerYes
Example
curl -X GET "https://api.firmado.app/v1/companies/{id}/history" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

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

Webhook events

Changes of this feature that webhooks can send.

  • company.createdCreate
  • company.updatedUpdate
  • company.deletedDelete