Skip to content
gist.link ↗

CRM types

Type definitions referenced by CRM queries and mutations.

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! —

Object.

Field Type Description
edges [ActivityEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Activity! —

Input object.

Field Type Description
contactUuid ID —
companyUuid ID —
dealUuid ID —
kind String —

Input object.

Field Type Description
kind String! note | call | email | meeting | task
body String! —
contactUuid ID —
companyUuid ID —
dealUuid ID —
dueAt String —
occurredAt String —

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! —

Object.

Field Type Description
edges [AddressEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Address! —

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 —

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 —

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 —

Scalar. The Boolean scalar type represents true or false.

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! —

Object.

Field Type Description
edges [CompanyEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

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!]! —

Object.

Field Type Description
cursor String! —
node Company! —

Input object.

Field Type Description
search String —
includeArchived Boolean —

Input object.

Field Type Description
name String —
domains [String!] —
website String —
industry String —
size String —
tags [String!] —
ownerUserUuid ID —
lifecycle String —

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! —

Object.

Field Type Description
edges [ContactEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

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).

Object.

Field Type Description
cursor String! —
node Contact! —

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.

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 —

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 —

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! —

Object.

Field Type Description
edges [DealEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Deal! —

Input object.

Field Type Description
search String —
pipelineUuid ID —
stageUuid ID —
status String —
contactUuid ID —
companyUuid ID —

Input object.

Field Type Description
title String —
companyUuid ID —
contactUuid ID —
pipelineUuid ID —
stageUuid ID —
amountMinor Int —
currency String —
expectedCloseDate String —
ownerUserUuid ID —

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! —

Object.

Field Type Description
edges [LeadEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Lead! —

Object.

Field Type Description
authorUserUuid ID! —
activityCount Int! —

Input object.

Field Type Description
search String —
status String —

Input object.

Field Type Description
name String —
email String —
phone String —
companyName String —
source String —
score Int —
status String —
ownerUserUuid ID —
notes String —

Input object.

Field Type Description
contactUuid ID —
companyUuid ID —
app String! —
kind String! —
externalId String! —
url String —
label String —

Object.

Field Type Description
hasNextPage Boolean! —
endCursor String —

Object. Result of a caller-ID lookup; contact is null when no contact carries the phone.

Field Type Description
phone String! —
contact Contact —

Object.

Field Type Description
uuid ID! —
name String! —
isDefault Boolean! —
stages [PipelineStage!]! —
createdAt String! —
updatedAt String! —

Object.

Field Type Description
uuid ID! —
name String! —
position Int! —
probabilityBps Int! Win probability in basis points (0–10000).
isWon Boolean! —
isLost Boolean! —

Object.

Field Type Description
pipeline Pipeline! —
stages [StageSummary!]! —
openDealCount Int! —
openAmountMinor Int! —
weightedAmountMinor Int! —

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! —

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 —

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 —

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.

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 —

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! —

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.

Object.

Field Type Description
edges [SegmentEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object. A segment plus its live membership overview.

Field Type Description
segment Segment! —
memberCount Int! —
lifecycleBreakdown [SegmentLifecycleCount!]! —

Object.

Field Type Description
cursor String! —
node Segment! —

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).

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.

Object.

Field Type Description
lifecycle String! —
count Int! —

Object.

Field Type Description
edges [SegmentMemberEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object. A segment member node is a presented contact or company object (JSON).

Field Type Description
cursor String! —
node JSON! —

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!]! —

Enum. Sort direction for list queries.

Value Description
ASC —
DESC —

Input object. Generic sort specifier: a whitelisted field name plus a direction.

Field Type Description
field String! —
direction SortDirection! —

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 —

Object.

Field Type Description
stage PipelineStage! —
dealCount Int! —
amountMinor Int! —
weightedAmountMinor Int! amountMinor × stage probability (forecast contribution).

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.

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.