Skip to content
gist.link ↗

crmSegments

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

Static CRM segments for the new-customer segment picker (proxied from CRM). Any org member.

pay:query:crmSegments

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 {
crmSegments(search: String, first: Int): [CrmSegment!]!
}
Argument Type Required Description
search String No —
first Int No —

[CrmSegment!]! — 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 CrmSegments($search: String, $first: Int) { crmSegments(search: $search, first: $first) { uuid name isDefault } }",
"variables": {
"search": "example",
"first": 10
}
}
JSON