Skip to content
gist.link ↗

resolveContact

Mutation CRM API — POST https://crm.api.gist.link/graphql

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.

crm:mutation:resolveContact

The calling IAM key must hold this permission (or a wildcard that covers it: crm:mutation:* or crm:*) and the access token must have been minted with audience=crm. See Permissions.

type Mutation {
resolveContact(input: ResolveContactInput!): Contact!
}
Argument Type Required Description
input ResolveContactInput! Yes —

Contact! — see the CRM types reference.

Terminal window
curl https://crm.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation ResolveContact($input: ResolveContactInput!) { resolveContact(input: $input) { uuid firstName lastName displayName primaryEmail emails phones title } }",
"variables": {
"input": {
"email": "ada@example.com"
}
}
}
JSON