Skip to content
gist.link ↗

startGoogleOAuth

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

Returns the Google OAuth consent URL to redirect the admin to (for the Google Sheets data source). ROLE_ADMIN or ROLE_CAMPAIGNS_MANAGER.

campaigns:mutation:startGoogleOAuth

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

type Mutation {
startGoogleOAuth: String!
}

This mutation takes no arguments.

String!.

Terminal window
curl https://campaigns.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation StartGoogleOAuth { startGoogleOAuth }",
"variables": {}
}
JSON