CRM types
Type definitions referenced by CRM queries and mutations.
Activity
Section titled “Activity”Object. Timeline entry: note | call | email | meeting | task | system | external.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
kind |
String! |
— |
body |
String! |
— |
contactUuid |
ID |
— |
companyUuid |
ID |
— |
dealUuid |
ID |
— |
authorUserUuid |
ID |
— |
sourceApp |
String |
— |
sourceUrl |
String |
— |
dedupeKey |
String |
— |
dueAt |
String |
— |
completedAt |
String |
— |
occurredAt |
String! |
— |
createdAt |
String! |
— |
ActivityConnection
Section titled “ActivityConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[ActivityEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
ActivityEdge
Section titled “ActivityEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Activity! |
— |
ActivityFilter
Section titled “ActivityFilter”Input object.
| Field | Type | Description |
|---|---|---|
contactUuid |
ID |
— |
companyUuid |
ID |
— |
dealUuid |
ID |
— |
kind |
String |
— |
ActivityInput
Section titled “ActivityInput”Input object.
| Field | Type | Description |
|---|---|---|
kind |
String! |
note | call | email | meeting | task |
body |
String! |
— |
contactUuid |
ID |
— |
companyUuid |
ID |
— |
dealUuid |
ID |
— |
dueAt |
String |
— |
occurredAt |
String |
— |
Address
Section titled “Address”Object. A saved customer address owned by exactly one contact or company. CRM’s address book is the suite’s single source of customer addresses (pay/shop/shipping read it).
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
contactUuid |
ID |
— |
companyUuid |
ID |
— |
ownerName |
String! |
Contact display name or company name. |
label |
String |
e.g. Home, HQ, Warehouse 2 |
name |
String |
— |
company |
String |
— |
line1 |
String! |
— |
line2 |
String |
— |
city |
String! |
— |
region |
String |
— |
postalCode |
String |
— |
country |
String! |
ISO 3166-1 alpha-2 |
phone |
String |
— |
email |
String |
— |
residential |
Boolean! |
— |
isDefaultShipping |
Boolean! |
— |
isDefaultBilling |
Boolean! |
— |
sourceApp |
String |
App that first saved it (crm, pay, shop, shipping). |
lastUsedAt |
String |
— |
createdAt |
String! |
— |
updatedAt |
String! |
— |
AddressConnection
Section titled “AddressConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[AddressEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
AddressEdge
Section titled “AddressEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Address! |
— |
AddressFields
Section titled “AddressFields”Input object.
| Field | Type | Description |
|---|---|---|
name |
String |
— |
company |
String |
— |
line1 |
String! |
— |
line2 |
String |
— |
city |
String! |
— |
region |
String |
— |
postalCode |
String |
— |
country |
String! |
— |
phone |
String |
— |
email |
String |
— |
residential |
Boolean |
— |
AddressFilter
Section titled “AddressFilter”Input object.
| Field | Type | Description |
|---|---|---|
contactUuid |
ID |
— |
companyUuid |
ID |
— |
includeCompany |
Boolean |
When filtering by contactUuid, also include the contact’s company’s addresses. |
search |
String |
Matches owner name, label, name, company, line1, city, postalCode. |
country |
String |
— |
AddressOwnerHint
Section titled “AddressOwnerHint”Input object. Resolve-or-create an owner when the caller has no CRM uuid (e.g. checkout buyer).
| Field | Type | Description |
|---|---|---|
email |
String |
— |
firstName |
String |
— |
lastName |
String |
— |
phone |
String |
— |
companyName |
String |
— |
Boolean
Section titled “Boolean”Scalar. The Boolean scalar type represents true or false.
Company
Section titled “Company”Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
name |
String! |
— |
domains |
[String!]! |
— |
website |
String |
— |
industry |
String |
— |
size |
String |
— |
addresses |
[Address!]! |
Saved addresses (address book), defaults first. |
tags |
[String!]! |
— |
ownerUserUuid |
ID |
— |
lifecycle |
String! |
— |
archived |
Boolean! |
— |
createdAt |
String! |
— |
updatedAt |
String! |
— |
CompanyConnection
Section titled “CompanyConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[CompanyEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
CompanyDetail
Section titled “CompanyDetail”Object. Company overview: a company plus its contacts, timeline, and links into other apps.
| Field | Type | Description |
|---|---|---|
company |
Company! |
— |
contacts |
[Contact!]! |
— |
activities |
[Activity!]! |
— |
externalRefs |
[ExternalRef!]! |
— |
CompanyEdge
Section titled “CompanyEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Company! |
— |
CompanyFilter
Section titled “CompanyFilter”Input object.
| Field | Type | Description |
|---|---|---|
search |
String |
— |
includeArchived |
Boolean |
— |
CompanyInput
Section titled “CompanyInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String |
— |
domains |
[String!] |
— |
website |
String |
— |
industry |
String |
— |
size |
String |
— |
tags |
[String!] |
— |
ownerUserUuid |
ID |
— |
lifecycle |
String |
— |
Contact
Section titled “Contact”Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
firstName |
String! |
— |
lastName |
String! |
— |
displayName |
String! |
— |
primaryEmail |
String |
— |
emails |
[String!]! |
— |
phones |
[String!]! |
— |
title |
String |
— |
company |
Company |
— |
tags |
[String!]! |
— |
ownerUserUuid |
ID |
— |
lifecycle |
String! |
— |
marketingConsent |
Boolean! |
— |
authUserUuid |
ID |
— |
addresses |
[Address!]! |
Saved addresses (address book), defaults first. |
archived |
Boolean! |
— |
createdAt |
String! |
— |
updatedAt |
String! |
— |
ContactConnection
Section titled “ContactConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[ContactEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
ContactDetail
Section titled “ContactDetail”Object. Customer 360: a contact plus its deals, timeline, and links into other apps.
| Field | Type | Description |
|---|---|---|
contact |
Contact! |
— |
deals |
[Deal!]! |
— |
activities |
[Activity!]! |
— |
externalRefs |
[ExternalRef!]! |
— |
segments |
[Segment!]! |
Static segments this contact is an explicit member of (default segment first). |
ContactEdge
Section titled “ContactEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Contact! |
— |
ContactFilter
Section titled “ContactFilter”Input object.
| Field | Type | Description |
|---|---|---|
search |
String |
Matches name, emails, and phones. |
companyUuid |
ID |
— |
lifecycle |
String |
— |
includeArchived |
Boolean |
— |
hasPhone |
Boolean |
Only contacts with at least one phone number. |
ContactInput
Section titled “ContactInput”Input object.
| Field | Type | Description |
|---|---|---|
firstName |
String |
— |
lastName |
String |
— |
emails |
[String!] |
— |
phones |
[String!] |
— |
title |
String |
— |
companyUuid |
ID |
— |
tags |
[String!] |
— |
ownerUserUuid |
ID |
— |
lifecycle |
String |
— |
marketingConsent |
Boolean |
— |
authUserUuid |
ID |
— |
ConvertLeadInput
Section titled “ConvertLeadInput”Input object.
| Field | Type | Description |
|---|---|---|
companyUuid |
ID |
Attach the new contact to this company instead of creating/matching one. |
createDeal |
Boolean |
Create an open deal for the converted contact. |
dealTitle |
String |
— |
amountMinor |
Int |
— |
currency |
String |
— |
ConvertLeadResult
Section titled “ConvertLeadResult”Object.
| Field | Type | Description |
|---|---|---|
lead |
Lead! |
— |
contact |
Contact! |
— |
company |
Company |
— |
deal |
Deal |
— |
Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
title |
String! |
— |
company |
Company |
— |
contact |
Contact |
— |
pipeline |
Pipeline! |
— |
stage |
PipelineStage! |
— |
amountMinor |
Int! |
Integer minor units (e.g. cents). |
currency |
String! |
ISO 4217 currency code. |
expectedCloseDate |
String |
— |
ownerUserUuid |
ID |
— |
status |
String! |
open | won | lost — derived from the stage’s isWon/isLost flags. |
closedAt |
String |
— |
createdAt |
String! |
— |
updatedAt |
String! |
— |
DealConnection
Section titled “DealConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[DealEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
DealEdge
Section titled “DealEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Deal! |
— |
DealFilter
Section titled “DealFilter”Input object.
| Field | Type | Description |
|---|---|---|
search |
String |
— |
pipelineUuid |
ID |
— |
stageUuid |
ID |
— |
status |
String |
— |
contactUuid |
ID |
— |
companyUuid |
ID |
— |
DealInput
Section titled “DealInput”Input object.
| Field | Type | Description |
|---|---|---|
title |
String |
— |
companyUuid |
ID |
— |
contactUuid |
ID |
— |
pipelineUuid |
ID |
— |
stageUuid |
ID |
— |
amountMinor |
Int |
— |
currency |
String |
— |
expectedCloseDate |
String |
— |
ownerUserUuid |
ID |
— |
ExternalRef
Section titled “ExternalRef”Object. Link to a record in another suite app (pay customer, support ticket, …).
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
contactUuid |
ID |
— |
companyUuid |
ID |
— |
app |
String! |
— |
kind |
String! |
— |
externalId |
String! |
— |
url |
String |
— |
label |
String |
— |
createdAt |
String! |
— |
Scalar. The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.
Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Scalar.
Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
name |
String! |
— |
email |
String |
— |
phone |
String |
— |
companyName |
String |
— |
source |
String |
— |
score |
Int! |
— |
status |
String! |
— |
ownerUserUuid |
ID |
— |
notes |
String |
— |
convertedContactUuid |
ID |
— |
createdAt |
String! |
— |
updatedAt |
String! |
— |
LeadConnection
Section titled “LeadConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[LeadEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
LeadEdge
Section titled “LeadEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Lead! |
— |
LeaderboardEntry
Section titled “LeaderboardEntry”Object.
| Field | Type | Description |
|---|---|---|
authorUserUuid |
ID! |
— |
activityCount |
Int! |
— |
LeadFilter
Section titled “LeadFilter”Input object.
| Field | Type | Description |
|---|---|---|
search |
String |
— |
status |
String |
— |
LeadInput
Section titled “LeadInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String |
— |
email |
String |
— |
phone |
String |
— |
companyName |
String |
— |
source |
String |
— |
score |
Int |
— |
status |
String |
— |
ownerUserUuid |
ID |
— |
notes |
String |
— |
LinkExternalRefInput
Section titled “LinkExternalRefInput”Input object.
| Field | Type | Description |
|---|---|---|
contactUuid |
ID |
— |
companyUuid |
ID |
— |
app |
String! |
— |
kind |
String! |
— |
externalId |
String! |
— |
url |
String |
— |
label |
String |
— |
PageInfo
Section titled “PageInfo”Object.
| Field | Type | Description |
|---|---|---|
hasNextPage |
Boolean! |
— |
endCursor |
String |
— |
PhoneMatch
Section titled “PhoneMatch”Object. Result of a caller-ID lookup; contact is null when no contact carries the phone.
| Field | Type | Description |
|---|---|---|
phone |
String! |
— |
contact |
Contact |
— |
Pipeline
Section titled “Pipeline”Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
name |
String! |
— |
isDefault |
Boolean! |
— |
stages |
[PipelineStage!]! |
— |
createdAt |
String! |
— |
updatedAt |
String! |
— |
PipelineStage
Section titled “PipelineStage”Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
name |
String! |
— |
position |
Int! |
— |
probabilityBps |
Int! |
Win probability in basis points (0–10000). |
isWon |
Boolean! |
— |
isLost |
Boolean! |
— |
PipelineSummary
Section titled “PipelineSummary”Object.
| Field | Type | Description |
|---|---|---|
pipeline |
Pipeline! |
— |
stages |
[StageSummary!]! |
— |
openDealCount |
Int! |
— |
openAmountMinor |
Int! |
— |
weightedAmountMinor |
Int! |
— |
Recommendation
Section titled “Recommendation”Object. Suggestion for associating an email address with CRM records.
| Field | Type | Description |
|---|---|---|
contact |
Contact |
— |
company |
Company |
— |
confidence |
String! |
exact_email | domain | none |
reason |
String! |
— |
RecordExternalActivityInput
Section titled “RecordExternalActivityInput”Input object.
| Field | Type | Description |
|---|---|---|
contactUuid |
ID |
— |
companyUuid |
ID |
— |
dealUuid |
ID |
— |
body |
String! |
— |
sourceApp |
String! |
— |
sourceUrl |
String |
— |
dedupeKey |
String |
Idempotency key — replays return the existing activity. |
occurredAt |
String |
— |
RememberAddressInput
Section titled “RememberAddressInput”Input object. Idempotent upsert used by pay/shop/shipping: dedupes on a normalized address hash per owner (touches lastUsedAt instead of duplicating). Owner = contactUuid | companyUuid | ownerHint (resolve-or-create contact like resolveContact).
| Field | Type | Description |
|---|---|---|
contactUuid |
ID |
— |
companyUuid |
ID |
— |
ownerHint |
AddressOwnerHint |
— |
address |
AddressFields! |
— |
purpose |
String |
shipping | billing |
makeDefault |
Boolean |
Make it the owner’s default for purpose (default: only when the owner has none). |
sourceApp |
String |
— |
ResolveContactInput
Section titled “ResolveContactInput”Input object.
| Field | Type | Description |
|---|---|---|
email |
String! |
— |
firstName |
String |
Used when the email is unknown and a contact must be created. |
lastName |
String |
— |
phone |
String |
— |
createCompanyFromDomain |
Boolean |
When true, a company is created from the email’s business domain if none exists (free providers are ignored). |
companyName |
String |
Name to use for a company created from the domain; falls back to the domain itself. |
sourceApp |
String |
Originating app (e.g. support). Recorded on the auto-created contact’s system activity and added as a source:<app> tag (lowercased) on new and existing contacts. |
segmentUuid |
ID |
Static segment to place the contact in. When omitted, a NEWLY created contact goes into the organization’s default segment. |
SaveAddressInput
Section titled “SaveAddressInput”Input object.
| Field | Type | Description |
|---|---|---|
uuid |
ID |
— |
contactUuid |
ID |
Exactly one of contactUuid / companyUuid (on create). |
companyUuid |
ID |
— |
label |
String |
— |
address |
AddressFields! |
— |
isDefaultShipping |
Boolean |
— |
isDefaultBilling |
Boolean |
— |
Segment
Section titled “Segment”Object. A saved list of contacts or companies: dynamic (criteria-defined, computed live) or static (explicit, manually managed contact list).
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
name |
String! |
— |
description |
String |
— |
targetType |
String! |
contact | company (always contact for static segments) |
mode |
String! |
dynamic | static (immutable after creation) |
isDefault |
Boolean! |
True for the org’s single default segment, where newly resolved contacts land unless another segment is chosen. Always static; cannot be deleted. |
criteria |
JSON! |
{ match: “all”|“any”, rules: [{ field, op, value }] } — ignored for static segments. |
ownerUserUuid |
ID |
— |
createdAt |
String! |
— |
updatedAt |
String! |
— |
SegmentCampaignLaunch
Section titled “SegmentCampaignLaunch”Object. Result of handing a segment to the campaigns app.
| Field | Type | Description |
|---|---|---|
audienceId |
String! |
— |
estimatedSize |
Int |
— |
campaignsUrl |
String! |
Deep link into the campaigns app to finish composing the send. |
SegmentConnection
Section titled “SegmentConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[SegmentEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
SegmentDetail
Section titled “SegmentDetail”Object. A segment plus its live membership overview.
| Field | Type | Description |
|---|---|---|
segment |
Segment! |
— |
memberCount |
Int! |
— |
lifecycleBreakdown |
[SegmentLifecycleCount!]! |
— |
SegmentEdge
Section titled “SegmentEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Segment! |
— |
SegmentFilter
Section titled “SegmentFilter”Input object.
| Field | Type | Description |
|---|---|---|
search |
String |
— |
targetType |
String |
Restrict to contact or company segments. |
mode |
String |
Restrict to dynamic or static segments (e.g. static only for an add-to-segment picker). |
SegmentInput
Section titled “SegmentInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String |
— |
description |
String |
— |
targetType |
String |
contact | company (immutable after creation). Static segments are always contact. |
mode |
String |
dynamic (default) | static. Creation only — a segment’s mode is immutable. |
criteria |
JSON |
{ match: “all”|“any”, rules: [{ field, op, value }] } — ignored for static segments. |
SegmentLifecycleCount
Section titled “SegmentLifecycleCount”Object.
| Field | Type | Description |
|---|---|---|
lifecycle |
String! |
— |
count |
Int! |
— |
SegmentMemberConnection
Section titled “SegmentMemberConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[SegmentMemberEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
SegmentMemberEdge
Section titled “SegmentMemberEdge”Object. A segment member node is a presented contact or company object (JSON).
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
JSON! |
— |
SegmentPreview
Section titled “SegmentPreview”Object. Live preview of an unsaved criteria set: total count + a member sample (each member is a presented contact/company object).
| Field | Type | Description |
|---|---|---|
count |
Int! |
— |
members |
[JSON!]! |
— |
SortDirection
Section titled “SortDirection”Enum. Sort direction for list queries.
| Value | Description |
|---|---|
ASC |
— |
DESC |
— |
SortInput
Section titled “SortInput”Input object. Generic sort specifier: a whitelisted field name plus a direction.
| Field | Type | Description |
|---|---|---|
field |
String! |
— |
direction |
SortDirection! |
— |
StageInput
Section titled “StageInput”Input object.
| Field | Type | Description |
|---|---|---|
uuid |
ID |
Omit for a new stage; pass the existing uuid to keep deal associations. |
name |
String! |
— |
probabilityBps |
Int! |
— |
isWon |
Boolean |
— |
isLost |
Boolean |
— |
StageSummary
Section titled “StageSummary”Object.
| Field | Type | Description |
|---|---|---|
stage |
PipelineStage! |
— |
dealCount |
Int! |
— |
amountMinor |
Int! |
— |
weightedAmountMinor |
Int! |
amountMinor × stage probability (forecast contribution). |
String
Section titled “String”Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
WinLossSummary
Section titled “WinLossSummary”Object.
| Field | Type | Description |
|---|---|---|
days |
Int! |
— |
wonCount |
Int! |
— |
wonAmountMinor |
Int! |
— |
lostCount |
Int! |
— |
lostAmountMinor |
Int! |
— |
winRateBps |
Int! |
Won ÷ (won + lost) in basis points; 0 when nothing closed. |