Contacts & Companies

Contacts and companies are the foundational entities in Rex. A contact represents a person you're tracking through your go-to-market process. A company represents an organization.

Contacts

A contact has a lifecycle tracked through stages:

StageDescription
leadNew — not yet qualified
prospectQualified — active sales interest
customerClosed-won — paying customer
churnedFormer customer

Contact sources

Every contact has a source indicating how they entered your CRM:

organic · referral · paid · social · email · event · other

Key fields

FieldTypeDescription
idstringTypeID with cont_ prefix
emailstringPrimary email (unique per org, used for deduplication)
first_namestringFirst name
last_namestringLast name
phonestringPhone number
titlestringJob title
linkedin_urlstringLinkedIn profile URL
stageenumCurrent lifecycle stage
sourceenumHow this contact was acquired
company_idstringLinked company (optional)
owner_idstringAssigned team member (optional)
metadataobjectArbitrary key-value pairs
created_atdatetimeWhen the contact was created
updated_atdatetimeWhen the contact was last modified

Deduplication

Contacts are deduplicated by email within an org. The POST /contacts/upsert endpoint creates a new contact if the email doesn't exist, or updates the existing one if it does.

Companies

A company represents an organization. Contacts can be linked to companies via company_id.

Key fields

FieldTypeDescription
idstringTypeID with comp_ prefix
namestringCompany name
domainstringPrimary web domain (unique per org, used for deduplication)
industrystringIndustry vertical
sizestringEmployee count range
descriptionstringBrief description
metadataobjectArbitrary key-value pairs

Deduplication

Companies are deduplicated by domain within an org. The POST /companies/upsert endpoint creates or updates based on domain match.

Relationships

Company (1) ──── (many) Contact
Contact (1) ──── (many) Deal
Contact (1) ──── (many) Activity
Contact (1) ──── (many) Task

A contact can belong to one company. A company can have many contacts. Deals, activities, and tasks are linked to contacts.

Common API operations

OperationMethodEndpoint
Create a contactPOST/contacts
List contactsGET/contacts
Get a contactGET/contacts/:id
Update a contactPATCH/contacts/:id
Delete a contactDELETE/contacts/:id
Upsert by emailPOST/contacts/upsert
Create a companyPOST/companies
List companiesGET/companies
Get a companyGET/companies/:id
Upsert by domainPOST/companies/upsert

See the full Contacts API reference and Companies API reference.

Was this page helpful?

·