diff --git a/openapi.yaml b/openapi.yaml index d9ca1782..46d636bf 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: Zernio API - version: "1.792.1" + version: "1.793.0" description: | API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api @@ -35947,6 +35947,7 @@ paths: /v1/tools/validate/post-length: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: validatePostLength tags: [Validate] summary: Validate character count @@ -36016,6 +36017,7 @@ paths: /v1/tools/validate/post: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: validatePost tags: [Validate] summary: Validate post content @@ -36111,6 +36113,7 @@ paths: /v1/tools/validate/media: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: validateMedia tags: [Validate] summary: Validate media URL @@ -36186,6 +36189,7 @@ paths: /v1/tools/validate/subreddit: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: validateSubreddit tags: [Validate] summary: Check subreddit existence @@ -36246,6 +36250,7 @@ paths: /v1/metrics/catalog: get: x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getMetricsCatalog tags: - Metrics @@ -36394,6 +36399,7 @@ paths: /v1/metrics/posts: get: x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getPostMetrics tags: - Metrics @@ -36844,6 +36850,7 @@ paths: /v1/metrics/accounts: get: x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getAccountMetrics tags: - Metrics @@ -37038,6 +37045,7 @@ paths: /v1/metrics/insights: get: x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getInsightMetrics tags: - Metrics @@ -37362,6 +37370,7 @@ paths: /v1/metrics/inbox: get: x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getInboxMetrics tags: - Metrics @@ -37559,6 +37568,7 @@ paths: /v1/metrics/ads: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdMetrics tags: - Metrics @@ -37710,6 +37720,7 @@ paths: /v1/metrics/campaigns: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignMetrics tags: - Metrics @@ -37807,6 +37818,7 @@ paths: /v1/metrics/ad-sets: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdSetMetrics tags: - Metrics @@ -37896,6 +37908,7 @@ paths: /v1/metrics/ad-accounts: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountMetrics tags: - Metrics @@ -37952,6 +37965,7 @@ paths: /v1/metrics/platform-queries/meta-ads: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: queryMetaAds tags: - Metrics @@ -38026,6 +38040,7 @@ paths: /v1/metrics/platform-queries/google-ads: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: queryGoogleAds tags: - Metrics @@ -38099,6 +38114,7 @@ paths: /v1/metrics/platform-queries/tiktok-ads: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: queryTikTokAds tags: - Metrics @@ -38179,6 +38195,7 @@ paths: /v1/metrics/platform-queries/google-analytics: post: x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: queryGoogleAnalytics tags: - Metrics @@ -38276,6 +38293,7 @@ paths: /v1/analytics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getAnalytics tags: [Analytics] summary: Get post analytics @@ -38556,6 +38574,7 @@ paths: /v1/analytics/delta: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getAnalyticsDelta tags: [Analytics] summary: Analytics changed since a cursor @@ -38738,6 +38757,7 @@ paths: /v1/analytics/youtube/channel-insights: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getYouTubeChannelInsights tags: [Analytics] summary: Get YouTube channel insights @@ -38839,6 +38859,7 @@ paths: /v1/analytics/linkedin/org-aggregate-analytics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInOrgAggregateAnalytics tags: [Analytics] summary: Get LinkedIn org analytics @@ -38955,6 +38976,7 @@ paths: /v1/analytics/tiktok/account-insights: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getTikTokAccountInsights tags: [Analytics] summary: Get TikTok account-level insights @@ -39073,6 +39095,7 @@ paths: /v1/analytics/pinterest/account-insights: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getPinterestAccountInsights tags: [Analytics] summary: Get Pinterest account-level insights @@ -39153,6 +39176,7 @@ paths: /v1/analytics/tiktok/demographics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getTikTokDemographics tags: [Analytics] summary: Get TikTok follower demographics @@ -39263,6 +39287,7 @@ paths: /v1/analytics/youtube/daily-views: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getYouTubeDailyViews tags: [Analytics] summary: Get YouTube daily views @@ -39410,6 +39435,7 @@ paths: /v1/analytics/youtube/video-retention: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getYouTubeVideoRetention tags: [Analytics] summary: Get YouTube video retention curve @@ -39569,6 +39595,7 @@ paths: /v1/analytics/facebook/page-insights: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFacebookPageInsights tags: [Analytics] summary: Get Facebook Page insights @@ -39753,6 +39780,7 @@ paths: /v1/analytics/facebook/post-earnings: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFacebookPostEarnings tags: [Analytics] summary: Get Facebook post monetization earnings @@ -39867,6 +39895,7 @@ paths: /v1/analytics/instagram/account-insights: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramAccountInsights tags: [Analytics] summary: Get Instagram insights @@ -40028,6 +40057,7 @@ paths: /v1/analytics/instagram/follower-history: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramFollowerHistory tags: [Analytics] summary: Get Instagram follower history @@ -40099,6 +40129,7 @@ paths: /v1/analytics/facebook/demographics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFacebookDemographics tags: [Analytics] summary: Get Facebook Page demographics @@ -40202,6 +40233,7 @@ paths: /v1/analytics/linkedin/demographics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInDemographics tags: [Analytics] summary: Get LinkedIn organization follower demographics @@ -40309,6 +40341,7 @@ paths: /v1/analytics/instagram/demographics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramDemographics tags: [Analytics] summary: Get Instagram demographics @@ -40431,6 +40464,7 @@ paths: /v1/analytics/instagram/online-followers: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramOnlineFollowers tags: [Analytics] summary: Get Instagram online followers @@ -40515,6 +40549,7 @@ paths: /v1/analytics/youtube/demographics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getYouTubeDemographics tags: [Analytics] summary: Get YouTube demographics @@ -40686,6 +40721,7 @@ paths: /v1/analytics/daily-metrics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getDailyMetrics tags: [Analytics] summary: Get daily aggregated metrics @@ -40849,6 +40885,7 @@ paths: /v1/analytics/dashboard: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getAnalyticsDashboard tags: [Analytics] summary: Get an analytics dashboard @@ -40969,6 +41006,7 @@ paths: /v1/analytics/best-time: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getBestTimeToPost tags: [Analytics] summary: Get best times to post @@ -41047,6 +41085,7 @@ paths: /v1/analytics/content-decay: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getContentDecay tags: [Analytics] summary: Get content performance decay @@ -41142,6 +41181,7 @@ paths: /v1/analytics/posting-frequency: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getPostingFrequency tags: [Analytics] summary: Get frequency vs engagement @@ -41224,6 +41264,7 @@ paths: /v1/ledger/balances: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getLedgerBalances tags: [Ledger] summary: Get ledger balances @@ -41270,6 +41311,7 @@ paths: /v1/ledger/entries: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: listLedgerEntries tags: [Ledger] summary: List ledger entries @@ -41345,6 +41387,7 @@ paths: /v1/balance: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getBalance tags: [Treasury] summary: Get balance @@ -41425,6 +41468,7 @@ paths: /v1/balance/auto-recharge: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getAutoRecharge tags: [Treasury] summary: Get auto top-up settings @@ -41453,6 +41497,7 @@ paths: '409': { description: 'Code `balance_billing_required`: the account is not on the prepaid balance.' } patch: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: updateAutoRecharge tags: [Treasury] summary: Update auto top-up settings @@ -41506,6 +41551,7 @@ paths: /v1/balance/top-ups: post: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: createTopup tags: [Treasury] summary: Add funds @@ -41583,6 +41629,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: listTopups tags: [Treasury] summary: List top-ups @@ -41612,6 +41659,7 @@ paths: /v1/balance/top-ups/preview: post: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: previewTopup tags: [Treasury] summary: Preview a top-up's tax @@ -41653,6 +41701,7 @@ paths: /v1/balance/top-ups/{topupId}/receipt: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getTopupReceipt tags: [Treasury] summary: Get a top-up receipt @@ -41696,6 +41745,7 @@ paths: /v1/balance/top-ups/{topupId}/invoice: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getTopupInvoice tags: [Treasury] summary: Get a top-up invoice @@ -41739,6 +41789,7 @@ paths: /v1/balance/top-ups/{topupId}/statement: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getTopupStatement tags: [Treasury] summary: Get a top-up invoice (alias) @@ -41785,6 +41836,7 @@ paths: /v1/balance/top-ups/{topupId}/confirm: post: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: confirmTopup tags: [Treasury] summary: Confirm a top-up @@ -41817,6 +41869,7 @@ paths: /v1/balance/top-ups/{topupId}/cancel: post: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: cancelTopup tags: [Treasury] summary: Cancel a top-up @@ -41854,6 +41907,7 @@ paths: /v1/payees: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: listPayees tags: [Treasury] summary: List payees @@ -41875,6 +41929,7 @@ paths: /v1/payees/{payeeId}/onboarding-link: post: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: createPayeeOnboardingLink tags: [Treasury] summary: Create a payee onboarding link @@ -41904,6 +41959,7 @@ paths: /v1/transfers: post: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: createTransfer tags: [Treasury] summary: Create a transfer (removed) @@ -41940,6 +41996,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: listTransfers tags: [Treasury] summary: List transfers @@ -41969,6 +42026,7 @@ paths: /v1/transfers/{transferId}: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getTransfer tags: [Treasury] summary: Get a transfer @@ -42644,6 +42702,7 @@ paths: /v1/payout-batches/{batchId}: get: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getPayoutBatch tags: [Treasury] summary: Get a payout batch @@ -42675,6 +42734,7 @@ paths: /v1/payout-batches/{batchId}/confirm: post: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: confirmPayoutBatch tags: [Treasury] summary: Confirm a payout batch payment @@ -42711,6 +42771,7 @@ paths: /v1/payout-batches/{batchId}/cancel: post: x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: cancelPayoutBatch tags: [Treasury] summary: Cancel an unpaid payout batch @@ -42749,6 +42810,7 @@ paths: /v1/analytics/post-timeline: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getPostTimeline tags: [Analytics] summary: Get post analytics timeline @@ -42932,6 +42994,7 @@ paths: /v1/analytics/googleanalytics/report: post: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: runGoogleAnalyticsReport tags: [Analytics] summary: Run a Google Analytics (GA4) report @@ -43004,6 +43067,7 @@ paths: /v1/analytics/googleanalytics/realtime: post: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: runGoogleAnalyticsRealtimeReport tags: [Analytics] summary: Run a Google Analytics (GA4) realtime report @@ -43057,6 +43121,7 @@ paths: /v1/analytics/googleanalytics/metadata: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getGoogleAnalyticsMetadata tags: [Analytics] summary: List Google Analytics (GA4) dimensions and metrics @@ -43116,6 +43181,7 @@ paths: /v1/analytics/googlesearchconsole/search-analytics: post: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: queryGoogleSearchConsoleSearchAnalytics tags: [Analytics] x-platforms: [googlesearchconsole] @@ -43247,6 +43313,7 @@ paths: /v1/analytics/googlesearchconsole/sitemaps: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listGoogleSearchConsoleSitemaps tags: [Analytics] x-platforms: [googlesearchconsole] @@ -43312,6 +43379,7 @@ paths: /v1/analytics/googlesearchconsole/url-inspection: post: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: inspectGoogleSearchConsoleUrl tags: [Analytics] x-platforms: [googlesearchconsole] @@ -43372,6 +43440,7 @@ paths: /v1/analytics/tracking: post: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: openTrackingWindow tags: [Analytics] x-platforms: [instagram, facebook, tiktok, youtube, twitter, threads, pinterest, reddit, bluesky, googlebusiness, linkedin] @@ -43450,6 +43519,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listTrackingWindows tags: [Analytics] x-platforms: [instagram, facebook, tiktok, youtube, twitter, threads, pinterest, reddit, bluesky, googlebusiness, linkedin] @@ -43498,6 +43568,7 @@ paths: /v1/analytics/tracking/{windowId}: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getTrackingWindow tags: [Analytics] x-platforms: [instagram, facebook, tiktok, youtube, twitter, threads, pinterest, reddit, bluesky, googlebusiness, linkedin] @@ -43531,6 +43602,7 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } delete: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: cancelTrackingWindow tags: [Analytics] x-platforms: [instagram, facebook, tiktok, youtube, twitter, threads, pinterest, reddit, bluesky, googlebusiness, linkedin] @@ -43565,6 +43637,7 @@ paths: /v1/analytics/samples: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getPostSamples tags: [Analytics] x-platforms: [instagram, facebook, tiktok, youtube, twitter, threads, pinterest, reddit, bluesky, googlebusiness, linkedin] @@ -43628,6 +43701,7 @@ paths: /v1/posts/{postId}/authenticity: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getPostAuthenticity tags: [Analytics] x-platforms: [instagram, facebook, tiktok, youtube, twitter, threads, pinterest, reddit, bluesky, googlebusiness, linkedin] @@ -43668,6 +43742,7 @@ paths: /v1/analytics/authenticity: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listPostAuthenticity tags: [Analytics] x-platforms: [instagram, facebook, tiktok, youtube, twitter, threads, pinterest, reddit, bluesky, googlebusiness, linkedin] @@ -43736,6 +43811,7 @@ paths: /v1/analytics/googlebusiness/performance: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getGoogleBusinessPerformance tags: [Analytics] summary: Get Google Business Profile performance metrics @@ -43873,6 +43949,7 @@ paths: /v1/analytics/googlebusiness/search-keywords: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getGoogleBusinessSearchKeywords tags: [Analytics] summary: Get Google Business Profile search keywords @@ -43994,6 +44071,7 @@ paths: /v1/analytics/inbox/volume: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxVolume tags: [Inbox Analytics] summary: Get inbox messaging volume @@ -44087,6 +44165,7 @@ paths: /v1/analytics/inbox/heatmap: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxHeatmap tags: [Inbox Analytics] summary: Get day × hour heatmap @@ -44163,6 +44242,7 @@ paths: /v1/analytics/inbox/source-breakdown: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxSourceBreakdown tags: [Inbox Analytics] summary: Get inbox source breakdown @@ -44240,6 +44320,7 @@ paths: /v1/analytics/inbox/response-time: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxResponseTime tags: [Inbox Analytics] summary: Get inbox response-time stats @@ -44324,6 +44405,7 @@ paths: /v1/analytics/inbox/top-accounts: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxTopAccounts tags: [Inbox Analytics] summary: Get top accounts by inbox volume @@ -44401,6 +44483,7 @@ paths: /v1/analytics/inbox/conversations: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxConversationAnalytics tags: [Inbox Analytics] summary: List conversation analytics @@ -44508,6 +44591,7 @@ paths: /v1/analytics/inbox/conversations/{conversationId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInboxConversationAnalytics tags: [Inbox Analytics] summary: Get conversation analytics @@ -44608,6 +44692,7 @@ paths: /v1/account-groups: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listAccountGroups tags: [Account Groups] summary: List groups @@ -44656,6 +44741,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createAccountGroup tags: [Account Groups] summary: Create group @@ -44717,6 +44803,7 @@ paths: /v1/account-groups/{groupId}: put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateAccountGroup tags: [Account Groups] summary: Update group @@ -44769,6 +44856,7 @@ paths: '409': { description: Group name already exists } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteAccountGroup tags: [Account Groups] summary: Delete group @@ -44795,6 +44883,7 @@ paths: /v1/media/presign: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getMediaPresignedUrl tags: [Media] summary: Get upload URL @@ -44853,6 +44942,7 @@ paths: /v1/reddit/search: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchReddit tags: [Reddit Search] summary: Search posts @@ -44934,6 +45024,7 @@ paths: /v1/reddit/feed: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getRedditFeed tags: [Reddit Search] summary: Get subreddit feed @@ -45027,6 +45118,7 @@ paths: /v1/reddit/comments/{postId}: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getRedditPostComments tags: [Reddit Search] summary: Get the comments of a Reddit post @@ -45159,6 +45251,7 @@ paths: /v1/billing: get: x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getBilling tags: [Usage] summary: Account billing snapshot (plan, cycle, balance, caps, status) @@ -45184,6 +45277,7 @@ paths: /v1/billing/x-pricing: get: x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getXApiPricing tags: [Usage] summary: Get X API pricing table @@ -45262,6 +45356,7 @@ paths: /v1/usage: get: x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getUsage tags: [Usage] summary: Usage snapshot (default) or billed-spend metering (with params) @@ -45394,6 +45489,7 @@ paths: /v1/usage-stats: get: x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getUsageStats tags: [Usage] summary: Get plan and usage snapshot (plan, limits, payment status) @@ -45513,6 +45609,7 @@ paths: /v1/usage/calls: get: x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getCallsUsage tags: [Usage] summary: Calling usage and cost @@ -45596,6 +45693,7 @@ paths: /v1/usage/sms: get: x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getSmsUsage tags: [Usage] summary: SMS usage (volumes) @@ -45664,6 +45762,7 @@ paths: /v1/posts: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listPosts tags: [Posts] summary: List posts @@ -45879,6 +45978,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: createPost x-selectedCodeSample: schedule x-docs: @@ -46721,6 +46821,7 @@ paths: /v1/posts/sync-external: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: syncExternalPosts tags: [Analytics] x-platforms: [instagram, facebook, tiktok, youtube, twitter, threads, pinterest, reddit, bluesky, googlebusiness, linkedin] @@ -46856,6 +46957,7 @@ paths: /v1/posts/{postId}: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getPost tags: [Posts] summary: Get post @@ -46982,6 +47084,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } put: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: updatePost tags: [Posts] summary: Update post @@ -47148,6 +47251,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: deletePost tags: [Posts] summary: Delete post @@ -47206,6 +47310,7 @@ paths: /v1/posts/bulk-upload: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: bulkUploadPosts tags: [Posts] summary: Bulk upload from CSV @@ -47342,6 +47447,7 @@ paths: /v1/posts/{postId}/retry: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: retryPost tags: [Posts] summary: Retry failed post @@ -47474,6 +47580,7 @@ paths: /v1/posts/{postId}/review: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: reviewPost tags: [Posts] summary: Approve or reject a post @@ -47524,6 +47631,7 @@ paths: /v1/posts/{postId}/unpublish: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] x-platforms: [facebook, youtube, linkedin, twitter, threads, googlebusiness, pinterest, reddit, telegram, bluesky, discord, slack] operationId: unpublishPost tags: [Posts] @@ -47599,6 +47707,7 @@ paths: /v1/posts/{postId}/pin: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] x-platforms: [facebook] operationId: pinPost tags: [Posts] @@ -47662,6 +47771,7 @@ paths: /v1/posts/{postId}/unpin: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] x-platforms: [facebook] operationId: unpinPost tags: [Posts] @@ -47725,6 +47835,7 @@ paths: /v1/posts/{postId}/edit: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] x-platforms: [twitter, discord, facebook, reddit, linkedin, telegram, pinterest, googlebusiness, youtube, slack] operationId: editPost tags: [Posts] @@ -47873,6 +47984,7 @@ paths: /v1/posts/{postId}/update-metadata: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] x-platforms: [youtube, facebook] operationId: updatePostMetadata tags: [Posts] @@ -48046,6 +48158,7 @@ paths: /v1/users: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listUsers tags: [Users] summary: List users @@ -48102,6 +48215,7 @@ paths: /v1/users/me: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getCurrentUser tags: [Users] summary: Get the current user @@ -48150,6 +48264,7 @@ paths: /v1/users/{userId}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getUser tags: [Users] summary: Get user @@ -48192,6 +48307,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: removeUser tags: [Users] summary: Remove member @@ -48254,6 +48370,7 @@ paths: /v1/profiles: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listProfiles tags: [Profiles] summary: List profiles @@ -48309,6 +48426,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createProfile tags: [Profiles] summary: Create profile @@ -48378,6 +48496,7 @@ paths: /v1/profiles/{profileId}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getProfile tags: [Profiles] summary: Get profile @@ -48407,6 +48526,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateProfile tags: [Profiles] summary: Update profile @@ -48465,6 +48585,7 @@ paths: '409': { description: "A profile with this name (code: profile_name_conflict) or this externalId (code: profile_external_id_conflict) already exists, or contentRetention cannot change now: the whole team uses zero content retention, or a Zernio number of this profile has a WhatsApp verification in progress." } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteProfile tags: [Profiles] summary: Delete profile @@ -48494,6 +48615,7 @@ paths: /v1/profiles/{profileId}/limits: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getProfileLimits tags: [Profiles] summary: Get profile call limits @@ -48533,6 +48655,7 @@ paths: /v1/accounts: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listAccounts tags: [Accounts] summary: List accounts @@ -48713,6 +48836,7 @@ paths: /v1/accounts/follower-stats: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFollowerStats tags: [Accounts, Analytics] summary: Get follower stats @@ -48808,6 +48932,7 @@ paths: /v1/accounts/{accountId}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getAccount tags: [Accounts] summary: Get account @@ -48856,6 +48981,7 @@ paths: '503': { $ref: '#/components/responses/TemporarilyUnavailable' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateAccount tags: [Accounts] summary: Update account @@ -48972,6 +49098,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: moveAccountToProfile tags: [Accounts] summary: Move account to another profile @@ -49019,6 +49146,7 @@ paths: '404': { description: Account or target profile not found } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteAccount tags: [Accounts] summary: Disconnect account @@ -49049,6 +49177,7 @@ paths: /v1/accounts/health: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getAllAccountsHealth tags: [Accounts] summary: Check accounts health @@ -49207,6 +49336,7 @@ paths: /v1/accounts/{accountId}/whatsapp/register: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: registerWhatsAppNumber tags: [WhatsApp] summary: Register a connected WhatsApp number on the Cloud API @@ -49260,6 +49390,7 @@ paths: /v1/accounts/{accountId}/whatsapp/request-code: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: requestWhatsAppVerificationCode tags: [WhatsApp] summary: Request a Meta re-verification code for a BYO WhatsApp number @@ -49333,6 +49464,7 @@ paths: /v1/accounts/{accountId}/whatsapp/verify-code: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: verifyWhatsAppNumber tags: [WhatsApp] summary: Verify the Meta re-verification code for a BYO WhatsApp number @@ -49379,6 +49511,7 @@ paths: /v1/accounts/{accountId}/health: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getAccountHealth tags: [Accounts] summary: Check account health @@ -49678,6 +49811,7 @@ paths: /v1/accounts/{accountId}/posts: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getAccountPosts tags: [Accounts] x-platforms: ["facebook", "instagram", "twitter", "bluesky", "threads", "youtube", "linkedin", "reddit", "tiktok", "pinterest"] @@ -49794,6 +49928,7 @@ paths: /v1/accounts/{accountId}/follow-status/{userId}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getInstagramFollowStatus tags: [Accounts] x-platforms: ["instagram"] @@ -49868,6 +50003,7 @@ paths: /v1/accounts/{accountId}/tiktok/commercial-music: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listTikTokCommercialMusic tags: [Accounts] summary: List trending commercial music @@ -49929,6 +50065,7 @@ paths: /v1/accounts/{accountId}/tiktok/locations: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: searchTikTokLocations tags: [Accounts] summary: Search TikTok location tags @@ -49973,6 +50110,7 @@ paths: /v1/accounts/{accountId}/tiktok/creator-info: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getTikTokCreatorInfo tags: [Accounts] summary: Get TikTok creator info @@ -50159,6 +50297,7 @@ paths: /v1/feedback: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: submitFeedback tags: [Feedback] summary: Submit feedback @@ -50795,6 +50934,7 @@ paths: /v1/content-retention: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getContentRetention tags: [Content Retention] summary: Get content retention mode @@ -50811,6 +50951,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } put: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateContentRetention tags: [Content Retention] summary: Turn zero content retention on or off @@ -51032,6 +51173,7 @@ paths: /v1/platform-invites: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createPlatformInvite tags: [Connect] summary: Create a connect link @@ -51102,6 +51244,7 @@ paths: /v1/connect/{platform}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, reddit, pinterest, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp, google, microsoft] operationId: getConnectUrl tags: [Connect] @@ -51513,6 +51656,7 @@ paths: description: Profile not found post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [instagram, twitter, threads, linkedin, youtube, tiktok, reddit, pinterest, google, microsoft] operationId: handleOAuthCallback tags: [Connect] @@ -51556,6 +51700,7 @@ paths: /v1/connect/{platform}/ads: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectAds tags: [Connect] x-platforms: [meta, linkedin, tiktok, twitter, pinterest, google, reddit, snapchat] @@ -52008,6 +52153,7 @@ paths: /v1/connect/shopify: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getShopifyConnectUrl tags: [Connect] summary: Get Shopify OAuth connect URL @@ -52076,6 +52222,7 @@ paths: /v1/connect/shopify/token: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectShopifyWithToken tags: [Connect] summary: Connect a Shopify store with a custom-app Admin token @@ -52134,6 +52281,7 @@ paths: /v1/connect/googleanalytics: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleAnalyticsConnectUrl tags: - Connect @@ -52242,6 +52390,7 @@ paths: /v1/connect/googleanalytics/properties: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleAnalyticsProperties tags: - Connect @@ -52299,6 +52448,7 @@ paths: /v1/connect/googleanalytics/select-property: post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectGoogleAnalyticsProperty tags: - Connect @@ -52354,6 +52504,7 @@ paths: /v1/connect/googlesearchconsole: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleSearchConsoleConnectUrl tags: - Connect @@ -52464,6 +52615,7 @@ paths: /v1/connect/googlesearchconsole/sites: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleSearchConsoleSites tags: - Connect @@ -52520,6 +52672,7 @@ paths: /v1/connect/googlesearchconsole/select-site: post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectGoogleSearchConsoleSite tags: - Connect @@ -52577,6 +52730,7 @@ paths: /v1/connect/campaignmanager360: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getCampaignManagerConnectUrl tags: - Connect @@ -52666,6 +52820,7 @@ paths: /v1/connect/campaignmanager360/profiles: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listCampaignManagerProfiles tags: - Connect @@ -52715,6 +52870,7 @@ paths: /v1/connect/campaignmanager360/select-profile: post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectCampaignManagerProfile tags: - Connect @@ -52766,6 +52922,7 @@ paths: /v1/connect/amazonads: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getAmazonAdsConnectUrl tags: - Connect @@ -52833,6 +52990,7 @@ paths: /v1/connect/hubspot: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getHubSpotConnectUrl tags: - Connect @@ -52909,6 +53067,7 @@ paths: /v1/connect/gohighlevel: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGohighlevelConnectUrl tags: - Connect @@ -52979,6 +53138,7 @@ paths: /v1/connect/salesforce: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getSalesforceConnectUrl tags: - Connect @@ -53064,6 +53224,7 @@ paths: /v1/connect/stripe: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getStripeConnectUrl tags: - Connect @@ -53137,6 +53298,7 @@ paths: /v1/connect/wordpress: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWordPressAuthUrl tags: [Connect] summary: Get WordPress.com OAuth connect URL @@ -53197,6 +53359,7 @@ paths: /v1/connect/wix: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWixConnectUrl tags: [Connect] summary: Get Wix site install URL @@ -53253,6 +53416,7 @@ paths: /v1/connect/webflow: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWebflowConnectUrl tags: [Connect] summary: Get Webflow OAuth URL @@ -53310,6 +53474,7 @@ paths: /v1/connect/webflow/token: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWebflowWithSiteToken tags: [Connect] summary: Connect Webflow with a site API token @@ -53393,6 +53558,7 @@ paths: /v1/connect/wordpress/token: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWordPressWithApplicationPassword tags: [Connect] summary: Connect self-hosted WordPress with an application password @@ -53451,6 +53617,7 @@ paths: /v1/connect/tiktok-ads: patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: configureTikTokAdsBrandIdentity tags: [Connect] summary: Set TikTok brand identity @@ -53522,6 +53689,7 @@ paths: /v1/connect/facebook/select-page: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listFacebookPages tags: [Connect] x-platforms: [facebook, meta] @@ -53610,6 +53778,7 @@ paths: error: { type: string } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectFacebookPage tags: [Connect] x-platforms: [facebook, meta] @@ -53786,6 +53955,7 @@ paths: /v1/connect/instagram/select-account: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listInstagramPages tags: [Connect] summary: List Pages with a linked Instagram account @@ -53864,6 +54034,7 @@ paths: '403': { description: User does not have access to the specified profile } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectInstagramAccount tags: [Connect] summary: Select the Page whose Instagram account to connect @@ -53993,6 +54164,7 @@ paths: /v1/connect/googlebusiness/locations: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleBusinessLocations tags: [Connect] summary: List Google Business Profile locations @@ -54088,6 +54260,7 @@ paths: /v1/connect/googlebusiness/select-location: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectGoogleBusinessLocation tags: [Connect] summary: Select Google Business Profile location @@ -54220,6 +54393,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getGoogleBusinessReviews tags: [GMB Reviews] summary: Get reviews @@ -54333,6 +54507,7 @@ paths: /v1/accounts/{accountId}/gmb-verifications: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessVerifications tags: [GMB Verifications] summary: Get verification state @@ -54413,6 +54588,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: startGoogleBusinessVerification tags: [GMB Verifications] summary: Start a verification @@ -54485,6 +54661,7 @@ paths: /v1/accounts/{accountId}/gmb-verifications/options: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: fetchGoogleBusinessVerificationOptions tags: [GMB Verifications] summary: Fetch verification options @@ -54550,6 +54727,7 @@ paths: /v1/accounts/{accountId}/gmb-verifications/{verificationId}/complete: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: completeGoogleBusinessVerification tags: [GMB Verifications] summary: Complete a verification @@ -54618,6 +54796,7 @@ paths: /v1/accounts/{accountId}/gmb-food-menus: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessFoodMenus tags: [GMB Food Menus] summary: Get food menus @@ -54702,6 +54881,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessFoodMenus tags: [GMB Food Menus] summary: Update food menus @@ -54795,6 +54975,7 @@ paths: /v1/accounts/{accountId}/gmb-location-details: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessLocationDetails tags: [GMB Location Details] summary: Get location details @@ -54979,6 +55160,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessLocationDetails tags: [GMB Location Details] summary: Update location details @@ -55251,6 +55433,7 @@ paths: /v1/accounts/{accountId}/gmb-media: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleBusinessMedia tags: [GMB Media] summary: List media @@ -55317,6 +55500,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createGoogleBusinessMedia tags: [GMB Media] summary: Upload photo @@ -55378,6 +55562,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteGoogleBusinessMedia tags: [GMB Media] summary: Delete photo @@ -55423,6 +55608,7 @@ paths: /v1/accounts/{accountId}/gmb-attribute-metadata: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGmbAttributeMetadata tags: [GMB Attributes] summary: Get attribute metadata @@ -55564,6 +55750,7 @@ paths: /v1/accounts/{accountId}/gmb-categories: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleBusinessCategories tags: [Connect] summary: List Google Business Profile categories @@ -55640,6 +55827,7 @@ paths: /v1/accounts/{accountId}/gmb-attributes: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessAttributes tags: [GMB Attributes] summary: Get attributes @@ -55707,6 +55895,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessAttributes tags: [GMB Attributes] summary: Update attributes @@ -55795,6 +55984,7 @@ paths: /v1/accounts/{accountId}/gmb-place-actions: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleBusinessPlaceActions tags: [GMB Place Actions] summary: List action links @@ -55862,6 +56052,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createGoogleBusinessPlaceAction tags: [GMB Place Actions] summary: Create action link @@ -55920,6 +56111,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteGoogleBusinessPlaceAction tags: [GMB Place Actions] summary: Delete action link @@ -55963,6 +56155,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessPlaceAction tags: [GMB Place Actions] summary: Update action link @@ -56028,6 +56221,7 @@ paths: /v1/accounts/{accountId}/gmb-services: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessServices tags: [GMB Services] summary: Get services @@ -56093,6 +56287,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessServices tags: [GMB Services] summary: Replace services @@ -56179,6 +56374,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews/batch: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: batchGetGoogleBusinessReviews tags: [GMB Reviews] summary: Batch get reviews @@ -56270,6 +56466,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews/{reviewId}: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getGoogleBusinessReview tags: [GMB Reviews] summary: Get a review @@ -56352,6 +56549,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews/{reviewId}/reply: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: replyToGoogleBusinessReview tags: [GMB Reviews] summary: Reply to a review @@ -56430,6 +56628,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteGoogleBusinessReviewReply tags: [GMB Reviews] summary: Delete a review reply @@ -56485,6 +56684,7 @@ paths: /v1/connect/handoffs/{handoffId}: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getConnectHandoff tags: [Connect] summary: Get a phone handoff @@ -56533,6 +56733,7 @@ paths: /v1/connect/welcome-screen: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getConnectWelcomeScreen tags: [Connect] summary: Get the saved welcome screen @@ -56550,6 +56751,7 @@ paths: $ref: '#/components/responses/Unauthorized' put: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateConnectWelcomeScreen tags: [Connect] summary: Save the welcome screen @@ -56589,6 +56791,7 @@ paths: /v1/connect/oauth-apps: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listOAuthApps tags: [Connect] summary: List your OAuth apps @@ -56634,6 +56837,7 @@ paths: $ref: '#/components/responses/Unauthorized' post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createOAuthApp tags: [Connect] summary: Add an OAuth app @@ -56702,6 +56906,7 @@ paths: schema: { type: string } get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getOAuthApp tags: [Connect] summary: Get an OAuth app @@ -56725,6 +56930,7 @@ paths: $ref: '#/components/responses/NotFound' patch: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateOAuthApp tags: [Connect] summary: Update an OAuth app @@ -56773,6 +56979,7 @@ paths: $ref: '#/components/responses/NotFound' delete: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteOAuthApp tags: [Connect] summary: Remove an OAuth app @@ -56806,6 +57013,7 @@ paths: /v1/connect/oauth-apps/{appId}/test: post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: testOAuthApp tags: [Connect] summary: Check an OAuth app's keys @@ -57013,6 +57221,7 @@ paths: /v1/connect/linkedin/select-organization: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectLinkedInOrganization tags: [Connect] summary: Select LinkedIn org @@ -57174,6 +57383,7 @@ paths: /v1/connect/pinterest/select-board: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listPinterestBoardsForSelection tags: [Connect] summary: List Pinterest boards @@ -57227,6 +57437,7 @@ paths: '500': { description: Failed to fetch boards } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectPinterestBoard tags: [Connect] summary: Select Pinterest board @@ -57336,6 +57547,7 @@ paths: /v1/connect/snapchat/select-profile: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listSnapchatProfiles tags: [Connect] summary: List Snapchat profiles @@ -57392,6 +57604,7 @@ paths: '500': { description: Failed to fetch public profiles } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectSnapchatProfile tags: [Connect] summary: Select Snapchat profile @@ -57528,6 +57741,7 @@ paths: /v1/connect/bluesky/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectBlueskyCredentials tags: [Connect] summary: Connect Bluesky account @@ -57592,6 +57806,7 @@ paths: /v1/connect/openai-ads/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectOpenAIAdsCredentials tags: [Connect] summary: Connect an OpenAI Ads account @@ -57660,6 +57875,7 @@ paths: /v1/connect/applovin-ads/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectAppLovinAdsCredentials tags: [Connect] summary: Connect an AppLovin account @@ -57753,6 +57969,7 @@ paths: /v1/connect/snapchat-ads/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectSnapchatAdsCredentials tags: [Connect] summary: Connect a Snapchat Ads pixel @@ -57821,6 +58038,7 @@ paths: /v1/connect/klaviyo/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectKlaviyoCredentials tags: [Connect] summary: Connect a Klaviyo account @@ -57882,6 +58100,7 @@ paths: /v1/connect/attentive/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectAttentiveCredentials tags: [Connect] summary: Connect an Attentive company @@ -57942,6 +58161,7 @@ paths: /v1/connect/impact/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectImpactCredentials tags: [Connect] summary: Connect an Impact program @@ -58014,6 +58234,7 @@ paths: /v1/connect/awin/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectAwinCredentials tags: [Connect] summary: Connect an Awin advertiser @@ -58078,6 +58299,7 @@ paths: /v1/connect/tradedesk-ads/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectTradeDeskAdsCredentials x-platforms: [tradedeskads] tags: [Connect] @@ -58146,6 +58368,7 @@ paths: /v1/connect/tradedesk-ads/partner: post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectTradeDeskAdsPartner x-platforms: - tradedeskdsp @@ -58248,6 +58471,7 @@ paths: /v1/connect/taboola-ads/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectTaboolaAdsCredentials tags: [Connect] summary: Connect a Taboola account @@ -58313,6 +58537,7 @@ paths: /v1/connect/whop-ads/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWhopAdsCredentials tags: [Connect] summary: Connect a Whop account @@ -58377,6 +58602,7 @@ paths: /v1/connect/whatsapp/credentials: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWhatsAppCredentials tags: [Connect] summary: Connect WhatsApp via credentials @@ -58497,6 +58723,7 @@ paths: /v1/connect/whatsapp/select-phone-number: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWhatsAppPhoneNumbers tags: [Connect] summary: List numbers for selection @@ -58581,6 +58808,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: completeWhatsAppPhoneSelection tags: [Connect] summary: Complete number selection @@ -58683,6 +58911,7 @@ paths: /v1/connect/whatsapp/embedded-signup: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWhatsAppEmbeddedSignup tags: [Connect] summary: Connect WhatsApp from Embedded Signup @@ -58748,6 +58977,7 @@ paths: /v1/connect/whatsapp/sdk-config: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppSdkConfig tags: [Connect] summary: Get Embedded Signup SDK config @@ -58788,6 +59018,7 @@ paths: /v1/connect/discord: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectDiscordChannel tags: [Connect] summary: Connect a Discord channel @@ -58827,6 +59058,7 @@ paths: /v1/connect/slack: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listSlackChannels tags: [Connect] summary: List Slack channels for the channel picker @@ -58935,6 +59167,7 @@ paths: '404': { description: 'Profile not found (start-OAuth mode), or no active Slack account with that accountId for this user or their team (code: account_not_found)' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectSlackChannel tags: [Connect] summary: Connect a Slack channel @@ -58975,6 +59208,7 @@ paths: /v1/connect/line/credentials: post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectLineCredentials tags: - Connect @@ -59106,6 +59340,7 @@ paths: /v1/connect/wechat/credentials: post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWechatCredentials tags: - Connect @@ -59240,6 +59475,7 @@ paths: /v1/connect/wechat/ip-whitelist: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWechatIpWhitelist tags: - Connect @@ -59273,6 +59509,7 @@ paths: /v1/connect/telegram: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getTelegramConnectStatus tags: [Connect] summary: Generate Telegram code @@ -59336,6 +59573,7 @@ paths: '500': { description: Internal error } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: initiateTelegramConnect tags: [Connect] summary: Connect Telegram directly @@ -59395,6 +59633,7 @@ paths: '500': { description: Internal error } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: completeTelegramConnect tags: [Connect] summary: Check Telegram status @@ -59473,6 +59712,7 @@ paths: /v1/accounts/{accountId}/webhook-subscription: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getPageWebhookSubscription tags: [Connect] x-platforms: ["facebook", "instagram"] @@ -59512,6 +59752,7 @@ paths: description: The Facebook connection has no selected Page, or the Instagram account connected through Facebook Login, is disconnected, or has no access token post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: resyncPageWebhookSubscription tags: [Connect] x-platforms: ["facebook", "instagram"] @@ -59561,6 +59802,7 @@ paths: /v1/accounts/{accountId}/business-partners: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listBusinessPartners tags: [Accounts] x-platforms: ["facebook", "instagram"] @@ -59594,6 +59836,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: grantBusinessPartner tags: [Accounts] x-platforms: ["facebook", "instagram"] @@ -59673,6 +59916,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: revokeBusinessPartner tags: [Accounts] x-platforms: ["facebook", "instagram"] @@ -59704,6 +59948,7 @@ paths: /v1/accounts/{accountId}/facebook-page: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getFacebookPages tags: [Connect] summary: List Facebook pages @@ -59776,6 +60021,7 @@ paths: '404': { description: 'Account not found, or not a facebook or metaads account' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateFacebookPage tags: [Connect] summary: Update Facebook page @@ -59835,6 +60081,7 @@ paths: /v1/accounts/{accountId}/facebook-page-info: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getFacebookPageInfo tags: [Account Settings] summary: Get a Facebook Page's public info @@ -59880,6 +60127,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateFacebookPageInfo tags: [Account Settings] summary: Update a Facebook Page's public info @@ -59958,6 +60206,7 @@ paths: /v1/accounts/{accountId}/linkedin-organizations: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getLinkedInOrganizations tags: [Connect] summary: List LinkedIn orgs @@ -60000,6 +60249,7 @@ paths: /v1/accounts/{accountId}/linkedin-aggregate-analytics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInAggregateAnalytics tags: [Analytics] summary: Get LinkedIn aggregate stats @@ -60221,6 +60471,7 @@ paths: /v1/accounts/{accountId}/linkedin-post-analytics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInPostAnalytics tags: [Analytics] summary: Get LinkedIn post stats @@ -60341,6 +60592,7 @@ paths: /v1/accounts/{accountId}/linkedin-post-reactions: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInPostReactions tags: [Analytics] summary: Get LinkedIn post reactions @@ -60445,6 +60697,7 @@ paths: /v1/accounts/{accountId}/linkedin-organization: put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateLinkedInOrganization tags: [Connect] summary: Switch LinkedIn account type @@ -60498,6 +60751,7 @@ paths: /v1/accounts/{accountId}/linkedin-mentions: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getLinkedInMentions tags: [LinkedIn Mentions] summary: Resolve LinkedIn mention @@ -60677,6 +60931,7 @@ paths: /v1/accounts/{accountId}/instagram/stories: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listInstagramStories tags: [Instagram] summary: List active Instagram stories @@ -60756,6 +61011,7 @@ paths: /v1/accounts/{accountId}/instagram/publishing-limit: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getInstagramPublishingLimit tags: [Instagram] summary: Get Instagram publishing limit @@ -60798,6 +61054,7 @@ paths: /v1/accounts/{accountId}/instagram/audio: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: searchInstagramAudio tags: [Instagram] summary: Search Instagram audio @@ -60852,6 +61109,7 @@ paths: /v1/accounts/{accountId}/instagram/audio/{audioId}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getInstagramAudio tags: [Instagram] summary: Get Instagram audio metadata @@ -60892,6 +61150,7 @@ paths: /v1/accounts/{accountId}/instagram/business-discovery: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramBusinessDiscovery tags: [Instagram] summary: Look up a public Instagram Business account @@ -60946,6 +61205,7 @@ paths: /v1/accounts/{accountId}/instagram/media/{mediaId}/collaborators: get: x-resource-group: publishing + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listInstagramMediaCollaborators tags: - Instagram @@ -61011,6 +61271,7 @@ paths: /v1/accounts/{accountId}/instagram/live-media: get: x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: listInstagramLiveMedia tags: [Instagram] summary: List the live broadcasts of an Instagram account @@ -61069,6 +61330,7 @@ paths: /v1/accounts/{accountId}/instagram/tags: get: x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: listInstagramTaggedMedia tags: [Instagram] summary: List the posts an Instagram account is tagged in @@ -61142,6 +61404,7 @@ paths: /v1/accounts/{accountId}/instagram/mentions/media/{mediaId}: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInstagramMentionedMedia tags: [Instagram] summary: Get a post that mentions an Instagram account in its caption @@ -61197,6 +61460,7 @@ paths: /v1/accounts/{accountId}/instagram/mentions/comments/{commentId}: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInstagramMentionedComment tags: [Instagram] summary: Get a comment that mentions an Instagram account @@ -61251,6 +61515,7 @@ paths: /v1/accounts/{accountId}/instagram/stories/{storyId}/insights: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramStoryInsights tags: [Instagram] summary: Get Instagram story insights @@ -61330,6 +61595,7 @@ paths: /v1/accounts/{accountId}/pinterest-boards: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getPinterestBoards tags: [Connect] summary: List Pinterest boards @@ -61373,6 +61639,7 @@ paths: '502': { description: 'Pinterest rejected or failed the request.' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updatePinterestBoards tags: [Connect] summary: Set default Pinterest board @@ -61418,6 +61685,7 @@ paths: '404': { description: Account not found } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createPinterestBoard tags: [Connect] summary: Create Pinterest board @@ -61480,6 +61748,7 @@ paths: /v1/accounts/{accountId}/youtube-captions: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getYoutubeCaptions tags: [Connect] summary: Get a YouTube video transcript @@ -61603,6 +61872,7 @@ paths: /v1/accounts/{accountId}/youtube-playlists: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getYoutubePlaylists tags: [Connect] summary: List YouTube playlists @@ -61653,6 +61923,7 @@ paths: '404': { description: Account not found } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createYoutubePlaylist tags: [Connect] summary: Create YouTube playlist @@ -61728,6 +61999,7 @@ paths: '502': { x-summary: "The YouTube request failed: check existing playlists before retrying, because the playlist may already have been created.", description: "YouTube request failed. Check existing playlists before retrying, because the playlist may have been created." } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateYoutubeDefaultPlaylist tags: [Connect] summary: Set default YouTube playlist @@ -61768,6 +62040,7 @@ paths: /v1/accounts/{accountId}/gmb-locations: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGmbLocations tags: [Connect] summary: List Google Business Profile locations @@ -61840,6 +62113,7 @@ paths: '404': { description: Account not found } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGmbLocation tags: [Connect] summary: Update Google Business Profile location @@ -61900,6 +62174,7 @@ paths: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createGoogleBusinessLocation tags: [Connect] summary: Create Google Business Profile location @@ -62035,6 +62310,7 @@ paths: /v1/accounts/{accountId}/gmb-locations/search: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: searchGoogleBusinessLocations tags: [Connect] summary: Search existing Google listings @@ -62119,6 +62395,7 @@ paths: /v1/accounts/{accountId}/gmb-locations/assign: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: assignGoogleBusinessLocation tags: [Connect] summary: Assign Google Business Profile location to another profile @@ -62205,6 +62482,7 @@ paths: /v1/accounts/{accountId}/facebook-post-reactions: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFacebookPostReactions tags: [Analytics] summary: Get Facebook post reactions @@ -62268,6 +62546,7 @@ paths: /v1/accounts/{accountId}/facebook-visitor-posts: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listFacebookVisitorPosts x-platforms: ["facebook"] tags: [Analytics] @@ -62374,6 +62653,7 @@ paths: /v1/accounts/{accountId}/facebook-tagged-posts: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listFacebookTaggedPosts tags: [Analytics] summary: List the posts a Facebook Page is tagged in @@ -62466,6 +62746,7 @@ paths: /v1/accounts/{accountId}/reddit-subreddits: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getRedditSubreddits tags: [Connect] summary: List Reddit subreddits @@ -62519,6 +62800,7 @@ paths: put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateRedditSubreddits tags: [Connect] summary: Set default subreddit @@ -62561,6 +62843,7 @@ paths: /v1/accounts/{accountId}/reddit-subreddits/{subreddit}/rules: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getSubredditRules tags: [Connect] summary: Get subreddit rules @@ -62627,6 +62910,7 @@ paths: /v1/accounts/{accountId}/reddit-vote: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: voteRedditThing tags: [Connect] summary: Vote on a Reddit post or comment @@ -62686,6 +62970,7 @@ paths: /v1/accounts/{accountId}/reddit-flairs: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getRedditFlairs tags: [Connect] summary: List subreddit flairs @@ -62736,6 +63021,7 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setRedditPostFlair tags: [Connect] summary: Set Reddit post flair @@ -62791,6 +63077,7 @@ paths: /v1/accounts/{accountId}/hubspot-settings: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getHubSpotSettings tags: - Accounts @@ -62821,6 +63108,7 @@ paths: description: Account not found patch: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateHubSpotSettings tags: - Accounts @@ -62923,6 +63211,7 @@ paths: /v1/accounts/{accountId}/hubspot-settings/contact-properties: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listHubSpotContactProperties tags: - Accounts @@ -62958,6 +63247,7 @@ paths: /v1/accounts/{accountId}/gohighlevel-settings: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGohighlevelSettings tags: - Accounts @@ -62988,6 +63278,7 @@ paths: description: Account not found patch: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGohighlevelSettings tags: - Accounts @@ -63055,6 +63346,7 @@ paths: /v1/accounts/{accountId}/gohighlevel-audiences: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listGohighlevelAudienceSyncs tags: - Accounts @@ -63086,6 +63378,7 @@ paths: description: Account not found post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: startGohighlevelAudienceSync tags: - Accounts @@ -63168,6 +63461,7 @@ paths: /v1/accounts/{accountId}/gohighlevel-audiences/{syncId}: delete: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: stopGohighlevelAudienceSync tags: - Accounts @@ -63212,6 +63506,7 @@ paths: /v1/accounts/{accountId}/gohighlevel-funnel-tracking: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getGohighlevelFunnelTracking tags: - Accounts @@ -63244,6 +63539,7 @@ paths: /v1/accounts/{accountId}/gohighlevel-funnel-tracking/verify: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: verifyGohighlevelFunnelTracking tags: - Accounts @@ -63293,6 +63589,7 @@ paths: /v1/accounts/{accountId}/gohighlevel-won-deals-backfill: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: sendGohighlevelPastWonDeals tags: - Accounts @@ -63345,6 +63642,7 @@ paths: /v1/accounts/{accountId}/salesforce-settings: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getSalesforceSettings tags: - Accounts @@ -63375,6 +63673,7 @@ paths: description: Account not found patch: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateSalesforceSettings tags: - Accounts @@ -63447,6 +63746,7 @@ paths: /v1/crm/{accountId}/contacts/search: get: x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: searchCrmContacts tags: - CRM @@ -63525,6 +63825,7 @@ paths: /v1/crm/{accountId}/contacts: post: x-resource-group: contacts + x-oauth-scopes: ["automations:write"] operationId: createCrmContact tags: - CRM @@ -63590,6 +63891,7 @@ paths: /v1/crm/{accountId}/contacts/{contactId}: get: x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getCrmContact tags: - CRM @@ -63627,6 +63929,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' patch: x-resource-group: contacts + x-oauth-scopes: ["automations:write"] operationId: updateCrmContact tags: - CRM @@ -63677,6 +63980,7 @@ paths: /v1/crm/{accountId}/contacts/{contactId}/activities: post: x-resource-group: contacts + x-oauth-scopes: ["automations:write"] operationId: createCrmActivity tags: - CRM @@ -63755,6 +64059,7 @@ paths: /v1/crm/{accountId}/deals: get: x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listCrmDeals tags: - CRM @@ -63810,6 +64115,7 @@ paths: /v1/crm/{accountId}/deals/{dealId}: get: x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getCrmDeal tags: - CRM @@ -63847,6 +64153,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' patch: x-resource-group: contacts + x-oauth-scopes: ["automations:write"] operationId: updateCrmDeal tags: - CRM @@ -63922,6 +64229,7 @@ paths: /v1/crm/{accountId}/owners: get: x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listCrmOwners tags: - CRM @@ -63968,6 +64276,7 @@ paths: /v1/accounts/{accountId}/stripe-settings: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getStripeSettings tags: - Accounts @@ -63997,6 +64306,7 @@ paths: description: Account not found patch: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateStripeSettings tags: - Accounts @@ -64046,6 +64356,7 @@ paths: /v1/accounts/{accountId}/slack-settings: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getSlackSettings tags: [Accounts] summary: Get Slack account settings @@ -64081,6 +64392,7 @@ paths: '404': { description: Account not found } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateSlackSettings tags: [Accounts] summary: Update Slack account settings @@ -64110,6 +64422,7 @@ paths: /v1/accounts/{accountId}/bluesky-settings: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getBlueskySettings tags: [Accounts] summary: Get Bluesky account settings @@ -64136,6 +64449,7 @@ paths: '404': { description: Account not found } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateBlueskySettings tags: [Accounts] summary: Update Bluesky account settings @@ -64169,6 +64483,7 @@ paths: /v1/accounts/{accountId}/discord-settings: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getDiscordSettings tags: [Discord] summary: Get Discord account settings @@ -64219,6 +64534,7 @@ paths: patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateDiscordSettings tags: [Discord] summary: Update Discord settings @@ -64289,6 +64605,7 @@ paths: /v1/accounts/{accountId}/discord-channels: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getDiscordChannels tags: [Discord] summary: List Discord guild channels @@ -64332,6 +64649,7 @@ paths: /v1/accounts/{accountId}/slack-members: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listSlackMembers tags: [Slack] summary: List Slack workspace members @@ -64380,6 +64698,7 @@ paths: /v1/discord/dms: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendDiscordDirectMessage tags: [Discord] summary: Send a Discord Direct Message @@ -64488,6 +64807,7 @@ paths: /v1/discord/guilds/{guildId}/roles: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listDiscordGuildRoles tags: [Discord] summary: List Discord guild roles @@ -64532,6 +64852,7 @@ paths: '502': { description: Discord was unreachable or returned an unclassified error. } post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: createDiscordGuildRole tags: [Discord] summary: Create a Discord guild role @@ -64584,6 +64905,7 @@ paths: /v1/discord/guilds/{guildId}/roles/{roleId}: patch: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: editDiscordGuildRole tags: [Discord] summary: Edit a Discord guild role @@ -64629,6 +64951,7 @@ paths: '502': { description: Discord was unreachable or returned an unclassified error. } delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteDiscordGuildRole tags: [Discord] summary: Delete a Discord guild role @@ -64661,6 +64984,7 @@ paths: /v1/discord/guilds/{guildId}/members: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listDiscordGuildMembers tags: [Discord] summary: List Discord guild members @@ -64701,6 +65025,7 @@ paths: /v1/discord/guilds/{guildId}/members/search: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: searchDiscordGuildMembers tags: [Discord] summary: Search Discord guild members @@ -64733,6 +65058,7 @@ paths: /v1/discord/guilds/{guildId}/members/{userId}: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getDiscordGuildMember tags: [Discord] summary: Get a Discord guild member @@ -64761,6 +65087,7 @@ paths: /v1/discord/guilds/{guildId}/members/{userId}/roles/{roleId}: put: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: addDiscordMemberRole tags: [Discord] summary: Assign a role to a guild member @@ -64800,6 +65127,7 @@ paths: delete: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: removeDiscordMemberRole tags: [Discord] summary: Remove a role from a guild member @@ -64835,6 +65163,7 @@ paths: /v1/discord/channels/{channelId}/messages/{messageId}: delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteDiscordMessage tags: [Discord] summary: Delete a Discord channel message @@ -64870,6 +65199,7 @@ paths: /v1/discord/channels/{channelId}/messages/{messageId}/crosspost: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: crosspostDiscordMessage tags: [Discord] summary: Crosspost Discord message @@ -64904,6 +65234,7 @@ paths: /v1/discord/channels/{channelId}/threads: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: createDiscordThread tags: [Discord] summary: Create a Discord public thread @@ -64959,6 +65290,7 @@ paths: /v1/discord/channels/{channelId}/pins: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listDiscordPinnedMessages tags: [Discord] summary: List pinned messages @@ -65001,6 +65333,7 @@ paths: /v1/discord/channels/{channelId}/pins/{messageId}: put: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: pinDiscordMessage tags: [Discord] summary: Pin a Discord message @@ -65037,6 +65370,7 @@ paths: delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: unpinDiscordMessage tags: [Discord] summary: Unpin a Discord message @@ -65067,6 +65401,7 @@ paths: /v1/discord/guilds/{guildId}/events: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listDiscordScheduledEvents tags: [Discord] summary: List Discord scheduled events @@ -65100,6 +65435,7 @@ paths: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: createDiscordScheduledEvent tags: [Discord] summary: Create a Discord scheduled event @@ -65185,6 +65521,7 @@ paths: /v1/discord/guilds/{guildId}/events/{eventId}: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getDiscordScheduledEvent tags: [Discord] summary: Get a Discord scheduled event @@ -65206,6 +65543,7 @@ paths: patch: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: updateDiscordScheduledEvent tags: [Discord] summary: Update a Discord scheduled event @@ -65255,6 +65593,7 @@ paths: delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteDiscordScheduledEvent tags: [Discord] summary: Delete a Discord scheduled event @@ -65282,6 +65621,7 @@ paths: /v1/queue/slots: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listQueueSlots tags: [Queue] summary: List schedules @@ -65362,6 +65702,7 @@ paths: '404': { description: Profile not found } post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: createQueueSlot tags: [Queue] summary: Create schedule @@ -65415,6 +65756,7 @@ paths: '404': { description: Profile not found } put: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: updateQueueSlot tags: [Queue] summary: Update schedule @@ -65488,6 +65830,7 @@ paths: '404': { description: Profile not found } delete: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: deleteQueueSlot tags: [Queue] summary: Delete schedule @@ -65521,6 +65864,7 @@ paths: /v1/queue/preview: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: previewQueue tags: [Queue] summary: Preview upcoming slots @@ -65564,6 +65908,7 @@ paths: /v1/queue/next-slot: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getNextQueueSlot tags: [Queue] summary: Get next available slot @@ -65602,6 +65947,7 @@ paths: /v1/webhooks/settings: get: x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: getWebhookSettings tags: [Webhooks] summary: List webhooks @@ -65644,6 +65990,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } post: x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: createWebhookSettings tags: [Webhooks] summary: Create webhook @@ -65794,6 +66141,7 @@ paths: '404': { description: 'A profile in `profileIds` (`profile_not_found`) or an account in `accountIds` (`account_not_found`) is not in your team' } put: x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: updateWebhookSettings tags: [Webhooks] summary: Update webhook @@ -65951,6 +66299,7 @@ paths: '404': { description: 'Webhook not found, or a profile in `profileIds` (`profile_not_found`) / an account in `accountIds` (`account_not_found`) is not in your team' } delete: x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: deleteWebhookSettings tags: [Webhooks] summary: Delete webhook @@ -65992,6 +66341,7 @@ paths: /v1/webhooks/logs: get: x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: getWebhookLogs tags: [Webhooks] summary: List webhook delivery logs @@ -66097,6 +66447,7 @@ paths: /v1/webhooks/logs/redeliver: post: x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: redeliverWebhookEvent tags: [Webhooks] summary: Redeliver a webhook event @@ -66173,6 +66524,7 @@ paths: /v1/webhooks/test: post: x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: testWebhook tags: [Webhooks] summary: Send test webhook @@ -66425,6 +66777,7 @@ paths: /v1/logs: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listLogs tags: [Logs] summary: List activity logs @@ -66632,6 +66985,7 @@ paths: /v1/email/threads: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailThreads tags: [Email] summary: List email threads @@ -66678,6 +67032,7 @@ paths: /v1/email/threads/{threadId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getEmailThread tags: [Email] summary: Get an email thread with its messages @@ -66706,6 +67061,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateEmailThread tags: [Email] summary: Update every message in a thread @@ -66734,6 +67090,7 @@ paths: /v1/email/messages: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailMessages tags: [Email] summary: List email messages @@ -66781,6 +67138,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendEmailMessage tags: [Email] summary: Send an email @@ -66854,6 +67212,7 @@ paths: /v1/email/messages/scheduled: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listScheduledEmails tags: [Email] summary: List scheduled emails @@ -66879,6 +67238,7 @@ paths: /v1/email/messages/scheduled/{scheduleId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getScheduledEmail tags: [Email] summary: Get a scheduled email @@ -66900,6 +67260,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: cancelScheduledEmail tags: [Email] summary: Cancel a scheduled email @@ -66924,6 +67285,7 @@ paths: /v1/email/messages/{messageId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getEmailMessage tags: [Email] summary: Get an email message @@ -66949,6 +67311,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateEmailMessage tags: [Email] summary: Mark read or starred, label, or move a message @@ -66977,6 +67340,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: trashEmailMessage tags: [Email] summary: Move a message to trash @@ -67004,6 +67368,7 @@ paths: /v1/email/messages/{messageId}/reply: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: replyEmailMessage tags: [Email] summary: Reply to a message @@ -67053,6 +67418,7 @@ paths: /v1/email/messages/{messageId}/forward: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: forwardEmailMessage tags: [Email] summary: Forward a message @@ -67090,6 +67456,7 @@ paths: /v1/email/drafts: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailDrafts tags: [Email] summary: List drafts @@ -67116,6 +67483,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createEmailDraft tags: [Email] summary: Create a draft @@ -67147,6 +67515,7 @@ paths: /v1/email/drafts/{draftId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getEmailDraft tags: [Email] summary: Get a draft @@ -67170,6 +67539,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateEmailDraft tags: [Email] summary: Update a draft @@ -67199,6 +67569,7 @@ paths: '412': { description: 'draft_conflict (stale If-Match, current draft in details.draft), or the mailbox precondition failed', content: { application/json: { schema: { $ref: '#/components/schemas/ErrorResponse' } } } } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteEmailDraft tags: [Email] summary: Delete a draft @@ -67226,6 +67597,7 @@ paths: /v1/email/drafts/{draftId}/send: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendEmailDraft tags: [Email] summary: Send a draft @@ -67277,6 +67649,7 @@ paths: /v1/email/folders: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailFolders tags: [Email] summary: List mailbox folders @@ -67306,6 +67679,7 @@ paths: /v1/email/imap/discover: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: discoverImapSettings tags: [Email] summary: Find the mail settings for an address @@ -67334,6 +67708,7 @@ paths: /v1/email/imap/accounts: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createImapAccount tags: [Email] summary: Connect an IMAP mailbox @@ -67410,6 +67785,7 @@ paths: /v1/email/labels: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailLabels tags: [Email] summary: List labels @@ -67431,6 +67807,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createEmailLabel tags: [Email] summary: Create a label @@ -67476,6 +67853,7 @@ paths: /v1/email/send-as: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailSendAs tags: [Email] summary: List send-as addresses @@ -67502,6 +67880,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: declareEmailSendAs tags: [Email] summary: Declare a send-as address @@ -67541,6 +67920,7 @@ paths: /v1/email/send-as/{email}: delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteEmailSendAs tags: [Email] summary: Remove a declared send-as address @@ -67569,6 +67949,7 @@ paths: /v1/email/shared-mailboxes: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailSharedMailboxes tags: [Email] summary: List shared mailboxes @@ -67590,6 +67971,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addEmailSharedMailbox tags: [Email] summary: Add a shared mailbox @@ -67641,6 +68023,7 @@ paths: /v1/email/signatures: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailSignatures tags: [Email] summary: List signatures @@ -67661,6 +68044,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createEmailSignature tags: [Email] summary: Create a signature @@ -67693,6 +68077,7 @@ paths: /v1/email/signatures/import: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: importEmailSignatures tags: [Email] summary: Import Gmail signatures @@ -67715,6 +68100,7 @@ paths: /v1/email/signatures/{signatureId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getEmailSignature tags: [Email] summary: Get a signature @@ -67734,6 +68120,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateEmailSignature tags: [Email] summary: Update a signature @@ -67766,6 +68153,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteEmailSignature tags: [Email] summary: Delete a signature @@ -67790,6 +68178,7 @@ paths: /v1/email/labels/{labelId}: delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteEmailLabel tags: [Email] summary: Delete a label @@ -67818,6 +68207,7 @@ paths: /v1/email/attachments/{attachmentId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: downloadEmailAttachment tags: [Email] summary: Download an attachment @@ -67840,6 +68230,7 @@ paths: /v1/calendar/calendars: get: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: listCalendars tags: [Calendar] summary: List calendars @@ -67862,6 +68253,7 @@ paths: /v1/calendar/events: get: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: listCalendarEvents tags: [Calendar] summary: List events in a window @@ -67915,6 +68307,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } post: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: createCalendarEvent tags: [Calendar] summary: Create an event @@ -67976,6 +68369,7 @@ paths: /v1/calendar/events/{eventId}: get: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: getCalendarEvent tags: [Calendar] summary: Get an event @@ -68000,6 +68394,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: updateCalendarEvent tags: [Calendar] summary: Update an event @@ -68033,6 +68428,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } delete: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: deleteCalendarEvent tags: [Calendar] summary: Delete an event @@ -68062,6 +68458,7 @@ paths: /v1/calendar/events/{eventId}/instances: get: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: listCalendarEventInstances tags: [Calendar] summary: List the occurrences of a recurring event @@ -68097,6 +68494,7 @@ paths: /v1/calendar/events/{eventId}/rsvp: post: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: rsvpCalendarEvent tags: [Calendar] summary: Respond to an invitation @@ -68133,6 +68531,7 @@ paths: /v1/calendar/free-busy: post: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: calendarFreeBusy tags: [Calendar] summary: Busy blocks for one or more accounts @@ -68208,6 +68607,7 @@ paths: /v1/calendar/availability: post: x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: calendarAvailability tags: [Calendar] summary: Find meeting slots across accounts @@ -68268,6 +68668,7 @@ paths: /v1/files: get: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: listFiles tags: [Files] summary: List files in a folder or search the drive @@ -68305,6 +68706,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: uploadFile tags: [Files] summary: Upload a file @@ -68349,6 +68751,7 @@ paths: /v1/files/folders: post: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: createFolder tags: [Files] summary: Create a folder @@ -68379,6 +68782,7 @@ paths: /v1/files/picker-sessions: post: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: createFilePickerSession tags: [Files] summary: Create a hosted Google Picker session @@ -68439,6 +68843,7 @@ paths: /v1/files/{fileId}: get: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: getFile tags: [Files] summary: Get a file or folder @@ -68462,6 +68867,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: updateFile tags: [Files] summary: Rename or move a file @@ -68495,6 +68901,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: trashFile tags: [Files] summary: Move a file to the trash @@ -68523,6 +68930,7 @@ paths: /v1/files/{fileId}/download: get: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: downloadFile tags: [Files] summary: Download a file @@ -68544,6 +68952,7 @@ paths: /v1/files/{fileId}/share-link: get: x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: getFileShareLink tags: [Files] summary: Get an anyone-with-the-link share link @@ -68568,6 +68977,7 @@ paths: /v1/connect/microsoft/admin-consent: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: startMicrosoftAdminConsent tags: [Connect] summary: Admin-consent link for a Microsoft tenant @@ -68605,6 +69015,7 @@ paths: /v1/connect/google/org: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createGoogleOrgConnection tags: [Connect] summary: Start a Google Workspace organization connection @@ -68652,6 +69063,7 @@ paths: /v1/connect/microsoft/org: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createMicrosoftOrgConnection tags: [Connect] summary: Start a Microsoft 365 organization connection @@ -68694,6 +69106,7 @@ paths: /v1/org-connections: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: listOrgConnections tags: [Connect] @@ -68718,6 +69131,7 @@ paths: - { name: orgConnectionId, in: path, required: true, schema: { type: string } } get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: getOrgConnection tags: [Connect] @@ -68737,6 +69151,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: updateOrgConnection tags: [Connect] @@ -68769,6 +69184,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: deleteOrgConnection tags: [Connect] @@ -68796,6 +69212,7 @@ paths: /v1/org-connections/{orgConnectionId}/verify: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: verifyOrgConnection tags: [Connect] @@ -68832,6 +69249,7 @@ paths: /v1/org-connections/{orgConnectionId}/users: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: listOrgConnectionUsers tags: [Connect] @@ -68869,6 +69287,7 @@ paths: /v1/org-connections/{orgConnectionId}/mailboxes: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: addOrgConnectionMailbox tags: [Connect] @@ -68901,6 +69320,7 @@ paths: /v1/inbox/conversations: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxConversations summary: List conversations description: | @@ -69118,6 +69538,7 @@ paths: description: Inbox addon required post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [twitter, bluesky, reddit, whatsapp, sms, slack, imessage, google, microsoft, imap] operationId: createInboxConversation summary: Create conversation @@ -69587,6 +70008,7 @@ paths: /v1/inbox/conversations/search: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchInboxConversations summary: Search conversations description: | @@ -69724,6 +70146,7 @@ paths: /v1/inbox/conversations/{conversationId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInboxConversation summary: Get conversation description: Retrieve details and metadata for a specific conversation. Requires accountId query parameter. @@ -69813,6 +70236,7 @@ paths: description: Conversation not found put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateInboxConversation summary: Update conversation status description: Archive or activate a conversation. Requires accountId in request body. @@ -69858,6 +70282,7 @@ paths: description: Conversation not found (WhatsApp only; other platforms upsert) delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteInboxConversation summary: Delete conversation description: | @@ -69915,6 +70340,7 @@ paths: /v1/inbox/conversations/{conversationId}/messages: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInboxConversationMessages summary: List messages description: | @@ -70192,6 +70618,7 @@ paths: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendInboxMessage summary: Send message description: | @@ -70982,6 +71409,7 @@ paths: /v1/whatsapp/media/{mediaId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppMedia tags: [WhatsApp] summary: Download WhatsApp media @@ -71022,6 +71450,7 @@ paths: /v1/inbox/conversations/{conversationId}/messages/{messageId}: patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [telegram, imessage] operationId: editInboxMessage summary: Edit message @@ -71088,6 +71517,7 @@ paths: description: Inbox addon required delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [telegram, twitter, bluesky, reddit, imessage] operationId: deleteInboxMessage summary: Delete message @@ -71138,6 +71568,7 @@ paths: /v1/inbox/conversations/{conversationId}/typing: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, instagram, telegram, whatsapp, imessage] operationId: sendTypingIndicator summary: Send typing indicator @@ -71194,6 +71625,7 @@ paths: /v1/inbox/conversations/{conversationId}/thread-control: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [whatsapp, facebook, instagram] operationId: setConversationThreadControl summary: Change who answers a conversation (handover) @@ -71291,6 +71723,7 @@ paths: /v1/inbox/conversations/{conversationId}/accept: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, instagram] operationId: acceptConversationRequest summary: Accept a message request @@ -71356,6 +71789,7 @@ paths: /v1/inbox/labels: get: x-resource-group: messages + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [facebook] operationId: listInboxLabels summary: List the Page's conversation labels @@ -71400,6 +71834,7 @@ paths: description: No Facebook Page is selected on this account (linked_account_required); reconnect it and select the Page post: x-resource-group: messages + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook] operationId: createInboxLabel summary: Create a conversation label @@ -71451,6 +71886,7 @@ paths: /v1/inbox/labels/{labelId}: delete: x-resource-group: messages + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook] operationId: deleteInboxLabel summary: Delete a conversation label @@ -71497,6 +71933,7 @@ paths: /v1/inbox/conversations/{conversationId}/labels: get: x-resource-group: messages + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [facebook] operationId: listConversationLabels summary: List the labels on a conversation @@ -71546,6 +71983,7 @@ paths: description: No Facebook Page is selected on this account (linked_account_required); reconnect it and select the Page post: x-resource-group: messages + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook] operationId: addConversationLabel summary: Add a label to a conversation @@ -71600,6 +72038,7 @@ paths: /v1/inbox/conversations/{conversationId}/labels/{labelId}: delete: x-resource-group: messages + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook] operationId: removeConversationLabel summary: Remove a label from a conversation @@ -71651,6 +72090,7 @@ paths: /v1/inbox/conversations/{conversationId}/read: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: markConversationRead summary: Mark a conversation as read description: | @@ -71708,6 +72148,7 @@ paths: /v1/inbox/conversations/{conversationId}/messages/{messageId}/reactions: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [telegram, whatsapp, instagram, facebook, slack, imessage] operationId: addMessageReaction summary: Add reaction @@ -71766,6 +72207,7 @@ paths: description: 'Account, conversation or message not found (message_not_found when messageId does not resolve to a message in this conversation)' delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [telegram, whatsapp, instagram, facebook, slack, imessage] operationId: removeMessageReaction summary: Remove reaction @@ -71821,6 +72263,7 @@ paths: /v1/media/upload-direct: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: uploadMediaDirect summary: Upload media file description: | @@ -71873,6 +72316,7 @@ paths: /v1/accounts/{accountId}/messenger-menu: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getMessengerMenu summary: Get persistent menu description: 'Get the persistent menu configuration for a Facebook Messenger or Instagram account. Instagram accounts connected through Facebook Login are read through their linked Page (Meta''s `platform=instagram`), Instagram Login accounts through the Instagram API.' @@ -71897,6 +72341,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setMessengerMenu summary: Set persistent menu description: | @@ -71934,6 +72379,7 @@ paths: description: 'The page has no Get Started button. Set one with PUT /v1/accounts/{accountId}/messenger-get-started and retry.' delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteMessengerMenu description: Removes the persistent menu from this Facebook Messenger or Instagram account. summary: Delete persistent menu @@ -71953,6 +72399,7 @@ paths: /v1/accounts/{accountId}/messenger-get-started: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getMessengerGetStarted summary: Get FB Get Started button description: 'Get the Get Started button payload for a Facebook Messenger account. `data` is null when the page has none.' @@ -71980,6 +72427,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setMessengerGetStarted summary: Set FB Get Started button description: | @@ -72024,6 +72472,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteMessengerGetStarted summary: Delete FB Get Started button description: 'Remove the Get Started button. Meta refuses while a persistent menu is set, so delete the menu first.' @@ -72053,6 +72502,7 @@ paths: /v1/accounts/{accountId}/messenger-greeting: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getMessengerGreeting summary: Get FB greeting text description: 'Get the greeting text a Facebook page shows on its Messenger welcome screen, one entry per locale. `data` is empty when the page has none.' @@ -72079,6 +72529,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setMessengerGreeting summary: Set FB greeting text description: 'Set the greeting text on a Facebook page''s Messenger welcome screen (Meta''s `greeting` Messenger Profile field). One entry must use locale `default`; add more for other locales. Meta personalises `{{user_first_name}}`, `{{user_last_name}}` and `{{user_full_name}}`. Replaces every locale already set.' @@ -72120,6 +72571,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteMessengerGreeting summary: Delete FB greeting text description: Remove the greeting text from every locale. @@ -72146,6 +72598,7 @@ paths: /v1/accounts/{accountId}/messenger-ice-breakers: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getMessengerIceBreakers summary: Get FB ice breakers description: 'Get the ice breakers (FAQ questions shown when a person opens a new Messenger thread) for a Facebook page, one entry per locale. Instagram ice breakers live at /v1/accounts/{accountId}/instagram-ice-breakers.' @@ -72172,6 +72625,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setMessengerIceBreakers summary: Set FB ice breakers description: | @@ -72220,6 +72674,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteMessengerIceBreakers summary: Delete FB ice breakers description: Remove the ice breakers from every locale. @@ -72246,6 +72701,7 @@ paths: /v1/accounts/{accountId}/instagram-ice-breakers: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getInstagramIceBreakers summary: Get IG ice breakers description: Get the ice breaker configuration for an Instagram account. @@ -72270,6 +72726,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setInstagramIceBreakers summary: Set IG ice breakers description: Set ice breakers for an Instagram account. Max 4 ice breakers, question max 80 chars. @@ -72306,6 +72763,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteInstagramIceBreakers description: Removes the ice breaker questions from an Instagram account's Messenger experience. summary: Delete IG ice breakers @@ -72325,6 +72783,7 @@ paths: /v1/accounts/{accountId}/telegram-commands: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getTelegramCommands summary: Get TG bot commands description: Get the bot commands configuration for a Telegram account. @@ -72355,6 +72814,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setTelegramCommands summary: Set TG bot commands description: Set bot commands for a Telegram account. @@ -72390,6 +72850,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteTelegramCommands description: Clears all bot commands configured for a Telegram bot account. summary: Delete TG bot commands @@ -72409,6 +72870,7 @@ paths: /v1/accounts/{accountId}/wechat-server-config: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWechatServerConfig summary: Get WeChat server config description: | @@ -72454,6 +72916,7 @@ paths: /v1/inbox/conversations/{conversationId}/messages/{messageId}/attachments/{index}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getMessageAttachment summary: Resolve message attachment description: | @@ -72537,6 +73000,7 @@ paths: /v1/inbox/comments: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxComments summary: List commented posts description: | @@ -72695,6 +73159,7 @@ paths: /v1/inbox/comments/{postId}: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInboxPostComments summary: Get post comments description: | @@ -72929,6 +73394,7 @@ paths: description: 'Upstream platform error (code platform_api_error, type platform_error)' post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: replyToInboxPost summary: Reply to comment description: | @@ -73047,6 +73513,7 @@ paths: '503': { $ref: '#/components/responses/TemporarilyUnavailable' } delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteInboxComment summary: Delete comment description: | @@ -73107,6 +73574,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}: patch: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [reddit] operationId: editInboxComment summary: Edit comment @@ -73168,6 +73636,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/moderation: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [youtube] operationId: setCommentModeration summary: Set comment moderation status @@ -73238,6 +73707,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/hide: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, instagram, threads, twitter, tiktok] operationId: hideInboxComment summary: Hide comment @@ -73289,6 +73759,7 @@ paths: description: Inbox addon required delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, instagram, threads, twitter, tiktok] operationId: unhideInboxComment summary: Unhide comment @@ -73332,6 +73803,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/pin: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [tiktok] operationId: pinInboxComment summary: Pin comment @@ -73376,6 +73848,7 @@ paths: description: Inbox addon required delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [tiktok] operationId: unpinInboxComment summary: Unpin comment @@ -73417,6 +73890,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/like: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, twitter, bluesky, reddit, linkedin, instagram, tiktok] operationId: likeInboxComment summary: Like comment @@ -73493,6 +73967,7 @@ paths: description: 'LinkedIn only: the account already holds a reaction on this target, either of a different type or one LinkedIn does not let this account read (code invalid_resource_state); remove it before creating another.' delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, twitter, bluesky, reddit, linkedin, instagram, tiktok] operationId: unlikeInboxComment summary: Unlike comment @@ -73543,6 +74018,7 @@ paths: /v1/inbox/posts/{postId}/like: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [linkedin, twitter, facebook, youtube, bluesky, instagram] operationId: likePost summary: Like post @@ -73625,6 +74101,7 @@ paths: description: 'LinkedIn only: the account already holds a reaction on this target, either of a different type or one LinkedIn does not let this account read (code invalid_resource_state); remove it before creating another.' delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [linkedin, twitter, facebook, youtube, bluesky, instagram] operationId: unlikePost summary: Unlike post @@ -73675,6 +74152,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/private-reply: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook] operationId: sendPrivateReplyToComment summary: Send private reply @@ -73946,6 +74424,7 @@ paths: /v1/twitter/retweet: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: retweetPost summary: Retweet a post description: | @@ -73982,6 +74461,7 @@ paths: '404': { description: Account not found } delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: undoRetweet summary: Undo retweet description: | @@ -74018,6 +74498,7 @@ paths: /v1/twitter/bookmark: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: bookmarkPost summary: Bookmark a tweet description: | @@ -74055,6 +74536,7 @@ paths: '404': { description: Account not found } delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: removeBookmark summary: Remove bookmark description: | @@ -74091,6 +74573,7 @@ paths: /v1/twitter/follow: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: followUser summary: Follow a user description: | @@ -74129,6 +74612,7 @@ paths: '404': { description: Account not found } delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: unfollowUser summary: Unfollow a user description: | @@ -74165,6 +74649,7 @@ paths: /v1/twitter/search: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchTweets summary: Search recent tweets description: | @@ -74278,6 +74763,7 @@ paths: /v1/twitter/tweet: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getTweet summary: Look up a tweet description: | @@ -74349,6 +74835,7 @@ paths: /v1/inbox/mentions: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxMentions summary: List mentions description: | @@ -74480,6 +74967,7 @@ paths: /v1/inbox/mentions/reply: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram] operationId: replyToMention summary: Reply to a mention @@ -74542,6 +75030,7 @@ paths: /v1/inbox/reviews: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxReviews summary: List reviews description: | @@ -74680,6 +75169,7 @@ paths: /v1/inbox/reviews/{reviewId}/reply: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: replyToInboxReview summary: Reply to review description: | @@ -74761,6 +75251,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [googlebusiness] operationId: deleteInboxReviewReply summary: Delete review reply @@ -74819,6 +75310,7 @@ paths: /v1/whatsapp/templates: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppTemplates tags: [WhatsApp] summary: List templates @@ -74891,6 +75383,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createWhatsAppTemplate tags: [WhatsApp] summary: Create template @@ -75043,6 +75536,7 @@ paths: /v1/whatsapp/templates/{templateName}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppTemplate tags: [WhatsApp] summary: Get template @@ -75126,6 +75620,7 @@ paths: '502': { x-summary: "Meta rejected the request or was unreachable: retry later, and note that Meta 4xx statuses pass through unchanged.", description: Meta rejected the request or was unreachable. Meta 4xx statuses are forwarded as-is. } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppTemplate tags: [WhatsApp] summary: Update template @@ -75246,6 +75741,7 @@ paths: '502': { x-summary: "Meta rejected the update or was unreachable: retry later, and note that Meta 4xx statuses pass through unchanged.", description: Meta rejected the update or was unreachable. Meta 4xx statuses are forwarded as-is. } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsAppTemplate tags: [WhatsApp] summary: Delete template @@ -75313,6 +75809,7 @@ paths: /v1/whatsapp/templates/id/{templateId}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppTemplateById tags: [WhatsApp] summary: Get template by id @@ -75364,6 +75861,7 @@ paths: '502': { x-summary: "Meta rejected the request or was unreachable, including for an id the account cannot access: retry later or check the id.", description: 'Meta rejected the request (including an id the account cannot access) or was unreachable. Meta 4xx statuses are forwarded as-is.' } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppTemplateById tags: [WhatsApp] summary: Update template by id @@ -75448,6 +75946,7 @@ paths: '502': { x-summary: "Meta rejected the update or was unreachable, including for an id the account cannot access: retry later or check the id.", description: 'Meta rejected the update (including an id the account cannot access) or was unreachable. Meta 4xx statuses are forwarded as-is.' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsAppTemplateById tags: [WhatsApp] summary: Delete template by id @@ -75489,6 +75988,7 @@ paths: /v1/whatsapp/calling: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppCallingConfig tags: [WhatsApp Calling] summary: Get calling config for an account @@ -75538,6 +76038,7 @@ paths: /v1/whatsapp/phone-numbers/{id}/calling: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: enableWhatsAppCallingLegacy deprecated: true tags: [WhatsApp Calling] @@ -75594,6 +76095,7 @@ paths: '422': { description: 'Not eligible to enable calling: not on usage-based billing.' } patch: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: updateWhatsAppCallingLegacy deprecated: true tags: [WhatsApp Calling] @@ -75637,6 +76139,7 @@ paths: '422': { description: Calling must be enabled before settings can be updated } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: disableWhatsAppCallingLegacy deprecated: true tags: [WhatsApp Calling] @@ -75662,6 +76165,7 @@ paths: /v1/whatsapp/call-permissions: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getWhatsAppCallPermissions tags: [WhatsApp Calling] summary: Check call permission @@ -75701,6 +76205,7 @@ paths: /v1/whatsapp/calls: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: initiateWhatsAppCall tags: [WhatsApp Calling] summary: Initiate outbound call @@ -75783,6 +76288,7 @@ paths: '502': { description: Telnyx-side originate failed; the Call doc has been marked failed. } get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppCalls tags: [WhatsApp Calling] summary: List call history for an account @@ -75842,6 +76348,7 @@ paths: /v1/whatsapp/calls/{id}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCall tags: [WhatsApp Calling] summary: Get a single call @@ -75866,6 +76373,7 @@ paths: /v1/whatsapp/calls/{id}/recording: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCallRecording tags: [WhatsApp Calling] summary: Get a call recording @@ -75900,6 +76408,7 @@ paths: /v1/whatsapp/calls/estimate: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCallEstimate tags: [WhatsApp Calling] summary: Estimate per-minute cost @@ -75938,6 +76447,7 @@ paths: /v1/calls: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listCalls tags: [Calls] summary: List all calls (unified history) @@ -75987,6 +76497,7 @@ paths: /v1/calls/{id}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getCall tags: [Calls] summary: Get a call (any channel) @@ -76021,6 +76532,7 @@ paths: /v1/calls/{id}/recording: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getCallRecording tags: [Calls] summary: Get a call recording @@ -76054,6 +76566,7 @@ paths: /v1/voice/calls: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createVoiceCall tags: [Voice] summary: Place an outbound phone call @@ -76129,6 +76642,7 @@ paths: '502': { description: Carrier-side originate failed; the call has been marked failed. } get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listVoiceCalls tags: [Voice] summary: List phone calls @@ -76174,6 +76688,7 @@ paths: /v1/voice/calls/{id}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getVoiceCall tags: [Voice] summary: Get a phone call @@ -76198,6 +76713,7 @@ paths: /v1/voice/calls/{id}/end: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: endVoiceCall tags: [Voice] summary: Hang up a live call @@ -76238,6 +76754,7 @@ paths: /v1/voice/calls/{id}/recording: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getVoiceCallRecording tags: [Voice] summary: Get a call recording @@ -76269,6 +76786,7 @@ paths: /v1/voice/calls/{id}/transfer: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: transferVoiceCall tags: [Voice] summary: Blind-transfer a live call @@ -76310,6 +76828,7 @@ paths: /v1/voice/calls/estimate: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getVoiceCallEstimate tags: [Voice] summary: Estimate call cost @@ -76401,6 +76920,7 @@ paths: /v1/voice/calls/web: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createVoiceWebSession tags: [Voice] summary: Mint a browser softphone session @@ -76432,6 +76952,7 @@ paths: /v1/voice/calls/web/inbound: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createVoiceWebInboundSession tags: [Voice] summary: Register a browser to receive calls @@ -76461,6 +76982,7 @@ paths: /v1/voice/calls/web/dial: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: dialVoiceWebCall tags: [Voice] summary: Dial from the browser softphone @@ -77208,6 +77730,7 @@ paths: /v1/sms/messages: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendSms tags: [SMS] summary: Send an SMS/MMS @@ -77279,6 +77802,7 @@ paths: /v1/rcs/brands: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listRcsBrands tags: [RCS] summary: List RCS brands @@ -77300,6 +77824,7 @@ paths: /v1/rcs/agents: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listRcsAgents tags: [RCS] summary: List RCS agents @@ -77321,6 +77846,7 @@ paths: '403': { description: 'Your plan does not include the inbox, which RCS requires.' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createRcsAgent tags: [RCS] summary: Request an RCS agent @@ -77371,6 +77897,7 @@ paths: /v1/rcs/agents/{agentId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getRcsAgent tags: [RCS] summary: Get an RCS agent @@ -77393,6 +77920,7 @@ paths: '404': { description: Agent not found } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateRcsAgent tags: [RCS] summary: Update an RCS agent @@ -77433,6 +77961,7 @@ paths: '409': { description: 'The filing is locked because it is already with the carriers' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deactivateRcsAgent tags: [RCS] summary: Deactivate an RCS agent @@ -77459,6 +77988,7 @@ paths: /v1/rcs/agents/{agentId}/launch-request: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: requestRcsAgentLaunch tags: [RCS] summary: Send the launch filing @@ -77496,6 +78026,7 @@ paths: /v1/rcs/agents/{agentId}/test-devices: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listRcsTestDevices tags: [RCS] summary: List RCS test phones @@ -77518,6 +78049,7 @@ paths: '404': { description: Agent not found } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addRcsTestDevice tags: [RCS] summary: Invite an RCS test phone @@ -77556,6 +78088,7 @@ paths: /v1/rcs/agents/{agentId}/test-devices/{testDeviceId}: delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: removeRcsTestDevice tags: [RCS] summary: Remove an RCS test phone @@ -77581,6 +78114,7 @@ paths: /v1/rcs/assets: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: uploadRcsAsset tags: [RCS] summary: Upload an RCS logo or banner @@ -77617,6 +78151,7 @@ paths: /v1/rcs/messages: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendRcsMessage tags: [RCS] summary: Send an RCS message @@ -77678,6 +78213,7 @@ paths: /v1/rcs/capabilities: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getRcsCapabilities tags: [RCS] summary: Check RCS capability @@ -77705,6 +78241,7 @@ paths: /v1/sms/lookup: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: lookupSmsNumber tags: [SMS] summary: Look up carrier + line type @@ -77737,6 +78274,7 @@ paths: /v1/sms/opt-outs: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listSmsOptOuts tags: [SMS] summary: List SMS opt-outs @@ -77778,6 +78316,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: createSmsOptOut tags: [SMS] summary: Record an SMS opt-out @@ -77814,6 +78353,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: deleteSmsOptOut tags: [SMS] summary: Remove an SMS opt-out @@ -77854,6 +78394,7 @@ paths: /v1/sms/sender-ids: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createSmsSenderId tags: [SMS] summary: Create an alphanumeric sender ID @@ -77906,6 +78447,7 @@ paths: '422': { description: 'Sender ID rejected: it appears to impersonate a protected brand or institution.' } get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listSmsSenderIds tags: [SMS] summary: List alphanumeric sender IDs @@ -77947,6 +78489,7 @@ paths: /v1/sms/sender-ids/limit-request: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: requestSmsSenderIdLimitIncrease tags: [SMS] summary: Request a higher sender ID daily limit @@ -77984,6 +78527,7 @@ paths: /v1/sms/sender-ids/{id}: delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deleteSmsSenderId tags: [SMS] summary: Delete an alphanumeric sender ID @@ -78010,6 +78554,7 @@ paths: /v1/branded-calling/enterprises: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createBrandedCallingEnterprise tags: [Branded Calling] summary: Register a business for Branded Calling @@ -78057,6 +78602,7 @@ paths: '422': { x-summary: "The business is not registered in the US or Canada, or the Idempotency-Key was reused with a different body: fix the request.", description: 'The business is not registered in the US or Canada (code feature_not_available), or the Idempotency-Key was reused with a different body (code idempotency_key_reused).' } get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBrandedCallingEnterprises tags: [Branded Calling] summary: List registered businesses @@ -78077,6 +78623,7 @@ paths: /v1/branded-calling/enterprises/{id}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBrandedCallingEnterprise tags: [Branded Calling] summary: Get a registered business @@ -78095,6 +78642,7 @@ paths: '404': { description: Business not found } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deleteBrandedCallingEnterprise tags: [Branded Calling] summary: Delete a registered business @@ -78119,6 +78667,7 @@ paths: /v1/branded-calling/share: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: shareBrandedCallingIdentityForm tags: [Branded Calling] summary: Create a caller identity share link @@ -78164,6 +78713,7 @@ paths: /v1/branded-calling/call-reasons: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBrandedCallingCallReasons tags: [Branded Calling] summary: List pre-approved call reasons @@ -78183,6 +78733,7 @@ paths: /v1/branded-calling/identities: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createBrandedCallingIdentity tags: [Branded Calling] summary: Create a caller identity @@ -78249,6 +78800,7 @@ paths: '422': { description: 'The logo could not be downloaded or is not an image, or the Idempotency-Key was reused with a different body (code idempotency_key_reused).' } get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBrandedCallingIdentities tags: [Branded Calling] summary: List caller identities @@ -78269,6 +78821,7 @@ paths: /v1/branded-calling/identities/preflight: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: preflightBrandedCallingIdentity tags: [Branded Calling] summary: Dry-run a caller identity before creating it @@ -78327,6 +78880,7 @@ paths: /v1/branded-calling/identities/{id}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBrandedCallingIdentity tags: [Branded Calling] summary: Get a caller identity @@ -78346,6 +78900,7 @@ paths: '404': { description: Identity not found } patch: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: updateBrandedCallingIdentity tags: [Branded Calling] summary: Edit or resubmit a caller identity @@ -78397,6 +78952,7 @@ paths: '422': { x-summary: "The reviewAnswers names a point id that is not on the open change request, or no open request exists: fix the ids.", description: 'reviewAnswers names a point id that is not on the open change request, or there is no open request (code invalid_field_value, param reviewAnswers).' } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deleteBrandedCallingIdentity tags: [Branded Calling] summary: Delete a caller identity @@ -78421,6 +78977,7 @@ paths: /v1/branded-calling/identities/{id}/verify-email: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: resendBrandedCallingAuthorizerCode tags: [Branded Calling] summary: Resend the authorizer's code @@ -78445,6 +79002,7 @@ paths: /v1/branded-calling/identities/{id}/verify-email/confirm: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: confirmBrandedCallingAuthorizerEmail tags: [Branded Calling] summary: Confirm the authorizer's code @@ -78479,6 +79037,7 @@ paths: /v1/branded-calling/identities/{id}/numbers: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBrandedCallingIdentityNumbers tags: [Branded Calling] summary: List the numbers on a caller identity @@ -78502,6 +79061,7 @@ paths: '404': { description: Identity not found } post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: attachBrandedCallingNumbers tags: [Branded Calling] summary: Attach numbers to a verified identity @@ -78548,6 +79108,7 @@ paths: '422': { description: 'A number is not a US number or not active, or the carrier refused the batch (the message names the number).' } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: detachBrandedCallingNumbers tags: [Branded Calling] summary: Detach numbers from an identity @@ -78580,6 +79141,7 @@ paths: /v1/sms/registrations: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: startSmsRegistration tags: [SMS] summary: Start a carrier registration @@ -78727,6 +79289,7 @@ paths: '409': { x-summary: "The brand already exists at the carrier and failed identity verification: reply to fix it, because a new registration would bill again.", description: 'The brand already exists at the carrier and failed identity verification (a rejected registration of yours with the same EIN or legal name); the fix is applied to that brand on reply, a new registration would file and bill a second one.' } get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listSmsRegistrations tags: [SMS] summary: List carrier registrations @@ -78789,6 +79352,7 @@ paths: /v1/sms/registrations/preflight: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: preflightSmsRegistration tags: [SMS] summary: Pre-check a carrier registration @@ -78847,6 +79411,7 @@ paths: /v1/sms/registrations/{id}: delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deactivateSmsRegistration tags: [SMS] summary: Deactivate a brand/campaign registration @@ -78874,6 +79439,7 @@ paths: '404': { description: Registration not found } get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getSmsRegistration tags: [SMS] summary: Get a carrier registration @@ -78922,6 +79488,7 @@ paths: /v1/sms/registrations/{id}/verify-otp: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: verifySmsRegistrationOtp tags: [SMS] summary: Submit the sole-prop OTP @@ -78959,6 +79526,7 @@ paths: /v1/sms/registrations/{id}/resend-otp: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: resendSmsRegistrationOtp tags: [SMS] summary: Re-send the sole-prop OTP @@ -78989,6 +79557,7 @@ paths: /v1/sms/registrations/{id}/appeal: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: appealSmsRegistration tags: [SMS] summary: Appeal a rejected campaign @@ -79037,6 +79606,7 @@ paths: /v1/sms/registrations/{id}/respond: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: respondToSmsRegistrationReview tags: [SMS] summary: Reply to a change request @@ -79103,6 +79673,7 @@ paths: /v1/sms/opt-in-proof: post: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: uploadSmsOptInProofFile tags: [SMS] summary: Upload opt-in form proof @@ -79138,6 +79709,7 @@ paths: /v1/sms/registrations/{id}/opt-in-proof: post: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: uploadSmsOptInProof tags: [SMS] summary: Upload opt-in form proof for an appeal @@ -79176,6 +79748,7 @@ paths: /v1/sms/registrations/share: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: shareSmsRegistration tags: [SMS] summary: Create a registration share link @@ -79212,6 +79785,7 @@ paths: /v1/whatsapp/template-library: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppLibraryTemplate tags: [WhatsApp Templates] summary: Look up a library template @@ -79260,6 +79834,7 @@ paths: /v1/whatsapp/catalogs: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppCatalogs tags: [WhatsApp] summary: List the catalogs linked to a WhatsApp number @@ -79294,6 +79869,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: linkWhatsAppCatalog tags: [WhatsApp] summary: Link a catalog to a WhatsApp number @@ -79329,6 +79905,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: unlinkWhatsAppCatalog tags: [WhatsApp] summary: Unlink a catalog from a WhatsApp number @@ -79351,6 +79928,7 @@ paths: /v1/whatsapp/commerce-settings: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCommerceSettings tags: [WhatsApp] summary: Get a number's commerce settings @@ -79375,6 +79953,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateWhatsAppCommerceSettings tags: [WhatsApp] summary: Update a number's commerce settings @@ -79408,6 +79987,7 @@ paths: /v1/whatsapp/conversational-automation: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppConversationalAutomation tags: [WhatsApp] summary: Get ice breakers and commands @@ -79433,6 +80013,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setWhatsAppConversationalAutomation tags: [WhatsApp] summary: Set ice breakers and commands @@ -79469,6 +80050,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsAppConversationalAutomation tags: [WhatsApp] summary: Clear ice breakers and commands @@ -79496,6 +80078,7 @@ paths: /v1/whatsapp/business-profile: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppBusinessProfile tags: [WhatsApp] summary: Get business profile @@ -79537,6 +80120,7 @@ paths: '404': { description: WhatsApp account not found } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppBusinessProfile tags: [WhatsApp] summary: Update business profile @@ -79609,6 +80193,7 @@ paths: /v1/whatsapp/business-profile/photo: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: uploadWhatsAppProfilePhoto tags: [WhatsApp] summary: Upload profile picture @@ -79668,6 +80253,7 @@ paths: /v1/whatsapp/business-profile/display-name: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppDisplayName tags: [WhatsApp] summary: Get display name status @@ -79706,6 +80292,7 @@ paths: '404': { description: WhatsApp account not found or accountId is not a valid ObjectId } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppDisplayName tags: [WhatsApp] summary: Request display name change @@ -79756,6 +80343,7 @@ paths: /v1/whatsapp/business-profile/username: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsappBusinessUsername tags: [WhatsApp] summary: Get business username @@ -79794,6 +80382,7 @@ paths: '404': { description: WhatsApp account not found } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setWhatsappBusinessUsername tags: [WhatsApp] summary: Set business username @@ -79875,6 +80464,7 @@ paths: '404': { description: WhatsApp account not found } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsappBusinessUsername tags: [WhatsApp] summary: Delete business username @@ -79914,6 +80504,7 @@ paths: /v1/whatsapp/business-profile/username/suggestions: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsappBusinessUsernameSuggestions tags: [WhatsApp] summary: Get username suggestions @@ -79951,6 +80542,7 @@ paths: /v1/whatsapp/number-info: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getWhatsAppNumberInfo tags: [WhatsApp Phone Numbers] summary: Get number status @@ -80017,6 +80609,7 @@ paths: /v1/whatsapp/pricing-analytics: get: x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getWhatsAppPricingAnalytics tags: [WhatsApp Phone Numbers] summary: Get pricing analytics @@ -80123,6 +80716,7 @@ paths: /v1/whatsapp/block-users/status: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getWhatsAppBlockStatus tags: [WhatsApp] summary: Check if a user is blocked @@ -80152,6 +80746,7 @@ paths: /v1/whatsapp/block-users: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getWhatsAppBlockedUsers tags: [WhatsApp] summary: List blocked users @@ -80184,6 +80779,7 @@ paths: '404': { description: WhatsApp account not found } post: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: blockWhatsAppUsers tags: [WhatsApp] summary: Block users @@ -80242,6 +80838,7 @@ paths: '404': { description: WhatsApp account not found } delete: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: unblockWhatsAppUsers tags: [WhatsApp] summary: Unblock users @@ -80296,6 +80893,7 @@ paths: /v1/whatsapp/account-events: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppAccountEvents tags: [WhatsApp] summary: List account notifications @@ -80339,6 +80937,7 @@ paths: /v1/whatsapp/dataset: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppDataset tags: [WhatsApp] summary: Get CTWA conversions dataset @@ -80367,6 +80966,7 @@ paths: '404': { description: WhatsApp account not found } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createWhatsAppDataset tags: [WhatsApp] summary: Provision CTWA dataset @@ -80429,6 +81029,7 @@ paths: /v1/phone-numbers: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listPhoneNumbers tags: [Phone Numbers] summary: List phone numbers @@ -80518,6 +81119,7 @@ paths: /v1/phone-numbers/{id}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumber tags: [Phone Numbers] summary: Get phone number @@ -80567,6 +81169,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: releasePhoneNumber tags: [Phone Numbers] summary: Release phone number @@ -80610,6 +81213,7 @@ paths: /v1/phone-numbers/purchase: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: purchasePhoneNumber tags: [Phone Numbers] summary: Purchase phone number @@ -80839,6 +81443,7 @@ paths: /v1/phone-numbers/claims/{claimId}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberClaim tags: [Phone Numbers] summary: Resolve a number claim @@ -80882,6 +81487,7 @@ paths: /v1/phone-numbers/countries: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listPhoneNumberCountries tags: [Phone Numbers] summary: List offerable number countries @@ -80947,6 +81553,7 @@ paths: /v1/phone-numbers/available: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchAvailablePhoneNumbers tags: [Phone Numbers] summary: Search available numbers @@ -81014,6 +81621,7 @@ paths: /v1/phone-numbers/availability: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: checkPhoneNumberAvailability tags: [Phone Numbers] summary: Check country availability @@ -81131,6 +81739,7 @@ paths: /v1/whatsapp/phone-numbers: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppPhoneNumbers deprecated: true tags: [WhatsApp Phone Numbers] @@ -81225,6 +81834,7 @@ paths: /v1/whatsapp/phone-numbers/purchase: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: purchaseWhatsAppPhoneNumber deprecated: true tags: [WhatsApp Phone Numbers] @@ -81382,6 +81992,7 @@ paths: /v1/whatsapp/phone-numbers/countries: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppNumberCountries deprecated: true tags: [WhatsApp Phone Numbers] @@ -81419,6 +82030,7 @@ paths: /v1/whatsapp/phone-numbers/available: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchAvailableWhatsAppNumbers deprecated: true tags: [WhatsApp Phone Numbers] @@ -81465,6 +82077,7 @@ paths: /v1/whatsapp/phone-numbers/availability: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: checkWhatsAppNumberAvailability deprecated: true tags: [WhatsApp Phone Numbers] @@ -81578,6 +82191,7 @@ paths: /v1/phone-numbers/kyc: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberKycForm tags: [Phone Numbers] summary: Get KYC form spec @@ -81655,6 +82269,7 @@ paths: '404': { description: Profile not found or access denied. } post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: submitPhoneNumberKyc tags: [Phone Numbers] summary: Submit KYC @@ -81766,6 +82381,7 @@ paths: /v1/phone-numbers/kyc/document/{documentId}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: viewPhoneNumberKycDocument tags: [Phone Numbers] summary: View a KYC document on file @@ -81794,6 +82410,7 @@ paths: /v1/phone-numbers/kyc/upload-document: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: uploadPhoneNumberKycDocument tags: [Phone Numbers] summary: Upload a KYC document @@ -81829,6 +82446,7 @@ paths: /v1/phone-numbers/kyc/validate-address: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: validatePhoneNumberKycAddress tags: [Phone Numbers] summary: Pre-validate KYC address @@ -81900,6 +82518,7 @@ paths: /v1/phone-numbers/kyc/share: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createPhoneNumberKycLink tags: [Phone Numbers] summary: Create a hosted KYC link @@ -81972,6 +82591,7 @@ paths: /v1/phone-numbers/port-in: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createPhoneNumberPortIn tags: [Phone Numbers] summary: Port numbers in @@ -82086,6 +82706,7 @@ paths: '422': { description: "A number is not portable (reason included), numbers span multiple non-US/CA countries, or every split order failed to submit" } get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listPhoneNumberPortIns tags: [Phone Numbers] summary: List port-in orders @@ -82123,6 +82744,7 @@ paths: /v1/phone-numbers/port-in/check: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: checkPhoneNumberPortability tags: [Phone Numbers] summary: Check portability @@ -82201,6 +82823,7 @@ paths: /v1/phone-numbers/port-in/claims/{claimId}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberPortClaim tags: [Phone Numbers] summary: Resolve a port claim @@ -82230,6 +82853,7 @@ paths: /v1/phone-numbers/port-in/documents: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: uploadPhoneNumberPortInDocument tags: [Phone Numbers] summary: Upload a porting document @@ -82272,6 +82896,7 @@ paths: /v1/phone-numbers/port-in/requirements: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberPortInRequirements tags: [Phone Numbers] summary: Country porting requirements @@ -82319,6 +82944,7 @@ paths: /v1/phone-numbers/port-in/{id}/requirements: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberPortInOrderRequirements tags: [Phone Numbers] summary: A port-in order's pending requirements @@ -82361,6 +82987,7 @@ paths: /v1/phone-numbers/port-in/{id}: delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: cancelPhoneNumberPortIn tags: [Phone Numbers] summary: Cancel a port-in @@ -82391,6 +83018,7 @@ paths: /v1/phone-numbers/kyc/review-packet: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: reviewPhoneNumberKycPacket tags: [Phone Numbers] summary: Pre-review a KYC packet @@ -82445,6 +83073,7 @@ paths: /v1/phone-numbers/{id}/remediate: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberRemediation tags: [Phone Numbers] summary: Get declined requirements @@ -82476,6 +83105,7 @@ paths: '404': { description: Number not found } post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: remediatePhoneNumber tags: [Phone Numbers] summary: Resubmit a declined number @@ -82522,6 +83152,7 @@ paths: /v1/phone-numbers/{id}/remediate/reply: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: replyToPhoneNumberReviewer tags: [Phone Numbers] summary: Reply to the regulatory reviewer @@ -82576,6 +83207,7 @@ paths: /v1/phone-numbers/{id}/remediate/respond: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: respondToPhoneNumberReviewer tags: [Phone Numbers] summary: Respond to the regulatory reviewer (message + corrections) @@ -82659,6 +83291,7 @@ paths: /v1/whatsapp/phone-numbers/kyc: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppNumberKycForm deprecated: true tags: [WhatsApp Phone Numbers] @@ -82740,6 +83373,7 @@ paths: '404': { description: Profile not found or access denied. } post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: submitWhatsAppNumberKyc deprecated: true tags: [WhatsApp Phone Numbers] @@ -82855,6 +83489,7 @@ paths: /v1/whatsapp/phone-numbers/kyc/upload-document: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: uploadWhatsAppNumberKycDocument deprecated: true tags: [WhatsApp Phone Numbers] @@ -82895,6 +83530,7 @@ paths: /v1/whatsapp/phone-numbers/kyc/validate-address: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: validateWhatsAppNumberKycAddress deprecated: true tags: [WhatsApp Phone Numbers] @@ -82968,6 +83604,7 @@ paths: /v1/whatsapp/phone-numbers/kyc/share: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createWhatsAppNumberKycLink deprecated: true tags: [WhatsApp Phone Numbers] @@ -83038,6 +83675,7 @@ paths: /v1/whatsapp/phone-numbers/{id}/profile: patch: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: moveWhatsAppNumberToProfile tags: [WhatsApp Phone Numbers] summary: Move a number to another profile @@ -83096,6 +83734,7 @@ paths: /v1/whatsapp/phone-numbers/{id}/remediate: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppNumberRemediation deprecated: true tags: [WhatsApp Phone Numbers] @@ -83130,6 +83769,7 @@ paths: '404': { description: Number not found } post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: remediateWhatsAppNumber deprecated: true tags: [WhatsApp Phone Numbers] @@ -83181,6 +83821,7 @@ paths: /v1/phone-numbers/{id}/voice: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: enableVoiceOnNumber tags: [Voice] summary: Enable phone calling on a number @@ -83277,6 +83918,7 @@ paths: '422': { description: "This number is hosted by your own carrier (brought via WhatsApp embedded signup), so calls can't be enabled on it." } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: disableVoiceOnNumber tags: [Voice] summary: Disable phone calling on a number @@ -83304,6 +83946,7 @@ paths: /v1/phone-numbers/stock-watches: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createPhoneNumberStockWatch tags: [Phone Numbers] summary: Watch an out-of-stock country @@ -83362,6 +84005,7 @@ paths: '409': { x-summary: "The country or area is already in stock, so buy instead, or you reached the 20-watch limit.", description: 'The country (or the watched area) is in stock right now (buy instead of watching), or the 20-watch limit is reached (code invalid_resource_state).' } get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listPhoneNumberStockWatches tags: [Phone Numbers] summary: List stock watches @@ -83383,6 +84027,7 @@ paths: /v1/phone-numbers/stock-watches/{id}: delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deletePhoneNumberStockWatch tags: [Phone Numbers] summary: Stop watching a country @@ -83405,6 +84050,7 @@ paths: /v1/phone-numbers/sip-trunks: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createSipTrunk tags: [Voice] summary: Create a SIP trunk @@ -83465,6 +84111,7 @@ paths: '422': { x-summary: "The host cannot be a trunk destination, for example a Zernio or carrier host: use a different host.", description: 'The host cannot be used as a trunk destination (e.g. a Zernio or carrier host).' } get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listSipTrunks tags: [Voice] summary: List SIP trunks @@ -83502,6 +84149,7 @@ paths: /v1/phone-numbers/sip-trunks/{id}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getSipTrunk tags: [Voice] summary: Get a SIP trunk @@ -83541,6 +84189,7 @@ paths: '404': { description: SIP trunk not found } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deleteSipTrunk tags: [Voice] summary: Delete a SIP trunk @@ -83572,6 +84221,7 @@ paths: /v1/phone-numbers/sip-trunks/{id}/rotate-credentials: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: rotateSipTrunkCredentials tags: [Voice] summary: Rotate a SIP trunk's password @@ -83604,6 +84254,7 @@ paths: /v1/phone-numbers/{id}/sip-trunk: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: attachNumberToSipTrunk tags: [Voice] summary: Attach a number to a SIP trunk @@ -83646,6 +84297,7 @@ paths: '422': { description: 'This number is hosted by your own carrier (brought via WhatsApp embedded signup), so it cannot be trunked.' } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: detachNumberFromSipTrunk tags: [Voice] summary: Detach a number from its SIP trunk @@ -83674,6 +84326,7 @@ paths: /v1/phone-numbers/{id}/sms: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: enableSmsOnNumber tags: [SMS] summary: Enable SMS on a number @@ -83733,6 +84386,7 @@ paths: '422': { description: "This number is hosted by your own carrier (brought via WhatsApp embedded signup), so SMS can't be enabled on it." } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: disableSmsOnNumber tags: [SMS] summary: Disable SMS on a number @@ -83762,6 +84416,7 @@ paths: /v1/phone-numbers/{id}/sms/reuse-registration: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: reuseSmsRegistrationForNumber tags: [SMS] summary: Add number to SMS registration @@ -83793,6 +84448,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/request-code: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: requestPhoneNumberWhatsAppCode tags: [Phone Numbers] summary: Request the WhatsApp verification code for a number @@ -83854,6 +84510,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/calling: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCalling tags: [WhatsApp Calling] summary: Get calling config for a number @@ -83899,6 +84556,7 @@ paths: '404': { description: Number not found } post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: enableWhatsAppCalling tags: [WhatsApp Calling] summary: Enable calling on a number @@ -83952,6 +84610,7 @@ paths: '422': { description: 'Not eligible to enable calling: not on usage-based billing.' } patch: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: updateWhatsAppCalling tags: [WhatsApp Calling] summary: Update calling config @@ -83991,6 +84650,7 @@ paths: '422': { description: Calling must be enabled before settings can be updated } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: disableWhatsAppCalling tags: [WhatsApp Calling] summary: Disable calling on a number @@ -84012,6 +84672,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/caller-id-verification: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: startWhatsAppCallerIdVerification tags: [WhatsApp Calling] summary: Start caller-ID verification for a customer-brought number @@ -84053,6 +84714,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/caller-id-verification/verify: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: verifyWhatsAppCallerId tags: [WhatsApp Calling] summary: Confirm the caller-ID verification code @@ -84091,6 +84753,7 @@ paths: /v1/whatsapp/phone-numbers/{phoneNumberId}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppPhoneNumber deprecated: true tags: [WhatsApp Phone Numbers] @@ -84143,6 +84806,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: releaseWhatsAppPhoneNumber deprecated: true tags: [WhatsApp Phone Numbers] @@ -84204,6 +84868,7 @@ paths: /v1/whatsapp/sandbox/sessions: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppSandboxSessions tags: [WhatsApp Sandbox] summary: List your sandbox sessions @@ -84233,6 +84898,7 @@ paths: '403': { description: Inbox addon required } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createWhatsAppSandboxSession tags: [WhatsApp Sandbox] summary: Start a sandbox activation @@ -84288,6 +84954,7 @@ paths: /v1/whatsapp/sandbox/sessions/{sessionId}: delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteWhatsAppSandboxSession tags: [WhatsApp Sandbox] summary: Revoke a sandbox session @@ -84325,6 +84992,7 @@ paths: /v1/whatsapp/wa-groups: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppGroupChats tags: [WhatsApp] summary: List active groups @@ -84367,6 +85035,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createWhatsAppGroupChat tags: [WhatsApp] summary: Create group @@ -84411,6 +85080,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppGroupChat tags: [WhatsApp] summary: Get group info @@ -84455,6 +85125,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateWhatsAppGroupChat tags: [WhatsApp] summary: Update group settings @@ -84492,6 +85163,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteWhatsAppGroupChat tags: [WhatsApp] summary: Delete group @@ -84521,6 +85193,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}/participants: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addWhatsAppGroupParticipants tags: [WhatsApp] summary: Add participants @@ -84560,6 +85233,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: removeWhatsAppGroupParticipants tags: [WhatsApp] summary: Remove participants @@ -84600,6 +85274,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}/invite-link: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createWhatsAppGroupInviteLink tags: [WhatsApp] summary: Create invite link @@ -84628,6 +85303,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}/join-requests: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppGroupJoinRequests tags: [WhatsApp] summary: List join requests @@ -84660,6 +85336,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: approveWhatsAppGroupJoinRequests tags: [WhatsApp] summary: Approve join requests @@ -84698,6 +85375,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: rejectWhatsAppGroupJoinRequests tags: [WhatsApp] summary: Reject join requests @@ -84740,6 +85418,7 @@ paths: /v1/whatsapp/flows: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWhatsAppFlows tags: [WhatsApp Flows] summary: List flows @@ -84783,6 +85462,7 @@ paths: '404': { description: WhatsApp account not found } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createWhatsAppFlow tags: [WhatsApp Flows] summary: Create flow @@ -84845,6 +85525,7 @@ paths: /v1/whatsapp/flows/{flowId}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppFlow tags: [WhatsApp Flows] summary: Get flow @@ -84887,6 +85568,7 @@ paths: '404': { description: Flow or account not found } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppFlow tags: [WhatsApp Flows] summary: Update flow @@ -84927,6 +85609,7 @@ paths: '404': { description: WhatsApp account or flow not found } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsAppFlow tags: [WhatsApp Flows] summary: Delete flow @@ -84953,6 +85636,7 @@ paths: /v1/whatsapp/flows/{flowId}/json: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppFlowJson tags: [WhatsApp Flows] summary: Get flow JSON asset @@ -84984,6 +85668,7 @@ paths: '404': { description: WhatsApp account not found } put: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: uploadWhatsAppFlowJson tags: [WhatsApp Flows] summary: Upload flow JSON @@ -85072,6 +85757,7 @@ paths: /v1/whatsapp/flows/{flowId}/preview: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppFlowPreview tags: [WhatsApp Flows] summary: Get flow preview URL @@ -85101,6 +85787,7 @@ paths: /v1/whatsapp/flows/{flowId}/versions: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWhatsAppFlowVersions tags: [WhatsApp Flows] summary: List flow versions @@ -85138,6 +85825,7 @@ paths: /v1/whatsapp/flows/{flowId}/publish: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: publishWhatsAppFlow tags: [WhatsApp Flows] summary: Publish flow @@ -85174,6 +85862,7 @@ paths: /v1/whatsapp/flows/{flowId}/deprecate: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deprecateWhatsAppFlow tags: [WhatsApp Flows] summary: Deprecate flow @@ -85209,6 +85898,7 @@ paths: /v1/whatsapp/flows/encryption-key: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppFlowsEncryptionKey tags: [WhatsApp Flows] summary: Get Flows encryption key status @@ -85252,6 +85942,7 @@ paths: '502': { description: Meta rejected the request } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setWhatsAppFlowsEncryptionKey tags: [WhatsApp Flows] summary: Register a Flows encryption key @@ -85290,6 +85981,7 @@ paths: /v1/whatsapp/flows/send: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendWhatsAppFlowMessage tags: [WhatsApp Flows] summary: Send flow message @@ -85361,6 +86053,7 @@ paths: /v1/whatsapp/flow-responses: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppFlowResponses tags: [WhatsApp Flows] summary: List flow responses @@ -85406,6 +86099,7 @@ paths: /v1/contacts: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listContacts summary: List contacts description: List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and text search on name, email and company. @@ -85468,6 +86162,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: createContact summary: Create contact description: Create a new contact. Optionally create a platform channel in the same request by providing accountId, platform, and platformIdentifier. @@ -85529,6 +86224,7 @@ paths: /v1/contacts/groups: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listContactGroups summary: List contact groups description: |- @@ -85572,6 +86268,7 @@ paths: /v1/contacts/autocomplete: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: autocompleteContacts summary: Search people description: |- @@ -85628,6 +86325,7 @@ paths: /v1/contacts/{contactId}: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getContact summary: Get contact description: Returns a contact with all associated messaging channels. @@ -85682,6 +86380,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: updateContact summary: Update contact description: Update one or more fields on a contact. Only provided fields are changed. @@ -85729,6 +86428,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: deleteContact summary: Delete contact description: Permanently deletes a contact and all associated channels. @@ -85744,6 +86444,7 @@ paths: /v1/contacts/{contactId}/channels: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getContactChannels summary: List channels for a contact description: Returns all messaging channels linked to a contact (e.g. Instagram DM, Telegram, WhatsApp). @@ -85780,6 +86481,7 @@ paths: /v1/contacts/bulk: post: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: bulkCreateContacts summary: Bulk create contacts description: | @@ -85838,6 +86540,7 @@ paths: /v1/contacts/{contactId}/fields/{slug}: put: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: setContactFieldValue summary: Set custom field value description: Set or overwrite a custom field value on a contact. The value type must match the field definition. @@ -85860,6 +86563,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: clearContactFieldValue summary: Clear custom field value description: Remove a custom field value from a contact. The field definition is not affected. @@ -85877,6 +86581,7 @@ paths: /v1/custom-fields: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listCustomFields summary: List custom field definitions description: Returns all custom field definitions. Optionally filter by profile. @@ -85907,6 +86612,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createCustomField summary: Create custom field description: Create a new custom field definition. Supported types are text, number, date, boolean, and select. @@ -85949,6 +86655,7 @@ paths: /v1/custom-fields/{fieldId}: patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateCustomField summary: Update custom field description: Update a custom field definition. The field type cannot be changed after creation. @@ -85986,6 +86693,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteCustomField summary: Delete custom field description: Delete a custom field definition and remove its values from all contacts. @@ -86003,6 +86711,7 @@ paths: /v1/broadcasts: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: listBroadcasts summary: List broadcasts @@ -86056,6 +86765,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: createBroadcast summary: Create broadcast draft @@ -86136,6 +86846,7 @@ paths: /v1/broadcasts/{broadcastId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: getBroadcast summary: Get broadcast details @@ -86178,6 +86889,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: updateBroadcast summary: Update broadcast @@ -86238,6 +86950,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: deleteBroadcast summary: Delete broadcast @@ -86253,6 +86966,7 @@ paths: /v1/broadcasts/{broadcastId}/send: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: sendBroadcast summary: Send broadcast now @@ -86281,6 +86995,7 @@ paths: /v1/broadcasts/{broadcastId}/schedule: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: scheduleBroadcast summary: Schedule broadcast for later @@ -86319,6 +87034,7 @@ paths: /v1/broadcasts/{broadcastId}/cancel: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: cancelBroadcast summary: Cancel broadcast @@ -86347,6 +87063,7 @@ paths: /v1/broadcasts/{broadcastId}/recipients: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: listBroadcastRecipients summary: List broadcast recipients @@ -86407,6 +87124,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: addBroadcastRecipients summary: Add recipients to a broadcast @@ -86605,6 +87323,7 @@ paths: /v1/workflows: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWorkflows summary: List workflows description: Returns workflows with run stats. Filter by status or profile. @@ -86650,6 +87369,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createWorkflow x-platforms: [hubspot, salesforce, gohighlevel] summary: Create workflow @@ -86700,6 +87420,7 @@ paths: /v1/workflows/{workflowId}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWorkflow summary: Get workflow with graph description: Returns a workflow including its full node/edge graph and run stats. @@ -86737,6 +87458,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWorkflow x-platforms: [hubspot, salesforce, gohighlevel] summary: Update workflow @@ -86801,6 +87523,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWorkflow summary: Delete workflow description: Permanently delete a workflow and all of its executions. @@ -86815,6 +87538,7 @@ paths: /v1/workflows/{workflowId}/activate: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: activateWorkflow summary: Activate workflow description: Validate the graph is runnable and set the workflow live. Once active, matching inbound messages start executions. Idempotent. @@ -86843,6 +87567,7 @@ paths: /v1/workflows/{workflowId}/pause: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: pauseWorkflow summary: Pause workflow description: Stop matching new inbound messages. In-flight executions continue to completion. Idempotent. @@ -86870,6 +87595,7 @@ paths: /v1/workflows/{workflowId}/take-over: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: takeOverWorkflow summary: Take over a workflow description: | @@ -86901,6 +87627,7 @@ paths: /v1/workflows/{workflowId}/executions: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWorkflowExecutions summary: List workflow runs description: Returns recent executions (runs) with their status, current node, and accumulated variables. @@ -86955,6 +87682,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: triggerWorkflow summary: Manually start a workflow run description: > @@ -87001,6 +87729,7 @@ paths: /v1/workflows/{workflowId}/trigger: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: triggerApiCallWorkflow summary: Start an API-triggered workflow description: | @@ -87046,6 +87775,7 @@ paths: /v1/workflows/{workflowId}/executions/{executionId}/events: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWorkflowExecutionEvents summary: Get an execution's timeline description: > @@ -87083,6 +87813,7 @@ paths: /v1/workflows/{workflowId}/duplicate: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: duplicateWorkflow summary: Duplicate a workflow description: > @@ -87122,6 +87853,7 @@ paths: /v1/workflows/{workflowId}/versions: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWorkflowVersions summary: List a workflow's version history description: > @@ -87160,6 +87892,7 @@ paths: /v1/workflows/{workflowId}/versions/{version}: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWorkflowVersion summary: Get a specific workflow version description: Returns the full snapshot for a single historical version, including the graph. @@ -87199,6 +87932,7 @@ paths: /v1/workflows/{workflowId}/versions/{version}/restore: post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: restoreWorkflowVersion summary: Restore a workflow version description: | @@ -87238,6 +87972,7 @@ paths: /v1/sequences: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: listSequences summary: List sequences @@ -87288,6 +88023,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: createSequence summary: Create sequence @@ -87355,6 +88091,7 @@ paths: /v1/sequences/{sequenceId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: getSequence summary: Get sequence with steps @@ -87401,6 +88138,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: updateSequence summary: Update sequence @@ -87468,6 +88206,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: deleteSequence summary: Delete sequence @@ -87484,6 +88223,7 @@ paths: /v1/sequences/{sequenceId}/activate: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: activateSequence summary: Activate sequence @@ -87512,6 +88252,7 @@ paths: /v1/sequences/{sequenceId}/pause: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: pauseSequence summary: Pause sequence @@ -87540,6 +88281,7 @@ paths: /v1/sequences/{sequenceId}/enroll: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: enrollContacts summary: Enroll contacts in a sequence @@ -87585,6 +88327,7 @@ paths: /v1/sequences/{sequenceId}/enroll/{contactId}: delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: unenrollContact summary: Unenroll contact @@ -87602,6 +88345,7 @@ paths: /v1/sequences/{sequenceId}/enrollments: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: listSequenceEnrollments summary: List enrollments for a sequence @@ -87656,6 +88400,7 @@ paths: /v1/comment-automations: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listCommentAutomations tags: [Comment Automations] summary: List comment-to-DM automations @@ -87722,6 +88467,7 @@ paths: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createCommentAutomation tags: [Comment Automations] summary: Create comment-to-DM automation @@ -87943,6 +88689,7 @@ paths: /v1/comment-automations/{automationId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getCommentAutomation tags: [Comment Automations] summary: Get automation details @@ -88010,6 +88757,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateCommentAutomation tags: [Comment Automations] summary: Update automation settings @@ -88128,6 +88876,7 @@ paths: '409': { description: An active automation already exists for the post this request re-binds to } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteCommentAutomation tags: [Comment Automations] summary: Delete automation @@ -88144,6 +88893,7 @@ paths: /v1/comment-automations/{automationId}/logs: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listCommentAutomationLogs tags: [Comment Automations] summary: List automation logs @@ -88199,6 +88949,7 @@ paths: /v1/ads: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAds tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -88275,6 +89026,7 @@ paths: /v1/ads/search-terms: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdsSearchTerms tags: ["Ad Insights"] x-platforms: ["google"] @@ -88346,6 +89098,7 @@ paths: /v1/ads/recommendations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listGoogleRecommendations summary: List Google Ads recommendations tags: ["Ad Campaigns"] @@ -88394,6 +89147,7 @@ paths: /v1/ads/recommendations/apply: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: applyGoogleRecommendations summary: Apply Google Ads recommendations tags: ["Ad Campaigns"] @@ -88467,6 +89221,7 @@ paths: /v1/ads/recommendations/dismiss: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: dismissGoogleRecommendations summary: Dismiss Google Ads recommendations tags: ["Ad Campaigns"] @@ -88510,6 +89265,7 @@ paths: /v1/ads/bid-strategies: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listBidStrategies tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -88557,6 +89313,7 @@ paths: '501': { description: Only available on Google Ads accounts } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createBidStrategy tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -88612,6 +89369,7 @@ paths: /v1/ads/bid-strategies/{strategyId}: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateBidStrategy tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -88675,6 +89433,7 @@ paths: /v1/ads/shared-budgets: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listSharedBudgets tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -88719,6 +89478,7 @@ paths: '501': { description: Only available on Google Ads accounts } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createSharedBudget tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -88770,6 +89530,7 @@ paths: /v1/ads/local-services/leads: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listLocalServicesLeads tags: ["Ad Insights"] x-platforms: ["google"] @@ -88841,6 +89602,7 @@ paths: /v1/ads/local-services/leads/{leadId}/conversations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listLocalServicesLeadConversations tags: ["Ad Insights"] x-platforms: ["google"] @@ -88906,6 +89668,7 @@ paths: /v1/ads/keywords: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -88960,6 +89723,7 @@ paths: description: Ads access required. Legacy plans need the Ads add-on; included by default on usage-based plans. post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAdKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -89026,6 +89790,7 @@ paths: /v1/ads/keywords/{keywordId}: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdKeyword tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -89075,6 +89840,7 @@ paths: '422': { description: 'Negative keywords have no status or bid on Google; they cannot be paused, enabled or given a bid.' } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdKeyword tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -89114,6 +89880,7 @@ paths: /v1/automations: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomations tags: [Automations] summary: List automations @@ -89169,6 +89936,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createAutomation tags: [Automations] summary: Create an automation @@ -89244,6 +90012,7 @@ paths: /v1/automations/catalog: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationCatalog tags: [Automations] summary: Get the automations catalog @@ -89314,6 +90083,7 @@ paths: /v1/automations/actions: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationActions tags: [Automations] summary: List automation actions @@ -89362,6 +90132,7 @@ paths: /v1/automations/{automationId}/checks: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationChecks tags: [Automations] summary: List an automation's checks @@ -89398,6 +90169,7 @@ paths: /v1/automations/{automationId}/runs: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationRuns tags: [Automations] summary: List an automation's runs @@ -89441,6 +90213,7 @@ paths: /v1/automations/{automationId}/runs/{runId}: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationRun tags: [Automations] summary: Get one run of an automation @@ -89473,6 +90246,7 @@ paths: /v1/automations/preview: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: previewAutomationDraft tags: [Automations] summary: Preview an unsaved automation @@ -89514,6 +90288,7 @@ paths: schema: { type: string } get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomation tags: [Automations] summary: Get an automation @@ -89535,6 +90310,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAutomation tags: [Automations] summary: Edit an automation @@ -89608,6 +90384,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteAutomation tags: [Automations] summary: Delete an automation @@ -89628,6 +90405,7 @@ paths: /v1/automations/{automationId}/activate: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: activateAutomation tags: [Automations] summary: Turn an automation on @@ -89656,6 +90434,7 @@ paths: /v1/automations/{automationId}/pause: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: pauseAutomation tags: [Automations] summary: Turn an automation off @@ -89683,6 +90462,7 @@ paths: /v1/automations/{automationId}/take-over: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: takeOverAutomation tags: [Automations] summary: Take over an automation @@ -89718,6 +90498,7 @@ paths: /v1/automations/{automationId}/preview: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: previewAutomation tags: [Automations] summary: Preview a saved automation @@ -89752,6 +90533,7 @@ paths: /v1/automations/templates: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationTemplates tags: - Automations @@ -89785,6 +90567,7 @@ paths: $ref: '#/components/responses/Unauthorized' post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createAutomationTemplate tags: - Automations @@ -89868,6 +90651,7 @@ paths: /v1/automations/templates/{templateId}: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationTemplate tags: - Automations @@ -89905,6 +90689,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' patch: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAutomationTemplate tags: - Automations @@ -89965,6 +90750,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' delete: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteAutomationTemplate tags: - Automations @@ -90002,6 +90788,7 @@ paths: /v1/automations/templates/{templateId}/install: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: installAutomationTemplate tags: - Automations @@ -90098,6 +90885,7 @@ paths: /v1/automations/templates/shared/{shareToken}: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getSharedAutomationTemplate tags: - Automations @@ -90137,6 +90925,7 @@ paths: /v1/automations/templates/shared/{shareToken}/install: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: installSharedAutomationTemplate tags: - Automations @@ -90232,6 +91021,7 @@ paths: /v1/automations/templates/zernio/{templateId}: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getZernioAutomationTemplate tags: - Automations @@ -90272,6 +91062,7 @@ paths: /v1/automations/templates/zernio/{templateId}/install: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: installZernioAutomationTemplate tags: - Automations @@ -90368,6 +91159,7 @@ paths: /v1/automations/controls: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationControls tags: - Automations @@ -90394,6 +91186,7 @@ paths: $ref: '#/components/responses/AutomationsAdsRequired' patch: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAutomationControls tags: - Automations @@ -90442,6 +91235,7 @@ paths: /v1/automations/controls/ad-accounts: patch: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAutomationAdAccountControls tags: - Automations @@ -90513,6 +91307,7 @@ paths: /v1/automations/{automationId}/approvals: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationApprovals tags: - Automations @@ -90569,6 +91364,7 @@ paths: /v1/automations/{automationId}/approvals/{approvalId}: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationApproval tags: - Automations @@ -90611,6 +91407,7 @@ paths: /v1/automations/{automationId}/approvals/{approvalId}/approve: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: approveAutomationApproval tags: - Automations @@ -90666,6 +91463,7 @@ paths: /v1/automations/{automationId}/approvals/{approvalId}/reject: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: rejectAutomationApproval tags: - Automations @@ -90719,6 +91517,7 @@ paths: /v1/automations/backtest: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: backtestAutomationDraft tags: - Automations @@ -90755,6 +91554,7 @@ paths: /v1/automations/{automationId}/backtest: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: backtestAutomation tags: - Automations @@ -90792,6 +91592,7 @@ paths: /v1/ads/rules: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdRules tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -90840,6 +91641,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -90939,6 +91741,7 @@ paths: /v1/ads/rules/templates: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdRuleTemplates tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -90978,6 +91781,7 @@ paths: /v1/ads/rules/hourly-windows: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdRuleHourlyWindows tags: [Ad Rules] x-platforms: [meta, google] @@ -91015,6 +91819,7 @@ paths: /v1/ads/rules/activity: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdRuleActivity tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91080,6 +91885,7 @@ paths: /v1/ads/rules/activity/{activityId}/undo: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: undoAdRuleActivity tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91150,6 +91956,7 @@ paths: schema: { type: string } get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91183,6 +91990,7 @@ paths: $ref: '#/components/responses/NotFound' patch: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91243,6 +92051,7 @@ paths: $ref: '#/components/responses/NotFound' delete: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91276,6 +92085,7 @@ paths: /v1/ads/rules/{ruleId}/preview: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: previewAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91317,6 +92127,7 @@ paths: /v1/ads/rules/alerts: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAccountRuleAlerts tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91378,6 +92189,7 @@ paths: /v1/ads/rules/{ruleId}/alerts: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdRuleAlerts tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91440,6 +92252,7 @@ paths: /v1/ads/rules/{ruleId}/runs: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdRuleRuns tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91489,6 +92302,7 @@ paths: /v1/ads/campaign-results: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: uploadCampaignResults tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91553,6 +92367,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listCampaignResults tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91602,6 +92417,7 @@ paths: /v1/ads/campaign-results/uploads/{uploadId}: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignResultsUpload tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91650,6 +92466,7 @@ paths: /v1/ads/campaign-results/totals: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignResultsTotals tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91687,6 +92504,7 @@ paths: /v1/ads/campaign-results/events: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignResultEvents tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91708,6 +92526,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } put: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: setCampaignResultEvents tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91748,6 +92567,7 @@ paths: /v1/ads/campaign-results/tag-new-ads: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTagNewAds tags: ["Ad Campaign Results"] x-platforms: ["meta", "google"] @@ -91769,6 +92589,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } put: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: setTagNewAds tags: ["Ad Campaign Results"] x-platforms: ["meta", "google"] @@ -91803,6 +92624,7 @@ paths: /v1/ads/campaign-results/profit: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignResultProfit tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91820,6 +92642,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } put: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: setCampaignResultProfit tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91855,6 +92678,7 @@ paths: /v1/ads/campaign-results/metrics: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listCampaignResultMetrics tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91881,6 +92705,7 @@ paths: /v1/ads/campaign-results/metrics/{key}: put: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: setCampaignResultMetric tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -91922,6 +92747,7 @@ paths: /v1/ads/campaigns: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCampaigns tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -92015,6 +92841,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCampaign tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "linkedin", "tiktok", "x", "pinterest", "openai", "reddit", "amazon", "tradedesk", "applovin", "snapchat"] @@ -92199,6 +93026,7 @@ paths: /v1/ads/campaigns/{campaignId}/status: put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdCampaignStatus tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "openai", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -92292,6 +93120,7 @@ paths: /v1/ads/campaigns/{campaignId}/ad-schedule: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignAdSchedule tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -92373,6 +93202,7 @@ paths: description: "Not a Google Ads campaign: ad schedules are a Google criterion." put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCampaignAdSchedule tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -92471,6 +93301,7 @@ paths: /v1/ads/campaigns/{campaignId}/bidding: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignBidding tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -92535,6 +93366,7 @@ paths: /v1/ads/campaigns/{campaignId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCampaignDetails tags: ["Ad Campaigns"] x-platforms: ["meta"] @@ -92573,6 +93405,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdCampaign tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "openai", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -92744,6 +93577,7 @@ paths: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCampaign tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "openai", "reddit", "microsoft", "amazon", "tradedesk", "snapchat"] @@ -92872,6 +93706,7 @@ paths: /v1/ads/campaigns/{campaignId}/negative-keywords: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listCampaignNegativeKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -92924,6 +93759,7 @@ paths: '501': { description: Only available on Google Ads campaigns } put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: replaceCampaignNegativeKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -92992,6 +93828,7 @@ paths: '501': { description: Only available on Google Ads campaigns } patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: editCampaignNegativeKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -93062,6 +93899,7 @@ paths: /v1/ads/campaigns/bulk-status: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: bulkUpdateAdCampaignStatus tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -93137,6 +93975,7 @@ paths: /v1/ads/campaigns/{campaignId}/duplicate: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: duplicateAdCampaign tags: ["Ad Campaigns"] x-platforms: ["meta", "tiktok", "linkedin", "google"] @@ -93298,6 +94137,7 @@ paths: /v1/ads/campaigns/{campaignId}/targeting: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignTargeting tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -93393,6 +94233,7 @@ paths: '501': { description: Only available on Google Ads campaigns } put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCampaignTargeting tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -93579,6 +94420,7 @@ paths: /v1/ads/ad-sets: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdSets tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "openai", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -93718,6 +94560,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdSet tags: ["Ad Campaigns"] x-platforms: ["google", "reddit", "snapchat"] @@ -93832,6 +94675,7 @@ paths: /v1/ads/ad-sets/{adSetId}/duplicate: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: duplicateAdSet tags: ["Ad Campaigns"] x-platforms: ["meta", "tiktok"] @@ -93949,6 +94793,7 @@ paths: /v1/ads/{adId}/duplicate: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: duplicateAd tags: ["Ad Campaigns"] x-platforms: ["meta"] @@ -94051,6 +94896,7 @@ paths: /v1/ads/ad-sets/{adSetId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdSetDetails tags: ["Ad Campaigns"] x-platforms: ["meta"] @@ -94089,6 +94935,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdSet tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "openai", "reddit", "amazon", "tradedesk", "snapchat"] @@ -94473,6 +95320,7 @@ paths: '501': { description: "bidStrategy not supported on the platform (Meta, TikTok, OpenAI and Reddit only)" } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdSet tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "amazon", "tradedesk", "snapchat"] @@ -94509,6 +95357,7 @@ paths: /v1/ads/ad-sets/{adSetId}/targeting: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdSetTargeting tags: ["Ad Campaigns"] x-platforms: ["reddit", "amazon", "snapchat"] @@ -94554,6 +95403,7 @@ paths: /v1/ads/ad-sets/{adSetId}/status: put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdSetStatus tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "openai", "reddit", "microsoft", "amazon", "tradedesk", "snapchat"] @@ -94638,6 +95488,7 @@ paths: /v1/ads/tree: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdTree tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -94728,6 +95579,7 @@ paths: /v1/ads/performance: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsByPerformance tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "applovin", "snapchat"] @@ -94782,6 +95634,7 @@ paths: /v1/ads/timeline: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdsTimeline tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "applovin", "snapchat"] @@ -94850,6 +95703,7 @@ paths: /v1/ads/{adId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAd tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -94972,6 +95826,7 @@ paths: '501': { description: "`accountId` names a connection that is not Meta (unsynced ad reads are Meta only)." } put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAd tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "applovin", "snapchat"] @@ -95405,6 +96260,7 @@ paths: '502': { x-summary: "Meta failed to produce the media, or the current targeting could not be read and nothing was written: retry the request.", description: "Meta accepted the request then failed to produce the media (upload session, chunk transfer, processing timeout, or a response with no image hash). Inspect `platformError.reason`. Also returned with code `platform_api_error` when a Meta or LinkedIn targeting update cannot read the current targeting: nothing is written, so retry the request." } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAd tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -95474,6 +96330,7 @@ paths: /v1/ads/{adId}/status: put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdStatus tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "applovin", "snapchat"] @@ -95568,6 +96425,7 @@ paths: /v1/ads/campaigns/{campaignId}/assets: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listCampaignAssets summary: List campaign assets tags: @@ -95710,6 +96568,7 @@ paths: description: "Only supported on Google Ads." post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: attachCampaignAssets summary: Attach campaign assets tags: @@ -95846,6 +96705,7 @@ paths: description: "Only supported on Google Ads." put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCampaignAssets summary: Update campaign assets tags: @@ -95933,6 +96793,7 @@ paths: description: "Only supported on Google Ads." delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeCampaignAssets summary: Remove campaign assets tags: @@ -95991,6 +96852,7 @@ paths: /v1/ads/ad-sets/{adSetId}/assets: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdGroupAssets summary: List ad-group assets tags: @@ -96132,6 +96994,7 @@ paths: description: "Only supported on Google Ads." post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: attachAdGroupAssets summary: Attach ad-group assets tags: @@ -96268,6 +97131,7 @@ paths: description: "Only supported on Google Ads." put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdGroupAssets summary: Update ad-group assets tags: @@ -96356,6 +97220,7 @@ paths: description: "Only supported on Google Ads." delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdGroupAssets summary: Remove ad-group assets tags: @@ -96414,6 +97279,7 @@ paths: /v1/ads/campaigns/{campaignId}/analytics: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignAnalytics tags: ["Ad Insights"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "applovin", "snapchat"] @@ -96529,6 +97395,7 @@ paths: /v1/ads/preview: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: generateAdPreviews tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -96588,6 +97455,7 @@ paths: /v1/ads/{adId}/preview: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdPreviews tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -96634,6 +97502,7 @@ paths: /v1/ads/{adId}/review: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdReview tags: ["Ad Campaigns"] x-platforms: ["tiktok", "google", "meta"] @@ -96792,6 +97661,7 @@ paths: /v1/ads/{adId}/tiktok-smart-plus-review: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTikTokSmartPlusAdReview tags: ["Ad Campaigns"] x-platforms: ["tiktok"] @@ -96864,6 +97734,7 @@ paths: /v1/ads/{adId}/media: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdMedia tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -96931,6 +97802,7 @@ paths: /v1/ads/keywords/ideas: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: generateKeywordIdeas tags: ["Ad Insights"] x-platforms: ["google"] @@ -96991,6 +97863,7 @@ paths: /v1/ads/keywords/historical-metrics: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: generateKeywordHistoricalMetrics tags: ["Ad Insights"] x-platforms: ["google"] @@ -97045,6 +97918,7 @@ paths: /v1/ads/insights: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: queryAdInsights tags: ["Ad Insights"] x-platforms: ["meta", "google", "tiktok"] @@ -97180,6 +98054,7 @@ paths: /v1/ads/insights/reports: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdInsightsReport tags: ["Ad Insights"] x-platforms: ["meta"] @@ -97248,6 +98123,7 @@ paths: /v1/ads/insights/reports/{reportRunId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdInsightsReport tags: ["Ad Insights"] x-platforms: ["meta"] @@ -97296,6 +98172,7 @@ paths: /v1/ads/{adId}/analytics: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAnalytics tags: ["Ad Insights"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "applovin", "snapchat"] @@ -97377,6 +98254,7 @@ paths: /v1/ads/{adId}/tracking-tags: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdTrackingTags tags: ["Tracking Tags"] x-platforms: ["meta", "google", "linkedin"] @@ -97420,6 +98298,7 @@ paths: '405': { description: "Platform has no click-URL tracking surface" } patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdTrackingTags tags: ["Tracking Tags"] x-platforms: ["meta", "google", "linkedin"] @@ -97517,6 +98396,7 @@ paths: /v1/ads/{adId}/comments: get: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getAdComments tags: ["Ad Accounts"] x-platforms: ["meta", "tiktok"] @@ -97698,6 +98578,7 @@ paths: /v1/ads/{adId}/comments/{commentId}/reply: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: replyToAdComment summary: Reply to an ad comment tags: ["Ad Accounts"] @@ -97780,6 +98661,7 @@ paths: /v1/ads/{adId}/comments/{commentId}/hide: post: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: hideAdComment summary: Hide or unhide an ad comment tags: ["Ad Accounts"] @@ -97850,6 +98732,7 @@ paths: /v1/ads/{adId}/comments/{commentId}: delete: x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteAdComment summary: Delete an ad comment tags: ["Ad Accounts"] @@ -97916,6 +98799,7 @@ paths: /v1/ads/business-centers: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsBusinessCenters tags: ["Ad Accounts"] x-platforms: ["tiktok"] @@ -97951,6 +98835,7 @@ paths: /v1/ads/alerts: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsAlerts tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -98003,6 +98888,7 @@ paths: /v1/ads/alerts/{alertId}/dismiss: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: dismissAdsAlert tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -98036,6 +98922,7 @@ paths: /v1/ads/activity: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdsActivityLog tags: ["Ad Accounts"] x-platforms: ["meta", "google"] @@ -98107,6 +98994,7 @@ paths: /v1/ads/rf-predictions: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createRfPrediction tags: ["Reach and Frequency"] x-platforms: ["meta"] @@ -98178,6 +99066,7 @@ paths: /v1/ads/rf-predictions/{predictionId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getRfPrediction tags: ["Reach and Frequency"] x-platforms: ["meta"] @@ -98209,6 +99098,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: cancelRfReservation tags: ["Reach and Frequency"] x-platforms: ["meta"] @@ -98236,6 +99126,7 @@ paths: /v1/ads/rf-predictions/{predictionId}/reserve: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: reserveRfPrediction tags: ["Reach and Frequency"] x-platforms: ["meta"] @@ -98280,6 +99171,7 @@ paths: /v1/ads/studies: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdStudies tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -98324,6 +99216,7 @@ paths: /v1/ads/tiktok-identities: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsTikTokIdentities tags: ["Ad Creatives"] x-platforms: ["tiktok"] @@ -98368,6 +99261,7 @@ paths: /v1/ads/tiktok-smart-plus-materials: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTikTokSmartPlusMaterialReport tags: ["Ad Insights"] x-platforms: ["tiktok"] @@ -98470,6 +99364,7 @@ paths: /v1/ads/tiktok-smart-plus-reviews: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTikTokSmartPlusReviews tags: ["Ad Campaigns"] x-platforms: ["tiktok"] @@ -98665,6 +99560,7 @@ paths: /v1/ads/instagram-accounts: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsInstagramAccounts summary: List Instagram ad identities description: | @@ -98735,6 +99631,7 @@ paths: /v1/ads/instagram-posts: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsInstagramPosts summary: List Instagram posts to boost description: | @@ -98811,6 +99708,7 @@ paths: /v1/ads/advertisable-applications: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdvertisableApplications summary: List advertisable apps description: | @@ -98866,6 +99764,7 @@ paths: /v1/ads/ios-fourteen-campaign-limits: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getIosFourteenCampaignLimits summary: Get iOS 14 campaign limits description: | @@ -98911,6 +99810,7 @@ paths: /v1/ads/businesses: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listMetaBusinesses tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -98952,6 +99852,7 @@ paths: /v1/ads/businesses/users: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listMetaBusinessUsers tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -98993,6 +99894,7 @@ paths: /v1/ads/page-users: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listPageUsers tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99030,6 +99932,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: assignPageUser tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99089,6 +99992,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removePageUser tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99123,6 +100027,7 @@ paths: /v1/ads/labels: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdLabels tags: ["Ad Accounts"] x-platforms: ["meta", "google"] @@ -99178,6 +100083,7 @@ paths: '501': { description: Only supported on Meta and Google Ads accounts } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -99226,6 +100132,7 @@ paths: /v1/ads/labels/{labelId}: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -99272,6 +100179,7 @@ paths: '501': { description: Only available on Google Ads accounts } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -99308,6 +100216,7 @@ paths: /v1/ads/labels/{labelId}/assignments: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: attachAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -99354,6 +100263,7 @@ paths: '501': { description: Only available on Google Ads accounts } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: detachAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -99395,6 +100305,7 @@ paths: /v1/ads/high-demand-periods: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listHighDemandPeriods tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99438,6 +100349,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createHighDemandPeriod tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99491,6 +100403,7 @@ paths: /v1/ads/creatives: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCreatives tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -99535,6 +100448,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCreative tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -99666,6 +100580,7 @@ paths: /v1/ads/creatives/{creativeId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCreative tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -99700,6 +100615,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdCreative tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -99743,6 +100659,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCreative tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -99777,6 +100694,7 @@ paths: /v1/ads/value-rule-sets: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listValueRuleSets tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99833,6 +100751,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createValueRuleSet tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99915,6 +100834,7 @@ paths: /v1/ads/value-rule-sets/{valueRuleSetId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getValueRuleSet tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99951,6 +100871,7 @@ paths: put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateValueRuleSet tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100016,6 +100937,7 @@ paths: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteValueRuleSet tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100051,6 +100973,7 @@ paths: /v1/ads/accounts/negative-keyword-lists: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: "listAdNegativeKeywordLists" tags: - "Ad Accounts" @@ -100162,6 +101085,7 @@ paths: description: "Available only on Google Ads." post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "createAdNegativeKeywordList" tags: - "Ad Accounts" @@ -100285,6 +101209,7 @@ paths: /v1/ads/accounts/negative-keyword-lists/{listId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: "getAdNegativeKeywordList" tags: - "Ad Accounts" @@ -100415,6 +101340,7 @@ paths: description: "Available only on Google Ads." put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "updateAdNegativeKeywordList" tags: - "Ad Accounts" @@ -100524,6 +101450,7 @@ paths: description: "Available only on Google Ads." delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "deleteAdNegativeKeywordList" tags: - "Ad Accounts" @@ -100627,6 +101554,7 @@ paths: /v1/ads/accounts/negative-keyword-lists/{listId}/keywords: put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "replaceAdNegativeKeywordListKeywords" tags: - "Ad Accounts" @@ -100752,6 +101680,7 @@ paths: description: "Available only on Google Ads." patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "editAdNegativeKeywordListKeywords" tags: - "Ad Accounts" @@ -100883,6 +101812,7 @@ paths: /v1/ads/campaigns/{campaignId}/negative-keyword-lists: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: "listCampaignNegativeKeywordLists" tags: - "Ad Campaigns" @@ -100978,6 +101908,7 @@ paths: description: "Available only on Google Ads." put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "replaceCampaignNegativeKeywordLists" tags: - "Ad Campaigns" @@ -101080,6 +102011,7 @@ paths: description: "Available only on Google Ads." patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "editCampaignNegativeKeywordLists" tags: - "Ad Campaigns" @@ -101191,6 +102123,7 @@ paths: /v1/ads/accounts/callouts: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAccountCallouts summary: List account callouts tags: @@ -101269,6 +102202,7 @@ paths: description: "Only supported on Google Ads." post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAccountCallouts summary: Add account callouts tags: @@ -101357,6 +102291,7 @@ paths: description: "Only supported on Google Ads." put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAccountCallouts summary: Update account callouts tags: @@ -101456,6 +102391,7 @@ paths: description: "Only supported on Google Ads." delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAccountCallout summary: Remove account callout tags: @@ -101508,6 +102444,7 @@ paths: /v1/ads/accounts/sitelinks: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAccountSitelinks summary: List account sitelinks tags: @@ -101597,6 +102534,7 @@ paths: description: "Only supported on Google Ads." post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAccountSitelinks summary: Add account sitelinks tags: @@ -101697,6 +102635,7 @@ paths: description: "Only supported on Google Ads." put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAccountSitelinks summary: Update account sitelinks tags: @@ -101814,6 +102753,7 @@ paths: description: "Only supported on Google Ads." delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAccountSitelink summary: Remove account sitelink tags: @@ -101866,6 +102806,7 @@ paths: /v1/ads/accounts/structured-snippets: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAccountStructuredSnippets summary: List account snippets tags: @@ -101952,6 +102893,7 @@ paths: description: "Only supported on Google Ads." post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAccountStructuredSnippets summary: Add account snippets tags: @@ -102064,6 +103006,7 @@ paths: description: "Only supported on Google Ads." put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAccountStructuredSnippets summary: Update account snippets tags: @@ -102160,6 +103103,7 @@ paths: description: "Only supported on Google Ads." delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAccountStructuredSnippet summary: Remove account snippet tags: @@ -102212,6 +103156,7 @@ paths: /v1/ads/accounts/hierarchy: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountHierarchy tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102311,6 +103256,7 @@ paths: /v1/ads/accounts/manager-links: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: inviteAdAccountToManager tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102361,6 +103307,7 @@ paths: '501': { description: Only available on Google Ads accounts } patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdAccountManagerLink tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102411,6 +103358,7 @@ paths: /v1/ads/accounts/billing: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountBilling tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102491,6 +103439,7 @@ paths: '501': { description: Only available on Google Ads accounts } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: setUpAdAccountBilling tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102605,6 +103554,7 @@ paths: /v1/ads/accounts/user-invitations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAccountUserInvitations tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102652,6 +103602,7 @@ paths: '501': { description: Only available on Google Ads accounts } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: inviteAdAccountUser tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102712,6 +103663,7 @@ paths: '501': { description: Only available on Google Ads accounts } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: revokeAdAccountUserInvitation tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102750,6 +103702,7 @@ paths: /v1/ads/accounts/user-invitations/pending-approvals: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAccountUserInvitationApprovals tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102792,6 +103745,7 @@ paths: '501': { description: Only available on Google Ads accounts } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: withdrawAdAccountUserInvitationApproval tags: ["Ad Accounts"] x-platforms: ["google"] @@ -102832,6 +103786,7 @@ paths: /v1/ads/accounts/users: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAccountUsers tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -102868,6 +103823,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: assignAdAccountUser tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -102923,6 +103879,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdAccountUser tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -102957,6 +103914,7 @@ paths: /v1/ads/accounts/finance: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountFinance tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -103000,6 +103958,7 @@ paths: /v1/ads/accounts/health: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountHealth tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -103101,6 +104060,7 @@ paths: /v1/ads/accounts/live: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountLiveEntities tags: ["Ad Accounts"] x-platforms: ["meta", "tiktok"] @@ -103267,6 +104227,7 @@ paths: /v1/ads/accounts: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdAccount summary: Create ad account tags: ["Ad Accounts"] @@ -103459,6 +104420,7 @@ paths: details: { creationStatus: "unknown" } get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAccounts tags: ["Ad Accounts"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "microsoft", "amazon", "tradedesk", "applovin", "snapchat"] @@ -103583,6 +104545,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdAccount tags: ["Ad Accounts"] x-platforms: ["meta", "google"] @@ -103689,6 +104652,7 @@ paths: /v1/ads/dsa-defaults: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getDsaDefaults tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -103726,6 +104690,7 @@ paths: /v1/ads/dsa-recommendations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getDsaRecommendations tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -103766,6 +104731,7 @@ paths: /v1/ads/boost: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: boostPost tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -104446,6 +105412,7 @@ paths: /v1/ads/campaigns/{campaignId}/asset-groups: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listGoogleAssetGroups summary: List Performance Max asset groups tags: ["Ad Campaigns"] @@ -104513,6 +105480,7 @@ paths: description: "Campaign is not on Google Ads." post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createGoogleAssetGroup summary: Create a Performance Max asset group tags: ["Ad Campaigns"] @@ -104586,6 +105554,7 @@ paths: /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getGoogleAssetGroup summary: Get a Performance Max asset group tags: ["Ad Campaigns"] @@ -104620,6 +105589,7 @@ paths: '501': { description: "Campaign is not on Google Ads." } patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateGoogleAssetGroup summary: Update a Performance Max asset group tags: ["Ad Campaigns"] @@ -104668,6 +105638,7 @@ paths: '501': { description: "Campaign is not on Google Ads." } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeGoogleAssetGroup summary: Remove a Performance Max asset group tags: ["Ad Campaigns"] @@ -104703,6 +105674,7 @@ paths: /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}/assets: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: editGoogleAssetGroupAssets summary: Link or unlink asset group assets tags: ["Ad Campaigns"] @@ -104755,6 +105727,7 @@ paths: /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}/listing-group-filters: put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: replaceGoogleListingGroupFilters summary: Replace an asset group's listing-group tree tags: ["Ad Campaigns"] @@ -104803,6 +105776,7 @@ paths: /v1/ads/create: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createStandaloneAd tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "openai", "reddit", "microsoft", "amazon", "applovin", "snapchat"] @@ -106529,6 +107503,7 @@ paths: /v1/ads/leads: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listLeads tags: ["Lead Gen"] x-platforms: ["meta", "google", "linkedin"] @@ -106602,6 +107577,7 @@ paths: /v1/ads/leads/counts: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: countLeads tags: ["Lead Gen"] x-platforms: ["meta"] @@ -106639,6 +107615,7 @@ paths: /v1/ads/leads/{id}: patch: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: updateLead tags: ["Lead Gen"] x-platforms: ["meta", "google", "linkedin", "tiktok"] @@ -106685,6 +107662,7 @@ paths: /v1/leads: post: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: createLead tags: ["Lead Gen"] summary: Create a lead from your own form @@ -106754,6 +107732,7 @@ paths: /v1/ads/lead-forms: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listLeadForms tags: ["Lead Gen"] x-platforms: ["meta", "linkedin"] @@ -106784,6 +107763,7 @@ paths: '403': { description: Ads add-on required. } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createLeadForm tags: ["Lead Gen"] x-platforms: ["meta", "linkedin"] @@ -106973,6 +107953,7 @@ paths: /v1/ads/lead-forms/{formId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getLeadForm tags: ["Lead Gen"] x-platforms: ["meta", "linkedin"] @@ -107017,6 +107998,7 @@ paths: '404': { description: "No lead form with that id on the Page this account manages." } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: archiveLeadForm tags: ["Lead Gen"] x-platforms: ["meta", "linkedin"] @@ -107043,6 +108025,7 @@ paths: /v1/ads/lead-forms/{formId}/leads: get: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listFormLeads tags: ["Lead Gen"] x-platforms: ["meta"] @@ -107113,6 +108096,7 @@ paths: /v1/ads/lead-forms/{formId}/test-leads: post: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: createTestLead tags: ["Lead Gen"] x-platforms: ["meta"] @@ -107155,6 +108139,7 @@ paths: '409': { $ref: '#/components/responses/AccountDisconnected' } delete: x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: deleteTestLead tags: ["Lead Gen"] x-platforms: ["meta"] @@ -107184,6 +108169,7 @@ paths: /v1/ads/images: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: uploadAdImage tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -107232,6 +108218,7 @@ paths: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdImages tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -107277,6 +108264,7 @@ paths: /v1/ads/videos: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: uploadAdVideo tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -107365,6 +108353,7 @@ paths: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdVideos tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -107425,6 +108414,7 @@ paths: /v1/ads/videos/{videoId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdVideoStatus tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -107473,6 +108463,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdVideo tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -107512,6 +108503,7 @@ paths: /v1/ads/interests: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: searchAdInterests deprecated: true tags: ["Ad Targeting"] @@ -107554,6 +108546,7 @@ paths: /v1/ads/targeting/search: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: searchAdTargeting tags: ["Ad Targeting"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "reddit", "snapchat"] @@ -107772,6 +108765,7 @@ paths: /v1/ads/targeting/browse: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: browseAdTargeting tags: ["Ad Targeting"] x-platforms: ["meta"] @@ -107867,6 +108861,7 @@ paths: /v1/ads/library: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: searchAdLibrary tags: ["Ad Library"] x-platforms: ["meta", "linkedin"] @@ -108020,6 +109015,7 @@ paths: /v1/ads/targeting/reach-estimate: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: estimateAdReach tags: ["Ad Targeting"] x-platforms: ["meta", "linkedin", "pinterest", "x", "snapchat"] @@ -108098,6 +109094,7 @@ paths: /v1/ads/targeting/bid-pricing: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: getLinkedInBidPricing tags: ["Ad Targeting"] x-platforms: ["linkedin"] @@ -108170,6 +109167,7 @@ paths: /v1/ads/targeting/supply-forecast: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: getLinkedInSupplyForecast tags: ["Ad Targeting"] x-platforms: ["linkedin"] @@ -108254,6 +109252,7 @@ paths: /v1/ads/catalogs: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogs tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108303,6 +109302,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalog tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108348,6 +109348,7 @@ paths: /v1/ads/catalogs/{catalogId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCatalog tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108375,6 +109376,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCatalog tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108402,6 +109404,7 @@ paths: /v1/ads/catalogs/{catalogId}/products: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogProducts tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108437,6 +109440,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalogProduct tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108479,6 +109483,7 @@ paths: /v1/ads/catalogs/{catalogId}/products/batch: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: batchAdCatalogProducts tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108531,6 +109536,7 @@ paths: /v1/ads/catalogs/{catalogId}/batches/{handle}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCatalogBatch tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108572,6 +109578,7 @@ paths: /v1/ads/catalogs/{catalogId}/products/{productId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCatalogProduct tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108600,6 +109607,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdCatalogProduct tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108639,6 +109647,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCatalogProduct tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108665,6 +109674,7 @@ paths: /v1/ads/catalogs/{catalogId}/feeds: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogFeeds tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108694,6 +109704,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalogFeed tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108741,6 +109752,7 @@ paths: /v1/ads/catalogs/{catalogId}/feeds/{feedId}/uploads: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogFeedUploads tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108771,6 +109783,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalogFeedUpload tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108811,6 +109824,7 @@ paths: /v1/ads/catalogs/{catalogId}/product-sets: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogProductSets tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108847,6 +109861,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalogProductSet tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108887,6 +109902,7 @@ paths: /v1/ads/catalogs/{catalogId}/product-sets/{productSetId}: put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdCatalogProductSet tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108925,6 +109941,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCatalogProductSet tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -108951,6 +109968,7 @@ paths: /v1/ads/audiences: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAudiences tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -109007,6 +110025,7 @@ paths: description: Ads access required. Legacy plans need the Ads add-on; included by default on usage-based plans. post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -109258,6 +110277,7 @@ paths: /v1/ads/audiences/{audienceId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -109293,6 +110313,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } put: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x"] @@ -109356,6 +110377,7 @@ paths: description: Platform audience updates are only supported on Meta delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -109405,6 +110427,7 @@ paths: /v1/ads/audiences/{audienceId}/users: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addUsersToAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -109489,6 +110512,7 @@ paths: description: Audience is not a customer_list type or has no platform ID yet delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeUsersFromAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -109553,6 +110577,7 @@ paths: /v1/ads/audiences/{audienceId}/companies: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: replaceAdAudienceCompanies tags: ["Ad Audiences"] x-platforms: ["linkedin"] @@ -109627,6 +110652,7 @@ paths: /v1/ads/conversions/quality: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getConversionsQuality tags: [Conversions] x-platforms: ["meta", "pinterest"] @@ -109679,6 +110705,7 @@ paths: /v1/ads/conversions: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: sendConversions tags: [Conversions] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "reddit"] @@ -109957,6 +110984,7 @@ paths: /v1/ads/conversions/adjustments: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: adjustConversions tags: [Conversions] x-platforms: ["google", "impact", "microsoft"] @@ -110117,6 +111145,7 @@ paths: /v1/ads/conversions/actions: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listConversionActions tags: [Conversions] x-platforms: ["google"] @@ -110182,6 +111211,7 @@ paths: description: Conversion actions are only available for Google Ads (the account's platform is not `googleads`). post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createConversionAction tags: [Conversions] x-platforms: ["google"] @@ -110272,6 +111302,7 @@ paths: /v1/ads/conversions/goals: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdConversionGoals tags: [Conversions] x-platforms: ["google"] @@ -110313,6 +111344,7 @@ paths: '501': { description: Only available on Google Ads accounts } patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdConversionGoals tags: [Conversions] x-platforms: ["google"] @@ -110358,6 +111390,7 @@ paths: /v1/ads/conversions/actions/{actionId}: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateConversionAction tags: [Conversions] x-platforms: ["google"] @@ -110439,6 +111472,7 @@ paths: /v1/ads/conversions/custom-goals: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listCustomConversionGoals tags: [Conversions] x-platforms: ["google"] @@ -110473,6 +111507,7 @@ paths: '501': { description: Only available on Google Ads accounts } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createCustomConversionGoal tags: [Conversions] x-platforms: ["google"] @@ -110518,6 +111553,7 @@ paths: /v1/ads/conversions/custom-goals/{goalId}: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCustomConversionGoal tags: [Conversions] x-platforms: ["google"] @@ -110563,6 +111599,7 @@ paths: '501': { description: Only available on Google Ads accounts } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeCustomConversionGoal tags: [Conversions] x-platforms: ["google"] @@ -110599,6 +111636,7 @@ paths: /v1/events: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] x-platforms: [meta, google, tiktok, linkedin, microsoft, x, pinterest, reddit, openai, applovinads, snapchatads, taboolaads, klaviyo, attentive, impact, awin, campaignmanager360, tradedeskads, amazonads, googleanalytics, stripe, hubspot, salesforce, gohighlevel] operationId: listEvents tags: [Conversions] @@ -110699,6 +111737,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: sendEvents tags: [Conversions] x-platforms: [meta, google, tiktok, linkedin, microsoft, x, pinterest, reddit, openai, applovinads, snapchatads, taboolaads, klaviyo, attentive, impact, awin, campaignmanager360, tradedeskads, amazonads, googleanalytics, gohighlevel] @@ -110842,6 +111881,7 @@ paths: /v1/events/paths: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getConversionPaths tags: [Conversions] summary: List the touch paths that lead to conversions @@ -110882,6 +111922,7 @@ paths: /v1/events/survey: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getSurveyAnswers tags: [Conversions] summary: Get post-purchase survey answers @@ -110932,6 +111973,7 @@ paths: /v1/events/ltv: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getLtvCohorts tags: [Conversions] summary: Get buyer cohorts by first purchase month and first channel @@ -110979,6 +112021,7 @@ paths: /v1/events/accuracy: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getEventsAccuracy tags: [Conversions] summary: Get delivery accuracy per destination @@ -111062,6 +112105,7 @@ paths: /v1/events/overview: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getEventsOverview tags: [Conversions] summary: Get today's tracking overview @@ -111185,6 +112229,7 @@ paths: /v1/events/overview/daily: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getEventsOverviewDaily tags: [Conversions] summary: Get daily tracking figures @@ -111337,6 +112382,7 @@ paths: /v1/events/names: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listEventNames tags: [Conversions] summary: List stored event names @@ -111374,6 +112420,7 @@ paths: /v1/events/{eventId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getEvent tags: [Conversions] summary: Get one stored event and its deliveries @@ -111454,6 +112501,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: restateEvent tags: [Conversions] summary: Change a stored event's value @@ -111499,6 +112547,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: retractEvent tags: [Conversions] summary: Retract a stored event @@ -111538,6 +112587,7 @@ paths: /v1/events/destinations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listEventDestinations tags: [Conversions] deprecated: true @@ -111566,6 +112616,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createEventDestination tags: [Conversions] deprecated: true @@ -111610,6 +112661,7 @@ paths: /v1/events/destinations/{destinationId}: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteEventDestination tags: [Conversions] deprecated: true @@ -111637,6 +112689,7 @@ paths: /v1/events/forwarding-rules: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listForwardingRules tags: [Conversions] summary: List forwarding rules @@ -111664,6 +112717,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createForwardingRule x-platforms: [meta, google, tiktok, linkedin, microsoft, x, pinterest, reddit, openai, applovinads, snapchatads, taboolaads, klaviyo, attentive, impact, awin, campaignmanager360, tradedeskads, amazonads, googleanalytics, hubspot, salesforce, gohighlevel] tags: [Conversions] @@ -111726,6 +112780,7 @@ paths: /v1/events/forwarding-rules/{ruleId}: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateForwardingRule tags: [Conversions] summary: Update a forwarding rule @@ -111775,6 +112830,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteForwardingRule tags: [Conversions] summary: Remove a forwarding rule @@ -111802,6 +112858,7 @@ paths: /v1/tracking-sites: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingSites tags: [Conversions] summary: List tracking sites @@ -111838,6 +112895,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createTrackingSite tags: [Conversions] summary: Turn on server-side tracking for a website @@ -111907,6 +112965,7 @@ paths: schema: { type: string } get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingSite tags: [Conversions] summary: Get a tracking site @@ -111931,6 +112990,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateTrackingSite tags: [Conversions] summary: Update a tracking site @@ -112021,6 +113081,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteTrackingSite tags: [Conversions] summary: Delete a tracking site @@ -112036,6 +113097,7 @@ paths: /v1/tracking-sites/{siteId}/rotate-key: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: rotateTrackingSiteKey tags: [Conversions] summary: Rotate a tracking site's key @@ -112067,6 +113129,7 @@ paths: /v1/tracking-sites/{siteId}/proxy-check: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: checkTrackingSiteProxy tags: [Conversions] summary: Check a tracking site's own-domain path @@ -112093,6 +113156,7 @@ paths: /v1/tracking-links: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingLinks tags: [Tracking links] summary: List tracking links @@ -112133,6 +113197,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createTrackingLink tags: [Tracking links] summary: Create a tracking link @@ -112189,6 +113254,7 @@ paths: schema: { type: string } get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingLink tags: [Tracking links] summary: Get a tracking link @@ -112213,6 +113279,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateTrackingLink tags: [Tracking links] summary: Update a tracking link @@ -112256,6 +113323,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } delete: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteTrackingLink tags: [Tracking links] summary: Delete a tracking link @@ -112271,6 +113339,7 @@ paths: /v1/tracking-links/{linkId}/rotate-postback-token: post: x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: rotateTrackingLinkPostbackToken tags: [Tracking links] summary: Rotate a tracking link's postback URL @@ -112302,6 +113371,7 @@ paths: /v1/tracking-links/{linkId}/stats: get: x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingLinkStats tags: [Tracking links] summary: Get a tracking link's results @@ -112338,6 +113408,7 @@ paths: /v1/ads/campaigns/{campaignId}/conversion-goals: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignConversionGoals tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -112374,6 +113445,7 @@ paths: '501': { description: Only available on Google Ads campaigns } patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCampaignConversionGoals tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -112427,6 +113499,7 @@ paths: /v1/ads/conversions/destinations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdConversionDestinations tags: [Conversions] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "reddit"] @@ -112536,6 +113609,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdConversionDestination tags: [Conversions] x-platforms: ["google", "linkedin"] @@ -112704,6 +113778,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdConversionDestination tags: [Conversions] x-platforms: ["linkedin"] @@ -112745,6 +113820,7 @@ paths: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdConversionDestination tags: [Conversions] x-platforms: ["linkedin"] @@ -112825,6 +113901,7 @@ paths: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdConversionDestination tags: [Conversions] x-platforms: ["linkedin"] @@ -112863,6 +113940,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}/associations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdConversionAssociations tags: [Conversions] x-platforms: ["linkedin"] @@ -112911,6 +113989,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAdConversionAssociations tags: [Conversions] x-platforms: ["linkedin"] @@ -112978,6 +114057,7 @@ paths: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdConversionAssociations tags: [Conversions] x-platforms: ["linkedin"] @@ -113035,6 +114115,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}/metrics: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdConversionMetrics tags: [Conversions] x-platforms: ["linkedin"] @@ -113101,6 +114182,7 @@ paths: /v1/ads/conversions/custom-conversions: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCustomConversions tags: [Conversions] x-platforms: ["meta"] @@ -113133,6 +114215,7 @@ paths: '403': { x-summary: "Ads access, a permission or the account selection is missing: enable access, grant it, or add the ad account to the selection.", description: "Ads access required, or the token lacks the ads permissions.\n\nAlso returned with code `ad_account_not_selected` when the connection has selected ad accounts and the targeted ad account is not among them. `details` carries `accountId`, `adAccountId` and `selectedAdAccountIds`.\n\nFix: add the ad account to the selection (GET /v1/connect/{platform}/ads with adAccountIds, which replaces the selection), or use a connection that has it selected." } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCustomConversion tags: [Conversions] x-platforms: ["meta"] @@ -113187,6 +114270,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listConversionDestinations deprecated: true tags: [Conversions] @@ -113279,6 +114363,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createConversionDestination deprecated: true tags: [Conversions] @@ -113423,6 +114508,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getConversionDestination deprecated: true tags: [Conversions] @@ -113462,6 +114548,7 @@ paths: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateConversionDestination deprecated: true tags: [Conversions] @@ -113538,6 +114625,7 @@ paths: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteConversionDestination deprecated: true tags: [Conversions] @@ -113569,6 +114657,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listConversionAssociations deprecated: true tags: [Conversions] @@ -113614,6 +114703,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addConversionAssociations deprecated: true tags: [Conversions] @@ -113679,6 +114769,7 @@ paths: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeConversionAssociations deprecated: true tags: [Conversions] @@ -113734,6 +114825,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getConversionMetrics deprecated: true tags: [Conversions] @@ -113788,6 +114880,7 @@ paths: /v1/whatsapp/conversions: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listWhatsAppConversions tags: [WhatsApp] summary: List conversion events @@ -113857,6 +114950,7 @@ paths: '404': { description: WhatsApp account not found } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: sendWhatsAppConversion tags: [WhatsApp] summary: Send WhatsApp conversion event @@ -114065,6 +115159,7 @@ paths: /v1/ads/messaging: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createMessagingAd tags: ["Messaging Ads"] x-platforms: ["meta"] @@ -114294,6 +115389,7 @@ paths: /v1/ads/call: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createCallAd tags: ["Messaging Ads"] x-platforms: ["meta"] @@ -114378,6 +115474,7 @@ paths: /v1/ads/ctwa: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createCtwaAd tags: ["Messaging Ads"] x-platforms: ["meta"] @@ -114513,6 +115610,7 @@ paths: /v1/accounts/{accountId}/custom-conversions: get: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listCustomConversions deprecated: true tags: ["Ad Accounts"] @@ -114545,6 +115643,7 @@ paths: '403': { x-summary: "Ads access, a permission or the account selection is missing: enable access, grant it, or add the ad account to the selection.", description: "Ads access required, or the token lacks the ads permissions.\n\nAlso returned with code `ad_account_not_selected` when the connection has selected ad accounts and the targeted ad account is not among them. `details` carries `accountId`, `adAccountId` and `selectedAdAccountIds`.\n\nFix: add the ad account to the selection (GET /v1/connect/{platform}/ads with adAccountIds, which replaces the selection), or use a connection that has it selected." } post: x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createCustomConversion deprecated: true tags: ["Ad Accounts"] @@ -114590,6 +115689,7 @@ paths: /v1/accounts/{accountId}/business-agent: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentStatus tags: [Business Agent] summary: Get agent setup status @@ -114624,6 +115724,7 @@ paths: /v1/accounts/{accountId}/business-agent/onboard: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: onboardBusinessAgent tags: [Business Agent] summary: Create the agent @@ -114661,6 +115762,7 @@ paths: /v1/accounts/{accountId}/business-agent/settings: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentSettings tags: [Business Agent] summary: List agent settings @@ -114687,6 +115789,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } patch: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentSettings tags: [Business Agent] summary: Update agent settings @@ -114745,6 +115848,7 @@ paths: /v1/accounts/{accountId}/business-agent/allowlist: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentAllowlist tags: [Business Agent] summary: List allowlisted consumers @@ -114770,6 +115874,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addBusinessAgentAllowlistEntry tags: [Business Agent] summary: Allowlist a consumer @@ -114799,6 +115904,7 @@ paths: /v1/accounts/{accountId}/business-agent/allowlist/{entryId}: delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: removeBusinessAgentAllowlistEntry tags: [Business Agent] summary: Remove an allowlisted consumer @@ -114815,6 +115921,7 @@ paths: /v1/accounts/{accountId}/business-agent/business-information: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentBusinessInformation tags: [Business Agent] summary: Get business information @@ -114834,6 +115941,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: replaceBusinessAgentBusinessInformation tags: [Business Agent] summary: Replace business information @@ -114858,6 +115966,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: resetBusinessAgentBusinessInformation tags: [Business Agent] summary: Reset business information @@ -114873,6 +115982,7 @@ paths: /v1/accounts/{accountId}/business-agent/faqs: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentFaqs tags: [Business Agent] summary: List FAQs @@ -114897,6 +116007,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentFaq tags: [Business Agent] summary: Create a FAQ @@ -114923,6 +116034,7 @@ paths: /v1/accounts/{accountId}/business-agent/faqs/{faqId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentFaq tags: [Business Agent] summary: Get a FAQ @@ -114942,6 +116054,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentFaq tags: [Business Agent] summary: Update a FAQ @@ -114966,6 +116079,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentFaq tags: [Business Agent] summary: Delete a FAQ @@ -114982,6 +116096,7 @@ paths: /v1/accounts/{accountId}/business-agent/websites: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentWebsites tags: [Business Agent] summary: List crawled websites @@ -115006,6 +116121,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addBusinessAgentWebsite tags: [Business Agent] summary: Add a website to crawl @@ -115031,6 +116147,7 @@ paths: /v1/accounts/{accountId}/business-agent/websites/{websiteId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentWebsite tags: [Business Agent] summary: Get a crawled website @@ -115050,6 +116167,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentWebsite tags: [Business Agent] summary: Update a crawled website @@ -115074,6 +116192,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentWebsite tags: [Business Agent] summary: Remove a crawled website @@ -115090,6 +116209,7 @@ paths: /v1/accounts/{accountId}/business-agent/files: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentFiles tags: [Business Agent] summary: List knowledge files @@ -115114,6 +116234,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: uploadBusinessAgentFile tags: [Business Agent] summary: Upload a knowledge file @@ -115160,6 +116281,7 @@ paths: /v1/accounts/{accountId}/business-agent/files/{fileId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentFile tags: [Business Agent] summary: Get a knowledge file @@ -115179,6 +116301,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentFile tags: [Business Agent] summary: Delete a knowledge file @@ -115195,6 +116318,7 @@ paths: /v1/accounts/{accountId}/business-agent/skills: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentSkills tags: [Business Agent] summary: List skills @@ -115219,6 +116343,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentSkill tags: [Business Agent] summary: Create a skill @@ -115244,6 +116369,7 @@ paths: /v1/accounts/{accountId}/business-agent/skills/{skillId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentSkill tags: [Business Agent] summary: Get a skill @@ -115263,6 +116389,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentSkill tags: [Business Agent] summary: Update a skill @@ -115287,6 +116414,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentSkill tags: [Business Agent] summary: Delete a skill @@ -115303,6 +116431,7 @@ paths: /v1/accounts/{accountId}/business-agent/ui-skills: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentUiSkills tags: [Business Agent] summary: List UI skills @@ -115332,6 +116461,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentUiSkill tags: [Business Agent] summary: Create a UI skill @@ -115357,6 +116487,7 @@ paths: /v1/accounts/{accountId}/business-agent/ui-skills/{uiSkillId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentUiSkill tags: [Business Agent] summary: Get a UI skill @@ -115376,6 +116507,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentUiSkill tags: [Business Agent] summary: Update a UI skill @@ -115400,6 +116532,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentUiSkill tags: [Business Agent] summary: Delete a UI skill @@ -115416,6 +116549,7 @@ paths: /v1/accounts/{accountId}/business-agent/connectors: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentConnectors tags: [Business Agent] summary: List connectors @@ -115441,6 +116575,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentConnector tags: [Business Agent] summary: Create a connector @@ -115467,6 +116602,7 @@ paths: /v1/accounts/{accountId}/business-agent/connectors/{connectorId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentConnector tags: [Business Agent] summary: Get a connector @@ -115486,6 +116622,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentConnector tags: [Business Agent] summary: Update a connector @@ -115510,6 +116647,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentConnector tags: [Business Agent] summary: Delete a connector @@ -115526,6 +116664,7 @@ paths: /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/credentials: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: setBusinessAgentConnectorCredentials tags: [Business Agent] summary: Set connector credentials @@ -115573,6 +116712,7 @@ paths: /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/refresh-tools: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: refreshBusinessAgentConnectorTools tags: [Business Agent] summary: Refresh MCP connector tools @@ -115594,6 +116734,7 @@ paths: /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/logs: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentConnectorLogs tags: [Business Agent] summary: Get connector failure logs @@ -115626,6 +116767,7 @@ paths: /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentConnectorTools tags: [Business Agent] summary: List connector tools @@ -115651,6 +116793,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentConnectorTool tags: [Business Agent] summary: Create a connector tool @@ -115677,6 +116820,7 @@ paths: /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools/{toolId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentConnectorTool tags: [Business Agent] summary: Get a connector tool @@ -115697,6 +116841,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentConnectorTool tags: [Business Agent] summary: Update a connector tool @@ -115722,6 +116867,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentConnectorTool tags: [Business Agent] summary: Delete a connector tool @@ -115739,6 +116885,7 @@ paths: /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools/{toolId}/run: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: runBusinessAgentConnectorTool tags: [Business Agent] summary: Run a connector tool once @@ -115774,6 +116921,7 @@ paths: /v1/accounts/{accountId}/business-agent/budget: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentBudget tags: [Business Agent] summary: Get usage budgets @@ -115799,6 +116947,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: replaceBusinessAgentBudget tags: [Business Agent] summary: Replace usage budgets @@ -115836,6 +116985,7 @@ paths: /v1/accounts/{accountId}/business-agent/test-messages: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendBusinessAgentTestMessage tags: [Business Agent] summary: Send a test message @@ -115867,6 +117017,7 @@ paths: /v1/accounts/{accountId}/business-agent/events: post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendBusinessAgentEvent tags: [Business Agent] summary: Send a business event @@ -115904,6 +117055,7 @@ paths: /v1/accounts/{accountId}/business-agent/events/{eventId}: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentEvent tags: [Business Agent] summary: Get a business event status @@ -115924,6 +117076,7 @@ paths: /v1/accounts/{accountId}/business-agent/evals: get: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: readBusinessAgentEvals tags: [Business Agent] summary: Read evaluation data @@ -115949,6 +117102,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: startBusinessAgentEvalRun tags: [Business Agent] summary: Start an evaluation run @@ -115983,6 +117137,7 @@ paths: /v1/accounts/{accountId}/tracking-tags: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingTags tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest"] @@ -116062,6 +117217,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createTrackingTag tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest"] @@ -116184,6 +117340,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingTag tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest"] @@ -116257,6 +117414,7 @@ paths: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateTrackingTag tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest"] @@ -116370,6 +117528,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/shared-accounts: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingTagSharedAccounts tags: ["Tracking Tags"] x-platforms: ["meta", "linkedin", "tiktok"] @@ -116413,6 +117572,7 @@ paths: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addTrackingTagSharedAccount tags: ["Tracking Tags"] x-platforms: ["meta", "linkedin", "tiktok"] @@ -116471,6 +117631,7 @@ paths: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeTrackingTagSharedAccount tags: ["Tracking Tags"] x-platforms: ["meta", "linkedin", "tiktok"] @@ -116507,6 +117668,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/install: post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: installTrackingTagOnStore tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest", "whop", "shopify", "wordpress", "wix", "webflow"] @@ -116700,6 +117862,7 @@ paths: '502': { x-summary: "The platform was unreachable or returned an unclassified error: on WordPress, check the site with a GET before retrying.", description: 'Meta, Shopify or the WordPress site was unreachable or returned an unclassified error. On WordPress a write may have completed; call GET before retrying.' } get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingTagStoreInstall tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest", "shopify", "wordpress", "wix", "webflow"] @@ -116766,6 +117929,7 @@ paths: '409': { $ref: '#/components/responses/StoreReconnectRequired' } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeTrackingTagFromStore tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest", "shopify", "wordpress", "wix", "webflow"] @@ -116816,6 +117980,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/events: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingTagEvents tags: ["Tracking Tags"] x-platforms: ["meta", "google", "tiktok", "linkedin", "x", "openai", "pinterest"] @@ -116904,6 +118069,7 @@ paths: '501': { description: 'The platform has no conversion-event objects (code `platform_not_supported`); the message names the alternative.' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createTrackingTagEvent tags: ["Tracking Tags"] x-platforms: ["meta", "google", "tiktok", "linkedin", "x", "openai", "pinterest"] @@ -117023,6 +118189,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/events/{eventId}: patch: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateTrackingTagEvent tags: ["Tracking Tags"] x-platforms: ["meta", "google", "tiktok", "linkedin", "x", "openai", "pinterest"] @@ -117086,6 +118253,7 @@ paths: '501': { description: 'The platform cannot update conversion events through its API (code `platform_not_supported`).' } delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteTrackingTagEvent tags: ["Tracking Tags"] x-platforms: ["meta", "google", "tiktok", "linkedin", "x", "openai", "pinterest"] @@ -117149,6 +118317,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/users: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingTagUsers tags: ["Tracking Tags"] x-platforms: ["meta"] @@ -117188,6 +118357,7 @@ paths: '501': { description: 'The platform has no tag user assignment (code `platform_not_supported`).' } post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: assignTrackingTagUser tags: ["Tracking Tags"] x-platforms: ["meta"] @@ -117237,6 +118407,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/users/{userId}: delete: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeTrackingTagUser tags: ["Tracking Tags"] x-platforms: [] @@ -117273,6 +118444,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/partners: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingTagPartners tags: ["Tracking Tags"] x-platforms: ["meta"] @@ -117312,6 +118484,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/diagnostics: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingTagDiagnostics tags: ["Tracking Tags"] x-platforms: ["meta"] @@ -117351,6 +118524,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/stats: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingTagStats tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest"] @@ -117473,6 +118647,7 @@ paths: /v1/accounts/{accountId}/blogs: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listBlogs tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -117518,6 +118693,7 @@ paths: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: createBlog tags: ["Blogs"] x-platforms: ["shopify"] @@ -117562,6 +118738,7 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getBlog tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -117596,6 +118773,7 @@ paths: patch: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: updateBlog tags: ["Blogs"] x-platforms: ["shopify"] @@ -117640,6 +118818,7 @@ paths: delete: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: deleteBlog tags: ["Blogs"] x-platforms: ["shopify"] @@ -117667,6 +118846,7 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}/articles: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listBlogArticles tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -117720,6 +118900,7 @@ paths: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: createBlogArticle tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -117825,6 +119006,7 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}: get: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getBlogArticle tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -117862,6 +119044,7 @@ paths: patch: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: updateBlogArticle tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -117941,6 +119124,7 @@ paths: delete: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: deleteBlogArticle tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -117973,6 +119157,7 @@ paths: /v1/accounts/{accountId}/products: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listProducts deprecated: true tags: ["Products"] @@ -118021,6 +119206,7 @@ paths: /v1/accounts/{accountId}/products/{productId}: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getProduct deprecated: true tags: ["Products"] @@ -118056,6 +119242,7 @@ paths: patch: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateProduct deprecated: true tags: ["Products"] @@ -118149,6 +119336,7 @@ paths: /v1/commerce/store: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceStore tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -118184,6 +119372,7 @@ paths: /v1/commerce/orders: get: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: listCommerceOrders tags: - Commerce @@ -118305,6 +119494,7 @@ paths: /v1/commerce/orders/{orderId}: get: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: getCommerceOrder tags: - Commerce @@ -118355,6 +119545,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. patch: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceOrder tags: - Commerce @@ -118425,6 +119616,7 @@ paths: /v1/commerce/orders/{orderId}/refunds: post: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: createCommerceRefund tags: - Commerce @@ -118502,6 +119694,7 @@ paths: /v1/commerce/orders/{orderId}/edits: post: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: createCommerceOrderEdit tags: - Commerce @@ -118590,6 +119783,7 @@ paths: /v1/commerce/orders/{orderId}/cancel: post: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: cancelCommerceOrder tags: - Commerce @@ -118657,6 +119851,7 @@ paths: /v1/commerce/draft-orders: post: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: createCommerceDraftOrder tags: - Commerce @@ -118759,6 +119954,7 @@ paths: /v1/commerce/draft-orders/{draftOrderId}: get: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: getCommerceDraftOrder tags: - Commerce @@ -118806,6 +120002,7 @@ paths: /v1/commerce/draft-orders/{draftOrderId}/invoice: post: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: sendCommerceDraftOrderInvoice tags: - Commerce @@ -118859,6 +120056,7 @@ paths: /v1/commerce/customers: get: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: listCommerceCustomers tags: - Commerce @@ -118936,6 +120134,7 @@ paths: /v1/commerce/customers/{customerId}: get: x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: getCommerceCustomer tags: - Commerce @@ -118983,6 +120182,7 @@ paths: /v1/commerce/products: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceProducts tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119021,6 +120221,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceProduct tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119118,6 +120319,7 @@ paths: /v1/commerce/products/state: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceProductState tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119164,6 +120366,7 @@ paths: /v1/commerce/products/{productId}: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceProduct tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119189,6 +120392,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } patch: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceProduct tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119239,6 +120443,7 @@ paths: /v1/commerce/products/{productId}/price: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceProductPrices tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119296,6 +120501,7 @@ paths: /v1/commerce/collections: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceCollections tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119329,6 +120535,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceCollection tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119382,6 +120589,7 @@ paths: /v1/commerce/collections/{collectionId}: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceCollection tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119408,6 +120616,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } patch: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceCollection tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119457,6 +120666,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceCollection tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119486,6 +120696,7 @@ paths: /v1/commerce/collections/{collectionId}/products: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceCollectionProducts tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119530,6 +120741,7 @@ paths: /v1/commerce/products/{productId}/variants: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceProductVariants tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119590,6 +120802,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceProductVariants tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119619,6 +120832,7 @@ paths: /v1/commerce/products/{productId}/options: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceProductOptions tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119665,6 +120879,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceProductOptions tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119695,6 +120910,7 @@ paths: /v1/commerce/products/{productId}/images: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: addCommerceProductImages tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119740,6 +120956,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: removeCommerceProductImages tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119770,6 +120987,7 @@ paths: /v1/commerce/products/{productId}/images/reorder: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: reorderCommerceProductImages tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119808,6 +121026,7 @@ paths: /v1/commerce/products/{productId}/duplicate: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: duplicateCommerceProduct tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119848,6 +121067,7 @@ paths: /v1/commerce/products/{productId}/metafields: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceProductMetafields tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119874,6 +121094,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } put: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: setCommerceProductMetafields tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119914,6 +121135,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceProductMetafields tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119943,6 +121165,7 @@ paths: /v1/commerce/products/{productId}/channels: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceProductChannels tags: ["Commerce"] x-platforms: ["shopify"] @@ -119984,6 +121207,7 @@ paths: /v1/commerce/collections/{collectionId}/metafields: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceCollectionMetafields tags: ["Commerce"] x-platforms: ["shopify"] @@ -120010,6 +121234,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } put: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: setCommerceCollectionMetafields tags: ["Commerce"] x-platforms: ["shopify"] @@ -120050,6 +121275,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceCollectionMetafields tags: ["Commerce"] x-platforms: ["shopify"] @@ -120079,6 +121305,7 @@ paths: /v1/commerce/collections/{collectionId}/channels: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceCollectionChannels tags: ["Commerce"] x-platforms: ["shopify"] @@ -120120,6 +121347,7 @@ paths: /v1/commerce/products/tags: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceProductTags tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120165,6 +121393,7 @@ paths: /v1/commerce/collections/{collectionId}/reorder: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: reorderCommerceCollectionProducts tags: ["Commerce"] x-platforms: ["shopify"] @@ -120212,6 +121441,7 @@ paths: /v1/commerce/pages: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommercePages tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120241,6 +121471,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommercePage tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120279,6 +121510,7 @@ paths: /v1/commerce/pages/{pageId}: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommercePage tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120305,6 +121537,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } patch: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommercePage tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120343,6 +121576,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommercePage tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120372,6 +121606,7 @@ paths: /v1/commerce/locations: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceLocations tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120400,6 +121635,7 @@ paths: /v1/commerce/inventory: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceInventory tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120429,6 +121665,7 @@ paths: /v1/commerce/products/{productId}/inventory: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceInventory tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120478,6 +121715,7 @@ paths: /v1/commerce/channels: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceChannels tags: ["Commerce"] x-platforms: ["shopify"] @@ -120506,6 +121744,7 @@ paths: /v1/commerce/discounts: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceDiscounts tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120535,6 +121774,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceDiscount tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120588,6 +121828,7 @@ paths: /v1/commerce/discounts/{discountId}: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceDiscount tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120614,6 +121855,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } patch: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceDiscount tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120660,6 +121902,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceDiscount tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120689,6 +121932,7 @@ paths: /v1/commerce/discounts/{discountId}/state: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: setCommerceDiscountActive tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120727,6 +121971,7 @@ paths: /v1/commerce/discounts/{discountId}/codes: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: addCommerceDiscountCodes tags: ["Commerce"] x-platforms: ["shopify"] @@ -120765,6 +122010,7 @@ paths: /v1/commerce/redirects: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceRedirects tags: ["Commerce"] x-platforms: ["shopify"] @@ -120794,6 +122040,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceRedirect tags: ["Commerce"] x-platforms: ["shopify"] @@ -120830,6 +122077,7 @@ paths: /v1/commerce/redirects/{redirectId}: patch: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceRedirect tags: ["Commerce"] x-platforms: ["shopify"] @@ -120866,6 +122114,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceRedirect tags: ["Commerce"] x-platforms: ["shopify"] @@ -120895,6 +122144,7 @@ paths: /v1/commerce/menus: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceMenus tags: ["Commerce"] x-platforms: ["shopify"] @@ -120920,6 +122170,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceMenu tags: ["Commerce"] x-platforms: ["shopify"] @@ -120960,6 +122211,7 @@ paths: /v1/commerce/menus/{menuId}: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceMenu tags: ["Commerce"] x-platforms: ["shopify"] @@ -120986,6 +122238,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } put: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceMenu tags: ["Commerce"] x-platforms: ["shopify"] @@ -121027,6 +122280,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceMenu tags: ["Commerce"] x-platforms: ["shopify"] @@ -121056,6 +122310,7 @@ paths: /v1/commerce/metaobject-definitions: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceMetaobjectDefinitions tags: ["Commerce"] x-platforms: ["shopify"] @@ -121084,6 +122339,7 @@ paths: /v1/commerce/metaobjects: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceMetaobjects tags: ["Commerce"] x-platforms: ["shopify"] @@ -121113,6 +122369,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceMetaobject tags: ["Commerce"] x-platforms: ["shopify"] @@ -121159,6 +122416,7 @@ paths: /v1/commerce/metaobjects/{metaobjectId}: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceMetaobject tags: ["Commerce"] x-platforms: ["shopify"] @@ -121185,6 +122443,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } patch: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceMetaobject tags: ["Commerce"] x-platforms: ["shopify"] @@ -121231,6 +122490,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceMetaobject tags: ["Commerce"] x-platforms: ["shopify"] @@ -121260,6 +122520,7 @@ paths: /v1/commerce/markets: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceMarkets tags: ["Commerce"] x-platforms: ["shopify"] @@ -121288,6 +122549,7 @@ paths: /v1/commerce/price-lists: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommercePriceLists tags: ["Commerce"] x-platforms: ["shopify"] @@ -121316,6 +122578,7 @@ paths: /v1/commerce/price-lists/{priceListId}/prices: put: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: setCommercePriceListPrices tags: ["Commerce"] x-platforms: ["shopify"] @@ -121363,6 +122626,7 @@ paths: '429': { x-summary: "Zernio or the platform rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by the platform. Retry later.' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommercePriceListPrices tags: ["Commerce"] x-platforms: ["shopify"] @@ -121394,6 +122658,7 @@ paths: /v1/commerce/marketing-activities: put: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: upsertCommerceMarketingActivity tags: ["Commerce"] x-platforms: ["shopify"] @@ -121456,6 +122721,7 @@ paths: /v1/commerce/marketing-activities/{remoteId}: delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceMarketingActivity tags: ["Commerce"] x-platforms: ["shopify"] @@ -121485,6 +122751,7 @@ paths: /v1/commerce/marketing-activities/{remoteId}/engagements: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: addCommerceMarketingEngagement tags: ["Commerce"] x-platforms: ["shopify"] @@ -121531,6 +122798,7 @@ paths: /v1/commerce/catalog-syncs: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceCatalogSyncs tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121556,6 +122824,7 @@ paths: '404': { description: 'Account not found or not accessible (code account_not_found).' } post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceCatalogSync tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121607,6 +122876,7 @@ paths: /v1/commerce/catalog-syncs/{syncId}: get: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceCatalogSync tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121630,6 +122900,7 @@ paths: '404': { description: 'Catalog sync not found (code resource_not_found).' } delete: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceCatalogSync tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121656,6 +122927,7 @@ paths: /v1/commerce/catalog-syncs/{syncId}/run: post: x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: runCommerceCatalogSync tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121682,6 +122954,7 @@ paths: /v1/verify/verifications: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createVerification tags: [Verify] summary: Send a verification code @@ -121747,6 +123020,7 @@ paths: /v1/verify/verifications/{verificationId}: get: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getVerification tags: [Verify] summary: Get a verification @@ -121772,6 +123046,7 @@ paths: /v1/verify/verifications/{verificationId}/check: post: x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: checkVerification tags: [Verify] summary: Check a verification code @@ -121813,6 +123088,7 @@ paths: /v1/ads/pixels: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: 'listTikTokAdPixels' summary: 'List TikTok ad pixels' description: 'Lists pixels and their supported optimization events for a connected TikTok Ads account. The advertiser defaults to the first advertiser on the connection. Reconnect if Pixel Management permission has not been granted.' @@ -121904,6 +123180,7 @@ paths: /v1/ads/partnership-content: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: 'listPartnershipAdContent' summary: 'List partnership ad content' description: | @@ -121979,6 +123256,7 @@ paths: /v1/ads/partnership-permissions: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: 'listPartnershipAdPermissions' summary: 'List partnership permissions' description: | @@ -122028,6 +123306,7 @@ paths: description: 'The advertiser Instagram Business Account could not be resolved.' post: x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: 'setPartnershipAdPermission' summary: 'Set partnership permission' description: | @@ -122085,6 +123364,7 @@ paths: /v1/media/prepare: post: x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: prepareMedia tags: [Media] summary: Prepare media for a platform @@ -122278,6 +123558,7 @@ paths: /v1/conversion-audit/meta-audit: get: x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getMetaConversionAudit tags: [Conversion Audit] x-platforms: [meta] @@ -122362,6 +123643,7 @@ paths: /v1/conversion-audit/monitors: get: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listConversionAuditMonitors tags: - Conversion Audit @@ -122389,6 +123671,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } post: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createConversionAuditMonitor tags: - Conversion Audit @@ -122447,6 +123730,7 @@ paths: /v1/conversion-audit/monitors/{monitorId}: delete: x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteConversionAuditMonitor tags: - Conversion Audit @@ -122553,6 +123837,7 @@ paths: /v1/creator-campaigns: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCreatorCampaign tags: [Creator Campaigns] summary: Create creator campaign @@ -122590,6 +123875,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCreatorCampaigns tags: [Creator Campaigns] summary: List creator campaigns @@ -122634,6 +123920,7 @@ paths: /v1/creator-campaigns/{campaignId}: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCreatorCampaign tags: [Creator Campaigns] summary: Get creator campaign @@ -122662,6 +123949,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } patch: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: updateCreatorCampaign tags: [Creator Campaigns] summary: Update creator campaign @@ -122701,6 +123989,7 @@ paths: /v1/creator-campaigns/{campaignId}/budget: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: raiseCreatorCampaignBudget tags: [Creator Campaigns] summary: Raise creator campaign budget @@ -122748,6 +124037,7 @@ paths: /v1/creator-campaigns/{campaignId}/activate: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: activateCreatorCampaign tags: [Creator Campaigns] summary: Activate creator campaign @@ -122780,6 +124070,7 @@ paths: /v1/creator-campaigns/{campaignId}/pause: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: pauseCreatorCampaign tags: [Creator Campaigns] summary: Pause creator campaign @@ -122811,6 +124102,7 @@ paths: /v1/creator-campaigns/{campaignId}/close: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: closeCreatorCampaign tags: [Creator Campaigns] summary: Close creator campaign @@ -122845,6 +124137,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCampaignParticipant tags: [Creator Campaigns] summary: Invite campaign participant @@ -122899,6 +124192,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignParticipants tags: [Creator Campaigns] summary: List campaign participants @@ -122940,6 +124234,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignParticipant tags: [Creator Campaigns] summary: Get campaign participant @@ -122974,6 +124269,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}/approve: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: approveCampaignParticipant tags: [Creator Campaigns] summary: Approve pending campaign participant @@ -123021,6 +124317,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}/deny: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: denyCampaignParticipant tags: [Creator Campaigns] summary: Deny pending campaign participant @@ -123057,6 +124354,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}/suspend: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: suspendCampaignParticipant tags: [Creator Campaigns] summary: Suspend campaign participant @@ -123092,6 +124390,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}/reinstate: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: reinstateCampaignParticipant tags: [Creator Campaigns] summary: Reinstate campaign participant @@ -123127,6 +124426,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}/remove: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: removeCampaignParticipant tags: [Creator Campaigns] summary: Remove campaign participant @@ -123163,6 +124463,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}/move: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: moveCampaignParticipant tags: [Creator Campaigns] summary: Move participant to another campaign @@ -123224,6 +124525,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}/resend-invite: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: resendCampaignParticipantInvite tags: [Creator Campaigns] summary: Resend campaign participant invite @@ -123265,6 +124567,7 @@ paths: /v1/creator-campaigns/{campaignId}/participants/{participantId}/settle: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: settleCampaignParticipant tags: [Creator Campaigns] summary: Settle campaign participant @@ -123326,6 +124629,7 @@ paths: description: Campaign ID. post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCampaignPayoutBatch tags: [Creator Campaigns] summary: Pay creators with one card payment @@ -123407,6 +124711,7 @@ paths: '429': { $ref: '#/components/responses/PaymentAttemptsLimited' } get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignPayoutBatches tags: [Creator Campaigns] summary: List payout batches @@ -123438,6 +124743,7 @@ paths: /v1/creator-campaigns/{campaignId}/payout-batches/preview: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: previewCampaignPayoutBatch tags: [Creator Campaigns] summary: Preview a payout batch @@ -123486,6 +124792,7 @@ paths: /v1/creator-campaigns/{campaignId}/invite-link: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCampaignInviteLink tags: [Creator Campaigns] summary: Create campaign invite link @@ -123518,6 +124825,7 @@ paths: /v1/creator-campaigns/{campaignId}/submissions: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignSubmissions tags: [Creator Campaigns] summary: List campaign submissions @@ -123587,6 +124895,7 @@ paths: /v1/creator-campaigns/{campaignId}/submissions/{submissionId}: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignSubmission tags: [Creator Campaigns] summary: Get campaign submission @@ -123621,6 +124930,7 @@ paths: /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/approve: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: approveCampaignSubmission tags: [Creator Campaigns] summary: Approve campaign submission @@ -123676,6 +124986,7 @@ paths: /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reject: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: rejectCampaignSubmission tags: [Creator Campaigns] summary: Reject campaign submission @@ -123724,6 +125035,7 @@ paths: /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reopen: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: reopenCampaignSubmission tags: [Creator Campaigns] summary: Reopen campaign submission @@ -123772,6 +125084,7 @@ paths: /v1/creator-campaigns/{campaignId}/drafts: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignDrafts tags: [Creator Campaigns] summary: List campaign drafts @@ -123820,6 +125133,7 @@ paths: /v1/creator-campaigns/{campaignId}/drafts/{draftId}: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignDraft tags: [Creator Campaigns] summary: Get campaign draft @@ -123858,6 +125172,7 @@ paths: /v1/creator-campaigns/{campaignId}/drafts/{draftId}/approve: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: approveCampaignDraft tags: [Creator Campaigns] summary: Approve campaign draft @@ -123897,6 +125212,7 @@ paths: /v1/creator-campaigns/{campaignId}/drafts/{draftId}/request-revision: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: requestCampaignDraftRevision tags: [Creator Campaigns] summary: Request changes on a campaign draft @@ -123956,6 +125272,7 @@ paths: /v1/creator-campaigns/{campaignId}/drafts/{draftId}/reject: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: rejectCampaignDraft tags: [Creator Campaigns] summary: Reject campaign draft @@ -124004,6 +125321,7 @@ paths: /v1/creator-campaigns/{campaignId}/samples: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignSamples tags: [Creator Campaigns] summary: List campaign sample requests @@ -124050,6 +125368,7 @@ paths: /v1/creator-campaigns/{campaignId}/samples/{sampleId}/approve: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: approveCampaignSample tags: [Creator Campaigns] summary: Approve campaign sample request @@ -124102,6 +125421,7 @@ paths: /v1/creator-campaigns/{campaignId}/samples/{sampleId}/decline: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: declineCampaignSample tags: [Creator Campaigns] summary: Decline campaign sample request @@ -124148,6 +125468,7 @@ paths: /v1/creator-campaigns/{campaignId}/samples/{sampleId}/ship: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: shipCampaignSample tags: [Creator Campaigns] summary: Mark campaign sample shipped @@ -124194,6 +125515,7 @@ paths: /v1/creator-campaigns/{campaignId}/payables: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignPayables tags: [Creator Campaigns] summary: List campaign payables @@ -124226,6 +125548,7 @@ paths: /v1/creator-campaigns/{campaignId}/adjustments: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCampaignAdjustment tags: [Creator Campaigns] summary: Create campaign adjustment @@ -124271,6 +125594,7 @@ paths: /v1/creator-campaigns/{campaignId}/ledger: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignLedger tags: [Creator Campaigns] summary: List campaign ledger @@ -124330,6 +125654,7 @@ paths: /v1/creator-campaigns/{campaignId}/orders: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignOrders tags: [Creator Campaigns] summary: List campaign orders @@ -124411,6 +125736,7 @@ paths: /v1/creator-campaigns/{campaignId}/report: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignReport tags: [Creator Campaigns] summary: Get campaign report @@ -124441,6 +125767,7 @@ paths: /v1/creator-campaigns/{campaignId}/ads/launch: post: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: launchCampaignAds tags: [Creator Campaigns] summary: Launch campaign posts as ads @@ -124522,6 +125849,7 @@ paths: /v1/creator-campaigns/{campaignId}/ad-results: get: x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignAdResults tags: [Creator Campaigns] summary: Get campaign ad results diff --git a/scripts/generate_mcp_tools.py b/scripts/generate_mcp_tools.py index 834aa265..f8597a58 100644 --- a/scripts/generate_mcp_tools.py +++ b/scripts/generate_mcp_tools.py @@ -91,6 +91,52 @@ "another on purpose, or if that 409 does not clear, change an argument such as the name." ) +# POSTs that only read (queries, reports, previews, validations, estimates), so their +# tools are annotated read-only instead of as writes. +READ_ONLY_OPERATIONS = { + "validatePostLength", + "validatePost", + "validateMedia", + "queryMetaAds", + "queryGoogleAds", + "queryTikTokAds", + "queryGoogleAnalytics", + "runGoogleAnalyticsReport", + "runGoogleAnalyticsRealtimeReport", + "queryGoogleSearchConsoleSearchAnalytics", + "inspectGoogleSearchConsoleUrl", + "batchGetGoogleBusinessReviews", + "searchGoogleBusinessLocations", + "fetchGoogleBusinessVerificationOptions", + "previewAutomationDraft", + "previewAutomation", + "previewAdRule", + "generateAdPreviews", + "generateKeywordIdeas", + "generateKeywordHistoricalMetrics", + "estimateAdReach", + "getLinkedInBidPricing", + "getLinkedInSupplyForecast", + "previewTopup", + "previewCampaignPayoutBatch", + "validatePhoneNumberKycAddress", + "validateWhatsAppNumberKycAddress", + "checkPhoneNumberPortability", +} + +# Reads of public content outside the user's own workspace. OpenAI's plugin +# guidelines ask for openWorldHint true on these ("public or open-ended +# entities, including read-only web search"); every other read stays false. +OPEN_WORLD_READ_OPERATIONS = { + "searchReddit", + "getRedditFeed", + "getRedditPostComments", + "searchTweets", + "getTweet", + "getInstagramBusinessDiscovery", + "searchAdLibrary", +} + # Operations to SKIP (not useful for MCP) SKIP_OPERATIONS = { # OAuth redirect endpoints @@ -715,6 +761,8 @@ def generate_tool_handler( description: str = "", platforms: list[str] | None = None, idempotency_scope: str | None = None, + *, + open_world: bool | None = None, ) -> str: """Generate a complete tool handler function.""" lines = [] @@ -754,15 +802,17 @@ def generate_tool_handler( docstring = "\n ".join(line.rstrip() for line in doc_lines) # Tool annotation (required by the Anthropic Connectors Directory AND the - # ChatGPT Apps submission, which needs all three hints set explicitly). + # ChatGPT plugin review, which needs all three hints set explicitly). # title is rendered via repr() so quotes/specials in the summary are - # escaped safely. openWorldHint mirrors read_only: write tools act on - # external social platforms (publish/send/etc.) so they touch the open - # world; GET tools only read, so they don't change external state. + # escaped safely. Every write counts as destructive and open-world: it + # publishes, sends, spends or changes a connected platform, and OpenAI + # reads "can be undone" as no reason for destructiveHint false. + if open_world is None: + open_world = not read_only annotation = ( f"annotations=ToolAnnotations(title={title!r}, " f"readOnlyHint={read_only}, destructiveHint={not read_only}, " - f"openWorldHint={not read_only})" + f"openWorldHint={open_world})" ) lines.append("") @@ -789,6 +839,30 @@ def generate_tool_handler( return "\n".join(lines) +def declared_oauth_scopes(scopes: list[str], read_only: bool) -> list[str]: + """The spec's x-oauth-scopes (any one of which reaches the operation), the one to declare first. + + A read declares a :read scope and a write a :write one, so ChatGPT asks for + the narrowest permission the operation needs. + """ + preferred = ":read" if read_only else ":write" + declared = next((s for s in scopes if s.endswith(preferred)), scopes[0] if scopes else None) + return [declared, *(s for s in scopes if s != declared)] if declared else [] + + +def oauth_scope_table(operations: list[dict[str, Any]]) -> list[str]: + scoped = sorted((op["tool_name"], op["oauth_scopes"]) for op in operations if op["oauth_scopes"]) + return [ + "", + "", + "# The OAuth scopes any one of which reaches each tool, from the spec's x-oauth-scopes;", + "# the first is the one the tool declares (securitySchemes).", + "TOOL_OAUTH_SCOPES: dict[str, tuple[str, ...]] = {", + *(f' "{name}": ({", ".join(repr(s) for s in scopes)},),' for name, scopes in scoped), + "}", + ] + + def main() -> int: """Main entry point.""" project_root = Path(__file__).parent.parent @@ -839,6 +913,7 @@ def main() -> int: seen_tool_names.add(tool_name) summary = operation.get("summary", operation_id) + read_only = method == "get" or operation_id in READ_ONLY_OPERATIONS operations.append({ "tool_name": tool_name, "resource": resource, @@ -846,12 +921,9 @@ def main() -> int: "summary": summary, "description": operation.get("description", ""), "platforms": operation.get("x-platforms", []), - # HTTP method drives the tool annotation: GET is read-only, - # everything else (POST/PUT/PATCH/DELETE) is treated as a - # destructive write. Required by Anthropic's Connectors - # Directory (every tool must carry readOnlyHint or - # destructiveHint). - "read_only": method == "get", + "read_only": read_only, + "open_world": not read_only or operation_id in OPEN_WORLD_READ_OPERATIONS, + "oauth_scopes": declared_oauth_scopes(operation.get("x-oauth-scopes") or [], read_only), # Human-readable title for the annotation. First line of the # OpenAPI summary, capped so it stays a short label. "title": summary.split("\n")[0].strip()[:80], @@ -862,6 +934,13 @@ def main() -> int: "idempotency_scope": tool_name if operation_id in SAME_ARGUMENTS_IDEMPOTENT_OPERATIONS else None, }) + # The ChatGPT surface declares each listed tool's OAuth scope from this + # table: a spec without any x-oauth-scopes (fetched before the API served + # them) would empty it, so refuse to generate rather than ship that. + if operations and not any(op["oauth_scopes"] for op in operations): + print("Error: the spec carries no x-oauth-scopes; not regenerating.", file=sys.stderr) + return 1 + # Generate output file lines = [ '"""', @@ -987,6 +1066,7 @@ def main() -> int: op["description"], op["platforms"], op["idempotency_scope"], + open_world=op["open_world"], ) # Indent for being inside register function handler_lines = handler.split("\n") @@ -996,6 +1076,8 @@ def main() -> int: else: lines.append("") + lines.extend(oauth_scope_table(operations)) + # Output output_file = project_root / "src" / "late" / "mcp" / "generated_tools.py" output_file.write_text("\n".join(lines) + "\n") diff --git a/src/late/mcp/auth.py b/src/late/mcp/auth.py index 2ed4c3fa..ab5212fe 100644 --- a/src/late/mcp/auth.py +++ b/src/late/mcp/auth.py @@ -89,9 +89,10 @@ def is_allowed_origin(request: Request) -> bool: _VERIFIED_AT: OrderedDict[str, float] = OrderedDict() _VERIFIED_CACHE_LOCK = threading.Lock() _VERIFIED_CACHE_MAX = 10_000 -# sha256(token) -> the Zernio user id the verify answer named, so a grant served -# from cache still says whose token it is. -_USER_ID_BY_TOKEN: OrderedDict[str, str] = OrderedDict() +# sha256(token) -> what the verify answer said about the credential: the Zernio +# user id and, for an OAuth token, its granted scope. Kept so a grant served +# from cache still says whose token it is and what it may reach. +_IDENTITY_BY_TOKEN: OrderedDict[str, dict[str, str]] = OrderedDict() _FRESH_TTL_SECONDS = 600.0 _VERIFY_KEEPALIVE_SECONDS = 60.0 _IN_FLIGHT: dict[str, "asyncio.Task[Verification]"] = {} @@ -153,29 +154,38 @@ def _touch(token_key: str) -> None: with _VERIFIED_CACHE_LOCK: if token_key in _VERIFIED_AT: _VERIFIED_AT.move_to_end(token_key) + if token_key in _IDENTITY_BY_TOKEN: + _IDENTITY_BY_TOKEN.move_to_end(token_key) def _forget(token_key: str) -> None: with _VERIFIED_CACHE_LOCK: _VERIFIED_AT.pop(token_key, None) - _USER_ID_BY_TOKEN.pop(token_key, None) + _IDENTITY_BY_TOKEN.pop(token_key, None) -def _remember_user_id(token_key: str, user_id: str) -> None: +def _remember_identity(token_key: str, identity: dict[str, str]) -> None: with _VERIFIED_CACHE_LOCK: - _USER_ID_BY_TOKEN[token_key] = user_id - _USER_ID_BY_TOKEN.move_to_end(token_key) - while len(_USER_ID_BY_TOKEN) > _VERIFIED_CACHE_MAX: - _USER_ID_BY_TOKEN.popitem(last=False) + _IDENTITY_BY_TOKEN[token_key] = identity + _IDENTITY_BY_TOKEN.move_to_end(token_key) + while len(_IDENTITY_BY_TOKEN) > _VERIFIED_CACHE_MAX: + _IDENTITY_BY_TOKEN.popitem(last=False) -def _user_id_in(response: httpx.Response) -> str | None: +def _identity_in(response: httpx.Response) -> dict[str, str]: + """The user id and OAuth scope a verify answer names, as grant claims.""" try: body = response.json() except ValueError: - return None - user_id = body.get("userId") if isinstance(body, dict) else None - return user_id if isinstance(user_id, str) and user_id else None + return {} + if not isinstance(body, dict): + return {} + named = {"user_id": body.get("userId"), "scope": body.get("scope")} + return { + claim: value + for claim, value in named.items() + if isinstance(value, str) and value + } def forget_rejected_token(token: str) -> None: @@ -222,9 +232,9 @@ async def verify_late_api_key( await client.aclose() verdict = _classify(response.status_code) - user_id = _user_id_in(response) if response.status_code == 200 else None - if user_id: - _remember_user_id(token_cache_key(api_key), user_id) + identity = _identity_in(response) if response.status_code == 200 else {} + if identity: + _remember_identity(token_cache_key(api_key), identity) if verdict is Verification.UNKNOWN: logger.warning( "Zernio token verification inconclusive: HTTP %s", @@ -307,9 +317,7 @@ def _grant( "resolved_by": resolved_by, "waited_ms": waited_ms, } - user_id = _USER_ID_BY_TOKEN.get(token_cache_key(token)) - if user_id: - claims["user_id"] = user_id + claims.update(_IDENTITY_BY_TOKEN.get(token_cache_key(token), {})) return AccessToken( token=token, client_id="zernio", diff --git a/src/late/mcp/chatgpt_server.py b/src/late/mcp/chatgpt_server.py index 95584cb2..fc2a5644 100644 --- a/src/late/mcp/chatgpt_server.py +++ b/src/late/mcp/chatgpt_server.py @@ -25,9 +25,26 @@ from late.client.base import _retry_after_seconds from late.mcp.auth import build_auth_provider, forget_rejected_token +from late.mcp.chatgpt_tools import ( + CHATGPT_GENERATED_TOOLS, + oauth_scopes_of, + register_chatgpt_generated_tools, +) +from late.mcp.constants import ( + ENDPOINT_CHATGPT, + ENDPOINT_OAUTH_PROTECTED_RESOURCE, + MCP_PUBLIC_URL, +) +from late.mcp.generated_tools import TOOL_OAUTH_SCOPES from late.mcp.media_items import media_item -from late.mcp.middleware import WellFormedOutputMiddleware, WellFormedOutputTransform +from late.mcp.middleware import ( + MissingScopeChallengeMiddleware, + RateLimitGuidanceMiddleware, + WellFormedOutputMiddleware, + WellFormedOutputTransform, +) from late.mcp.middleware.rate_limit import wait_hint +from late.mcp.server import _get_client from late.mcp.user_agent import mcp_user_agent API_BASE = ( @@ -48,9 +65,15 @@ "Saturday", "Sunday", ] -# Everything this surface can do fits these four; ChatGPT asks the user to -# grant every scope the discovery document advertises. -CHATGPT_SCOPES = ["posts:read", "posts:write", "accounts:read", "analytics:read"] +# The hand-shaped tools need the first four; the generated ones add theirs. +# ChatGPT asks the user to grant every scope the discovery document advertises, +# so a scope no listed tool needs must not be here. +CHATGPT_SCOPES = list( + dict.fromkeys( + ["posts:read", "posts:write", "accounts:read", "analytics:read"] + + oauth_scopes_of(CHATGPT_GENERATED_TOOLS) + ) +) PostStatus = Literal["draft", "scheduled", "published", "failed"] @@ -536,6 +559,16 @@ def _describe_post(post: Post, verb: str) -> str: auth=build_auth_provider(scopes=CHATGPT_SCOPES), ) chatgpt_mcp.add_middleware(WellFormedOutputMiddleware()) +chatgpt_mcp.add_middleware(RateLimitGuidanceMiddleware()) +chatgpt_mcp.add_middleware( + MissingScopeChallengeMiddleware( + scopes_by_tool=TOOL_OAUTH_SCOPES, + resource_metadata_url=( + f"{MCP_PUBLIC_URL}{ENDPOINT_OAUTH_PROTECTED_RESOURCE}{ENDPOINT_CHATGPT}" + ), + scopes=CHATGPT_SCOPES, + ) +) chatgpt_mcp.add_transform(WellFormedOutputTransform()) @@ -1126,3 +1159,6 @@ async def get_best_time_to_post( for s in slots[:5] ] return _result(best, "Best times to post (UTC):\n" + "\n".join(lines)) + + +register_chatgpt_generated_tools(chatgpt_mcp, _get_client) diff --git a/src/late/mcp/chatgpt_tools.py b/src/late/mcp/chatgpt_tools.py new file mode 100644 index 00000000..88e02d29 --- /dev/null +++ b/src/late/mcp/chatgpt_tools.py @@ -0,0 +1,152 @@ +"""The generated tools the ChatGPT plugin lists next to its 13 hand-shaped ones. + +The plugin's tools/list is reviewed by OpenAI one tool at a time: every tool a +deploy adds here is held until OpenAI's next scan clears it, then goes live +without a resubmission. So the list grows in waves, each one deploy, and stays +curated (a few dozen tools per wave, about 150 in all) rather than mirroring +the ~1,400 tools /mcp serves. +""" + +from __future__ import annotations + +import inspect +import re +from typing import TYPE_CHECKING, Any + +from late.mcp.generated_tools import TOOL_OAUTH_SCOPES, register_generated_tools + +if TYPE_CHECKING: + from collections.abc import Callable, Iterable + + from fastmcp import FastMCP + +# Ranked by 30-day use (REST requests plus /mcp tool calls), top first: the 40 +# most used reads. Each declares its group's read scope (messaging:read, +# ads:read, contacts:read where the group has one), so a link that only reads +# never grants sending or spending. Sends, writes, deletes and spend are later +# waves. +WAVE_1 = ( + "messages_get_inbox_conversation_messages", + "comments_get_inbox_post_comments", + "messages_list_inbox_conversations", + "comments_list_inbox_comments", + "comment_automations_list_comment_automation_logs", + "accounts_get_account_health", + "messages_get_inbox_conversation", + "comment_automations_get_comment_automation", + "accounts_get_google_business_reviews", + "analytics_get_instagram_account_insights", + "accounts_get_account_posts", + "profiles_list_profiles", + "accounts_get_all_accounts_health", + "ad_accounts_get_ad_comments", + "ad_insights_query_ad_insights", + "whatsapp_phone_numbers_get_whats_app_number_info", + "lead_gen_list_form_leads", + "broadcasts_list_broadcast_recipients", + "reviews_list_inbox_reviews", + "ad_campaigns_get_ad_tree", + "ad_campaigns_get_ad", + "comment_automations_list_comment_automations", + "instagram_get_instagram_story_insights", + "ad_campaigns_list_ads", + "analytics_get_tik_tok_account_insights", + "workflows_list_workflow_executions", + "accounts_get_google_business_location_details", + "ad_insights_get_ad_analytics", + "analytics_get_google_business_performance", + "ad_campaigns_list_ad_campaigns", + "analytics_get_you_tube_daily_views", + "ad_accounts_list_ad_accounts", + "analytics_get_post_timeline", + "ad_campaigns_get_ad_set_details", + "accounts_get_instagram_follow_status", + "accounts_get_follower_stats", + "analytics_get_instagram_demographics", + "whatsapp_get_whats_app_templates", + "analytics_get_linked_in_post_analytics", + "contacts_list_contacts", +) + +CHATGPT_GENERATED_TOOLS = WAVE_1 + + +_SUMMARY_MAX = 400 +_PARAM_MAX = 100 +_ARGS_HEADING = re.compile(r"\n[ \t]*Args:\n") +_PARAM_LINE = re.compile(r"^([ \t]+)(\w+)(?::[ \t]*(.*))?$") + + +def _clip(text: str, limit: int) -> str: + text = " ".join(text.split()) + return text if len(text) <= limit else text[: limit - 3].rstrip() + "..." + + +def _argument_lines(args: str) -> list[str]: + """The first line of each argument; continuation lines (lists, notes) are dropped.""" + matches = [m for m in map(_PARAM_LINE.match, args.splitlines()) if m] + if not matches: + return [] + indent = matches[0][1] + return [ + f" {m[2]}: {_clip(m[3] or '', _PARAM_MAX)}".rstrip(": ") + for m in matches + if m[1] == indent + ] + + +def concise_description(doc: str) -> str: + """A generated tool's docstring cut to its first paragraph and one line per argument. + + The generated docstrings carry the API reference (metric catalogues, platform + caveats), several hundred tokens a tool; ChatGPT loads every listed tool's + description, so here it gets the gist and reads details from the result. + """ + narrative, *rest = _ARGS_HEADING.split(doc, maxsplit=1) + paragraphs = [p for p in inspect.cleandoc(narrative).split("\n\n") if p.strip()] + sections = [_clip(p, _SUMMARY_MAX) for p in paragraphs[:2]] + arguments = _argument_lines(rest[0]) if rest else [] + if arguments: + sections.append("\n".join(["Args:", *arguments])) + return "\n\n".join(sections) + + +def oauth_scopes_of(tools: Iterable[str]) -> list[str]: + """The scopes these generated tools declare, deduplicated in first-use order.""" + return list( + dict.fromkeys(s for tool in tools for s in TOOL_OAUTH_SCOPES.get(tool, ())[:1]) + ) + + +class _ListedToolsOnly: + """Stands in for the server in register_generated_tools: registers only the + listed tools, each declaring its OAuth scope (securitySchemes).""" + + def __init__(self, server: FastMCP, listed: Iterable[str]) -> None: + self._server = server + self._listed = set(listed) + + def tool(self, **kwargs: Any) -> Callable[[Callable[..., Any]], Callable[..., Any]]: + def register(fn: Callable[..., Any]) -> Callable[..., Any]: + if fn.__name__ not in self._listed: + return fn + scopes = list(TOOL_OAUTH_SCOPES.get(fn.__name__, ()))[:1] + if not scopes: + raise LookupError( + f"{fn.__name__} is listed for ChatGPT but the spec gives it no " + "x-oauth-scopes; regenerate from a spec that has them" + ) + meta = {"securitySchemes": [{"type": "oauth2", "scopes": scopes}]} + description = concise_description(fn.__doc__ or fn.__name__) + self._server.tool(meta=meta, description=description, **kwargs)(fn) + return fn + + return register + + +def register_chatgpt_generated_tools( + server: FastMCP, get_client: Callable[[], Any] +) -> None: + register_generated_tools( + _ListedToolsOnly(server, CHATGPT_GENERATED_TOOLS), get_client + ) diff --git a/src/late/mcp/constants.py b/src/late/mcp/constants.py index 80437f74..9acfa33d 100644 --- a/src/late/mcp/constants.py +++ b/src/late/mcp/constants.py @@ -79,6 +79,9 @@ "files:write", "campaigns:write", "money:write", + "ads:read", + "contacts:read", + "messaging:read", ] # Documentation diff --git a/src/late/mcp/generated_tools.py b/src/late/mcp/generated_tools.py index 6e2fd739..173736b5 100644 --- a/src/late/mcp/generated_tools.py +++ b/src/late/mcp/generated_tools.py @@ -2003,9 +2003,9 @@ def accounts_update_google_business_place_action( @mcp.tool( annotations=ToolAnnotations( title="Batch get reviews", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def accounts_batch_get_google_business_reviews( @@ -12680,9 +12680,9 @@ def ad_campaigns_update_campaign_conversion_goals( @mcp.tool( annotations=ToolAnnotations( title="Render pre-create ad previews", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def ad_creatives_generate_ad_previews( @@ -13750,9 +13750,9 @@ def ad_insights_get_campaign_analytics( @mcp.tool( annotations=ToolAnnotations( title="Generate keyword ideas", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def ad_insights_generate_keyword_ideas( @@ -13815,9 +13815,9 @@ def ad_insights_generate_keyword_ideas( @mcp.tool( annotations=ToolAnnotations( title="Get historical keyword metrics", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def ad_insights_generate_keyword_historical_metrics( @@ -14243,7 +14243,7 @@ def ad_insights_get_tik_tok_smart_plus_material_report( title="Search the public Ad Library", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def ad_library_search_ad_library( @@ -14727,9 +14727,9 @@ def ad_rules_delete_ad_rule(rule_id: str) -> str: @mcp.tool( annotations=ToolAnnotations( title="Preview an ad rule", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def ad_rules_preview_ad_rule(rule_id: str) -> str: @@ -15041,9 +15041,9 @@ def ad_targeting_browse_ad_targeting( @mcp.tool( annotations=ToolAnnotations( title="Estimate audience reach", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def ad_targeting_estimate_ad_reach( @@ -15102,9 +15102,9 @@ def ad_targeting_estimate_ad_reach( @mcp.tool( annotations=ToolAnnotations( title="Suggested bid and budget bounds", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def ad_targeting_get_linked_in_bid_pricing( @@ -15165,9 +15165,9 @@ def ad_targeting_get_linked_in_bid_pricing( @mcp.tool( annotations=ToolAnnotations( title="Forecast ad delivery", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def ad_targeting_get_linked_in_supply_forecast( @@ -16548,9 +16548,9 @@ def analytics_get_post_timeline( @mcp.tool( annotations=ToolAnnotations( title="Run a Google Analytics (GA4) report", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def analytics_run_google_analytics_report( @@ -16612,9 +16612,9 @@ def analytics_run_google_analytics_report( @mcp.tool( annotations=ToolAnnotations( title="Run a Google Analytics (GA4) realtime report", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def analytics_run_google_analytics_realtime_report( @@ -16686,9 +16686,9 @@ def analytics_get_google_analytics_metadata(account_id: str) -> str: @mcp.tool( annotations=ToolAnnotations( title="Query Google Search Console search analytics", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def analytics_query_google_search_console_search_analytics( @@ -16795,9 +16795,9 @@ def analytics_list_google_search_console_sitemaps(account_id: str) -> str: @mcp.tool( annotations=ToolAnnotations( title="Inspect a URL in Google Search Console", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def analytics_inspect_google_search_console_url( @@ -17833,9 +17833,9 @@ def automations_get_automation_run(automation_id: str, run_id: str) -> str: @mcp.tool( annotations=ToolAnnotations( title="Preview an unsaved automation", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def automations_preview_automation_draft( @@ -18042,9 +18042,9 @@ def automations_take_over_automation(automation_id: str) -> str: @mcp.tool( annotations=ToolAnnotations( title="Preview a saved automation", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def automations_preview_automation(automation_id: str, limit: int = 100) -> str: @@ -30803,9 +30803,9 @@ def connect_create_google_business_location( @mcp.tool( annotations=ToolAnnotations( title="Search existing Google listings", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def connect_search_google_business_locations( @@ -35342,9 +35342,9 @@ def creator_campaigns_list_campaign_payout_batches( @mcp.tool( annotations=ToolAnnotations( title="Preview a payout batch", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def creator_campaigns_preview_campaign_payout_batch( @@ -40154,9 +40154,9 @@ def gmb_verifications_start_google_business_verification( @mcp.tool( annotations=ToolAnnotations( title="Fetch verification options", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def gmb_verifications_fetch_google_business_verification_options( @@ -41362,7 +41362,7 @@ def instagram_get_instagram_audio(account_id: str, audio_id: str) -> str: title="Look up a public Instagram Business account", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def instagram_get_instagram_business_discovery( @@ -45929,9 +45929,9 @@ def metrics_get_ad_account_metrics( @mcp.tool( annotations=ToolAnnotations( title="Run a Meta Marketing API insights query on one ad account", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def metrics_query_meta_ads( @@ -46012,9 +46012,9 @@ def metrics_query_meta_ads( @mcp.tool( annotations=ToolAnnotations( title="Run a Google Ads Query Language search on one customer", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def metrics_query_google_ads( @@ -46059,9 +46059,9 @@ def metrics_query_google_ads( @mcp.tool( annotations=ToolAnnotations( title="Run a TikTok Marketing API report on one advertiser", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def metrics_query_tik_tok_ads( @@ -46129,9 +46129,9 @@ def metrics_query_tik_tok_ads( @mcp.tool( annotations=ToolAnnotations( title="Run a GA4 standard or realtime report on one property", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def metrics_query_google_analytics(body: dict[str, Any]) -> str: @@ -46703,9 +46703,9 @@ def phone_numbers_upload_phone_number_kyc_document( @mcp.tool( annotations=ToolAnnotations( title="Pre-validate KYC address", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def phone_numbers_validate_phone_number_kyc_address( @@ -46897,9 +46897,9 @@ def phone_numbers_list_phone_number_port_ins() -> str: @mcp.tool( annotations=ToolAnnotations( title="Check portability", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def phone_numbers_check_phone_number_portability( @@ -50108,7 +50108,7 @@ def reach_and_frequency_reserve_rf_prediction( title="Search posts", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def reddit_search_reddit( @@ -50154,7 +50154,7 @@ def reddit_search_reddit( title="Get subreddit feed", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def reddit_get_reddit_feed( @@ -50197,7 +50197,7 @@ def reddit_get_reddit_feed( title="Get the comments of a Reddit post", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def reddit_get_reddit_post_comments( @@ -53143,9 +53143,9 @@ def treasury_list_topups(limit: int = 50, skip: int = 0) -> str: @mcp.tool( annotations=ToolAnnotations( title="Preview a top-up's tax", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def treasury_preview_topup(amount_cents: int) -> str: @@ -53660,7 +53660,7 @@ def twitter_engagement_unfollow_user(account_id: str, target_user_id: str) -> st title="Search recent tweets", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def twitter_engagement_search_tweets( @@ -53724,7 +53724,7 @@ def twitter_engagement_search_tweets( title="Look up a tweet", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def twitter_engagement_get_tweet( @@ -54152,9 +54152,9 @@ def users_remove_user(user_id: str) -> str: @mcp.tool( annotations=ToolAnnotations( title="Validate character count", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def validate_post_length(text: str) -> str: @@ -54194,9 +54194,9 @@ def validate_post_length(text: str) -> str: @mcp.tool( annotations=ToolAnnotations( title="Validate post content", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def validate_post( @@ -54232,9 +54232,9 @@ def validate_post( @mcp.tool( annotations=ToolAnnotations( title="Validate media URL", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def validate_media(url: str) -> str: @@ -59291,9 +59291,9 @@ def whatsapp_phone_numbers_upload_whats_app_number_kyc_document( @mcp.tool( annotations=ToolAnnotations( title="Pre-validate KYC address", - readOnlyHint=False, - destructiveHint=True, - openWorldHint=True, + readOnlyHint=True, + destructiveHint=False, + openWorldHint=False, ) ) def whatsapp_phone_numbers_validate_whats_app_number_kyc_address( @@ -60411,3 +60411,3210 @@ def workspaces_create_workspace_api_key( return _format_response(response) except Exception as e: raise ToolError(f"Error: {e}") from e + + +# The OAuth scopes any one of which reaches each tool, from the spec's x-oauth-scopes; +# the first is the one the tool declares (securitySchemes). +TOOL_OAUTH_SCOPES: dict[str, tuple[str, ...]] = { + "account_groups_create_account_group": ( + "accounts:write", + "accounts:read", + ), + "account_groups_delete_account_group": ( + "accounts:write", + "accounts:read", + ), + "account_groups_list_account_groups": ( + "accounts:read", + "accounts:write", + ), + "account_groups_update_account_group": ( + "accounts:write", + "accounts:read", + ), + "account_settings_delete_instagram_ice_breakers": ( + "accounts:write", + "accounts:read", + ), + "account_settings_delete_messenger_get_started": ( + "accounts:write", + "accounts:read", + ), + "account_settings_delete_messenger_greeting": ( + "accounts:write", + "accounts:read", + ), + "account_settings_delete_messenger_ice_breakers": ( + "accounts:write", + "accounts:read", + ), + "account_settings_delete_messenger_menu": ( + "accounts:write", + "accounts:read", + ), + "account_settings_delete_telegram_commands": ( + "accounts:write", + "accounts:read", + ), + "account_settings_get_facebook_page_info": ( + "accounts:read", + "accounts:write", + ), + "account_settings_get_instagram_ice_breakers": ( + "accounts:read", + "accounts:write", + ), + "account_settings_get_messenger_get_started": ( + "accounts:read", + "accounts:write", + ), + "account_settings_get_messenger_greeting": ( + "accounts:read", + "accounts:write", + ), + "account_settings_get_messenger_ice_breakers": ( + "accounts:read", + "accounts:write", + ), + "account_settings_get_messenger_menu": ( + "accounts:read", + "accounts:write", + ), + "account_settings_get_telegram_commands": ( + "accounts:read", + "accounts:write", + ), + "account_settings_get_wechat_server_config": ( + "accounts:read", + "accounts:write", + ), + "account_settings_set_instagram_ice_breakers": ( + "accounts:write", + "accounts:read", + ), + "account_settings_set_messenger_get_started": ( + "accounts:write", + "accounts:read", + ), + "account_settings_set_messenger_greeting": ( + "accounts:write", + "accounts:read", + ), + "account_settings_set_messenger_ice_breakers": ( + "accounts:write", + "accounts:read", + ), + "account_settings_set_messenger_menu": ( + "accounts:write", + "accounts:read", + ), + "account_settings_set_telegram_commands": ( + "accounts:write", + "accounts:read", + ), + "account_settings_update_facebook_page_info": ( + "accounts:write", + "accounts:read", + ), + "accounts_batch_get_google_business_reviews": ("messaging:write",), + "accounts_create_google_business_media": ( + "accounts:write", + "accounts:read", + ), + "accounts_create_google_business_place_action": ( + "accounts:write", + "accounts:read", + ), + "accounts_delete_account": ( + "accounts:write", + "accounts:read", + ), + "accounts_delete_google_business_media": ( + "accounts:write", + "accounts:read", + ), + "accounts_delete_google_business_place_action": ( + "accounts:write", + "accounts:read", + ), + "accounts_delete_google_business_review_reply": ("messaging:write",), + "accounts_get_account": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_account_health": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_account_posts": ( + "posts:read", + "posts:write", + ), + "accounts_get_all_accounts_health": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_bluesky_settings": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_follower_stats": ("analytics:read",), + "accounts_get_gmb_attribute_metadata": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_gohighlevel_funnel_tracking": ( + "ads:read", + "ads:write", + ), + "accounts_get_gohighlevel_settings": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_google_business_attributes": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_google_business_food_menus": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_google_business_location_details": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_google_business_review": ( + "messaging:read", + "messaging:write", + ), + "accounts_get_google_business_reviews": ( + "messaging:read", + "messaging:write", + ), + "accounts_get_hub_spot_settings": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_instagram_follow_status": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_linked_in_mentions": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_salesforce_settings": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_slack_settings": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_stripe_settings": ( + "accounts:read", + "accounts:write", + ), + "accounts_get_tik_tok_creator_info": ( + "accounts:read", + "accounts:write", + ), + "accounts_grant_business_partner": ( + "accounts:write", + "accounts:read", + ), + "accounts_list_accounts": ( + "accounts:read", + "accounts:write", + ), + "accounts_list_business_partners": ( + "accounts:read", + "accounts:write", + ), + "accounts_list_gohighlevel_audience_syncs": ( + "ads:read", + "ads:write", + ), + "accounts_list_google_business_media": ( + "accounts:read", + "accounts:write", + ), + "accounts_list_google_business_place_actions": ( + "accounts:read", + "accounts:write", + ), + "accounts_list_hub_spot_contact_properties": ( + "accounts:read", + "accounts:write", + ), + "accounts_list_tik_tok_commercial_music": ( + "accounts:read", + "accounts:write", + ), + "accounts_move_account_to_profile": ( + "accounts:write", + "accounts:read", + ), + "accounts_reply_to_google_business_review": ("messaging:write",), + "accounts_revoke_business_partner": ( + "accounts:write", + "accounts:read", + ), + "accounts_search_tik_tok_locations": ( + "accounts:read", + "accounts:write", + ), + "accounts_send_gohighlevel_past_won_deals": ("ads:write",), + "accounts_start_gohighlevel_audience_sync": ("ads:write",), + "accounts_stop_gohighlevel_audience_sync": ("ads:write",), + "accounts_update_account": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_bluesky_settings": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_gohighlevel_settings": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_google_business_attributes": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_google_business_food_menus": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_google_business_location_details": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_google_business_place_action": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_hub_spot_settings": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_salesforce_settings": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_slack_settings": ( + "accounts:write", + "accounts:read", + ), + "accounts_update_stripe_settings": ( + "accounts:write", + "accounts:read", + ), + "accounts_verify_gohighlevel_funnel_tracking": ("ads:write",), + "ad_accounts_add_account_callouts": ("ads:write",), + "ad_accounts_add_account_sitelinks": ("ads:write",), + "ad_accounts_add_account_structured_snippets": ("ads:write",), + "ad_accounts_assign_ad_account_user": ("ads:write",), + "ad_accounts_assign_page_user": ("ads:write",), + "ad_accounts_attach_ad_label": ("ads:write",), + "ad_accounts_create_ad_account": ("ads:write",), + "ad_accounts_create_ad_label": ("ads:write",), + "ad_accounts_create_ad_negative_keyword_list": ("ads:write",), + "ad_accounts_create_custom_conversion": ( + "accounts:write", + "accounts:read", + ), + "ad_accounts_create_high_demand_period": ("ads:write",), + "ad_accounts_create_value_rule_set": ("ads:write",), + "ad_accounts_delete_ad_comment": ("messaging:write",), + "ad_accounts_delete_ad_negative_keyword_list": ("ads:write",), + "ad_accounts_delete_value_rule_set": ("ads:write",), + "ad_accounts_detach_ad_label": ("ads:write",), + "ad_accounts_edit_ad_negative_keyword_list_keywords": ("ads:write",), + "ad_accounts_get_ad_account_billing": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_ad_account_finance": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_ad_account_health": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_ad_account_hierarchy": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_ad_account_live_entities": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_ad_comments": ( + "messaging:read", + "messaging:write", + ), + "ad_accounts_get_ad_negative_keyword_list": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_ads_activity_log": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_dsa_defaults": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_dsa_recommendations": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_ios_fourteen_campaign_limits": ( + "ads:read", + "ads:write", + ), + "ad_accounts_get_value_rule_set": ( + "ads:read", + "ads:write", + ), + "ad_accounts_hide_ad_comment": ("messaging:write",), + "ad_accounts_invite_ad_account_to_manager": ("ads:write",), + "ad_accounts_invite_ad_account_user": ("ads:write",), + "ad_accounts_list_account_callouts": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_account_sitelinks": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_account_structured_snippets": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ad_account_user_invitation_approvals": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ad_account_user_invitations": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ad_account_users": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ad_accounts": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ad_labels": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ad_negative_keyword_lists": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ad_studies": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ads_business_centers": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ads_instagram_accounts": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_ads_instagram_posts": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_advertisable_applications": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_custom_conversions": ( + "accounts:read", + "accounts:write", + ), + "ad_accounts_list_high_demand_periods": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_meta_business_users": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_meta_businesses": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_page_users": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_tik_tok_ad_pixels": ( + "ads:read", + "ads:write", + ), + "ad_accounts_list_value_rule_sets": ( + "ads:read", + "ads:write", + ), + "ad_accounts_remove_account_callout": ("ads:write",), + "ad_accounts_remove_account_sitelink": ("ads:write",), + "ad_accounts_remove_account_structured_snippet": ("ads:write",), + "ad_accounts_remove_ad_account_user": ("ads:write",), + "ad_accounts_remove_ad_label": ("ads:write",), + "ad_accounts_remove_page_user": ("ads:write",), + "ad_accounts_replace_ad_negative_keyword_list_keywords": ("ads:write",), + "ad_accounts_reply_to_ad_comment": ("messaging:write",), + "ad_accounts_revoke_ad_account_user_invitation": ("ads:write",), + "ad_accounts_set_up_ad_account_billing": ("ads:write",), + "ad_accounts_update_account_callouts": ("ads:write",), + "ad_accounts_update_account_sitelinks": ("ads:write",), + "ad_accounts_update_account_structured_snippets": ("ads:write",), + "ad_accounts_update_ad_account": ("ads:write",), + "ad_accounts_update_ad_account_manager_link": ("ads:write",), + "ad_accounts_update_ad_label": ("ads:write",), + "ad_accounts_update_ad_negative_keyword_list": ("ads:write",), + "ad_accounts_update_value_rule_set": ("ads:write",), + "ad_accounts_withdraw_ad_account_user_invitation_approval": ("ads:write",), + "ad_audiences_add_users_to_ad_audience": ("ads:write",), + "ad_audiences_create_ad_audience": ("ads:write",), + "ad_audiences_delete_ad_audience": ("ads:write",), + "ad_audiences_get_ad_audience": ( + "ads:read", + "ads:write", + ), + "ad_audiences_list_ad_audiences": ( + "ads:read", + "ads:write", + ), + "ad_audiences_remove_users_from_ad_audience": ("ads:write",), + "ad_audiences_replace_ad_audience_companies": ("ads:write",), + "ad_audiences_update_ad_audience": ("ads:write",), + "ad_campaign_results_get_campaign_result_events": ( + "ads:read", + "ads:write", + ), + "ad_campaign_results_get_campaign_result_profit": ( + "ads:read", + "ads:write", + ), + "ad_campaign_results_get_campaign_results_totals": ( + "ads:read", + "ads:write", + ), + "ad_campaign_results_get_campaign_results_upload": ( + "ads:read", + "ads:write", + ), + "ad_campaign_results_get_tag_new_ads": ( + "ads:read", + "ads:write", + ), + "ad_campaign_results_list_campaign_result_metrics": ( + "ads:read", + "ads:write", + ), + "ad_campaign_results_list_campaign_results": ( + "ads:read", + "ads:write", + ), + "ad_campaign_results_set_campaign_result_events": ("ads:write",), + "ad_campaign_results_set_campaign_result_metric": ("ads:write",), + "ad_campaign_results_set_campaign_result_profit": ("ads:write",), + "ad_campaign_results_set_tag_new_ads": ("ads:write",), + "ad_campaign_results_upload_campaign_results": ("ads:write",), + "ad_campaigns_add_ad_keywords": ("ads:write",), + "ad_campaigns_apply_google_recommendations": ("ads:write",), + "ad_campaigns_attach_ad_group_assets": ("ads:write",), + "ad_campaigns_attach_campaign_assets": ("ads:write",), + "ad_campaigns_boost_post": ("ads:write",), + "ad_campaigns_bulk_update_ad_campaign_status": ("ads:write",), + "ad_campaigns_create_ad_campaign": ("ads:write",), + "ad_campaigns_create_ad_set": ("ads:write",), + "ad_campaigns_create_bid_strategy": ("ads:write",), + "ad_campaigns_create_google_asset_group": ("ads:write",), + "ad_campaigns_create_shared_budget": ("ads:write",), + "ad_campaigns_create_standalone_ad": ("ads:write",), + "ad_campaigns_delete_ad": ("ads:write",), + "ad_campaigns_delete_ad_campaign": ("ads:write",), + "ad_campaigns_delete_ad_set": ("ads:write",), + "ad_campaigns_dismiss_ads_alert": ("ads:write",), + "ad_campaigns_dismiss_google_recommendations": ("ads:write",), + "ad_campaigns_duplicate_ad": ("ads:write",), + "ad_campaigns_duplicate_ad_campaign": ("ads:write",), + "ad_campaigns_duplicate_ad_set": ("ads:write",), + "ad_campaigns_edit_campaign_negative_keyword_lists": ("ads:write",), + "ad_campaigns_edit_campaign_negative_keywords": ("ads:write",), + "ad_campaigns_edit_google_asset_group_assets": ("ads:write",), + "ad_campaigns_get_ad": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_ad_campaign_details": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_ad_review": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_ad_set_details": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_ad_set_targeting": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_ad_tree": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_ads_timeline": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_campaign_ad_schedule": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_campaign_bidding": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_campaign_conversion_goals": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_campaign_targeting": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_google_asset_group": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_get_tik_tok_smart_plus_ad_review": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_ad_campaigns": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_ad_group_assets": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_ad_keywords": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_ad_sets": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_ads": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_ads_alerts": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_ads_by_performance": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_bid_strategies": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_campaign_assets": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_campaign_negative_keyword_lists": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_campaign_negative_keywords": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_google_asset_groups": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_google_recommendations": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_shared_budgets": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_list_tik_tok_smart_plus_reviews": ( + "ads:read", + "ads:write", + ), + "ad_campaigns_remove_ad_group_assets": ("ads:write",), + "ad_campaigns_remove_ad_keyword": ("ads:write",), + "ad_campaigns_remove_campaign_assets": ("ads:write",), + "ad_campaigns_remove_google_asset_group": ("ads:write",), + "ad_campaigns_replace_campaign_negative_keyword_lists": ("ads:write",), + "ad_campaigns_replace_campaign_negative_keywords": ("ads:write",), + "ad_campaigns_replace_google_listing_group_filters": ("ads:write",), + "ad_campaigns_update_ad": ("ads:write",), + "ad_campaigns_update_ad_campaign": ("ads:write",), + "ad_campaigns_update_ad_campaign_status": ("ads:write",), + "ad_campaigns_update_ad_group_assets": ("ads:write",), + "ad_campaigns_update_ad_keyword": ("ads:write",), + "ad_campaigns_update_ad_set": ("ads:write",), + "ad_campaigns_update_ad_set_status": ("ads:write",), + "ad_campaigns_update_ad_status": ("ads:write",), + "ad_campaigns_update_bid_strategy": ("ads:write",), + "ad_campaigns_update_campaign_ad_schedule": ("ads:write",), + "ad_campaigns_update_campaign_assets": ("ads:write",), + "ad_campaigns_update_campaign_conversion_goals": ("ads:write",), + "ad_campaigns_update_campaign_targeting": ("ads:write",), + "ad_campaigns_update_google_asset_group": ("ads:write",), + "ad_creatives_create_ad_creative": ("ads:write",), + "ad_creatives_delete_ad_creative": ("ads:write",), + "ad_creatives_delete_ad_video": ("ads:write",), + "ad_creatives_generate_ad_previews": ("ads:write",), + "ad_creatives_get_ad_creative": ( + "ads:read", + "ads:write", + ), + "ad_creatives_get_ad_media": ( + "ads:read", + "ads:write", + ), + "ad_creatives_get_ad_previews": ( + "ads:read", + "ads:write", + ), + "ad_creatives_get_ad_video_status": ( + "ads:read", + "ads:write", + ), + "ad_creatives_list_ad_creatives": ( + "ads:read", + "ads:write", + ), + "ad_creatives_list_ad_images": ( + "ads:read", + "ads:write", + ), + "ad_creatives_list_ad_videos": ( + "ads:read", + "ads:write", + ), + "ad_creatives_list_ads_tik_tok_identities": ( + "ads:read", + "ads:write", + ), + "ad_creatives_list_partnership_ad_content": ( + "ads:read", + "ads:write", + ), + "ad_creatives_list_partnership_ad_permissions": ( + "ads:read", + "ads:write", + ), + "ad_creatives_set_partnership_ad_permission": ("ads:write",), + "ad_creatives_update_ad_creative": ("ads:write",), + "ad_creatives_upload_ad_image": ("ads:write",), + "ad_creatives_upload_ad_video": ("ads:write",), + "ad_insights_create_ad_insights_report": ("ads:write",), + "ad_insights_generate_keyword_historical_metrics": ("ads:write",), + "ad_insights_generate_keyword_ideas": ("ads:write",), + "ad_insights_get_ad_analytics": ( + "ads:read", + "ads:write", + ), + "ad_insights_get_ad_insights_report": ( + "ads:read", + "ads:write", + ), + "ad_insights_get_ads_search_terms": ( + "ads:read", + "ads:write", + ), + "ad_insights_get_campaign_analytics": ( + "ads:read", + "ads:write", + ), + "ad_insights_get_tik_tok_smart_plus_material_report": ( + "ads:read", + "ads:write", + ), + "ad_insights_list_local_services_lead_conversations": ( + "ads:read", + "ads:write", + ), + "ad_insights_list_local_services_leads": ( + "ads:read", + "ads:write", + ), + "ad_insights_query_ad_insights": ( + "ads:read", + "ads:write", + ), + "ad_library_search_ad_library": ( + "ads:read", + "ads:write", + ), + "ad_rules_create_ad_rule": ("ads:write",), + "ad_rules_delete_ad_rule": ("ads:write",), + "ad_rules_get_ad_rule": ( + "ads:read", + "ads:write", + ), + "ad_rules_get_ad_rule_hourly_windows": ( + "ads:read", + "ads:write", + ), + "ad_rules_list_ad_account_rule_alerts": ( + "ads:read", + "ads:write", + ), + "ad_rules_list_ad_rule_activity": ( + "ads:read", + "ads:write", + ), + "ad_rules_list_ad_rule_alerts": ( + "ads:read", + "ads:write", + ), + "ad_rules_list_ad_rule_runs": ( + "ads:read", + "ads:write", + ), + "ad_rules_list_ad_rule_templates": ( + "ads:read", + "ads:write", + ), + "ad_rules_list_ad_rules": ( + "ads:read", + "ads:write", + ), + "ad_rules_preview_ad_rule": ("ads:write",), + "ad_rules_undo_ad_rule_activity": ("ads:write",), + "ad_rules_update_ad_rule": ("ads:write",), + "ad_targeting_browse_ad_targeting": ( + "ads:read", + "ads:write", + ), + "ad_targeting_estimate_ad_reach": ("ads:write",), + "ad_targeting_get_linked_in_bid_pricing": ("ads:write",), + "ad_targeting_get_linked_in_supply_forecast": ("ads:write",), + "ad_targeting_search_ad_interests": ( + "ads:read", + "ads:write", + ), + "ad_targeting_search_ad_targeting": ( + "ads:read", + "ads:write", + ), + "analytics_cancel_tracking_window": ("analytics:read",), + "analytics_get_analytics": ("analytics:read",), + "analytics_get_analytics_dashboard": ("analytics:read",), + "analytics_get_analytics_delta": ("analytics:read",), + "analytics_get_best_time_to_post": ("analytics:read",), + "analytics_get_content_decay": ("analytics:read",), + "analytics_get_daily_metrics": ("analytics:read",), + "analytics_get_facebook_demographics": ("analytics:read",), + "analytics_get_facebook_page_insights": ("analytics:read",), + "analytics_get_facebook_post_earnings": ("analytics:read",), + "analytics_get_facebook_post_reactions": ("analytics:read",), + "analytics_get_google_analytics_metadata": ("analytics:read",), + "analytics_get_google_business_performance": ("analytics:read",), + "analytics_get_google_business_search_keywords": ("analytics:read",), + "analytics_get_instagram_account_insights": ("analytics:read",), + "analytics_get_instagram_demographics": ("analytics:read",), + "analytics_get_instagram_follower_history": ("analytics:read",), + "analytics_get_instagram_online_followers": ("analytics:read",), + "analytics_get_linked_in_aggregate_analytics": ("analytics:read",), + "analytics_get_linked_in_demographics": ("analytics:read",), + "analytics_get_linked_in_org_aggregate_analytics": ("analytics:read",), + "analytics_get_linked_in_post_analytics": ("analytics:read",), + "analytics_get_linked_in_post_reactions": ("analytics:read",), + "analytics_get_pinterest_account_insights": ("analytics:read",), + "analytics_get_post_authenticity": ("analytics:read",), + "analytics_get_post_samples": ("analytics:read",), + "analytics_get_post_timeline": ("analytics:read",), + "analytics_get_posting_frequency": ("analytics:read",), + "analytics_get_tik_tok_account_insights": ("analytics:read",), + "analytics_get_tik_tok_demographics": ("analytics:read",), + "analytics_get_tracking_window": ("analytics:read",), + "analytics_get_you_tube_channel_insights": ("analytics:read",), + "analytics_get_you_tube_daily_views": ("analytics:read",), + "analytics_get_you_tube_demographics": ("analytics:read",), + "analytics_get_you_tube_video_retention": ("analytics:read",), + "analytics_inspect_google_search_console_url": ("analytics:read",), + "analytics_list_facebook_tagged_posts": ("analytics:read",), + "analytics_list_facebook_visitor_posts": ("analytics:read",), + "analytics_list_google_search_console_sitemaps": ("analytics:read",), + "analytics_list_post_authenticity": ("analytics:read",), + "analytics_list_tracking_windows": ("analytics:read",), + "analytics_open_tracking_window": ("analytics:read",), + "analytics_query_google_search_console_search_analytics": ("analytics:read",), + "analytics_run_google_analytics_realtime_report": ("analytics:read",), + "analytics_run_google_analytics_report": ("analytics:read",), + "analytics_sync_external_posts": ( + "posts:write", + "posts:read", + ), + "automations_activate_automation": ("ads:write",), + "automations_approve_automation_approval": ("ads:write",), + "automations_backtest_automation": ("ads:write",), + "automations_backtest_automation_draft": ("ads:write",), + "automations_create_automation": ("ads:write",), + "automations_create_automation_template": ("ads:write",), + "automations_delete_automation": ("ads:write",), + "automations_delete_automation_template": ("ads:write",), + "automations_get_automation": ( + "ads:read", + "ads:write", + ), + "automations_get_automation_approval": ( + "ads:read", + "ads:write", + ), + "automations_get_automation_catalog": ( + "ads:read", + "ads:write", + ), + "automations_get_automation_controls": ( + "ads:read", + "ads:write", + ), + "automations_get_automation_run": ( + "ads:read", + "ads:write", + ), + "automations_get_automation_template": ( + "ads:read", + "ads:write", + ), + "automations_get_shared_automation_template": ( + "ads:read", + "ads:write", + ), + "automations_get_zernio_automation_template": ( + "ads:read", + "ads:write", + ), + "automations_install_automation_template": ("ads:write",), + "automations_install_shared_automation_template": ("ads:write",), + "automations_install_zernio_automation_template": ("ads:write",), + "automations_list_automation_actions": ( + "ads:read", + "ads:write", + ), + "automations_list_automation_approvals": ( + "ads:read", + "ads:write", + ), + "automations_list_automation_checks": ( + "ads:read", + "ads:write", + ), + "automations_list_automation_runs": ( + "ads:read", + "ads:write", + ), + "automations_list_automation_templates": ( + "ads:read", + "ads:write", + ), + "automations_list_automations": ( + "ads:read", + "ads:write", + ), + "automations_pause_automation": ("ads:write",), + "automations_preview_automation": ("ads:write",), + "automations_preview_automation_draft": ("ads:write",), + "automations_reject_automation_approval": ("ads:write",), + "automations_take_over_automation": ("ads:write",), + "automations_update_automation": ("ads:write",), + "automations_update_automation_ad_account_controls": ("ads:write",), + "automations_update_automation_controls": ("ads:write",), + "automations_update_automation_template": ("ads:write",), + "blogs_create_blog": ( + "posts:write", + "posts:read", + ), + "blogs_create_blog_article": ( + "posts:write", + "posts:read", + ), + "blogs_delete_blog": ( + "posts:write", + "posts:read", + ), + "blogs_delete_blog_article": ( + "posts:write", + "posts:read", + ), + "blogs_get_blog": ( + "posts:read", + "posts:write", + ), + "blogs_get_blog_article": ( + "posts:read", + "posts:write", + ), + "blogs_list_blog_articles": ( + "posts:read", + "posts:write", + ), + "blogs_list_blogs": ( + "posts:read", + "posts:write", + ), + "blogs_update_blog": ( + "posts:write", + "posts:read", + ), + "blogs_update_blog_article": ( + "posts:write", + "posts:read", + ), + "branded_calling_attach_branded_calling_numbers": ("messaging:write",), + "branded_calling_confirm_branded_calling_authorizer_email": ("messaging:write",), + "branded_calling_create_branded_calling_enterprise": ("messaging:write",), + "branded_calling_create_branded_calling_identity": ("messaging:write",), + "branded_calling_delete_branded_calling_enterprise": ("messaging:write",), + "branded_calling_delete_branded_calling_identity": ("messaging:write",), + "branded_calling_detach_branded_calling_numbers": ("messaging:write",), + "branded_calling_get_branded_calling_enterprise": ( + "messaging:read", + "messaging:write", + ), + "branded_calling_get_branded_calling_identity": ( + "messaging:read", + "messaging:write", + ), + "branded_calling_list_branded_calling_call_reasons": ( + "messaging:read", + "messaging:write", + ), + "branded_calling_list_branded_calling_enterprises": ( + "messaging:read", + "messaging:write", + ), + "branded_calling_list_branded_calling_identities": ( + "messaging:read", + "messaging:write", + ), + "branded_calling_list_branded_calling_identity_numbers": ( + "messaging:read", + "messaging:write", + ), + "branded_calling_preflight_branded_calling_identity": ("messaging:write",), + "branded_calling_resend_branded_calling_authorizer_code": ("messaging:write",), + "branded_calling_share_branded_calling_identity_form": ("messaging:write",), + "branded_calling_update_branded_calling_identity": ("messaging:write",), + "broadcasts_add_broadcast_recipients": ("messaging:write",), + "broadcasts_cancel_broadcast": ("messaging:write",), + "broadcasts_create_broadcast": ("messaging:write",), + "broadcasts_delete_broadcast": ("messaging:write",), + "broadcasts_get_broadcast": ( + "messaging:read", + "messaging:write", + ), + "broadcasts_list_broadcast_recipients": ( + "messaging:read", + "messaging:write", + ), + "broadcasts_list_broadcasts": ( + "messaging:read", + "messaging:write", + ), + "broadcasts_schedule_broadcast": ("messaging:write",), + "broadcasts_send_broadcast": ("messaging:write",), + "broadcasts_update_broadcast": ("messaging:write",), + "business_agent_add_business_agent_allowlist_entry": ("messaging:write",), + "business_agent_add_business_agent_website": ("messaging:write",), + "business_agent_create_business_agent_connector": ("messaging:write",), + "business_agent_create_business_agent_connector_tool": ("messaging:write",), + "business_agent_create_business_agent_faq": ("messaging:write",), + "business_agent_create_business_agent_skill": ("messaging:write",), + "business_agent_create_business_agent_ui_skill": ("messaging:write",), + "business_agent_delete_business_agent_connector": ("messaging:write",), + "business_agent_delete_business_agent_connector_tool": ("messaging:write",), + "business_agent_delete_business_agent_faq": ("messaging:write",), + "business_agent_delete_business_agent_file": ("messaging:write",), + "business_agent_delete_business_agent_skill": ("messaging:write",), + "business_agent_delete_business_agent_ui_skill": ("messaging:write",), + "business_agent_delete_business_agent_website": ("messaging:write",), + "business_agent_get_business_agent_budget": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_business_information": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_connector": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_connector_logs": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_connector_tool": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_event": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_faq": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_file": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_skill": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_status": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_ui_skill": ( + "messaging:read", + "messaging:write", + ), + "business_agent_get_business_agent_website": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_allowlist": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_connector_tools": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_connectors": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_faqs": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_files": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_settings": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_skills": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_ui_skills": ( + "messaging:read", + "messaging:write", + ), + "business_agent_list_business_agent_websites": ( + "messaging:read", + "messaging:write", + ), + "business_agent_onboard_business_agent": ("messaging:write",), + "business_agent_read_business_agent_evals": ( + "messaging:read", + "messaging:write", + ), + "business_agent_refresh_business_agent_connector_tools": ("messaging:write",), + "business_agent_remove_business_agent_allowlist_entry": ("messaging:write",), + "business_agent_replace_business_agent_budget": ("messaging:write",), + "business_agent_replace_business_agent_business_information": ("messaging:write",), + "business_agent_reset_business_agent_business_information": ("messaging:write",), + "business_agent_run_business_agent_connector_tool": ("messaging:write",), + "business_agent_send_business_agent_event": ("messaging:write",), + "business_agent_send_business_agent_test_message": ("messaging:write",), + "business_agent_set_business_agent_connector_credentials": ("messaging:write",), + "business_agent_start_business_agent_eval_run": ("messaging:write",), + "business_agent_update_business_agent_connector": ("messaging:write",), + "business_agent_update_business_agent_connector_tool": ("messaging:write",), + "business_agent_update_business_agent_faq": ("messaging:write",), + "business_agent_update_business_agent_settings": ("messaging:write",), + "business_agent_update_business_agent_skill": ("messaging:write",), + "business_agent_update_business_agent_ui_skill": ("messaging:write",), + "business_agent_update_business_agent_website": ("messaging:write",), + "business_agent_upload_business_agent_file": ("messaging:write",), + "calendar_availability": ("calendar:write",), + "calendar_create_calendar_event": ("calendar:write",), + "calendar_delete_calendar_event": ("calendar:write",), + "calendar_free_busy": ("calendar:write",), + "calendar_get_calendar_event": ("calendar:write",), + "calendar_list_calendar_event_instances": ("calendar:write",), + "calendar_list_calendar_events": ("calendar:write",), + "calendar_list_calendars": ("calendar:write",), + "calendar_rsvp_calendar_event": ("calendar:write",), + "calendar_update_calendar_event": ("calendar:write",), + "calls_get_call": ( + "messaging:read", + "messaging:write", + ), + "calls_get_call_recording": ( + "messaging:read", + "messaging:write", + ), + "calls_list_calls": ( + "messaging:read", + "messaging:write", + ), + "comment_automations_create_comment_automation": ("messaging:write",), + "comment_automations_delete_comment_automation": ("messaging:write",), + "comment_automations_get_comment_automation": ( + "messaging:read", + "messaging:write", + ), + "comment_automations_list_comment_automation_logs": ( + "messaging:read", + "messaging:write", + ), + "comment_automations_list_comment_automations": ( + "messaging:read", + "messaging:write", + ), + "comment_automations_update_comment_automation": ("messaging:write",), + "comments_delete_inbox_comment": ("messaging:write",), + "comments_edit_inbox_comment": ("messaging:write",), + "comments_get_inbox_post_comments": ( + "messaging:read", + "messaging:write", + ), + "comments_hide_inbox_comment": ("messaging:write",), + "comments_like_inbox_comment": ("messaging:write",), + "comments_like_post": ("messaging:write",), + "comments_list_inbox_comments": ( + "messaging:read", + "messaging:write", + ), + "comments_pin_inbox_comment": ("messaging:write",), + "comments_reply_to_inbox_post": ("messaging:write",), + "comments_send_private_reply_to_comment": ("messaging:write",), + "comments_set_comment_moderation": ("messaging:write",), + "comments_unhide_inbox_comment": ("messaging:write",), + "comments_unlike_inbox_comment": ("messaging:write",), + "comments_unlike_post": ("messaging:write",), + "comments_unpin_inbox_comment": ("messaging:write",), + "commerce_add_commerce_discount_codes": ("commerce:write",), + "commerce_add_commerce_marketing_engagement": ("commerce:write",), + "commerce_add_commerce_product_images": ("commerce:write",), + "commerce_cancel_commerce_order": ("commerce:write",), + "commerce_change_commerce_collection_channels": ("commerce:write",), + "commerce_change_commerce_collection_products": ("commerce:write",), + "commerce_change_commerce_inventory": ("commerce:write",), + "commerce_change_commerce_product_channels": ("commerce:write",), + "commerce_change_commerce_product_state": ("commerce:write",), + "commerce_change_commerce_product_tags": ("commerce:write",), + "commerce_create_commerce_catalog_sync": ("commerce:write",), + "commerce_create_commerce_collection": ("commerce:write",), + "commerce_create_commerce_discount": ("commerce:write",), + "commerce_create_commerce_draft_order": ("commerce:write",), + "commerce_create_commerce_menu": ("commerce:write",), + "commerce_create_commerce_metaobject": ("commerce:write",), + "commerce_create_commerce_order_edit": ("commerce:write",), + "commerce_create_commerce_page": ("commerce:write",), + "commerce_create_commerce_product": ("commerce:write",), + "commerce_create_commerce_product_options": ("commerce:write",), + "commerce_create_commerce_product_variants": ("commerce:write",), + "commerce_create_commerce_redirect": ("commerce:write",), + "commerce_create_commerce_refund": ("commerce:write",), + "commerce_delete_commerce_catalog_sync": ("commerce:write",), + "commerce_delete_commerce_collection": ("commerce:write",), + "commerce_delete_commerce_collection_metafields": ("commerce:write",), + "commerce_delete_commerce_discount": ("commerce:write",), + "commerce_delete_commerce_marketing_activity": ("commerce:write",), + "commerce_delete_commerce_menu": ("commerce:write",), + "commerce_delete_commerce_metaobject": ("commerce:write",), + "commerce_delete_commerce_page": ("commerce:write",), + "commerce_delete_commerce_price_list_prices": ("commerce:write",), + "commerce_delete_commerce_product_metafields": ("commerce:write",), + "commerce_delete_commerce_product_options": ("commerce:write",), + "commerce_delete_commerce_product_variants": ("commerce:write",), + "commerce_delete_commerce_redirect": ("commerce:write",), + "commerce_duplicate_commerce_product": ("commerce:write",), + "commerce_get_commerce_catalog_sync": ("commerce:write",), + "commerce_get_commerce_collection": ("commerce:write",), + "commerce_get_commerce_customer": ("commerce:write",), + "commerce_get_commerce_discount": ("commerce:write",), + "commerce_get_commerce_draft_order": ("commerce:write",), + "commerce_get_commerce_menu": ("commerce:write",), + "commerce_get_commerce_metaobject": ("commerce:write",), + "commerce_get_commerce_order": ("commerce:write",), + "commerce_get_commerce_page": ("commerce:write",), + "commerce_get_commerce_product": ("commerce:write",), + "commerce_get_commerce_store": ("commerce:write",), + "commerce_list_commerce_catalog_syncs": ("commerce:write",), + "commerce_list_commerce_channels": ("commerce:write",), + "commerce_list_commerce_collection_metafields": ("commerce:write",), + "commerce_list_commerce_collections": ("commerce:write",), + "commerce_list_commerce_customers": ("commerce:write",), + "commerce_list_commerce_discounts": ("commerce:write",), + "commerce_list_commerce_inventory": ("commerce:write",), + "commerce_list_commerce_locations": ("commerce:write",), + "commerce_list_commerce_markets": ("commerce:write",), + "commerce_list_commerce_menus": ("commerce:write",), + "commerce_list_commerce_metaobject_definitions": ("commerce:write",), + "commerce_list_commerce_metaobjects": ("commerce:write",), + "commerce_list_commerce_orders": ("commerce:write",), + "commerce_list_commerce_pages": ("commerce:write",), + "commerce_list_commerce_price_lists": ("commerce:write",), + "commerce_list_commerce_product_metafields": ("commerce:write",), + "commerce_list_commerce_products": ("commerce:write",), + "commerce_list_commerce_redirects": ("commerce:write",), + "commerce_remove_commerce_product_images": ("commerce:write",), + "commerce_reorder_commerce_collection_products": ("commerce:write",), + "commerce_reorder_commerce_product_images": ("commerce:write",), + "commerce_run_commerce_catalog_sync": ("commerce:write",), + "commerce_send_commerce_draft_order_invoice": ("commerce:write",), + "commerce_set_commerce_collection_metafields": ("commerce:write",), + "commerce_set_commerce_discount_active": ("commerce:write",), + "commerce_set_commerce_price_list_prices": ("commerce:write",), + "commerce_set_commerce_product_metafields": ("commerce:write",), + "commerce_update_commerce_collection": ("commerce:write",), + "commerce_update_commerce_discount": ("commerce:write",), + "commerce_update_commerce_menu": ("commerce:write",), + "commerce_update_commerce_metaobject": ("commerce:write",), + "commerce_update_commerce_order": ("commerce:write",), + "commerce_update_commerce_page": ("commerce:write",), + "commerce_update_commerce_product": ("commerce:write",), + "commerce_update_commerce_product_prices": ("commerce:write",), + "commerce_update_commerce_redirect": ("commerce:write",), + "commerce_upsert_commerce_marketing_activity": ("commerce:write",), + "connect_add_org_connection_mailbox": ( + "accounts:write", + "accounts:read", + ), + "connect_ads": ( + "accounts:read", + "accounts:write", + ), + "connect_app_lovin_ads_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_assign_google_business_location": ( + "accounts:write", + "accounts:read", + ), + "connect_attentive_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_awin_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_bluesky_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_complete_telegram_connect": ( + "accounts:write", + "accounts:read", + ), + "connect_complete_whats_app_phone_selection": ( + "accounts:write", + "accounts:read", + ), + "connect_configure_tik_tok_ads_brand_identity": ( + "accounts:write", + "accounts:read", + ), + "connect_create_google_business_location": ( + "accounts:write", + "accounts:read", + ), + "connect_create_google_org_connection": ( + "accounts:write", + "accounts:read", + ), + "connect_create_microsoft_org_connection": ( + "accounts:write", + "accounts:read", + ), + "connect_create_o_auth_app": ( + "accounts:write", + "accounts:read", + ), + "connect_create_pinterest_board": ( + "accounts:write", + "accounts:read", + ), + "connect_create_platform_invite": ( + "accounts:write", + "accounts:read", + ), + "connect_create_youtube_playlist": ( + "accounts:write", + "accounts:read", + ), + "connect_delete_o_auth_app": ( + "accounts:write", + "accounts:read", + ), + "connect_delete_org_connection": ( + "accounts:write", + "accounts:read", + ), + "connect_discord_channel": ( + "accounts:write", + "accounts:read", + ), + "connect_get_amazon_ads_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_campaign_manager_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_connect_handoff": ( + "accounts:read", + "accounts:write", + ), + "connect_get_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_connect_welcome_screen": ( + "accounts:read", + "accounts:write", + ), + "connect_get_facebook_pages": ( + "accounts:read", + "accounts:write", + ), + "connect_get_gmb_locations": ( + "accounts:read", + "accounts:write", + ), + "connect_get_gohighlevel_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_google_analytics_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_google_search_console_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_hub_spot_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_linked_in_organizations": ( + "accounts:read", + "accounts:write", + ), + "connect_get_o_auth_app": ( + "accounts:read", + "accounts:write", + ), + "connect_get_org_connection": ( + "accounts:read", + "accounts:write", + ), + "connect_get_page_webhook_subscription": ( + "accounts:read", + "accounts:write", + ), + "connect_get_pinterest_boards": ( + "accounts:read", + "accounts:write", + ), + "connect_get_reddit_flairs": ( + "accounts:read", + "accounts:write", + ), + "connect_get_reddit_subreddits": ( + "accounts:read", + "accounts:write", + ), + "connect_get_salesforce_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_shopify_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_stripe_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_subreddit_rules": ( + "accounts:read", + "accounts:write", + ), + "connect_get_telegram_connect_status": ( + "accounts:read", + "accounts:write", + ), + "connect_get_webflow_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_wechat_ip_whitelist": ( + "accounts:read", + "accounts:write", + ), + "connect_get_whats_app_sdk_config": ( + "accounts:read", + "accounts:write", + ), + "connect_get_wix_connect_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_word_press_auth_url": ( + "accounts:read", + "accounts:write", + ), + "connect_get_youtube_captions": ( + "accounts:read", + "accounts:write", + ), + "connect_get_youtube_playlists": ( + "accounts:read", + "accounts:write", + ), + "connect_handle_o_auth_callback": ( + "accounts:write", + "accounts:read", + ), + "connect_impact_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_initiate_telegram_connect": ( + "accounts:write", + "accounts:read", + ), + "connect_klaviyo_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_line_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_list_campaign_manager_profiles": ( + "accounts:read", + "accounts:write", + ), + "connect_list_facebook_pages": ( + "accounts:read", + "accounts:write", + ), + "connect_list_google_analytics_properties": ( + "accounts:read", + "accounts:write", + ), + "connect_list_google_business_categories": ( + "accounts:read", + "accounts:write", + ), + "connect_list_google_business_locations": ( + "accounts:read", + "accounts:write", + ), + "connect_list_google_search_console_sites": ( + "accounts:read", + "accounts:write", + ), + "connect_list_instagram_pages": ( + "accounts:read", + "accounts:write", + ), + "connect_list_o_auth_apps": ( + "accounts:read", + "accounts:write", + ), + "connect_list_org_connection_users": ( + "accounts:read", + "accounts:write", + ), + "connect_list_org_connections": ( + "accounts:read", + "accounts:write", + ), + "connect_list_pinterest_boards_for_selection": ( + "accounts:read", + "accounts:write", + ), + "connect_list_slack_channels": ( + "accounts:read", + "accounts:write", + ), + "connect_list_snapchat_profiles": ( + "accounts:read", + "accounts:write", + ), + "connect_list_whats_app_phone_numbers": ( + "accounts:read", + "accounts:write", + ), + "connect_open_ai_ads_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_resync_page_webhook_subscription": ( + "accounts:write", + "accounts:read", + ), + "connect_search_google_business_locations": ( + "accounts:read", + "accounts:write", + ), + "connect_select_campaign_manager_profile": ( + "accounts:write", + "accounts:read", + ), + "connect_select_facebook_page": ( + "accounts:write", + "accounts:read", + ), + "connect_select_google_analytics_property": ( + "accounts:write", + "accounts:read", + ), + "connect_select_google_business_location": ( + "accounts:write", + "accounts:read", + ), + "connect_select_google_search_console_site": ( + "accounts:write", + "accounts:read", + ), + "connect_select_instagram_account": ( + "accounts:write", + "accounts:read", + ), + "connect_select_linked_in_organization": ( + "accounts:write", + "accounts:read", + ), + "connect_select_pinterest_board": ( + "accounts:write", + "accounts:read", + ), + "connect_select_snapchat_profile": ( + "accounts:write", + "accounts:read", + ), + "connect_set_reddit_post_flair": ( + "accounts:write", + "accounts:read", + ), + "connect_shopify_with_token": ( + "accounts:write", + "accounts:read", + ), + "connect_slack_channel": ( + "accounts:write", + "accounts:read", + ), + "connect_snapchat_ads_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_start_microsoft_admin_consent": ( + "accounts:read", + "accounts:write", + ), + "connect_taboola_ads_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_test_o_auth_app": ( + "accounts:write", + "accounts:read", + ), + "connect_trade_desk_ads_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_trade_desk_ads_partner": ( + "accounts:write", + "accounts:read", + ), + "connect_update_connect_welcome_screen": ( + "accounts:write", + "accounts:read", + ), + "connect_update_facebook_page": ( + "accounts:write", + "accounts:read", + ), + "connect_update_gmb_location": ( + "accounts:write", + "accounts:read", + ), + "connect_update_linked_in_organization": ( + "accounts:write", + "accounts:read", + ), + "connect_update_o_auth_app": ( + "accounts:write", + "accounts:read", + ), + "connect_update_org_connection": ( + "accounts:write", + "accounts:read", + ), + "connect_update_pinterest_boards": ( + "accounts:write", + "accounts:read", + ), + "connect_update_reddit_subreddits": ( + "accounts:write", + "accounts:read", + ), + "connect_update_youtube_default_playlist": ( + "accounts:write", + "accounts:read", + ), + "connect_verify_org_connection": ( + "accounts:write", + "accounts:read", + ), + "connect_vote_reddit_thing": ("messaging:write",), + "connect_webflow_with_site_token": ( + "accounts:write", + "accounts:read", + ), + "connect_wechat_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_whats_app_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_whats_app_embedded_signup": ( + "accounts:write", + "accounts:read", + ), + "connect_whop_ads_credentials": ( + "accounts:write", + "accounts:read", + ), + "connect_word_press_with_application_password": ( + "accounts:write", + "accounts:read", + ), + "contacts_autocomplete_contacts": ( + "contacts:read", + "automations:write", + ), + "contacts_bulk_create_contacts": ("automations:write",), + "contacts_create_contact": ("automations:write",), + "contacts_delete_contact": ("automations:write",), + "contacts_get_contact": ( + "contacts:read", + "automations:write", + ), + "contacts_get_contact_channels": ( + "contacts:read", + "automations:write", + ), + "contacts_list_contact_groups": ( + "contacts:read", + "automations:write", + ), + "contacts_list_contacts": ( + "contacts:read", + "automations:write", + ), + "contacts_update_contact": ("automations:write",), + "content_retention_get_content_retention": ( + "accounts:read", + "accounts:write", + ), + "content_retention_update_content_retention": ( + "accounts:write", + "accounts:read", + ), + "conversion_audit_create_conversion_audit_monitor": ( + "accounts:write", + "accounts:read", + ), + "conversion_audit_delete_conversion_audit_monitor": ( + "accounts:write", + "accounts:read", + ), + "conversion_audit_get_meta_conversion_audit": ( + "ads:read", + "ads:write", + ), + "conversion_audit_list_conversion_audit_monitors": ( + "accounts:read", + "accounts:write", + ), + "conversions_add_ad_conversion_associations": ("ads:write",), + "conversions_add_conversion_associations": ("ads:write",), + "conversions_adjust_conversions": ("ads:write",), + "conversions_check_tracking_site_proxy": ("ads:write",), + "conversions_create_ad_conversion_destination": ("ads:write",), + "conversions_create_ad_custom_conversion": ("ads:write",), + "conversions_create_conversion_action": ("ads:write",), + "conversions_create_conversion_destination": ("ads:write",), + "conversions_create_custom_conversion_goal": ("ads:write",), + "conversions_create_event_destination": ("ads:write",), + "conversions_create_forwarding_rule": ("ads:write",), + "conversions_create_tracking_site": ("ads:write",), + "conversions_delete_ad_conversion_destination": ("ads:write",), + "conversions_delete_conversion_destination": ("ads:write",), + "conversions_delete_event_destination": ("ads:write",), + "conversions_delete_forwarding_rule": ("ads:write",), + "conversions_delete_tracking_site": ("ads:write",), + "conversions_get_ad_conversion_destination": ( + "ads:read", + "ads:write", + ), + "conversions_get_ad_conversion_metrics": ( + "ads:read", + "ads:write", + ), + "conversions_get_conversion_destination": ( + "ads:read", + "ads:write", + ), + "conversions_get_conversion_metrics": ( + "ads:read", + "ads:write", + ), + "conversions_get_conversion_paths": ( + "ads:read", + "ads:write", + ), + "conversions_get_conversions_quality": ( + "ads:read", + "ads:write", + ), + "conversions_get_event": ( + "ads:read", + "ads:write", + ), + "conversions_get_events_accuracy": ( + "ads:read", + "ads:write", + ), + "conversions_get_events_overview": ( + "ads:read", + "ads:write", + ), + "conversions_get_events_overview_daily": ( + "ads:read", + "ads:write", + ), + "conversions_get_ltv_cohorts": ( + "ads:read", + "ads:write", + ), + "conversions_get_survey_answers": ( + "ads:read", + "ads:write", + ), + "conversions_get_tracking_site": ( + "ads:read", + "ads:write", + ), + "conversions_list_ad_conversion_associations": ( + "ads:read", + "ads:write", + ), + "conversions_list_ad_conversion_destinations": ( + "ads:read", + "ads:write", + ), + "conversions_list_ad_conversion_goals": ( + "ads:read", + "ads:write", + ), + "conversions_list_ad_custom_conversions": ( + "ads:read", + "ads:write", + ), + "conversions_list_conversion_actions": ( + "ads:read", + "ads:write", + ), + "conversions_list_conversion_associations": ( + "ads:read", + "ads:write", + ), + "conversions_list_conversion_destinations": ( + "ads:read", + "ads:write", + ), + "conversions_list_custom_conversion_goals": ( + "ads:read", + "ads:write", + ), + "conversions_list_event_destinations": ( + "ads:read", + "ads:write", + ), + "conversions_list_event_names": ( + "ads:read", + "ads:write", + ), + "conversions_list_events": ( + "ads:read", + "ads:write", + ), + "conversions_list_forwarding_rules": ( + "ads:read", + "ads:write", + ), + "conversions_list_tracking_sites": ( + "ads:read", + "ads:write", + ), + "conversions_remove_ad_conversion_associations": ("ads:write",), + "conversions_remove_conversion_associations": ("ads:write",), + "conversions_remove_custom_conversion_goal": ("ads:write",), + "conversions_restate_event": ("ads:write",), + "conversions_retract_event": ("ads:write",), + "conversions_rotate_tracking_site_key": ("ads:write",), + "conversions_send_conversions": ("ads:write",), + "conversions_send_events": ("ads:write",), + "conversions_update_ad_conversion_destination": ("ads:write",), + "conversions_update_ad_conversion_goals": ("ads:write",), + "conversions_update_conversion_action": ("ads:write",), + "conversions_update_conversion_destination": ("ads:write",), + "conversions_update_custom_conversion_goal": ("ads:write",), + "conversions_update_forwarding_rule": ("ads:write",), + "conversions_update_tracking_site": ("ads:write",), + "creator_campaigns_activate_creator_campaign": ("campaigns:write",), + "creator_campaigns_approve_campaign_draft": ("campaigns:write",), + "creator_campaigns_approve_campaign_participant": ("campaigns:write",), + "creator_campaigns_approve_campaign_sample": ("campaigns:write",), + "creator_campaigns_approve_campaign_submission": ("campaigns:write",), + "creator_campaigns_close_creator_campaign": ("campaigns:write",), + "creator_campaigns_create_campaign_adjustment": ("campaigns:write",), + "creator_campaigns_create_campaign_invite_link": ("campaigns:write",), + "creator_campaigns_create_campaign_participant": ("campaigns:write",), + "creator_campaigns_create_campaign_payout_batch": ("campaigns:write",), + "creator_campaigns_create_creator_campaign": ("campaigns:write",), + "creator_campaigns_decline_campaign_sample": ("campaigns:write",), + "creator_campaigns_deny_campaign_participant": ("campaigns:write",), + "creator_campaigns_get_campaign_ad_results": ("campaigns:write",), + "creator_campaigns_get_campaign_draft": ("campaigns:write",), + "creator_campaigns_get_campaign_participant": ("campaigns:write",), + "creator_campaigns_get_campaign_report": ("campaigns:write",), + "creator_campaigns_get_campaign_submission": ("campaigns:write",), + "creator_campaigns_get_creator_campaign": ("campaigns:write",), + "creator_campaigns_launch_campaign_ads": ("campaigns:write",), + "creator_campaigns_list_campaign_drafts": ("campaigns:write",), + "creator_campaigns_list_campaign_ledger": ("campaigns:write",), + "creator_campaigns_list_campaign_orders": ("campaigns:write",), + "creator_campaigns_list_campaign_participants": ("campaigns:write",), + "creator_campaigns_list_campaign_payables": ("campaigns:write",), + "creator_campaigns_list_campaign_payout_batches": ("campaigns:write",), + "creator_campaigns_list_campaign_samples": ("campaigns:write",), + "creator_campaigns_list_campaign_submissions": ("campaigns:write",), + "creator_campaigns_list_creator_campaigns": ("campaigns:write",), + "creator_campaigns_move_campaign_participant": ("campaigns:write",), + "creator_campaigns_pause_creator_campaign": ("campaigns:write",), + "creator_campaigns_preview_campaign_payout_batch": ("campaigns:write",), + "creator_campaigns_raise_creator_campaign_budget": ("campaigns:write",), + "creator_campaigns_reinstate_campaign_participant": ("campaigns:write",), + "creator_campaigns_reject_campaign_draft": ("campaigns:write",), + "creator_campaigns_reject_campaign_submission": ("campaigns:write",), + "creator_campaigns_remove_campaign_participant": ("campaigns:write",), + "creator_campaigns_reopen_campaign_submission": ("campaigns:write",), + "creator_campaigns_request_campaign_draft_revision": ("campaigns:write",), + "creator_campaigns_resend_campaign_participant_invite": ("campaigns:write",), + "creator_campaigns_settle_campaign_participant": ("campaigns:write",), + "creator_campaigns_ship_campaign_sample": ("campaigns:write",), + "creator_campaigns_suspend_campaign_participant": ("campaigns:write",), + "creator_campaigns_update_creator_campaign": ("campaigns:write",), + "crm_create_crm_activity": ("automations:write",), + "crm_create_crm_contact": ("automations:write",), + "crm_get_crm_contact": ( + "contacts:read", + "automations:write", + ), + "crm_get_crm_deal": ( + "contacts:read", + "automations:write", + ), + "crm_list_crm_deals": ( + "contacts:read", + "automations:write", + ), + "crm_list_crm_owners": ( + "contacts:read", + "automations:write", + ), + "crm_search_crm_contacts": ( + "contacts:read", + "automations:write", + ), + "crm_update_crm_contact": ("automations:write",), + "crm_update_crm_deal": ("automations:write",), + "custom_fields_clear_contact_field_value": ("automations:write",), + "custom_fields_create_custom_field": ( + "accounts:write", + "accounts:read", + ), + "custom_fields_delete_custom_field": ( + "accounts:write", + "accounts:read", + ), + "custom_fields_list_custom_fields": ( + "accounts:read", + "accounts:write", + ), + "custom_fields_set_contact_field_value": ("automations:write",), + "custom_fields_update_custom_field": ( + "accounts:write", + "accounts:read", + ), + "discord_add_discord_member_role": ("automations:write",), + "discord_create_discord_guild_role": ("messaging:write",), + "discord_create_discord_scheduled_event": ("messaging:write",), + "discord_create_discord_thread": ("messaging:write",), + "discord_crosspost_discord_message": ("messaging:write",), + "discord_delete_discord_guild_role": ("messaging:write",), + "discord_delete_discord_message": ("messaging:write",), + "discord_delete_discord_scheduled_event": ("messaging:write",), + "discord_edit_discord_guild_role": ("messaging:write",), + "discord_get_discord_channels": ( + "accounts:read", + "accounts:write", + ), + "discord_get_discord_guild_member": ( + "contacts:read", + "automations:write", + ), + "discord_get_discord_scheduled_event": ( + "messaging:read", + "messaging:write", + ), + "discord_get_discord_settings": ( + "accounts:read", + "accounts:write", + ), + "discord_list_discord_guild_members": ( + "contacts:read", + "automations:write", + ), + "discord_list_discord_guild_roles": ( + "messaging:read", + "messaging:write", + ), + "discord_list_discord_pinned_messages": ( + "messaging:read", + "messaging:write", + ), + "discord_list_discord_scheduled_events": ( + "messaging:read", + "messaging:write", + ), + "discord_pin_discord_message": ("messaging:write",), + "discord_remove_discord_member_role": ("automations:write",), + "discord_search_discord_guild_members": ( + "contacts:read", + "automations:write", + ), + "discord_send_discord_direct_message": ("messaging:write",), + "discord_unpin_discord_message": ("messaging:write",), + "discord_update_discord_scheduled_event": ("messaging:write",), + "discord_update_discord_settings": ( + "accounts:write", + "accounts:read", + ), + "email_add_email_shared_mailbox": ("messaging:write",), + "email_cancel_scheduled_email": ("messaging:write",), + "email_create_email_draft": ("messaging:write",), + "email_create_email_label": ("messaging:write",), + "email_create_email_signature": ("messaging:write",), + "email_create_imap_account": ("messaging:write",), + "email_declare_email_send_as": ("messaging:write",), + "email_delete_email_draft": ("messaging:write",), + "email_delete_email_label": ("messaging:write",), + "email_delete_email_send_as": ("messaging:write",), + "email_delete_email_signature": ("messaging:write",), + "email_discover_imap_settings": ("messaging:write",), + "email_download_email_attachment": ( + "messaging:read", + "messaging:write", + ), + "email_forward_email_message": ("messaging:write",), + "email_get_email_draft": ( + "messaging:read", + "messaging:write", + ), + "email_get_email_message": ( + "messaging:read", + "messaging:write", + ), + "email_get_email_signature": ( + "messaging:read", + "messaging:write", + ), + "email_get_email_thread": ( + "messaging:read", + "messaging:write", + ), + "email_get_scheduled_email": ( + "messaging:read", + "messaging:write", + ), + "email_import_email_signatures": ("messaging:write",), + "email_list_email_drafts": ( + "messaging:read", + "messaging:write", + ), + "email_list_email_folders": ( + "messaging:read", + "messaging:write", + ), + "email_list_email_labels": ( + "messaging:read", + "messaging:write", + ), + "email_list_email_messages": ( + "messaging:read", + "messaging:write", + ), + "email_list_email_send_as": ( + "messaging:read", + "messaging:write", + ), + "email_list_email_shared_mailboxes": ( + "messaging:read", + "messaging:write", + ), + "email_list_email_signatures": ( + "messaging:read", + "messaging:write", + ), + "email_list_email_threads": ( + "messaging:read", + "messaging:write", + ), + "email_list_scheduled_emails": ( + "messaging:read", + "messaging:write", + ), + "email_reply_email_message": ("messaging:write",), + "email_send_email_draft": ("messaging:write",), + "email_send_email_message": ("messaging:write",), + "email_trash_email_message": ("messaging:write",), + "email_update_email_draft": ("messaging:write",), + "email_update_email_message": ("messaging:write",), + "email_update_email_signature": ("messaging:write",), + "email_update_email_thread": ("messaging:write",), + "feedback_submit_feedback": ( + "accounts:write", + "accounts:read", + ), + "files_create_file_picker_session": ("files:write",), + "files_create_folder": ("files:write",), + "files_download_file": ("files:write",), + "files_get_file": ("files:write",), + "files_get_file_share_link": ("files:write",), + "files_list_files": ("files:write",), + "files_trash_file": ("files:write",), + "files_update_file": ("files:write",), + "files_upload_file": ("files:write",), + "gmb_services_get_google_business_services": ( + "accounts:read", + "accounts:write", + ), + "gmb_services_update_google_business_services": ( + "accounts:write", + "accounts:read", + ), + "gmb_verifications_complete_google_business_verification": ( + "accounts:write", + "accounts:read", + ), + "gmb_verifications_fetch_google_business_verification_options": ( + "accounts:read", + "accounts:write", + ), + "gmb_verifications_get_google_business_verifications": ( + "accounts:read", + "accounts:write", + ), + "gmb_verifications_start_google_business_verification": ( + "accounts:write", + "accounts:read", + ), + "inbox_analytics_get_inbox_conversation_analytics": ( + "messaging:read", + "messaging:write", + ), + "inbox_analytics_get_inbox_heatmap": ("analytics:read",), + "inbox_analytics_get_inbox_response_time": ("analytics:read",), + "inbox_analytics_get_inbox_source_breakdown": ("analytics:read",), + "inbox_analytics_get_inbox_top_accounts": ("analytics:read",), + "inbox_analytics_get_inbox_volume": ("analytics:read",), + "inbox_analytics_list_inbox_conversation_analytics": ( + "messaging:read", + "messaging:write", + ), + "instagram_get_instagram_audio": ( + "accounts:read", + "accounts:write", + ), + "instagram_get_instagram_business_discovery": ("analytics:read",), + "instagram_get_instagram_mentioned_comment": ( + "messaging:read", + "messaging:write", + ), + "instagram_get_instagram_mentioned_media": ( + "messaging:read", + "messaging:write", + ), + "instagram_get_instagram_publishing_limit": ( + "accounts:read", + "accounts:write", + ), + "instagram_get_instagram_story_insights": ("analytics:read",), + "instagram_list_instagram_live_media": ("analytics:read",), + "instagram_list_instagram_media_collaborators": ( + "posts:read", + "posts:write", + ), + "instagram_list_instagram_stories": ("analytics:read",), + "instagram_list_instagram_tagged_media": ("analytics:read",), + "instagram_search_instagram_audio": ( + "accounts:read", + "accounts:write", + ), + "lead_gen_archive_lead_form": ("ads:write",), + "lead_gen_count_leads": ( + "contacts:read", + "automations:write", + ), + "lead_gen_create_lead": ("automations:write",), + "lead_gen_create_lead_form": ("ads:write",), + "lead_gen_create_test_lead": ("automations:write",), + "lead_gen_delete_test_lead": ("automations:write",), + "lead_gen_get_lead_form": ( + "ads:read", + "ads:write", + ), + "lead_gen_list_form_leads": ( + "contacts:read", + "automations:write", + ), + "lead_gen_list_lead_forms": ( + "ads:read", + "ads:write", + ), + "lead_gen_list_leads": ( + "contacts:read", + "automations:write", + ), + "lead_gen_update_lead": ("automations:write",), + "ledger_get_ledger_balances": ("money:write",), + "ledger_list_ledger_entries": ("money:write",), + "logs_list_logs": ( + "posts:read", + "posts:write", + ), + "media_get_media_presigned_url": ( + "posts:write", + "posts:read", + ), + "media_prepare_media": ( + "posts:write", + "posts:read", + ), + "mentions_list_inbox_mentions": ( + "messaging:read", + "messaging:write", + ), + "mentions_reply_to_mention": ("messaging:write",), + "messages_accept_conversation_request": ("messaging:write",), + "messages_add_conversation_label": ("messaging:write",), + "messages_add_message_reaction": ("messaging:write",), + "messages_create_inbox_conversation": ("messaging:write",), + "messages_create_inbox_label": ("messaging:write",), + "messages_delete_inbox_conversation": ("messaging:write",), + "messages_delete_inbox_label": ("messaging:write",), + "messages_delete_inbox_message": ("messaging:write",), + "messages_edit_inbox_message": ("messaging:write",), + "messages_get_inbox_conversation": ( + "messaging:read", + "messaging:write", + ), + "messages_get_inbox_conversation_messages": ( + "messaging:read", + "messaging:write", + ), + "messages_get_message_attachment": ( + "messaging:read", + "messaging:write", + ), + "messages_list_conversation_labels": ( + "messaging:read", + "messaging:write", + ), + "messages_list_inbox_conversations": ( + "messaging:read", + "messaging:write", + ), + "messages_list_inbox_labels": ( + "messaging:read", + "messaging:write", + ), + "messages_mark_conversation_read": ("messaging:write",), + "messages_remove_conversation_label": ("messaging:write",), + "messages_remove_message_reaction": ("messaging:write",), + "messages_search_inbox_conversations": ( + "messaging:read", + "messaging:write", + ), + "messages_send_inbox_message": ("messaging:write",), + "messages_send_typing_indicator": ("messaging:write",), + "messages_set_conversation_thread_control": ("messaging:write",), + "messages_update_inbox_conversation": ("messaging:write",), + "messages_upload_media_direct": ( + "posts:write", + "posts:read", + ), + "messaging_ads_create_call_ad": ("ads:write",), + "messaging_ads_create_ctwa_ad": ("ads:write",), + "messaging_ads_create_messaging_ad": ("ads:write",), + "metrics_get_account_metrics": ("analytics:read",), + "metrics_get_ad_account_metrics": ( + "ads:read", + "ads:write", + ), + "metrics_get_ad_metrics": ( + "ads:read", + "ads:write", + ), + "metrics_get_ad_set_metrics": ( + "ads:read", + "ads:write", + ), + "metrics_get_campaign_metrics": ( + "ads:read", + "ads:write", + ), + "metrics_get_inbox_metrics": ("analytics:read",), + "metrics_get_insight_metrics": ("analytics:read",), + "metrics_get_metrics_catalog": ("analytics:read",), + "metrics_get_post_metrics": ("analytics:read",), + "metrics_query_google_ads": ("ads:write",), + "metrics_query_google_analytics": ("analytics:read",), + "metrics_query_meta_ads": ("ads:write",), + "metrics_query_tik_tok_ads": ("ads:write",), + "phone_numbers_cancel_phone_number_port_in": ("messaging:write",), + "phone_numbers_check_phone_number_availability": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_check_phone_number_portability": ("messaging:write",), + "phone_numbers_create_phone_number_kyc_link": ("messaging:write",), + "phone_numbers_create_phone_number_port_in": ("messaging:write",), + "phone_numbers_create_phone_number_stock_watch": ("messaging:write",), + "phone_numbers_delete_phone_number_stock_watch": ("messaging:write",), + "phone_numbers_get_phone_number": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_get_phone_number_claim": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_get_phone_number_kyc_form": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_get_phone_number_port_claim": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_get_phone_number_port_in_order_requirements": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_get_phone_number_port_in_requirements": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_get_phone_number_remediation": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_list_phone_number_countries": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_list_phone_number_port_ins": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_list_phone_number_stock_watches": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_list_phone_numbers": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_purchase_phone_number": ("messaging:write",), + "phone_numbers_release_phone_number": ("messaging:write",), + "phone_numbers_remediate_phone_number": ("messaging:write",), + "phone_numbers_reply_to_phone_number_reviewer": ("messaging:write",), + "phone_numbers_request_phone_number_whats_app_code": ("messaging:write",), + "phone_numbers_respond_to_phone_number_reviewer": ("messaging:write",), + "phone_numbers_review_phone_number_kyc_packet": ("messaging:write",), + "phone_numbers_search_available_phone_numbers": ( + "messaging:read", + "messaging:write", + ), + "phone_numbers_submit_phone_number_kyc": ("messaging:write",), + "phone_numbers_upload_phone_number_kyc_document": ("messaging:write",), + "phone_numbers_upload_phone_number_port_in_document": ("messaging:write",), + "phone_numbers_validate_phone_number_kyc_address": ("messaging:write",), + "phone_numbers_view_phone_number_kyc_document": ( + "messaging:read", + "messaging:write", + ), + "posts_bulk_upload_posts": ( + "posts:write", + "posts:read", + ), + "posts_create_post": ( + "posts:write", + "posts:read", + ), + "posts_delete_post": ( + "posts:write", + "posts:read", + ), + "posts_edit_post": ( + "posts:write", + "posts:read", + ), + "posts_get_post": ( + "posts:read", + "posts:write", + ), + "posts_list_posts": ( + "posts:read", + "posts:write", + ), + "posts_pin_post": ( + "posts:write", + "posts:read", + ), + "posts_review_post": ( + "posts:write", + "posts:read", + ), + "posts_unpin_post": ( + "posts:write", + "posts:read", + ), + "posts_unpublish_post": ( + "posts:write", + "posts:read", + ), + "posts_update_post": ( + "posts:write", + "posts:read", + ), + "posts_update_post_metadata": ( + "posts:write", + "posts:read", + ), + "product_catalogs_batch_ad_catalog_products": ("ads:write",), + "product_catalogs_create_ad_catalog": ("ads:write",), + "product_catalogs_create_ad_catalog_feed": ("ads:write",), + "product_catalogs_create_ad_catalog_feed_upload": ("ads:write",), + "product_catalogs_create_ad_catalog_product": ("ads:write",), + "product_catalogs_create_ad_catalog_product_set": ("ads:write",), + "product_catalogs_delete_ad_catalog": ("ads:write",), + "product_catalogs_delete_ad_catalog_product": ("ads:write",), + "product_catalogs_delete_ad_catalog_product_set": ("ads:write",), + "product_catalogs_get_ad_catalog": ( + "ads:read", + "ads:write", + ), + "product_catalogs_get_ad_catalog_batch": ( + "ads:read", + "ads:write", + ), + "product_catalogs_get_ad_catalog_product": ( + "ads:read", + "ads:write", + ), + "product_catalogs_list_ad_catalog_feed_uploads": ( + "ads:read", + "ads:write", + ), + "product_catalogs_list_ad_catalog_feeds": ( + "ads:read", + "ads:write", + ), + "product_catalogs_list_ad_catalog_product_sets": ( + "ads:read", + "ads:write", + ), + "product_catalogs_list_ad_catalog_products": ( + "ads:read", + "ads:write", + ), + "product_catalogs_list_ad_catalogs": ( + "ads:read", + "ads:write", + ), + "product_catalogs_update_ad_catalog_product": ("ads:write",), + "product_catalogs_update_ad_catalog_product_set": ("ads:write",), + "products_get_product": ("commerce:write",), + "products_list_products": ("commerce:write",), + "products_update_product": ("commerce:write",), + "profiles_create_profile": ( + "accounts:write", + "accounts:read", + ), + "profiles_delete_profile": ( + "accounts:write", + "accounts:read", + ), + "profiles_get_profile": ( + "accounts:read", + "accounts:write", + ), + "profiles_get_profile_limits": ( + "accounts:read", + "accounts:write", + ), + "profiles_list_profiles": ( + "accounts:read", + "accounts:write", + ), + "profiles_update_profile": ( + "accounts:write", + "accounts:read", + ), + "queue_create_queue_slot": ( + "posts:write", + "posts:read", + ), + "queue_delete_queue_slot": ( + "posts:write", + "posts:read", + ), + "queue_get_next_queue_slot": ( + "posts:read", + "posts:write", + ), + "queue_list_queue_slots": ( + "posts:read", + "posts:write", + ), + "queue_preview_queue": ( + "posts:read", + "posts:write", + ), + "queue_update_queue_slot": ( + "posts:write", + "posts:read", + ), + "rcs_add_rcs_test_device": ("messaging:write",), + "rcs_create_rcs_agent": ("messaging:write",), + "rcs_deactivate_rcs_agent": ("messaging:write",), + "rcs_get_rcs_agent": ( + "messaging:read", + "messaging:write", + ), + "rcs_get_rcs_capabilities": ( + "messaging:read", + "messaging:write", + ), + "rcs_list_rcs_agents": ( + "messaging:read", + "messaging:write", + ), + "rcs_list_rcs_brands": ( + "messaging:read", + "messaging:write", + ), + "rcs_list_rcs_test_devices": ( + "messaging:read", + "messaging:write", + ), + "rcs_remove_rcs_test_device": ("messaging:write",), + "rcs_request_rcs_agent_launch": ("messaging:write",), + "rcs_send_rcs_message": ("messaging:write",), + "rcs_update_rcs_agent": ("messaging:write",), + "rcs_upload_rcs_asset": ("messaging:write",), + "reach_and_frequency_cancel_rf_reservation": ("ads:write",), + "reach_and_frequency_create_rf_prediction": ("ads:write",), + "reach_and_frequency_get_rf_prediction": ( + "ads:read", + "ads:write", + ), + "reach_and_frequency_reserve_rf_prediction": ("ads:write",), + "reddit_get_reddit_feed": ( + "messaging:read", + "messaging:write", + ), + "reddit_get_reddit_post_comments": ( + "messaging:read", + "messaging:write", + ), + "reddit_search_reddit": ( + "messaging:read", + "messaging:write", + ), + "reviews_delete_inbox_review_reply": ("messaging:write",), + "reviews_list_inbox_reviews": ( + "messaging:read", + "messaging:write", + ), + "reviews_reply_to_inbox_review": ("messaging:write",), + "sequences_activate_sequence": ("messaging:write",), + "sequences_create_sequence": ("messaging:write",), + "sequences_delete_sequence": ("messaging:write",), + "sequences_enroll_contacts": ("messaging:write",), + "sequences_get_sequence": ( + "messaging:read", + "messaging:write", + ), + "sequences_list_sequence_enrollments": ( + "messaging:read", + "messaging:write", + ), + "sequences_list_sequences": ( + "messaging:read", + "messaging:write", + ), + "sequences_pause_sequence": ("messaging:write",), + "sequences_unenroll_contact": ("messaging:write",), + "sequences_update_sequence": ("messaging:write",), + "slack_list_slack_members": ( + "contacts:read", + "automations:write", + ), + "sms_appeal_sms_registration": ("messaging:write",), + "sms_create_sms_opt_out": ("automations:write",), + "sms_create_sms_sender_id": ("messaging:write",), + "sms_deactivate_sms_registration": ("messaging:write",), + "sms_delete_sms_opt_out": ("automations:write",), + "sms_delete_sms_sender_id": ("messaging:write",), + "sms_disable_sms_on_number": ("messaging:write",), + "sms_enable_sms_on_number": ("messaging:write",), + "sms_get_sms_registration": ( + "messaging:read", + "messaging:write", + ), + "sms_list_sms_opt_outs": ( + "contacts:read", + "automations:write", + ), + "sms_list_sms_registrations": ( + "messaging:read", + "messaging:write", + ), + "sms_list_sms_sender_ids": ( + "messaging:read", + "messaging:write", + ), + "sms_lookup_sms_number": ("messaging:write",), + "sms_preflight_sms_registration": ("messaging:write",), + "sms_request_sms_sender_id_limit_increase": ("messaging:write",), + "sms_resend_sms_registration_otp": ("messaging:write",), + "sms_respond_to_sms_registration_review": ("messaging:write",), + "sms_reuse_sms_registration_for_number": ("messaging:write",), + "sms_send_sms": ("messaging:write",), + "sms_share_sms_registration": ("messaging:write",), + "sms_start_sms_registration": ("messaging:write",), + "sms_upload_sms_opt_in_proof": ("automations:write",), + "sms_upload_sms_opt_in_proof_file": ("automations:write",), + "sms_verify_sms_registration_otp": ("messaging:write",), + "tracking_links_create_tracking_link": ("ads:write",), + "tracking_links_delete_tracking_link": ("ads:write",), + "tracking_links_get_tracking_link": ( + "ads:read", + "ads:write", + ), + "tracking_links_get_tracking_link_stats": ( + "ads:read", + "ads:write", + ), + "tracking_links_list_tracking_links": ( + "ads:read", + "ads:write", + ), + "tracking_links_rotate_tracking_link_postback_token": ("ads:write",), + "tracking_links_update_tracking_link": ("ads:write",), + "tracking_tags_add_tracking_tag_shared_account": ("ads:write",), + "tracking_tags_assign_tracking_tag_user": ("ads:write",), + "tracking_tags_create_tracking_tag": ("ads:write",), + "tracking_tags_create_tracking_tag_event": ("ads:write",), + "tracking_tags_delete_tracking_tag_event": ("ads:write",), + "tracking_tags_get_ad_tracking_tags": ( + "ads:read", + "ads:write", + ), + "tracking_tags_get_tracking_tag": ( + "ads:read", + "ads:write", + ), + "tracking_tags_get_tracking_tag_diagnostics": ( + "ads:read", + "ads:write", + ), + "tracking_tags_get_tracking_tag_stats": ( + "ads:read", + "ads:write", + ), + "tracking_tags_get_tracking_tag_store_install": ( + "ads:read", + "ads:write", + ), + "tracking_tags_install_tracking_tag_on_store": ("ads:write",), + "tracking_tags_list_tracking_tag_events": ( + "ads:read", + "ads:write", + ), + "tracking_tags_list_tracking_tag_partners": ( + "ads:read", + "ads:write", + ), + "tracking_tags_list_tracking_tag_shared_accounts": ( + "ads:read", + "ads:write", + ), + "tracking_tags_list_tracking_tag_users": ( + "ads:read", + "ads:write", + ), + "tracking_tags_list_tracking_tags": ( + "ads:read", + "ads:write", + ), + "tracking_tags_remove_tracking_tag_from_store": ("ads:write",), + "tracking_tags_remove_tracking_tag_shared_account": ("ads:write",), + "tracking_tags_remove_tracking_tag_user": ("ads:write",), + "tracking_tags_update_ad_tracking_tags": ("ads:write",), + "tracking_tags_update_tracking_tag": ("ads:write",), + "tracking_tags_update_tracking_tag_event": ("ads:write",), + "treasury_cancel_payout_batch": ("money:write",), + "treasury_cancel_topup": ("money:write",), + "treasury_confirm_payout_batch": ("money:write",), + "treasury_confirm_topup": ("money:write",), + "treasury_create_payee_onboarding_link": ("money:write",), + "treasury_create_topup": ("money:write",), + "treasury_create_transfer": ("money:write",), + "treasury_get_auto_recharge": ("money:write",), + "treasury_get_balance": ("money:write",), + "treasury_get_payout_batch": ("money:write",), + "treasury_get_topup_invoice": ("money:write",), + "treasury_get_topup_receipt": ("money:write",), + "treasury_get_topup_statement": ("money:write",), + "treasury_get_transfer": ("money:write",), + "treasury_list_payees": ("money:write",), + "treasury_list_topups": ("money:write",), + "treasury_list_transfers": ("money:write",), + "treasury_preview_topup": ("money:write",), + "treasury_update_auto_recharge": ("money:write",), + "twitter_engagement_bookmark_post": ("messaging:write",), + "twitter_engagement_follow_user": ("messaging:write",), + "twitter_engagement_get_tweet": ( + "messaging:read", + "messaging:write", + ), + "twitter_engagement_remove_bookmark": ("messaging:write",), + "twitter_engagement_retweet_post": ("messaging:write",), + "twitter_engagement_search_tweets": ( + "messaging:read", + "messaging:write", + ), + "twitter_engagement_undo_retweet": ("messaging:write",), + "twitter_engagement_unfollow_user": ("messaging:write",), + "usage_get_billing": ("accounts:read",), + "usage_get_calls_usage": ("accounts:read",), + "usage_get_sms_usage": ("accounts:read",), + "usage_get_usage": ("accounts:read",), + "usage_get_usage_stats": ("accounts:read",), + "usage_get_x_api_pricing": ("accounts:read",), + "users_get_current_user": ( + "accounts:read", + "accounts:write", + ), + "users_get_user": ( + "accounts:read", + "accounts:write", + ), + "users_list_users": ( + "accounts:read", + "accounts:write", + ), + "users_remove_user": ( + "accounts:write", + "accounts:read", + ), + "validate_media": ( + "posts:read", + "posts:write", + ), + "validate_post": ( + "posts:read", + "posts:write", + ), + "validate_post_length": ( + "posts:read", + "posts:write", + ), + "validate_subreddit": ( + "posts:read", + "posts:write", + ), + "verify_check_verification": ("messaging:write",), + "verify_create_verification": ("messaging:write",), + "verify_get_verification": ( + "messaging:read", + "messaging:write", + ), + "voice_attach_number_to_sip_trunk": ("messaging:write",), + "voice_create_sip_trunk": ("messaging:write",), + "voice_create_voice_call": ("messaging:write",), + "voice_create_voice_web_inbound_session": ("messaging:write",), + "voice_create_voice_web_session": ("messaging:write",), + "voice_delete_sip_trunk": ("messaging:write",), + "voice_detach_number_from_sip_trunk": ("messaging:write",), + "voice_dial_voice_web_call": ("messaging:write",), + "voice_disable_voice_on_number": ("messaging:write",), + "voice_enable_voice_on_number": ("messaging:write",), + "voice_end_voice_call": ("messaging:write",), + "voice_get_sip_trunk": ( + "messaging:read", + "messaging:write", + ), + "voice_get_voice_call": ( + "messaging:read", + "messaging:write", + ), + "voice_get_voice_call_estimate": ( + "messaging:read", + "messaging:write", + ), + "voice_get_voice_call_recording": ( + "messaging:read", + "messaging:write", + ), + "voice_list_sip_trunks": ( + "messaging:read", + "messaging:write", + ), + "voice_list_voice_calls": ( + "messaging:read", + "messaging:write", + ), + "voice_rotate_sip_trunk_credentials": ("messaging:write",), + "voice_transfer_voice_call": ("messaging:write",), + "webhooks_create_webhook_settings": ("automations:write",), + "webhooks_delete_webhook_settings": ("automations:write",), + "webhooks_get_webhook_logs": ("automations:write",), + "webhooks_get_webhook_settings": ("automations:write",), + "webhooks_redeliver_webhook_event": ("automations:write",), + "webhooks_test_webhook": ("automations:write",), + "webhooks_update_webhook_settings": ("automations:write",), + "whatsapp_add_whats_app_group_participants": ("messaging:write",), + "whatsapp_approve_whats_app_group_join_requests": ("messaging:write",), + "whatsapp_block_whats_app_users": ("automations:write",), + "whatsapp_calling_disable_whats_app_calling": ("messaging:write",), + "whatsapp_calling_disable_whats_app_calling_legacy": ("messaging:write",), + "whatsapp_calling_enable_whats_app_calling": ("messaging:write",), + "whatsapp_calling_enable_whats_app_calling_legacy": ("messaging:write",), + "whatsapp_calling_get_whats_app_call": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_calling_get_whats_app_call_estimate": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_calling_get_whats_app_call_permissions": ( + "contacts:read", + "automations:write", + ), + "whatsapp_calling_get_whats_app_call_recording": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_calling_get_whats_app_calling": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_calling_get_whats_app_calling_config": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_calling_initiate_whats_app_call": ("messaging:write",), + "whatsapp_calling_list_whats_app_calls": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_calling_start_whats_app_caller_id_verification": ("messaging:write",), + "whatsapp_calling_update_whats_app_calling": ("messaging:write",), + "whatsapp_calling_update_whats_app_calling_legacy": ("messaging:write",), + "whatsapp_calling_verify_whats_app_caller_id": ("messaging:write",), + "whatsapp_create_whats_app_dataset": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_create_whats_app_group_chat": ("messaging:write",), + "whatsapp_create_whats_app_group_invite_link": ("messaging:write",), + "whatsapp_create_whats_app_template": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_delete_whats_app_conversational_automation": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_delete_whats_app_group_chat": ("messaging:write",), + "whatsapp_delete_whats_app_template": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_delete_whats_app_template_by_id": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_delete_whatsapp_business_username": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_flows_create_whats_app_flow": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_flows_delete_whats_app_flow": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_flows_deprecate_whats_app_flow": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_flows_get_whats_app_flow": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_flows_get_whats_app_flow_json": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_flows_get_whats_app_flow_preview": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_flows_get_whats_app_flows_encryption_key": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_flows_list_whats_app_flow_responses": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_flows_list_whats_app_flow_versions": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_flows_list_whats_app_flows": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_flows_publish_whats_app_flow": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_flows_send_whats_app_flow_message": ("messaging:write",), + "whatsapp_flows_set_whats_app_flows_encryption_key": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_flows_update_whats_app_flow": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_flows_upload_whats_app_flow_json": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_get_whats_app_block_status": ( + "contacts:read", + "automations:write", + ), + "whatsapp_get_whats_app_blocked_users": ( + "contacts:read", + "automations:write", + ), + "whatsapp_get_whats_app_business_profile": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_get_whats_app_commerce_settings": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_get_whats_app_conversational_automation": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_get_whats_app_dataset": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_get_whats_app_display_name": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_get_whats_app_group_chat": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_get_whats_app_media": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_get_whats_app_template": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_get_whats_app_template_by_id": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_get_whats_app_templates": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_get_whatsapp_business_username": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_get_whatsapp_business_username_suggestions": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_link_whats_app_catalog": ("messaging:write",), + "whatsapp_list_whats_app_account_events": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_list_whats_app_catalogs": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_list_whats_app_conversions": ( + "ads:read", + "ads:write", + ), + "whatsapp_list_whats_app_group_chats": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_list_whats_app_group_join_requests": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_phone_numbers_check_whats_app_number_availability": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_phone_numbers_create_whats_app_number_kyc_link": ("messaging:write",), + "whatsapp_phone_numbers_get_whats_app_number_info": ( + "contacts:read", + "automations:write", + ), + "whatsapp_phone_numbers_get_whats_app_number_kyc_form": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_phone_numbers_get_whats_app_number_remediation": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_phone_numbers_get_whats_app_phone_number": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_phone_numbers_get_whats_app_phone_numbers": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_phone_numbers_get_whats_app_pricing_analytics": ("analytics:read",), + "whatsapp_phone_numbers_list_whats_app_number_countries": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_phone_numbers_move_whats_app_number_to_profile": ("messaging:write",), + "whatsapp_phone_numbers_purchase_whats_app_phone_number": ("messaging:write",), + "whatsapp_phone_numbers_release_whats_app_phone_number": ("messaging:write",), + "whatsapp_phone_numbers_remediate_whats_app_number": ("messaging:write",), + "whatsapp_phone_numbers_search_available_whats_app_numbers": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_phone_numbers_submit_whats_app_number_kyc": ("messaging:write",), + "whatsapp_phone_numbers_upload_whats_app_number_kyc_document": ("messaging:write",), + "whatsapp_phone_numbers_validate_whats_app_number_kyc_address": ( + "messaging:write", + ), + "whatsapp_register_whats_app_number": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_reject_whats_app_group_join_requests": ("messaging:write",), + "whatsapp_remove_whats_app_group_participants": ("messaging:write",), + "whatsapp_request_whats_app_verification_code": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_sandbox_create_whats_app_sandbox_session": ("messaging:write",), + "whatsapp_sandbox_delete_whats_app_sandbox_session": ("messaging:write",), + "whatsapp_sandbox_list_whats_app_sandbox_sessions": ( + "messaging:read", + "messaging:write", + ), + "whatsapp_send_whats_app_conversion": ("ads:write",), + "whatsapp_set_whats_app_conversational_automation": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_set_whatsapp_business_username": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_templates_get_whats_app_library_template": ( + "accounts:read", + "accounts:write", + ), + "whatsapp_unblock_whats_app_users": ("automations:write",), + "whatsapp_unlink_whats_app_catalog": ("messaging:write",), + "whatsapp_update_whats_app_business_profile": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_update_whats_app_commerce_settings": ("messaging:write",), + "whatsapp_update_whats_app_display_name": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_update_whats_app_group_chat": ("messaging:write",), + "whatsapp_update_whats_app_template": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_update_whats_app_template_by_id": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_upload_whats_app_profile_photo": ( + "accounts:write", + "accounts:read", + ), + "whatsapp_verify_whats_app_number": ( + "accounts:write", + "accounts:read", + ), + "workflows_activate_workflow": ( + "accounts:write", + "accounts:read", + ), + "workflows_create_workflow": ( + "accounts:write", + "accounts:read", + ), + "workflows_delete_workflow": ( + "accounts:write", + "accounts:read", + ), + "workflows_duplicate_workflow": ( + "accounts:write", + "accounts:read", + ), + "workflows_get_workflow": ( + "accounts:read", + "accounts:write", + ), + "workflows_get_workflow_version": ( + "accounts:read", + "accounts:write", + ), + "workflows_list_workflow_execution_events": ( + "messaging:read", + "messaging:write", + ), + "workflows_list_workflow_executions": ( + "messaging:read", + "messaging:write", + ), + "workflows_list_workflow_versions": ( + "accounts:read", + "accounts:write", + ), + "workflows_list_workflows": ( + "accounts:read", + "accounts:write", + ), + "workflows_pause_workflow": ( + "accounts:write", + "accounts:read", + ), + "workflows_restore_workflow_version": ( + "accounts:write", + "accounts:read", + ), + "workflows_take_over_workflow": ( + "accounts:write", + "accounts:read", + ), + "workflows_trigger_api_call_workflow": ("messaging:write",), + "workflows_trigger_workflow": ("messaging:write",), + "workflows_update_workflow": ( + "accounts:write", + "accounts:read", + ), +} diff --git a/src/late/mcp/middleware/__init__.py b/src/late/mcp/middleware/__init__.py index 91811780..952b6c0b 100644 --- a/src/late/mcp/middleware/__init__.py +++ b/src/late/mcp/middleware/__init__.py @@ -1,6 +1,7 @@ """FastMCP middlewares that wrap every tool call.""" from late.mcp.middleware.feedback_source import FEEDBACK_TOOL, FeedbackSourceMiddleware +from late.mcp.middleware.missing_scope import MissingScopeChallengeMiddleware from late.mcp.middleware.rate_limit import RateLimitGuidanceMiddleware from late.mcp.middleware.tool_guidance import ToolGuidanceMiddleware from late.mcp.middleware.tool_telemetry import ToolTelemetryMiddleware @@ -12,6 +13,7 @@ __all__ = [ "FEEDBACK_TOOL", "FeedbackSourceMiddleware", + "MissingScopeChallengeMiddleware", "RateLimitGuidanceMiddleware", "ToolGuidanceMiddleware", "ToolTelemetryMiddleware", diff --git a/src/late/mcp/middleware/missing_scope.py b/src/late/mcp/middleware/missing_scope.py new file mode 100644 index 00000000..55bf26d6 --- /dev/null +++ b/src/late/mcp/middleware/missing_scope.py @@ -0,0 +1,90 @@ +"""Asks ChatGPT to re-link Zernio when a tool needs an OAuth scope the link never granted. + +A ChatGPT link made before a tool's scope was advertised holds a token without +it, and the API refuses that tool with 403 insufficient_permissions. ChatGPT +shows its linking UI only for an error result carrying +_meta["mcp/www_authenticate"], so the 403 is answered with that challenge +instead of a plain error. A 403 the token's scope already covers (a team member +with the group turned off, or a write scope that includes the read) stays a +plain error: re-linking cannot fix it. +""" + +from collections.abc import Mapping, Sequence +from typing import Any + +from fastmcp.exceptions import ToolError +from fastmcp.server.dependencies import get_access_token +from fastmcp.server.middleware import CallNext, Middleware, MiddlewareContext +from fastmcp.tools import ToolResult +from mcp.types import CallToolRequestParams, TextContent + +from late.client.exceptions import LateAPIError + +_INSUFFICIENT_PERMISSIONS = "insufficient_permissions" + + +def _granted_scopes() -> set[str] | None: + """The OAuth scope of the calling token, or None for an API key.""" + try: + token = get_access_token() + except Exception: + return None + scope = token.claims.get("scope") if token else None + return set(scope.split()) if isinstance(scope, str) else None + + +def _refused_for_a_group(cause: BaseException | None) -> bool: + return ( + isinstance(cause, LateAPIError) + and cause.status_code == 403 + and cause.details.get("code") == _INSUFFICIENT_PERMISSIONS + and bool(cause.details.get("required_group")) + ) + + +class MissingScopeChallengeMiddleware(Middleware): + def __init__( + self, + *, + scopes_by_tool: Mapping[str, Sequence[str]], + resource_metadata_url: str, + scopes: Sequence[str], + ) -> None: + self._scopes_by_tool = scopes_by_tool + self._challenge = ( + f'Bearer resource_metadata="{resource_metadata_url}", ' + f'error="insufficient_scope", scope="{" ".join(scopes)}", ' + 'error_description="Reconnect Zernio to grant the permission this needs"' + ) + + async def on_call_tool( + self, + context: MiddlewareContext[CallToolRequestParams], + call_next: CallNext[CallToolRequestParams, Any], + ) -> Any: + try: + return await call_next(context) + except ToolError as exc: + reaching = self._scopes_by_tool.get(context.message.name) + granted = _granted_scopes() + if ( + not reaching + or granted is None + or granted.intersection(reaching) + or not _refused_for_a_group(exc.__cause__) + ): + raise + needed = reaching[0] + return ToolResult( + content=[ + TextContent( + type="text", + text=( + f"Zernio needs the '{needed}' permission for this, which this " + "ChatGPT connection was not granted. Reconnect Zernio to grant it." + ), + ) + ], + meta={"mcp/www_authenticate": [self._challenge]}, + is_error=True, + ) diff --git a/tests/fixtures/chatgpt_live_instructions.txt b/tests/fixtures/chatgpt_live_instructions.txt new file mode 100644 index 00000000..d89dbf92 --- /dev/null +++ b/tests/fixtures/chatgpt_live_instructions.txt @@ -0,0 +1 @@ +Zernio schedules and publishes posts to the user's own connected social media accounts and reports how those posts perform. Every tool acts only inside the signed-in user's Zernio workspace. Before creating a post, call list_social_accounts and pass the exact account_ids the user chose; if it is unclear which account they mean, ask. publish_post_now makes content public right away, so confirm the final text with the user before calling it. Times are ISO 8601; when a time has no UTC offset, pass the user's IANA timezone. When the user asks whether a text or media can go out on a platform, or whether it fits, call validate_post and report its result rather than answering from general knowledge: platform rules (required media, titles, character limits) are enforced by Zernio, not guessed. \ No newline at end of file diff --git a/tests/fixtures/chatgpt_live_tools.json b/tests/fixtures/chatgpt_live_tools.json new file mode 100644 index 00000000..8a64a40c --- /dev/null +++ b/tests/fixtures/chatgpt_live_tools.json @@ -0,0 +1,2520 @@ +[ + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "openai/profile": true, + "securitySchemes": [ + { + "scopes": [ + "accounts:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": true + }, + "description": "Use this to identify which Zernio account is connected, for example when the user has several Zernio accounts or asks who they are signed in as. Returns the stable account id plus name and email when available. Do not use it to look up other people.", + "inputSchema": { + "additionalProperties": false, + "properties": {}, + "type": "object" + }, + "name": "get_profile", + "outputSchema": { + "properties": { + "email": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Email" + }, + "id": { + "description": "Stable Zernio user id for the signed-in account", + "title": "Id", + "type": "string" + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Name" + } + }, + "required": [ + "id" + ], + "title": "Profile", + "type": "object" + }, + "title": "Get signed-in Zernio profile" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "accounts:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": true + }, + "description": "Use this when the user wants to see which social media accounts are connected to Zernio, or before scheduling or publishing so you can pass the right account_ids. Returns each account's id, platform, username and connection status. Optionally filter by platform (instagram, tiktok, youtube, twitter, linkedin, facebook, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, slack).", + "inputSchema": { + "additionalProperties": false, + "properties": { + "cursor": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "next_cursor of the previous page. Keep the same platform." + }, + "platform": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Only return accounts on this platform" + } + }, + "type": "object" + }, + "name": "list_social_accounts", + "outputSchema": { + "properties": { + "accounts": { + "items": { + "properties": { + "display_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Display Name" + }, + "id": { + "description": "Account id to pass as account_id / account_ids", + "title": "Id", + "type": "string" + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "profile_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Profile Url" + }, + "status": { + "enum": [ + "connected", + "needs_reconnection", + "disconnected" + ], + "title": "Status", + "type": "string" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + } + }, + "required": [ + "id", + "platform", + "status" + ], + "title": "SocialAccount", + "type": "object" + }, + "title": "Accounts", + "type": "array" + }, + "next_cursor": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Next Cursor" + } + }, + "required": [ + "accounts" + ], + "title": "SocialAccountList", + "type": "object" + }, + "title": "List connected social accounts" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "posts:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": true + }, + "description": "Use this when the user wants to review their scheduled, draft, published or failed posts, for example 'what is scheduled this week' or 'which posts failed'. Returns each post's id, status, text, scheduled time and per-platform status. Newest first. For one post's full details use get_post; for performance numbers use get_post_analytics.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Only posts targeting this social account" + }, + "limit": { + "default": 20, + "description": "Maximum posts to return", + "maximum": 50, + "minimum": 1, + "type": "integer" + }, + "status": { + "anyOf": [ + { + "enum": [ + "draft", + "scheduled", + "published", + "failed" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Only posts in this status" + } + }, + "type": "object" + }, + "name": "list_posts", + "outputSchema": { + "properties": { + "posts": { + "items": { + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Content" + }, + "id": { + "title": "Id", + "type": "string" + }, + "media_urls": { + "items": { + "type": "string" + }, + "title": "Media Urls", + "type": "array" + }, + "published_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Published At" + }, + "scheduled_for": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "ISO 8601, UTC", + "title": "Scheduled For" + }, + "status": { + "description": "draft, scheduled, publishing, published, failed or partial", + "title": "Status", + "type": "string" + }, + "targets": { + "items": { + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Account Id" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Error" + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "post_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public URL once published", + "title": "Post Url" + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "pending, publishing, published or failed", + "title": "Status" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + } + }, + "required": [ + "platform" + ], + "title": "PostTarget", + "type": "object" + }, + "title": "Targets", + "type": "array" + }, + "timezone": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Timezone" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Title" + } + }, + "required": [ + "id", + "status", + "targets" + ], + "title": "Post", + "type": "object" + }, + "title": "Posts", + "type": "array" + }, + "total": { + "title": "Total", + "type": "integer" + } + }, + "required": [ + "posts", + "total" + ], + "title": "PostList", + "type": "object" + }, + "title": "List posts" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "posts:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": true + }, + "description": "Use this when the user asks about one specific post: its full text, media, schedule, per-platform status, public links or failure reason. Requires the post id from list_posts or from an earlier create result.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "post_id": { + "description": "Zernio post id", + "type": "string" + } + }, + "required": [ + "post_id" + ], + "type": "object" + }, + "name": "get_post", + "outputSchema": { + "properties": { + "post": { + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Content" + }, + "id": { + "title": "Id", + "type": "string" + }, + "media_urls": { + "items": { + "type": "string" + }, + "title": "Media Urls", + "type": "array" + }, + "published_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Published At" + }, + "scheduled_for": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "ISO 8601, UTC", + "title": "Scheduled For" + }, + "status": { + "description": "draft, scheduled, publishing, published, failed or partial", + "title": "Status", + "type": "string" + }, + "targets": { + "items": { + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Account Id" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Error" + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "post_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public URL once published", + "title": "Post Url" + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "pending, publishing, published or failed", + "title": "Status" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + } + }, + "required": [ + "platform" + ], + "title": "PostTarget", + "type": "object" + }, + "title": "Targets", + "type": "array" + }, + "timezone": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Timezone" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Title" + } + }, + "required": [ + "id", + "status", + "targets" + ], + "title": "Post", + "type": "object" + } + }, + "required": [ + "post" + ], + "title": "PostResult", + "type": "object" + }, + "title": "Get post details" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "posts:read", + "accounts:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": true + }, + "description": "Use this whenever the user asks whether a text or media can go out, fits, or is allowed on a chosen platform, for example character limits or required media, and before scheduling when in doubt. Use it instead of answering from general knowledge: the rules are enforced by Zernio. Nothing is created. Returns valid true/false plus each error or warning with the platform it applies to.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "account_ids": { + "description": "Target social account ids from list_social_accounts", + "items": { + "type": "string" + }, + "type": "array" + }, + "content": { + "description": "Post text to check", + "type": "string" + }, + "media_urls": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public image, video or PDF URLs to attach" + } + }, + "required": [ + "content", + "account_ids" + ], + "type": "object" + }, + "name": "validate_post", + "outputSchema": { + "properties": { + "issues": { + "items": { + "properties": { + "message": { + "title": "Message", + "type": "string" + }, + "platform": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Platform" + }, + "severity": { + "enum": [ + "error", + "warning" + ], + "title": "Severity", + "type": "string" + } + }, + "required": [ + "severity", + "message" + ], + "title": "ValidationIssue", + "type": "object" + }, + "title": "Issues", + "type": "array" + }, + "valid": { + "title": "Valid", + "type": "boolean" + } + }, + "required": [ + "valid", + "issues" + ], + "title": "ValidationResult", + "type": "object" + }, + "title": "Check a post against platform rules" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "posts:write", + "accounts:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": false, + "openWorldHint": true, + "readOnlyHint": false + }, + "description": "Use this when the user wants a post published later at a specific time on one or more of their connected accounts. The post stays editable and cancellable until that time. Requires the text, the account_ids from list_social_accounts and the time. Media is attached from public URLs. For publishing right now use publish_post_now instead; for a text-only check use validate_post.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "account_ids": { + "description": "Target social account ids from list_social_accounts", + "items": { + "type": "string" + }, + "type": "array" + }, + "content": { + "description": "Post text. Platform limits apply, for example 280 characters on X", + "type": "string" + }, + "media_urls": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public image, video or PDF URLs to attach" + }, + "scheduled_for": { + "description": "When to publish, ISO 8601 such as 2026-10-01T09:00:00+02:00", + "type": "string" + }, + "timezone": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "IANA timezone, needed only when scheduled_for has no UTC offset" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Title for YouTube or Pinterest" + } + }, + "required": [ + "content", + "account_ids", + "scheduled_for" + ], + "type": "object" + }, + "name": "schedule_post", + "outputSchema": { + "properties": { + "post": { + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Content" + }, + "id": { + "title": "Id", + "type": "string" + }, + "media_urls": { + "items": { + "type": "string" + }, + "title": "Media Urls", + "type": "array" + }, + "published_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Published At" + }, + "scheduled_for": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "ISO 8601, UTC", + "title": "Scheduled For" + }, + "status": { + "description": "draft, scheduled, publishing, published, failed or partial", + "title": "Status", + "type": "string" + }, + "targets": { + "items": { + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Account Id" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Error" + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "post_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public URL once published", + "title": "Post Url" + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "pending, publishing, published or failed", + "title": "Status" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + } + }, + "required": [ + "platform" + ], + "title": "PostTarget", + "type": "object" + }, + "title": "Targets", + "type": "array" + }, + "timezone": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Timezone" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Title" + } + }, + "required": [ + "id", + "status", + "targets" + ], + "title": "Post", + "type": "object" + } + }, + "required": [ + "post" + ], + "title": "PostResult", + "type": "object" + }, + "title": "Schedule a post" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "posts:write", + "accounts:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": true, + "idempotentHint": false, + "openWorldHint": true, + "readOnlyHint": false + }, + "description": "Use this only when the user explicitly wants the post live right now on one or more of their connected accounts. The content becomes public on those platforms immediately and this cannot be undone from ChatGPT, so confirm the final text and accounts with the user first. Calling it twice publishes twice. Returns the post with its public links. To publish later use schedule_post.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "account_ids": { + "description": "Target social account ids from list_social_accounts", + "items": { + "type": "string" + }, + "type": "array" + }, + "content": { + "description": "Post text. Platform limits apply, for example 280 characters on X", + "type": "string" + }, + "media_urls": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public image, video or PDF URLs to attach" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Title for YouTube or Pinterest" + } + }, + "required": [ + "content", + "account_ids" + ], + "type": "object" + }, + "name": "publish_post_now", + "outputSchema": { + "properties": { + "post": { + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Content" + }, + "id": { + "title": "Id", + "type": "string" + }, + "media_urls": { + "items": { + "type": "string" + }, + "title": "Media Urls", + "type": "array" + }, + "published_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Published At" + }, + "scheduled_for": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "ISO 8601, UTC", + "title": "Scheduled For" + }, + "status": { + "description": "draft, scheduled, publishing, published, failed or partial", + "title": "Status", + "type": "string" + }, + "targets": { + "items": { + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Account Id" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Error" + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "post_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public URL once published", + "title": "Post Url" + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "pending, publishing, published or failed", + "title": "Status" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + } + }, + "required": [ + "platform" + ], + "title": "PostTarget", + "type": "object" + }, + "title": "Targets", + "type": "array" + }, + "timezone": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Timezone" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Title" + } + }, + "required": [ + "id", + "status", + "targets" + ], + "title": "Post", + "type": "object" + } + }, + "required": [ + "post" + ], + "title": "PostResult", + "type": "object" + }, + "title": "Publish a post immediately" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "posts:write" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": false + }, + "description": "Use this when the user wants to change the text, media, title or publish time of a post that has not been published yet (draft, scheduled or failed). Only the fields given are changed; new media_urls replace the existing media. Published posts cannot be edited here. Requires the post id from list_posts.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "New post text" + }, + "media_urls": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Replacement media URLs; an empty list removes media" + }, + "post_id": { + "description": "Zernio post id", + "type": "string" + }, + "scheduled_for": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "New publish time, ISO 8601" + }, + "timezone": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "IANA timezone, needed only when scheduled_for has no UTC offset" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "New title for YouTube or Pinterest" + } + }, + "required": [ + "post_id" + ], + "type": "object" + }, + "name": "update_scheduled_post", + "outputSchema": { + "properties": { + "post": { + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Content" + }, + "id": { + "title": "Id", + "type": "string" + }, + "media_urls": { + "items": { + "type": "string" + }, + "title": "Media Urls", + "type": "array" + }, + "published_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Published At" + }, + "scheduled_for": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "ISO 8601, UTC", + "title": "Scheduled For" + }, + "status": { + "description": "draft, scheduled, publishing, published, failed or partial", + "title": "Status", + "type": "string" + }, + "targets": { + "items": { + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Account Id" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Error" + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "post_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public URL once published", + "title": "Post Url" + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "pending, publishing, published or failed", + "title": "Status" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + } + }, + "required": [ + "platform" + ], + "title": "PostTarget", + "type": "object" + }, + "title": "Targets", + "type": "array" + }, + "timezone": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Timezone" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Title" + } + }, + "required": [ + "id", + "status", + "targets" + ], + "title": "Post", + "type": "object" + } + }, + "required": [ + "post" + ], + "title": "PostResult", + "type": "object" + }, + "title": "Edit a scheduled post" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "posts:write" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": true, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": false + }, + "description": "Use this when the user wants to delete a draft, scheduled or failed post so it will not be published. This removes the post from Zernio and cannot be undone. Posts that are already published are left untouched and this tool reports that. Requires the post id from list_posts.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "post_id": { + "description": "Zernio post id", + "type": "string" + } + }, + "required": [ + "post_id" + ], + "type": "object" + }, + "name": "cancel_scheduled_post", + "outputSchema": { + "properties": { + "deleted": { + "title": "Deleted", + "type": "boolean" + }, + "post_id": { + "title": "Post Id", + "type": "string" + }, + "previous_status": { + "title": "Previous Status", + "type": "string" + } + }, + "required": [ + "post_id", + "deleted", + "previous_status" + ], + "title": "CancelResult", + "type": "object" + }, + "title": "Cancel a scheduled post" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "posts:write" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": true, + "idempotentHint": false, + "openWorldHint": true, + "readOnlyHint": false + }, + "description": "Use this when a post shows status failed and the user wants Zernio to try publishing it again on the platforms that failed. This publishes the same content publicly on retry, so confirm with the user first. Requires the post id from list_posts. Read the failure reason with get_post before retrying; a reconnect or content fix may be needed first.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "post_id": { + "description": "Zernio post id of a failed post", + "type": "string" + } + }, + "required": [ + "post_id" + ], + "type": "object" + }, + "name": "retry_failed_post", + "outputSchema": { + "properties": { + "post": { + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Content" + }, + "id": { + "title": "Id", + "type": "string" + }, + "media_urls": { + "items": { + "type": "string" + }, + "title": "Media Urls", + "type": "array" + }, + "published_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Published At" + }, + "scheduled_for": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "ISO 8601, UTC", + "title": "Scheduled For" + }, + "status": { + "description": "draft, scheduled, publishing, published, failed or partial", + "title": "Status", + "type": "string" + }, + "targets": { + "items": { + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Account Id" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Error" + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "post_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Public URL once published", + "title": "Post Url" + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "pending, publishing, published or failed", + "title": "Status" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + } + }, + "required": [ + "platform" + ], + "title": "PostTarget", + "type": "object" + }, + "title": "Targets", + "type": "array" + }, + "timezone": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Timezone" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Title" + } + }, + "required": [ + "id", + "status", + "targets" + ], + "title": "Post", + "type": "object" + } + }, + "required": [ + "post" + ], + "title": "PostResult", + "type": "object" + }, + "title": "Retry a failed post" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "analytics:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": true + }, + "description": "Use this when the user asks how a specific published post performed: impressions, reach, likes, comments, shares, saves, clicks, views and engagement rate, per platform. Numbers sync from the platforms periodically, so a just-published post may report pending data. Requires the post id from list_posts.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "post_id": { + "description": "Zernio post id of a published post", + "type": "string" + } + }, + "required": [ + "post_id" + ], + "type": "object" + }, + "name": "get_post_analytics", + "outputSchema": { + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Content" + }, + "message": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Explains pending or unavailable data", + "title": "Message" + }, + "metrics": { + "properties": { + "clicks": { + "default": 0, + "title": "Clicks", + "type": "integer" + }, + "comments": { + "default": 0, + "title": "Comments", + "type": "integer" + }, + "engagement_rate": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Engagement Rate" + }, + "impressions": { + "default": 0, + "title": "Impressions", + "type": "integer" + }, + "likes": { + "default": 0, + "title": "Likes", + "type": "integer" + }, + "reach": { + "default": 0, + "title": "Reach", + "type": "integer" + }, + "saves": { + "default": 0, + "title": "Saves", + "type": "integer" + }, + "shares": { + "default": 0, + "title": "Shares", + "type": "integer" + }, + "views": { + "default": 0, + "title": "Views", + "type": "integer" + } + }, + "title": "Metrics", + "type": "object" + }, + "platforms": { + "items": { + "properties": { + "metrics": { + "anyOf": [ + { + "properties": { + "clicks": { + "default": 0, + "title": "Clicks", + "type": "integer" + }, + "comments": { + "default": 0, + "title": "Comments", + "type": "integer" + }, + "engagement_rate": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Engagement Rate" + }, + "impressions": { + "default": 0, + "title": "Impressions", + "type": "integer" + }, + "likes": { + "default": 0, + "title": "Likes", + "type": "integer" + }, + "reach": { + "default": 0, + "title": "Reach", + "type": "integer" + }, + "saves": { + "default": 0, + "title": "Saves", + "type": "integer" + }, + "shares": { + "default": 0, + "title": "Shares", + "type": "integer" + }, + "views": { + "default": 0, + "title": "Views", + "type": "integer" + } + }, + "title": "Metrics", + "type": "object" + }, + { + "type": "null" + } + ], + "default": null + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "post_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Post Url" + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Status" + }, + "sync_status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "synced, pending or unavailable", + "title": "Sync Status" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + } + }, + "required": [ + "platform" + ], + "title": "PlatformAnalytics", + "type": "object" + }, + "title": "Platforms", + "type": "array" + }, + "post_id": { + "title": "Post Id", + "type": "string" + }, + "published_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Published At" + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Status" + }, + "sync_status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Sync Status" + } + }, + "required": [ + "post_id", + "metrics", + "platforms" + ], + "title": "PostAnalytics", + "type": "object" + }, + "title": "Get analytics for one post" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "analytics:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": true + }, + "description": "Use this when the user asks how their accounts or platforms performed over a period, for example 'how did Instagram do last month'. Returns daily totals (impressions, reach, likes, comments, shares, saves, clicks, views) and per-platform totals for the date range, defaulting to the last 30 days. Filter by account_id or platform. For a single post use get_post_analytics.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Only this social account" + }, + "from_date": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Start date YYYY-MM-DD, default 30 days ago" + }, + "platform": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Only this platform, for example instagram" + }, + "to_date": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "End date YYYY-MM-DD, default today" + } + }, + "type": "object" + }, + "name": "get_account_analytics", + "outputSchema": { + "properties": { + "days": { + "items": { + "properties": { + "date": { + "title": "Date", + "type": "string" + }, + "metrics": { + "properties": { + "clicks": { + "default": 0, + "title": "Clicks", + "type": "integer" + }, + "comments": { + "default": 0, + "title": "Comments", + "type": "integer" + }, + "engagement_rate": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Engagement Rate" + }, + "impressions": { + "default": 0, + "title": "Impressions", + "type": "integer" + }, + "likes": { + "default": 0, + "title": "Likes", + "type": "integer" + }, + "reach": { + "default": 0, + "title": "Reach", + "type": "integer" + }, + "saves": { + "default": 0, + "title": "Saves", + "type": "integer" + }, + "shares": { + "default": 0, + "title": "Shares", + "type": "integer" + }, + "views": { + "default": 0, + "title": "Views", + "type": "integer" + } + }, + "title": "Metrics", + "type": "object" + }, + "post_count": { + "title": "Post Count", + "type": "integer" + } + }, + "required": [ + "date", + "post_count", + "metrics" + ], + "title": "DailyMetrics", + "type": "object" + }, + "title": "Days", + "type": "array" + }, + "from_date": { + "title": "From Date", + "type": "string" + }, + "platform_totals": { + "items": { + "properties": { + "metrics": { + "properties": { + "clicks": { + "default": 0, + "title": "Clicks", + "type": "integer" + }, + "comments": { + "default": 0, + "title": "Comments", + "type": "integer" + }, + "engagement_rate": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Engagement Rate" + }, + "impressions": { + "default": 0, + "title": "Impressions", + "type": "integer" + }, + "likes": { + "default": 0, + "title": "Likes", + "type": "integer" + }, + "reach": { + "default": 0, + "title": "Reach", + "type": "integer" + }, + "saves": { + "default": 0, + "title": "Saves", + "type": "integer" + }, + "shares": { + "default": 0, + "title": "Shares", + "type": "integer" + }, + "views": { + "default": 0, + "title": "Views", + "type": "integer" + } + }, + "title": "Metrics", + "type": "object" + }, + "platform": { + "title": "Platform", + "type": "string" + }, + "post_count": { + "title": "Post Count", + "type": "integer" + } + }, + "required": [ + "platform", + "post_count", + "metrics" + ], + "title": "PlatformTotals", + "type": "object" + }, + "title": "Platform Totals", + "type": "array" + }, + "to_date": { + "title": "To Date", + "type": "string" + } + }, + "required": [ + "from_date", + "to_date", + "days", + "platform_totals" + ], + "title": "AccountAnalytics", + "type": "object" + }, + "title": "Get daily analytics across accounts" + }, + { + "_meta": { + "fastmcp": { + "tags": [] + }, + "securitySchemes": [ + { + "scopes": [ + "analytics:read" + ], + "type": "oauth2" + } + ] + }, + "annotations": { + "destructiveHint": false, + "idempotentHint": true, + "openWorldHint": false, + "readOnlyHint": true + }, + "description": "Use this when the user asks when they should post for the most engagement. Computed from the engagement history of the user's own published posts, as weekday and hour in UTC, best first. Filter by account_id or platform. Returns nothing useful until the account has published posts with synced analytics.", + "inputSchema": { + "additionalProperties": false, + "properties": { + "account_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Only this social account" + }, + "platform": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Only this platform, for example instagram" + } + }, + "type": "object" + }, + "name": "get_best_time_to_post", + "outputSchema": { + "properties": { + "based_on_posts": { + "title": "Based On Posts", + "type": "integer" + }, + "slots": { + "description": "Best slots first", + "items": { + "properties": { + "avg_engagement": { + "title": "Avg Engagement", + "type": "number" + }, + "day": { + "title": "Day", + "type": "string" + }, + "hour_utc": { + "title": "Hour Utc", + "type": "integer" + }, + "post_count": { + "title": "Post Count", + "type": "integer" + } + }, + "required": [ + "day", + "hour_utc", + "avg_engagement", + "post_count" + ], + "title": "BestTimeSlot", + "type": "object" + }, + "title": "Slots", + "type": "array" + } + }, + "required": [ + "slots", + "based_on_posts" + ], + "title": "BestTimes", + "type": "object" + }, + "title": "Get best times to post" + } +] \ No newline at end of file diff --git a/tests/test_chatgpt_generated_tools.py b/tests/test_chatgpt_generated_tools.py new file mode 100644 index 00000000..9a50c11c --- /dev/null +++ b/tests/test_chatgpt_generated_tools.py @@ -0,0 +1,228 @@ +"""The generated tools the ChatGPT plugin lists next to its 13 hand-shaped ones. + +OpenAI publishes a plugin's tools one by one after a scan, and keeps serving +the definitions it approved: the 13 live tools must not change shape, every +added tool must carry explicit hints and its OAuth scope, and a link made +before a scope existed must be asked to re-link rather than fail. +""" + +from __future__ import annotations + +import json +from pathlib import Path + +import httpx +import pytest +import respx +from fastmcp import Client +from fastmcp.server.auth import AccessToken + +from late.mcp.chatgpt_server import CHATGPT_SCOPES, chatgpt_mcp +from late.mcp.chatgpt_tools import CHATGPT_GENERATED_TOOLS, concise_description +from late.mcp.generated_tools import TOOL_OAUTH_SCOPES +from late.mcp.middleware.missing_scope import _granted_scopes + +FIXTURES = Path(__file__).parent / "fixtures" +LIVE_TOOLS = json.loads((FIXTURES / "chatgpt_live_tools.json").read_text()) +LIVE_INSTRUCTIONS = (FIXTURES / "chatgpt_live_instructions.txt").read_text() +CONVERSATIONS = "https://api.test.com/v1/inbox/conversations" +LINK_SCOPES = {"posts:read", "posts:write", "accounts:read", "analytics:read"} +GROUP_DENIED = { + "error": "This connector token has the 'messages' resource group disabled.", + "code": "insufficient_permissions", + "required_group": "messages", +} + + +@pytest.fixture(autouse=True) +def api_env(monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setenv("ZERNIO_API_KEY", "test_api_key") + monkeypatch.setenv("ZERNIO_BASE_URL", "https://api.test.com") + + +async def _listed() -> dict[str, dict]: + async with Client(chatgpt_mcp) as client: + result = await client.session.list_tools() + return { + t.name: t.model_dump(mode="json", by_alias=True, exclude_none=True) + for t in result.tools + } + + +async def test_the_live_tools_keep_the_definitions_openai_approved(): + listed = await _listed() + + for live in LIVE_TOOLS: + assert listed[live["name"]] == live, live["name"] + + +async def test_the_server_instructions_keep_their_published_text(): + async with Client(chatgpt_mcp) as client: + assert client.instructions == LIVE_INSTRUCTIONS + + +async def test_lists_the_live_tools_and_the_wave_and_no_tool_search_proxy(): + listed = await _listed() + + assert set(listed) == {t["name"] for t in LIVE_TOOLS} | set(CHATGPT_GENERATED_TOOLS) + assert "search_tools" not in listed + assert "call_tool" not in listed + + +async def test_every_generated_tool_has_explicit_hints_and_its_oauth_scope(): + listed = await _listed() + + for name in CHATGPT_GENERATED_TOOLS: + hints = listed[name]["annotations"] + assert hints["readOnlyHint"] is True, name + assert hints["destructiveHint"] is False, name + assert hints["openWorldHint"] is False, name + assert listed[name]["_meta"]["securitySchemes"] == [ + {"type": "oauth2", "scopes": [TOOL_OAUTH_SCOPES[name][0]]} + ], name + + +async def test_generated_descriptions_stay_short(): + listed = await _listed() + + for name in CHATGPT_GENERATED_TOOLS: + assert len(listed[name]["description"]) < 2_500, name + + +def test_advertises_exactly_the_scopes_the_listed_tools_need(): + needed = {TOOL_OAUTH_SCOPES[name][0] for name in CHATGPT_GENERATED_TOOLS} + + assert CHATGPT_SCOPES[:4] == [ + "posts:read", + "posts:write", + "accounts:read", + "analytics:read", + ] + assert set(CHATGPT_SCOPES) == LINK_SCOPES | needed + assert {"messaging:read", "ads:read", "contacts:read"} <= set(CHATGPT_SCOPES) + assert not { + "messaging:write", + "ads:write", + "automations:write", + "money:write", + } & set(CHATGPT_SCOPES) + + +def test_a_description_keeps_its_first_paragraph_and_one_line_per_argument(): + doc = """List conversations + + Fetch conversations from every connected account. + + ### X limitation + + X hides encrypted chats. + + Args: + platform: Filter by platform + folder: `requests` lists message requests. + +- When Meta will not list the folder, the call answers 400. + limit: Maximum number of conversations to return""" + + assert concise_description(doc) == ( + "List conversations\n\n" + "Fetch conversations from every connected account.\n\n" + "Args:\n" + " platform: Filter by platform\n" + " folder: `requests` lists message requests.\n" + " limit: Maximum number of conversations to return" + ) + + +def test_a_title_only_description_keeps_undocumented_arguments_by_name(): + doc = """Get workflow + + Args: + workflow_id: (required) + account_id""" + + assert concise_description(doc) == ( + "Get workflow\n\nArgs:\n workflow_id: (required)\n account_id" + ) + + +async def _list_conversations(response: httpx.Response): + with respx.mock: + respx.get(url__startswith=CONVERSATIONS).mock(return_value=response) + async with Client(chatgpt_mcp) as client: + return await client.call_tool( + "messages_list_inbox_conversations", {}, raise_on_error=False + ) + + +async def test_a_link_without_the_tools_scope_is_asked_to_relink(monkeypatch): + monkeypatch.setattr( + "late.mcp.middleware.missing_scope._granted_scopes", lambda: LINK_SCOPES + ) + + result = await _list_conversations(httpx.Response(403, json=GROUP_DENIED)) + + assert result.is_error + (challenge,) = result.meta["mcp/www_authenticate"] + assert challenge.startswith( + 'Bearer resource_metadata="https://mcp.zernio.com/.well-known/oauth-protected-resource/chatgpt"' + ) + assert 'error="insufficient_scope"' in challenge + assert "messaging:read" in challenge + assert "messaging:read" in result.content[0].text + + +@pytest.mark.parametrize( + ("granted", "body"), + [ + # The link holds the scope: a team member with the group off, which re-linking cannot fix. + (LINK_SCOPES | {"messaging:read"}, GROUP_DENIED), + # A write scope reaches the read too. + (LINK_SCOPES | {"messaging:write"}, GROUP_DENIED), + # An API key: no OAuth link to redo. + (None, GROUP_DENIED), + # A 403 that is not about a resource group. + (LINK_SCOPES, {"error": "Upgrade your plan", "code": "plan_required"}), + ], +) +async def test_other_403s_stay_plain_errors(monkeypatch, granted, body): + monkeypatch.setattr( + "late.mcp.middleware.missing_scope._granted_scopes", lambda: granted + ) + + result = await _list_conversations(httpx.Response(403, json=body)) + + assert result.is_error + assert not (result.meta or {}).get("mcp/www_authenticate") + + +async def test_a_generated_tool_answers_from_the_api(): + with respx.mock: + respx.get(url__startswith=CONVERSATIONS).mock( + return_value=httpx.Response( + 200, json={"data": [{"id": "conv_1", "participantName": "Ana"}]} + ) + ) + async with Client(chatgpt_mcp) as client: + result = await client.call_tool( + "messages_list_inbox_conversations", {}, raise_on_error=False + ) + + assert not result.is_error + assert "conv_1" in result.content[0].text + + +@pytest.mark.parametrize( + ("claims", "granted"), + [ + ({"scope": "posts:read messaging:read"}, {"posts:read", "messaging:read"}), + ({"user_id": "u1"}, None), + ], +) +def test_the_granted_scopes_come_from_the_verified_token(monkeypatch, claims, granted): + token = AccessToken(token="t", client_id="zernio", scopes=[], claims=claims) + monkeypatch.setattr( + "late.mcp.middleware.missing_scope.get_access_token", lambda: token + ) + + assert _granted_scopes() == granted diff --git a/tests/test_chatgpt_server.py b/tests/test_chatgpt_server.py index 91491492..f0311b49 100644 --- a/tests/test_chatgpt_server.py +++ b/tests/test_chatgpt_server.py @@ -19,6 +19,7 @@ from late.mcp import auth, chatgpt_server from late.mcp.chatgpt_server import _media_items, chatgpt_mcp +from late.mcp.chatgpt_tools import CHATGPT_GENERATED_TOOLS API = chatgpt_server.API_BASE @@ -111,7 +112,9 @@ async def _call(name: str, **args): async def test_every_tool_is_fully_annotated_for_review(): async with Client(chatgpt_mcp) as client: - tools = await client.list_tools() + tools = [ + t for t in await client.list_tools() if t.name not in CHATGPT_GENERATED_TOOLS + ] assert len(tools) == 13 for tool in tools: hints = tool.annotations diff --git a/tests/test_generated_mcp_annotations.py b/tests/test_generated_mcp_annotations.py new file mode 100644 index 00000000..aeaf1064 --- /dev/null +++ b/tests/test_generated_mcp_annotations.py @@ -0,0 +1,84 @@ +"""Hints and OAuth scopes the generator puts on every tool. + +OpenAI's plugin review checks readOnlyHint, destructiveHint and openWorldHint +on each tool, and ChatGPT asks for the OAuth scope a tool declares. +""" + +from __future__ import annotations + +import asyncio +import importlib +from pathlib import Path + +import pytest +from fastmcp import FastMCP + +from late.mcp.generated_tools import TOOL_OAUTH_SCOPES, register_generated_tools + + +@pytest.fixture(scope="module") +def generator(): + import sys + + sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) + try: + yield importlib.import_module("generate_mcp_tools") + finally: + sys.path.pop(0) + + +@pytest.fixture(scope="module") +def tools(): + server = FastMCP("generated") + register_generated_tools(server, lambda: None) + return {tool.name: tool for tool in asyncio.run(server.list_tools())} + + +def test_a_read_declares_the_read_scope_and_a_write_the_write_scope(generator): + both = ["posts:read", "posts:write"] + + assert generator.declared_oauth_scopes(both, True) == ["posts:read", "posts:write"] + assert generator.declared_oauth_scopes(both, False) == ["posts:write", "posts:read"] + assert generator.declared_oauth_scopes(["ads:write"], True) == ["ads:write"] + assert generator.declared_oauth_scopes([], True) == [] + + +def test_a_post_that_only_queries_is_read_only(tools): + hints = tools["metrics_query_meta_ads"].annotations + + assert hints.readOnlyHint is True + assert hints.destructiveHint is False + assert hints.openWorldHint is False + + +def test_a_search_of_public_content_is_open_world(tools): + hints = tools["reddit_search_reddit"].annotations + + assert hints.readOnlyHint is True + assert hints.openWorldHint is True + + +def test_a_send_is_a_destructive_open_world_write(tools): + hints = tools["messages_send_inbox_message"].annotations + + assert hints.readOnlyHint is False + assert hints.destructiveHint is True + assert hints.openWorldHint is True + + +def test_every_tool_sets_all_three_hints(tools): + for name, tool in tools.items(): + hints = tool.annotations + assert isinstance(hints.readOnlyHint, bool), name + assert isinstance(hints.destructiveHint, bool), name + assert isinstance(hints.openWorldHint, bool), name + + +def test_reads_declare_the_read_scope_and_sends_the_write_scope(): + assert TOOL_OAUTH_SCOPES["messages_list_inbox_conversations"] == ( + "messaging:read", + "messaging:write", + ) + assert TOOL_OAUTH_SCOPES["messages_send_inbox_message"] == ("messaging:write",) + assert TOOL_OAUTH_SCOPES["ad_campaigns_list_ads"][0] == "ads:read" + assert TOOL_OAUTH_SCOPES["accounts_get_account_health"][0] == "accounts:read" diff --git a/tests/test_mcp_auth_cache.py b/tests/test_mcp_auth_cache.py index 32a505fa..0286eb5e 100644 --- a/tests/test_mcp_auth_cache.py +++ b/tests/test_mcp_auth_cache.py @@ -13,11 +13,11 @@ @pytest.fixture(autouse=True) def _clear_verification_cache(): auth._VERIFIED_AT.clear() - auth._USER_ID_BY_TOKEN.clear() + auth._IDENTITY_BY_TOKEN.clear() auth._IN_FLIGHT.clear() yield auth._VERIFIED_AT.clear() - auth._USER_ID_BY_TOKEN.clear() + auth._IDENTITY_BY_TOKEN.clear() auth._IN_FLIGHT.clear() @@ -176,8 +176,34 @@ async def test_a_valid_token_without_a_readable_user_id_is_granted_without_one( async def test_a_rejected_token_forgets_its_user_id(): - auth._remember_user_id(auth.token_cache_key("sk_revoked"), "u" * 24) + auth._remember_identity(auth.token_cache_key("sk_revoked"), {"user_id": "u" * 24}) auth.forget_rejected_token("sk_revoked") - assert auth.token_cache_key("sk_revoked") not in auth._USER_ID_BY_TOKEN + assert auth.token_cache_key("sk_revoked") not in auth._IDENTITY_BY_TOKEN + + +async def test_a_grant_carries_the_oauth_scope_the_verify_answer_returned(): + verifier = _verifier_answering( + httpx.Response( + 200, json={"userId": "u" * 24, "scope": "posts:read accounts:read"} + ) + ) + await verifier.verify_token("oat_live") + + cached = await verifier.verify_token("oat_live") + + assert cached is not None + assert cached.claims["resolved_by"] == "cache" + assert cached.claims["scope"] == "posts:read accounts:read" + + +async def test_an_api_key_grant_has_no_scope_claim(): + verifier = _verifier_answering( + httpx.Response(200, json={"userId": "u" * 24, "scope": None}) + ) + + granted = await verifier.verify_token("sk_live") + + assert granted is not None + assert "scope" not in granted.claims