query contacts
GET/org/:orgId/contact/query
Query contacts with advanced filtering, sorting, and pagination using CRUD query language. Supports complex filters, sorting by multiple fields, and pagination.
Request
Path Parameters
Organization ID
Query Parameters
Number of items per page (default 20, max 1000)
Page number (default 1)
Query style: 'json' or 'lisp' (default 'lisp')
Filter expression in the format specified by qs param
Sort style: 'json' or 'simple' (default 'simple')
Sort expression in the format specified by ss param
- application/json
Body
object
Responses
- 200
- 400
- 500
Paginated list of contacts
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
Array [
]
]
Array [
]
Array [
]
Array [
]
Array [
]
]
data
object[]
CompanyContactID holds the value of the "company_contact_id" field.
CreationTime holds the value of the "creation_time" field.
EmailAddress holds the value of the "email_address" field.
ID of the ent.
info
object
Info holds the value of the "info" field.
cosellPartnerMetrics
object
CosellPartnerMetrics holds computed metrics for partner contacts (AWS PDMs, Azure PMs, GCP contacts). Only populated for contacts with tags containing "partner".
AccountCount is the number of unique Salesforce accounts associated with this contact. This is len(Accounts) stored for efficient sorting/filtering.
accounts
object[]
Accounts contains Salesforce accounts associated with this contact's referrals. Account IDs are extracted from referrals, names are fetched from Salesforce.
CreatedDate is the account creation date in Salesforce (YYYY-MM-DD format).
Domain is the account's domain extracted from the Website field in Salesforce.
ID is the Salesforce account ID.
Industry is the account's industry classification from Salesforce.
Name is the account name (fetched from Salesforce).
opportunities
object[]
Opportunities contains the Salesforce opportunities for this account. Fetched via SOQL relationship query during cron workflow.
Amount is the opportunity deal value.
CloseDate is the expected or actual close date (YYYY-MM-DD format).
CreatedDate is the opportunity creation date in Salesforce (YYYY-MM-DDTHH:MM:SS.000+0000 format).
CurrencyIsoCode is the ISO currency code (e.g., "USD", "EUR").
ID is the Salesforce opportunity ID.
Name is the opportunity name.
OwnerEmail is the email of the opportunity owner (from Salesforce User).
OwnerName is the name of the opportunity owner (from Salesforce User).
Probability is the likelihood of closing the deal (0-100 percentage).
StageName is the current sales stage (e.g., "Prospecting", "Closed Won", "Closed Lost").
Source indicates how this account was added to the partner contact. "Predicted": Added through domain matching in predicted contacts workflow. "Referral": Added through actual referral activity, or transitioned from Predicted. Lifecycle: Predicted → Referral (when account gets referral activity). Uses PartnerContactSource* constants.
Type is the account type from Salesforce (e.g., "Customer", "Prospect", "Target").
ClosedLostCount is the number of referrals with status CLOSED_LOST where this contact is assigned.
closedWonAmount
object
ClosedWonAmount is the sum of deal values for CLOSED_WON referrals, grouped by currency. Format: {"USD": 500000.00, "EUR": 100000.00}
ClosedWonCount is the number of referrals with status CLOSED_WON where this contact is assigned.
engagementTimeSeries
object[]
EngagementTimeSeries contains monthly engagement metrics for the last 6 months. Pre-computed during the daily cron workflow for efficient API responses. Sorted chronologically by period (oldest to newest).
CosellDeals is the number of referrals created in this month.
OpportunityActivity is the number of opportunities with activity in this month.
Period is the month in YYYY-MM format (e.g., "2024-01").
InboundReferralCount is the number of inbound referrals (direction = INBOUND) where this contact is assigned.
Industries contains unique standardized industry classifications for this contact. Values are normalized to AWS ACE industry picklist (28 values). Priority: CRM account industry > referral industry (AWS/GCP only).
locations
object[]
Locations contains customer locations with their mapped sales regions. Extracted from referral customer addresses and mapped to sales territories.
Location is the customer location string (e.g., "Seattle, WA, US", "London, UK").
Region is the mapped sales territory (e.g., "US West", "EMEA", "APAC").
ManagedDomains contains the unique customer domains from referrals where this partner contact is assigned. Extracted from buyer company domains.
oppOwners
object[]
OppOwners contains unique opportunity owners from the contact's associated accounts. Aggregated from opportunities across all accounts for quick display. Deduplicated by email and sorted by name.
Email is the opportunity owner's email address.
Name is the opportunity owner's name.
OutboundReferralCount is the number of outbound referrals (direction = OUTBOUND) where this contact is assigned.
pipeline
object
Pipeline is the sum of deal values for active (accepted) referrals, grouped by currency. Format: {"USD": 150000.00, "CAD": 25000.00} Includes only referrals that have been accepted by the partner.
Source indicates how this partner contact was created and its lifecycle state. "Referral": Contact with actual referral activity (created directly or transitioned from Predicted). "Predicted": Contact suggested based on domain matching from another organization. Lifecycle: Predicted → Referral (when contact gets referral activity).
SuccessRate is the win rate: (ClosedWonCount / [ClosedWonCount + ClosedLostCount]) × 100 nil if no closed referrals (ClosedWonCount + ClosedLostCount == 0) Note: Rejected/Declined/Expired referrals are NOT included (they were never active)
enrichedContactInfo
object
Enriched contact information from enrichment service
Company information
Location information
Timestamps
Contact information
Core identification fields
info
object
Additional structured information
ApolloID is the Apollo.io person ID for re-enrichment.
IsPrimary indicates this is the highest-seniority partnership contact.
Seniority is the contact's seniority level inferred from job title (e.g., "vp", "director", "manager", "ic").
workExperiences
object[]
true if the work experience is current
Professional information
Media and social
Possible values: [active, stale, archived]
active/stale/archived
Possible values: [``, ADYEN, ALIBABA, ANTIGRAVITY, ANTHROPIC, AWS, AWS_CHINA, AZURE, CHARGEBEE, CLICKUP, DATABRICKS, DATADOG, DEEPSEEK, DOCUSIGN, DNS, GCP, GITHUB, GONG, GOOGLE, HUBSPOT, INTUIT, KIMI, LAGO, MARKETO, METRONOME, MICROSOFT, MINIMAX, NOTION, OPENAI, ORACLE, ORB, REDHAT, SALESFORCE, SLACK, SNOWFLAKE, STRIPE, ZOHO, OAUTH2, SALESFORCE, HUBSPOT, AWS, AZURE, GCP]
The partner where this usage metering daily record is from. Such as AWS, AZURE or GCP.
LastUpdateTime holds the value of the "last_update_time" field.
Name holds the value of the "name" field.
OrganizationID holds the value of the "organization_id" field.
Tags holds the value of the "tags" field.
{
"data": [
{
"companyContactId": "string",
"creationTime": "2026-04-08T06:06:53.671Z",
"emailAddress": "string",
"id": "string",
"info": {
"companyLocation": "string",
"companyName": "string",
"cosellPartnerMetrics": {
"accountCount": 0,
"accounts": [
{
"createdDate": "string",
"domain": "string",
"id": "string",
"industry": "string",
"name": "string",
"opportunities": [
{
"amount": 0,
"closeDate": "string",
"createdDate": "string",
"currencyIsoCode": "string",
"id": "string",
"name": "string",
"ownerEmail": "string",
"ownerName": "string",
"probability": 0,
"stageName": "string"
}
],
"source": "string",
"type": "string"
}
],
"closedLostCount": 0,
"closedWonAmount": {},
"closedWonCount": 0,
"engagementTimeSeries": [
{
"cosellDeals": 0,
"opportunityActivity": 0,
"period": "string"
}
],
"inboundReferralCount": 0,
"industries": [
"string"
],
"locations": [
{
"location": "string",
"region": "string"
}
],
"managedDomains": [
"string"
],
"oppOwners": [
{
"email": "string",
"name": "string"
}
],
"outboundReferralCount": 0,
"pipeline": {},
"source": "string",
"successRate": 0
},
"enrichedContactInfo": {
"city": "string",
"companyDomain": "string",
"companyName": "string",
"country": "string",
"creationTime": "2026-04-08T06:06:53.672Z",
"email": "string",
"firstName": "string",
"id": "string",
"info": {
"apolloId": "string",
"isPrimary": true,
"seniority": "string",
"workExperiences": [
{
"current": true,
"endDate": "2026-04-08T06:06:53.672Z",
"organizationName": "string",
"startDate": "2026-04-08T06:06:53.672Z",
"title": "string"
}
]
},
"jobFunction": "string",
"jobTitle": "string",
"lastName": "string",
"lastUpdateTime": "2026-04-08T06:06:53.672Z",
"linkedIn": "string",
"name": "string",
"phone": "string",
"s3KeyPicture": "string",
"status": "active",
"twitter": "string"
},
"lastModifiedBy": "string",
"partner": "",
"phoneNumber": "string",
"role": "string"
},
"lastUpdateTime": "2026-04-08T06:06:53.672Z",
"name": "string",
"organizationID": "string",
"tags": [
"string"
]
}
],
"page_number": 0,
"page_size": 0,
"total_count": 0
}
Bad request error
- application/json
- Schema
Schema
string
Internal server error
- application/json
- Schema
Schema
string