Skip to content
gist.link ↗

googleConnection

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

The org’s Google OAuth connection (for the Google Sheets data source), if connected. Any org member.

campaigns:query:googleConnection

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 {
googleConnection: OAuthConnection
}

This query takes no arguments.

OAuthConnection — 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 GoogleConnection { googleConnection { id created_at updated_at } }",
"variables": {}
}
JSON