Skip to content
gist.link ↗

CRM API

The suite’s customer hub: contacts, companies, leads, and deal pipelines.

Endpoint POST https://crm.api.gist.link/graphql
Token audience audience=crm
Permission prefix crm:

Mint an access token for this API with your IAM key and audience=crm — see Authentication.

Operation Required permission Description
activities crm:query:activities —
activityLeaderboard crm:query:activityLeaderboard —
address crm:query:address —
addresses crm:query:addresses Saved customer addresses (contacts + companies). Service tokens allowed (pay/shop/shipping pickers). Sort fields: createdAt, updatedAt, lastUsedAt, city, label.
companies crm:query:companies —
company crm:query:company —
companyDetail crm:query:companyDetail Company overview.
contact crm:query:contact Customer 360 view.
contacts crm:query:contacts —
contactsByPhone crm:query:contactsByPhone Caller-ID lookup: match phone numbers (any format, e.g. E.164) to contacts. At most 100 per call.
deal crm:query:deal —
deals crm:query:deals —
health crm:query:health Public liveness probe (no auth required).
lead crm:query:lead —
leads crm:query:leads —
pipelines crm:query:pipelines —
pipelineSummary crm:query:pipelineSummary —
previewSegment crm:query:previewSegment Live preview of an unsaved criteria set: count + a member sample.
recommendForEmail crm:query:recommendForEmail Match an email address to existing CRM records (exact email, then company domain).
segment crm:query:segment A segment plus its live membership overview.
segmentContacts crm:query:segmentContacts Contacts for a segment — the campaigns app’s send-time materialization endpoint (company segments yield their companies’ contacts).
segmentMembers crm:query:segmentMembers Paginated members of a saved segment (contacts or companies).
segments crm:query:segments Saved segments (dynamic criteria-defined or static lists). Lazily provisions the org’s default Customers segment.
winLossSummary crm:query:winLossSummary —
Operation Required permission Description
addActivity crm:mutation:addActivity —
addContactsToSegment crm:mutation:addContactsToSegment Idempotently add contacts to a static segment.
archiveCompany crm:mutation:archiveCompany —
archiveContact crm:mutation:archiveContact —
completeTask crm:mutation:completeTask —
convertLead crm:mutation:convertLead Creates (or matches) a contact — and optionally a company + deal — from the lead.
createCompany crm:mutation:createCompany —
createContact crm:mutation:createContact —
createDeal crm:mutation:createDeal —
createLead crm:mutation:createLead —
createPipeline crm:mutation:createPipeline —
createSegment crm:mutation:createSegment —
deleteAddress crm:mutation:deleteAddress —
deletePipeline crm:mutation:deletePipeline Fails while the pipeline still has deals.
deleteSegment crm:mutation:deleteSegment Delete a segment. The default segment cannot be deleted.
launchSegmentCampaign crm:mutation:launchSegmentCampaign Provision a campaigns audience from a segment; returns a deep link into the campaigns app.
linkExternalRef crm:mutation:linkExternalRef Idempotent link of an external record to a contact/company.
mergeContacts crm:mutation:mergeContacts Folds the duplicate’s emails/phones/tags/deals/activities/refs into the primary, then archives it.
moveDeal crm:mutation:moveDeal Move to a stage; status and closedAt derive from the stage’s isWon/isLost.
recordExternalActivity crm:mutation:recordExternalActivity Mirror an event from another app onto the timeline (deduped via dedupeKey).
rememberAddress crm:mutation:rememberAddress Idempotent dedupe-or-create used by pay/shop/shipping (touches lastUsedAt on a match). Service tokens allowed.
removeContactsFromSegment crm:mutation:removeContactsFromSegment Remove contacts from a static segment.
resolveContact crm:mutation:resolveContact Idempotent find-by-email-or-create; the backbone of cross-app association. Tags the contact source:<sourceApp> and places it in segmentUuid (static) or, when newly created, the default segment.
saveAddress crm:mutation:saveAddress Create (no uuid) or update a saved address. Service tokens allowed.
savePipelineStages crm:mutation:savePipelineStages Replace-all stage editor; stages keep identity via their uuid.
setDefaultAddress crm:mutation:setDefaultAddress purpose: shipping | billing. Moves the owner’s default for that purpose to this address.
setDefaultSegment crm:mutation:setDefaultSegment Make a static segment the org’s default (where newly resolved contacts land).
updateCompany crm:mutation:updateCompany —
updateContact crm:mutation:updateContact —
updateDeal crm:mutation:updateDeal —
updateLead crm:mutation:updateLead —
updatePipeline crm:mutation:updatePipeline —
updateSegment crm:mutation:updateSegment —