Skip to content
gist.link ↗

addresses

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

Saved customer addresses (contacts + companies). Service tokens allowed (pay/shop/shipping pickers). Sort fields: createdAt, updatedAt, lastUsedAt, city, label.

crm:query:addresses

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

type Query {
addresses(filter: AddressFilter, sort: SortInput, first: Int, after: String): AddressConnection!
}
Argument Type Required Description
filter AddressFilter No —
sort SortInput No —
first Int No —
after String No —

AddressConnection! — 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": "query Addresses($filter: AddressFilter, $sort: SortInput, $first: Int, $after: String) { addresses(filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { uuid name email } } } }",
"variables": {
"filter": {
"contactUuid": "01a01234-abcd-7000-9000-0123456789ab",
"companyUuid": "01a01234-abcd-7000-9000-0123456789ab",
"includeCompany": true
},
"sort": {
"field": "example",
"direction": "ASC"
},
"first": 10,
"after": "cursor"
}
}
JSON