Skip to content
gist.link ↗

crmContacts

Query Pay API — POST https://pay.api.gist.link/graphql

Search CRM contacts, optionally scoped to one company. Any org member.

pay:query:crmContacts

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

type Query {
crmContacts(companyUuid: ID, search: String, first: Int): [CrmContact!]!
}
Argument Type Required Description
companyUuid ID No —
search String No —
first Int No —

[CrmContact!]! — see the Pay types reference.

Terminal window
curl https://pay.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query CrmContacts($companyUuid: ID, $search: String, $first: Int) { crmContacts(companyUuid: $companyUuid, search: $search, first: $first) { uuid displayName primaryEmail title } }",
"variables": {
"companyUuid": "01a01234-abcd-7000-9000-0123456789ab",
"search": "example",
"first": 10
}
}
JSON