Skip to content
gist.link ↗

Marketing API

Paid marketing across ad platforms: connections, campaigns, and insights.

Endpoint POST https://marketing.api.gist.link/graphql
Token audience audience=marketing
Permission prefix marketing:

Mint an access token for this API with your IAM key and audience=marketing — see Authentication.

Operation Required permission Description
adAccounts marketing:query:adAccounts Ad accounts discovered under one connection. Any authenticated org member.
campaign marketing:query:campaign A single campaign (with nested adSets/ads), or null if not found. Any authenticated org member.
campaigns marketing:query:campaigns Cursor-paginated, filterable/sortable campaigns. Any authenticated org member.
connections marketing:query:connections This organization’s platform connections. Any authenticated org member.
insights marketing:query:insights Cross-channel insight aggregation, one bucket per (groupKey, currency). Any authenticated org member.
platforms marketing:query:platforms Every registered ad platform connector key. Any authenticated org member.
syncJobs marketing:query:syncJobs Cursor-paginated sync job history. Any authenticated org member (see SyncJobResolver for connection-less-job visibility).
Operation Required permission Description
connectPlatform marketing:mutation:connectPlatform Start the OAuth connect flow for a platform. ROLE_ADMIN or ROLE_MARKETING_MANAGER.
createCampaign marketing:mutation:createCampaign Create a normalized campaign locally (not yet pushed to the platform). ROLE_ADMIN or ROLE_MARKETING_MANAGER.
createCreative marketing:mutation:createCreative Create a creative. ROLE_ADMIN or ROLE_MARKETING_MANAGER.
disconnectPlatform marketing:mutation:disconnectPlatform Soft-revoke a platform connection (see PlatformConnection.status). ROLE_ADMIN or ROLE_MARKETING_MANAGER.
pauseCampaign marketing:mutation:pauseCampaign Pause a campaign locally and enqueue an async platform pause. ROLE_ADMIN or ROLE_MARKETING_MANAGER.
resumeCampaign marketing:mutation:resumeCampaign Resume (reactivate) a campaign locally and enqueue an async platform push. ROLE_ADMIN or ROLE_MARKETING_MANAGER.
syncInsights marketing:mutation:syncInsights Enqueue an insights sync for a connection (optionally scoped to one ad account). ROLE_ADMIN or ROLE_MARKETING_MANAGER.
updateCampaign marketing:mutation:updateCampaign Update a campaign’s local fields. ROLE_ADMIN or ROLE_MARKETING_MANAGER.
updateCreative marketing:mutation:updateCreative Update a creative. ROLE_ADMIN or ROLE_MARKETING_MANAGER.