Skip to content
gist.link ↗

deliveryPreferences

Query Campaigns API — POST https://campaigns.api.gist.link/graphql

Offset-paginated recipient delivery preferences (public preference page records). Any org member.

campaigns:query:deliveryPreferences

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

type Query {
deliveryPreferences(first: Int, offset: Int): DeliveryPreferencePage!
}
Argument Type Required Description
first Int No —
offset Int No —

DeliveryPreferencePage! — see the Campaigns types reference.

Terminal window
curl https://campaigns.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query DeliveryPreferences($first: Int, $offset: Int) { deliveryPreferences(first: $first, offset: $offset) { totalCount items { id email created_at updated_at } } }",
"variables": {
"first": 10,
"offset": 10
}
}
JSON