Skip to content
gist.link ↗

connectPlatform

Mutation Marketing API — POST https://marketing.api.gist.link/graphql

Start the OAuth connect flow for a platform. ROLE_ADMIN or ROLE_MARKETING_MANAGER.

marketing:mutation:connectPlatform

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

type Mutation {
connectPlatform(platform: Platform!, redirectUri: String!): ConnectPlatformResult!
}
Argument Type Required Description
platform Platform! Yes —
redirectUri String! Yes —

ConnectPlatformResult! — see the Marketing types reference.

Terminal window
curl https://marketing.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation ConnectPlatform($platform: Platform!, $redirectUri: String!) { connectPlatform(platform: $platform, redirectUri: $redirectUri) { authorizeUrl state } }",
"variables": {
"platform": "META",
"redirectUri": "example"
}
}
JSON