From d564d4d29f4525749a1323633c36f45675461322 Mon Sep 17 00:00:00 2001 From: Miki Palet <64255955+mikipalet@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:51:38 +0000 Subject: [PATCH 1/4] feat(mcp): ChatGPT plugin lists 40 more tools, the most used reads (wave 1) /chatgpt now registers 40 generated tools next to its 13 hand-shaped ones: the most used reads over the last 30 days (REST plus /mcp calls) from inbox, comments, mentions, reviews, account health, analytics and profiles. Each declares its OAuth scope (securitySchemes) from the spec's x-oauth-scopes and a one-paragraph description; no search_tools/call_tool. The 13 live definitions are unchanged and pinned by a fixture. - Generator: explicit hints with read-only overrides for POST queries, openWorldHint on public-content reads, TOOL_OAUTH_SCOPE table. - /chatgpt advertises messaging:write (the inbox scope) on top of its 4. - A link without a tool's scope gets the mcp/www_authenticate insufficient_scope challenge, so ChatGPT asks to re-link; the token's scope comes from /v1/auth/verify and is cached with the user id. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kx4ZnYRCwTShnKwf5bar5Y --- openapi.yaml | 1329 ++++++++++++ scripts/generate_mcp_tools.py | 95 +- src/late/mcp/auth.py | 40 +- src/late/mcp/chatgpt_server.py | 44 +- src/late/mcp/chatgpt_tools.py | 145 ++ src/late/mcp/generated_tools.py | 1515 ++++++++++++- src/late/mcp/middleware/__init__.py | 2 + src/late/mcp/middleware/missing_scope.py | 88 + tests/fixtures/chatgpt_live_tools.json | 2520 ++++++++++++++++++++++ tests/test_chatgpt_generated_tools.py | 169 ++ tests/test_chatgpt_server.py | 5 +- tests/test_generated_mcp_annotations.py | 81 + tests/test_mcp_auth_cache.py | 34 +- 13 files changed, 5937 insertions(+), 130 deletions(-) create mode 100644 src/late/mcp/chatgpt_tools.py create mode 100644 src/late/mcp/middleware/missing_scope.py create mode 100644 tests/fixtures/chatgpt_live_tools.json create mode 100644 tests/test_chatgpt_generated_tools.py create mode 100644 tests/test_generated_mcp_annotations.py diff --git a/openapi.yaml b/openapi.yaml index 0f5c5741..d7148f23 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -35883,6 +35883,7 @@ paths: # ============================================ /v1/tools/validate/post-length: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: validatePostLength tags: [Validate] @@ -35952,6 +35953,7 @@ paths: /v1/tools/validate/post: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: validatePost tags: [Validate] @@ -36047,6 +36049,7 @@ paths: /v1/tools/validate/media: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: validateMedia tags: [Validate] @@ -36122,6 +36125,7 @@ paths: /v1/tools/validate/subreddit: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: validateSubreddit tags: [Validate] @@ -36182,6 +36186,7 @@ paths: # ============================================ /v1/metrics/catalog: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: analytics operationId: getMetricsCatalog tags: @@ -36330,6 +36335,7 @@ paths: $ref: '#/components/responses/AnalyticsRateLimited' /v1/metrics/posts: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: analytics operationId: getPostMetrics tags: @@ -36780,6 +36786,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/accounts: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: analytics operationId: getAccountMetrics tags: @@ -36974,6 +36981,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/insights: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: analytics operationId: getInsightMetrics tags: @@ -37298,6 +37306,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/inbox: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: analytics operationId: getInboxMetrics tags: @@ -37495,6 +37504,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ads: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAdMetrics tags: @@ -37646,6 +37656,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/campaigns: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getCampaignMetrics tags: @@ -37743,6 +37754,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ad-sets: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAdSetMetrics tags: @@ -37832,6 +37844,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ad-accounts: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAdAccountMetrics tags: @@ -37888,6 +37901,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/platform-queries/meta-ads: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: queryMetaAds tags: @@ -37962,6 +37976,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/platform-queries/google-ads: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: queryGoogleAds tags: @@ -38035,6 +38050,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/platform-queries/tiktok-ads: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: queryTikTokAds tags: @@ -38115,6 +38131,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/platform-queries/google-analytics: post: + x-oauth-scopes: ["analytics:read"] x-resource-group: analytics operationId: queryGoogleAnalytics tags: @@ -38212,6 +38229,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/analytics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getAnalytics tags: [Analytics] @@ -38492,6 +38510,7 @@ paths: /v1/analytics/delta: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getAnalyticsDelta tags: [Analytics] @@ -38674,6 +38693,7 @@ paths: /v1/analytics/youtube/channel-insights: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getYouTubeChannelInsights tags: [Analytics] @@ -38775,6 +38795,7 @@ paths: /v1/analytics/linkedin/org-aggregate-analytics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getLinkedInOrgAggregateAnalytics tags: [Analytics] @@ -38891,6 +38912,7 @@ paths: /v1/analytics/tiktok/account-insights: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getTikTokAccountInsights tags: [Analytics] @@ -39009,6 +39031,7 @@ paths: /v1/analytics/pinterest/account-insights: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getPinterestAccountInsights tags: [Analytics] @@ -39089,6 +39112,7 @@ paths: /v1/analytics/tiktok/demographics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getTikTokDemographics tags: [Analytics] @@ -39199,6 +39223,7 @@ paths: /v1/analytics/youtube/daily-views: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getYouTubeDailyViews tags: [Analytics] @@ -39346,6 +39371,7 @@ paths: /v1/analytics/youtube/video-retention: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getYouTubeVideoRetention tags: [Analytics] @@ -39505,6 +39531,7 @@ paths: /v1/analytics/facebook/page-insights: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getFacebookPageInsights tags: [Analytics] @@ -39689,6 +39716,7 @@ paths: /v1/analytics/facebook/post-earnings: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getFacebookPostEarnings tags: [Analytics] @@ -39803,6 +39831,7 @@ paths: /v1/analytics/instagram/account-insights: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInstagramAccountInsights tags: [Analytics] @@ -39964,6 +39993,7 @@ paths: /v1/analytics/instagram/follower-history: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInstagramFollowerHistory tags: [Analytics] @@ -40035,6 +40065,7 @@ paths: /v1/analytics/facebook/demographics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getFacebookDemographics tags: [Analytics] @@ -40138,6 +40169,7 @@ paths: /v1/analytics/linkedin/demographics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getLinkedInDemographics tags: [Analytics] @@ -40245,6 +40277,7 @@ paths: /v1/analytics/instagram/demographics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInstagramDemographics tags: [Analytics] @@ -40367,6 +40400,7 @@ paths: /v1/analytics/instagram/online-followers: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInstagramOnlineFollowers tags: [Analytics] @@ -40451,6 +40485,7 @@ paths: /v1/analytics/youtube/demographics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getYouTubeDemographics tags: [Analytics] @@ -40622,6 +40657,7 @@ paths: /v1/analytics/daily-metrics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getDailyMetrics tags: [Analytics] @@ -40785,6 +40821,7 @@ paths: /v1/analytics/dashboard: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getAnalyticsDashboard tags: [Analytics] @@ -40905,6 +40942,7 @@ paths: /v1/analytics/best-time: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getBestTimeToPost tags: [Analytics] @@ -40983,6 +41021,7 @@ paths: /v1/analytics/content-decay: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getContentDecay tags: [Analytics] @@ -41078,6 +41117,7 @@ paths: /v1/analytics/posting-frequency: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getPostingFrequency tags: [Analytics] @@ -41160,6 +41200,7 @@ paths: /v1/ledger/balances: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: getLedgerBalances tags: [Ledger] @@ -41206,6 +41247,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/ledger/entries: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: listLedgerEntries tags: [Ledger] @@ -41281,6 +41323,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/balance: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: getBalance tags: [Treasury] @@ -41361,6 +41404,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/balance/auto-recharge: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: getAutoRecharge tags: [Treasury] @@ -41389,6 +41433,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } '409': { description: 'Code `balance_billing_required`: the account is not on the prepaid balance.' } patch: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: updateAutoRecharge tags: [Treasury] @@ -41442,6 +41487,7 @@ paths: '409': { description: 'Code `balance_billing_required`: the account is not on the prepaid balance. Code `payment_method_required`: turning auto top-up on needs a saved card.' } /v1/balance/top-ups: post: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: createTopup tags: [Treasury] @@ -41519,6 +41565,7 @@ paths: '422': $ref: '#/components/responses/IdempotencyKeyReused' get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: listTopups tags: [Treasury] @@ -41548,6 +41595,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/balance/top-ups/preview: post: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: previewTopup tags: [Treasury] @@ -41589,6 +41637,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/balance/top-ups/{topupId}/receipt: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: getTopupReceipt tags: [Treasury] @@ -41632,6 +41681,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/balance/top-ups/{topupId}/invoice: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: getTopupInvoice tags: [Treasury] @@ -41675,6 +41725,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/balance/top-ups/{topupId}/statement: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: getTopupStatement tags: [Treasury] @@ -41721,6 +41772,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/balance/top-ups/{topupId}/confirm: post: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: confirmTopup tags: [Treasury] @@ -41753,6 +41805,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/balance/top-ups/{topupId}/cancel: post: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: cancelTopup tags: [Treasury] @@ -41790,6 +41843,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/payees: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: listPayees tags: [Treasury] @@ -41811,6 +41865,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/payees/{payeeId}/onboarding-link: post: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: createPayeeOnboardingLink tags: [Treasury] @@ -41840,6 +41895,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/transfers: post: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: createTransfer tags: [Treasury] @@ -41876,6 +41932,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: listTransfers tags: [Treasury] @@ -41905,6 +41962,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/transfers/{transferId}: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: getTransfer tags: [Treasury] @@ -41972,6 +42030,7 @@ paths: parameters: - $ref: '#/components/parameters/CreatorPortalToken' get: + x-oauth-scopes: ["money:write"] x-resource-group: "public" operationId: getCreatorPortal tags: [Creator Portal] @@ -42439,6 +42498,7 @@ paths: parameters: - $ref: '#/components/parameters/CreatorPortalToken' get: + x-oauth-scopes: ["money:write"] x-resource-group: "public" operationId: getCreatorPayouts tags: [Creator Portal] @@ -42555,6 +42615,7 @@ paths: required: true schema: { type: string } get: + x-oauth-scopes: ["money:write"] x-resource-group: "public" operationId: getCreatorPayoutStatement tags: [Creator Portal] @@ -42580,6 +42641,7 @@ paths: '429': { $ref: '#/components/responses/CreatorPortalRateLimited' } /v1/payout-batches/{batchId}: get: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: getPayoutBatch tags: [Treasury] @@ -42611,6 +42673,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/payout-batches/{batchId}/confirm: post: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: confirmPayoutBatch tags: [Treasury] @@ -42647,6 +42710,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/payout-batches/{batchId}/cancel: post: + x-oauth-scopes: ["money:write"] x-resource-group: "money" operationId: cancelPayoutBatch tags: [Treasury] @@ -42685,6 +42749,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/analytics/post-timeline: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getPostTimeline tags: [Analytics] @@ -42868,6 +42933,7 @@ paths: /v1/analytics/googleanalytics/report: post: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: runGoogleAnalyticsReport tags: [Analytics] @@ -42940,6 +43006,7 @@ paths: $ref: '#/components/responses/RateLimited' /v1/analytics/googleanalytics/realtime: post: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: runGoogleAnalyticsRealtimeReport tags: [Analytics] @@ -42993,6 +43060,7 @@ paths: $ref: '#/components/responses/RateLimited' /v1/analytics/googleanalytics/metadata: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getGoogleAnalyticsMetadata tags: [Analytics] @@ -43052,6 +43120,7 @@ paths: $ref: '#/components/responses/RateLimited' /v1/analytics/googlesearchconsole/search-analytics: post: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: queryGoogleSearchConsoleSearchAnalytics tags: [Analytics] @@ -43183,6 +43252,7 @@ paths: description: Google could not be reached, or failed while answering. Nothing was changed; retry shortly. /v1/analytics/googlesearchconsole/sitemaps: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: listGoogleSearchConsoleSitemaps tags: [Analytics] @@ -43248,6 +43318,7 @@ paths: description: Google could not be reached, or failed while answering. Nothing was changed; retry shortly. /v1/analytics/googlesearchconsole/url-inspection: post: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: inspectGoogleSearchConsoleUrl tags: [Analytics] @@ -43308,6 +43379,7 @@ paths: description: Google could not be reached, or failed while answering. Nothing was changed; retry shortly. /v1/analytics/tracking: post: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: openTrackingWindow tags: [Analytics] @@ -43386,6 +43458,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: listTrackingWindows tags: [Analytics] @@ -43434,6 +43507,7 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } /v1/analytics/tracking/{windowId}: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getTrackingWindow tags: [Analytics] @@ -43467,6 +43541,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } '429': { $ref: '#/components/responses/AnalyticsRateLimited' } delete: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: cancelTrackingWindow tags: [Analytics] @@ -43501,6 +43576,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/analytics/samples: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getPostSamples tags: [Analytics] @@ -43564,6 +43640,7 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } /v1/posts/{postId}/authenticity: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getPostAuthenticity tags: [Analytics] @@ -43604,6 +43681,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/analytics/authenticity: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: listPostAuthenticity tags: [Analytics] @@ -43672,6 +43750,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/analytics/googlebusiness/performance: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getGoogleBusinessPerformance tags: [Analytics] @@ -43809,6 +43888,7 @@ paths: /v1/analytics/googlebusiness/search-keywords: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getGoogleBusinessSearchKeywords tags: [Analytics] @@ -43930,6 +44010,7 @@ paths: # at 365 days. /v1/analytics/inbox/volume: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInboxVolume tags: [Inbox Analytics] @@ -44023,6 +44104,7 @@ paths: /v1/analytics/inbox/heatmap: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInboxHeatmap tags: [Inbox Analytics] @@ -44099,6 +44181,7 @@ paths: /v1/analytics/inbox/source-breakdown: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInboxSourceBreakdown tags: [Inbox Analytics] @@ -44176,6 +44259,7 @@ paths: /v1/analytics/inbox/response-time: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInboxResponseTime tags: [Inbox Analytics] @@ -44260,6 +44344,7 @@ paths: /v1/analytics/inbox/top-accounts: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInboxTopAccounts tags: [Inbox Analytics] @@ -44337,6 +44422,7 @@ paths: /v1/analytics/inbox/conversations: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listInboxConversationAnalytics tags: [Inbox Analytics] @@ -44444,6 +44530,7 @@ paths: /v1/analytics/inbox/conversations/{conversationId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getInboxConversationAnalytics tags: [Inbox Analytics] @@ -44544,6 +44631,7 @@ paths: /v1/account-groups: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listAccountGroups tags: [Account Groups] @@ -44592,6 +44680,7 @@ paths: - "64e1f0a9e2b5af0012ab34cf" '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createAccountGroup tags: [Account Groups] @@ -44653,6 +44742,7 @@ paths: '409': { description: Group name already exists } /v1/account-groups/{groupId}: put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateAccountGroup tags: [Account Groups] @@ -44705,6 +44795,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '409': { description: Group name already exists } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteAccountGroup tags: [Account Groups] @@ -44731,6 +44822,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/media/presign: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: getMediaPresignedUrl tags: [Media] @@ -44789,6 +44881,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/reddit/search: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: searchReddit tags: [Reddit Search] @@ -44870,6 +44963,7 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } /v1/reddit/feed: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getRedditFeed tags: [Reddit Search] @@ -44963,6 +45057,7 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } /v1/reddit/comments/{postId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getRedditPostComments tags: [Reddit Search] @@ -45095,6 +45190,7 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } /v1/billing: get: + x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" operationId: getBilling tags: [Usage] @@ -45120,6 +45216,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/billing/x-pricing: get: + x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" operationId: getXApiPricing tags: [Usage] @@ -45198,6 +45295,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/usage: get: + x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" operationId: getUsage tags: [Usage] @@ -45330,6 +45428,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/usage-stats: get: + x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" operationId: getUsageStats tags: [Usage] @@ -45449,6 +45548,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/usage/calls: get: + x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" operationId: getCallsUsage tags: [Usage] @@ -45532,6 +45632,7 @@ paths: /v1/usage/sms: get: + x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" operationId: getSmsUsage tags: [Usage] @@ -45600,6 +45701,7 @@ paths: /v1/posts: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: listPosts tags: [Posts] @@ -45815,6 +45917,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: createPost x-selectedCodeSample: schedule @@ -46657,6 +46760,7 @@ paths: schema: { type: integer } /v1/posts/sync-external: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: syncExternalPosts tags: [Analytics] @@ -46792,6 +46896,7 @@ paths: /v1/posts/{postId}: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: getPost tags: [Posts] @@ -46918,6 +47023,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } '404': { $ref: '#/components/responses/NotFound' } put: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: updatePost tags: [Posts] @@ -47084,6 +47190,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: deletePost tags: [Posts] @@ -47142,6 +47249,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/posts/bulk-upload: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: bulkUploadPosts tags: [Posts] @@ -47278,6 +47386,7 @@ paths: type: object /v1/posts/{postId}/retry: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: retryPost tags: [Posts] @@ -47410,6 +47519,7 @@ paths: type: object /v1/posts/{postId}/review: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: reviewPost tags: [Posts] @@ -47460,6 +47570,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/posts/{postId}/unpublish: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" x-platforms: [facebook, youtube, linkedin, twitter, threads, googlebusiness, pinterest, reddit, telegram, bluesky, discord, slack] operationId: unpublishPost @@ -47535,6 +47646,7 @@ paths: description: Platform API deletion failed /v1/posts/{postId}/pin: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" x-platforms: [facebook] operationId: pinPost @@ -47598,6 +47710,7 @@ paths: description: Facebook API call failed /v1/posts/{postId}/unpin: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" x-platforms: [facebook] operationId: unpinPost @@ -47661,6 +47774,7 @@ paths: description: Facebook API call failed /v1/posts/{postId}/edit: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" x-platforms: [twitter, discord, facebook, reddit, linkedin, telegram, pinterest, googlebusiness, youtube, slack] operationId: editPost @@ -47809,6 +47923,7 @@ paths: description: Platform API edit failed for a reason the platform did not classify. /v1/posts/{postId}/update-metadata: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" x-platforms: [youtube, facebook] operationId: updatePostMetadata @@ -47982,6 +48097,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/users: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listUsers tags: [Users] @@ -48038,6 +48154,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/users/me: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getCurrentUser tags: [Users] @@ -48086,6 +48203,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/users/{userId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getUser tags: [Users] @@ -48128,6 +48246,7 @@ paths: description: Forbidden '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: removeUser tags: [Users] @@ -48190,6 +48309,7 @@ paths: description: 'The member''s data could not be moved yet. Nothing was changed. Retry in a minute.' /v1/profiles: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listProfiles tags: [Profiles] @@ -48245,6 +48365,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createProfile tags: [Profiles] @@ -48314,6 +48435,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/profiles/{profileId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getProfile tags: [Profiles] @@ -48343,6 +48465,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateProfile tags: [Profiles] @@ -48401,6 +48524,7 @@ paths: '403': { description: 'Only the team owner can change contentRetention, with a session or a full-access key.' } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteProfile tags: [Profiles] @@ -48430,6 +48554,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/profiles/{profileId}/limits: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getProfileLimits tags: [Profiles] @@ -48469,6 +48594,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/accounts: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listAccounts tags: [Accounts] @@ -48649,6 +48775,7 @@ paths: /v1/accounts/follower-stats: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getFollowerStats tags: [Accounts, Analytics] @@ -48744,6 +48871,7 @@ paths: requiresAddon: { type: boolean, example: true } /v1/accounts/{accountId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getAccount tags: [Accounts] @@ -48792,6 +48920,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '503': { $ref: '#/components/responses/TemporarilyUnavailable' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateAccount tags: [Accounts] @@ -48908,6 +49037,7 @@ paths: '403': { description: '`metaAdsSyncEnabled: true` on a Facebook account without `ads_management` and `ads_read` (`reconnect_required`), without the Ads add-on (`ads_addon_required`) or over the managed ads allowance (`ads_allowance_exceeded`).' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: moveAccountToProfile tags: [Accounts] @@ -48955,6 +49085,7 @@ paths: '403': { description: API key does not have access to the source account or target profile } '404': { description: Account or target profile not found } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteAccount tags: [Accounts] @@ -48985,6 +49116,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/accounts/health: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getAllAccountsHealth tags: [Accounts] @@ -49143,6 +49275,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/accounts/{accountId}/whatsapp/register: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: registerWhatsAppNumber tags: [WhatsApp] @@ -49196,6 +49329,7 @@ paths: description: 'Meta rejected the registration (e.g. PIN mismatch), or the number cannot be registered through the API.' /v1/accounts/{accountId}/whatsapp/request-code: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: requestWhatsAppVerificationCode tags: [WhatsApp] @@ -49269,6 +49403,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/accounts/{accountId}/whatsapp/verify-code: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: verifyWhatsAppNumber tags: [WhatsApp] @@ -49315,6 +49450,7 @@ paths: description: 'The account has no phone number bound to it yet.' /v1/accounts/{accountId}/health: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getAccountHealth tags: [Accounts] @@ -49613,6 +49749,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/accounts/{accountId}/posts: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: getAccountPosts tags: [Accounts] @@ -49729,6 +49866,7 @@ paths: /v1/accounts/{accountId}/follow-status/{userId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getInstagramFollowStatus tags: [Accounts] @@ -49803,6 +49941,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/accounts/{accountId}/tiktok/commercial-music: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listTikTokCommercialMusic tags: [Accounts] @@ -49864,6 +50003,7 @@ paths: /v1/accounts/{accountId}/tiktok/locations: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: searchTikTokLocations tags: [Accounts] @@ -49908,6 +50048,7 @@ paths: /v1/accounts/{accountId}/tiktok/creator-info: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getTikTokCreatorInfo tags: [Accounts] @@ -50094,6 +50235,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/feedback: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: submitFeedback tags: [Feedback] @@ -50730,6 +50872,7 @@ paths: /v1/content-retention: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getContentRetention tags: [Content Retention] @@ -50746,6 +50889,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { $ref: '#/components/responses/ResourceGroupForbidden' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: updateContentRetention tags: [Content Retention] @@ -50967,6 +51111,7 @@ paths: /v1/platform-invites: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createPlatformInvite tags: [Connect] @@ -51037,6 +51182,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } /v1/connect/{platform}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, reddit, pinterest, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp, google, microsoft] operationId: getConnectUrl @@ -51448,6 +51594,7 @@ paths: '404': description: Profile not found post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [instagram, twitter, threads, linkedin, youtube, tiktok, reddit, pinterest, google, microsoft] operationId: handleOAuthCallback @@ -51491,6 +51638,7 @@ paths: /v1/connect/{platform}/ads: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectAds tags: [Connect] @@ -51943,6 +52091,7 @@ paths: /v1/connect/shopify: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getShopifyConnectUrl tags: [Connect] @@ -52011,6 +52160,7 @@ paths: /v1/connect/shopify/token: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectShopifyWithToken tags: [Connect] @@ -52069,6 +52219,7 @@ paths: /v1/connect/googleanalytics: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getGoogleAnalyticsConnectUrl tags: @@ -52177,6 +52328,7 @@ paths: description: Google Analytics OAuth is not configured. /v1/connect/googleanalytics/properties: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: listGoogleAnalyticsProperties tags: @@ -52234,6 +52386,7 @@ paths: description: The pending sign-in expired or was already used. Start the connect again. /v1/connect/googleanalytics/select-property: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: selectGoogleAnalyticsProperty tags: @@ -52289,6 +52442,7 @@ paths: description: Google or Zernio failed while saving. The pendingDataToken stays usable; retry. /v1/connect/googlesearchconsole: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getGoogleSearchConsoleConnectUrl tags: @@ -52399,6 +52553,7 @@ paths: description: Google Search Console OAuth is not configured. /v1/connect/googlesearchconsole/sites: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: listGoogleSearchConsoleSites tags: @@ -52455,6 +52610,7 @@ paths: description: The pending sign-in expired or was already used. Start the connect again. /v1/connect/googlesearchconsole/select-site: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: selectGoogleSearchConsoleSite tags: @@ -52512,6 +52668,7 @@ paths: /v1/connect/campaignmanager360: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getCampaignManagerConnectUrl tags: @@ -52601,6 +52758,7 @@ paths: description: Campaign Manager 360 OAuth is not configured. /v1/connect/campaignmanager360/profiles: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: listCampaignManagerProfiles tags: @@ -52650,6 +52808,7 @@ paths: description: The pending sign-in expired or was already used. Start the connect again. /v1/connect/campaignmanager360/select-profile: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: selectCampaignManagerProfile tags: @@ -52701,6 +52860,7 @@ paths: description: Google or Zernio failed while saving. The pendingDataToken stays usable; retry. /v1/connect/amazonads: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getAmazonAdsConnectUrl tags: @@ -52768,6 +52928,7 @@ paths: /v1/connect/hubspot: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getHubSpotConnectUrl tags: @@ -52844,6 +53005,7 @@ paths: description: HubSpot OAuth is not configured. /v1/connect/gohighlevel: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getGohighlevelConnectUrl tags: @@ -52914,6 +53076,7 @@ paths: description: HighLevel OAuth is not configured. /v1/connect/salesforce: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getSalesforceConnectUrl tags: @@ -52999,6 +53162,7 @@ paths: description: Salesforce OAuth is not configured. /v1/connect/stripe: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getStripeConnectUrl tags: @@ -53072,6 +53236,7 @@ paths: description: Stripe Connect is not configured. /v1/connect/wordpress: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWordPressAuthUrl tags: [Connect] @@ -53132,6 +53297,7 @@ paths: /v1/connect/wix: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWixConnectUrl tags: [Connect] @@ -53188,6 +53354,7 @@ paths: /v1/connect/webflow: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWebflowConnectUrl tags: [Connect] @@ -53245,6 +53412,7 @@ paths: '503': { description: 'The Webflow app or state signing is not configured.' } /v1/connect/webflow/token: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectWebflowWithSiteToken tags: [Connect] @@ -53328,6 +53496,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/connect/wordpress/token: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectWordPressWithApplicationPassword tags: [Connect] @@ -53386,6 +53555,7 @@ paths: /v1/connect/tiktok-ads: patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: configureTikTokAdsBrandIdentity tags: [Connect] @@ -53457,6 +53627,7 @@ paths: /v1/connect/facebook/select-page: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listFacebookPages tags: [Connect] @@ -53545,6 +53716,7 @@ paths: properties: error: { type: string } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: selectFacebookPage tags: [Connect] @@ -53721,6 +53893,7 @@ paths: /v1/connect/instagram/select-account: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listInstagramPages tags: [Connect] @@ -53799,6 +53972,7 @@ paths: '429': { x-summary: "Meta is rate limiting Page reads for this Facebook account: wait the seconds in `Retry-After` and retry.", description: 'Meta is rate limiting Page reads for this Facebook account (code `rate_limited`). Retry after `Retry-After` seconds; the listing stops at the first throttle instead of retrying.', headers: { Retry-After: { schema: { type: integer } } } } '403': { description: User does not have access to the specified profile } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: selectInstagramAccount tags: [Connect] @@ -53928,6 +54102,7 @@ paths: /v1/connect/googlebusiness/locations: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listGoogleBusinessLocations tags: [Connect] @@ -54023,6 +54198,7 @@ paths: /v1/connect/googlebusiness/select-location: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: selectGoogleBusinessLocation tags: [Connect] @@ -54155,6 +54331,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getGoogleBusinessReviews tags: [GMB Reviews] @@ -54268,6 +54445,7 @@ paths: /v1/accounts/{accountId}/gmb-verifications: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getGoogleBusinessVerifications tags: [GMB Verifications] @@ -54348,6 +54526,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: startGoogleBusinessVerification tags: [GMB Verifications] @@ -54420,6 +54599,7 @@ paths: /v1/accounts/{accountId}/gmb-verifications/options: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: fetchGoogleBusinessVerificationOptions tags: [GMB Verifications] @@ -54485,6 +54665,7 @@ paths: /v1/accounts/{accountId}/gmb-verifications/{verificationId}/complete: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: completeGoogleBusinessVerification tags: [GMB Verifications] @@ -54553,6 +54734,7 @@ paths: /v1/accounts/{accountId}/gmb-food-menus: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getGoogleBusinessFoodMenus tags: [GMB Food Menus] @@ -54637,6 +54819,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateGoogleBusinessFoodMenus tags: [GMB Food Menus] @@ -54730,6 +54913,7 @@ paths: /v1/accounts/{accountId}/gmb-location-details: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getGoogleBusinessLocationDetails tags: [GMB Location Details] @@ -54914,6 +55098,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } '404': { $ref: '#/components/responses/NotFound' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateGoogleBusinessLocationDetails tags: [GMB Location Details] @@ -55186,6 +55371,7 @@ paths: /v1/accounts/{accountId}/gmb-media: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listGoogleBusinessMedia tags: [GMB Media] @@ -55252,6 +55438,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createGoogleBusinessMedia tags: [GMB Media] @@ -55313,6 +55500,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteGoogleBusinessMedia tags: [GMB Media] @@ -55358,6 +55546,7 @@ paths: /v1/accounts/{accountId}/gmb-attribute-metadata: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getGmbAttributeMetadata tags: [GMB Attributes] @@ -55499,6 +55688,7 @@ paths: /v1/accounts/{accountId}/gmb-categories: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listGoogleBusinessCategories tags: [Connect] @@ -55575,6 +55765,7 @@ paths: /v1/accounts/{accountId}/gmb-attributes: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getGoogleBusinessAttributes tags: [GMB Attributes] @@ -55642,6 +55833,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateGoogleBusinessAttributes tags: [GMB Attributes] @@ -55730,6 +55922,7 @@ paths: /v1/accounts/{accountId}/gmb-place-actions: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listGoogleBusinessPlaceActions tags: [GMB Place Actions] @@ -55797,6 +55990,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createGoogleBusinessPlaceAction tags: [GMB Place Actions] @@ -55855,6 +56049,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteGoogleBusinessPlaceAction tags: [GMB Place Actions] @@ -55898,6 +56093,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateGoogleBusinessPlaceAction tags: [GMB Place Actions] @@ -55963,6 +56159,7 @@ paths: /v1/accounts/{accountId}/gmb-services: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getGoogleBusinessServices tags: [GMB Services] @@ -56028,6 +56225,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateGoogleBusinessServices tags: [GMB Services] @@ -56114,6 +56312,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews/batch: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: batchGetGoogleBusinessReviews tags: [GMB Reviews] @@ -56205,6 +56404,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews/{reviewId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getGoogleBusinessReview tags: [GMB Reviews] @@ -56287,6 +56487,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews/{reviewId}/reply: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: replyToGoogleBusinessReview tags: [GMB Reviews] @@ -56365,6 +56566,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: deleteGoogleBusinessReviewReply tags: [GMB Reviews] @@ -56420,6 +56622,7 @@ paths: /v1/connect/handoffs/{handoffId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getConnectHandoff tags: [Connect] @@ -56468,6 +56671,7 @@ paths: description: The handoff expired, does not exist, or belongs to another workspace (code RESOURCE_NOT_FOUND). /v1/connect/welcome-screen: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getConnectWelcomeScreen tags: [Connect] @@ -56485,6 +56689,7 @@ paths: '401': $ref: '#/components/responses/Unauthorized' put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: updateConnectWelcomeScreen tags: [Connect] @@ -56524,6 +56729,7 @@ paths: description: The caller cannot change workspace settings (code INSUFFICIENT_PERMISSIONS). /v1/connect/oauth-apps: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: listOAuthApps tags: [Connect] @@ -56569,6 +56775,7 @@ paths: '401': $ref: '#/components/responses/Unauthorized' post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: createOAuthApp tags: [Connect] @@ -56637,6 +56844,7 @@ paths: required: true schema: { type: string } get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getOAuthApp tags: [Connect] @@ -56660,6 +56868,7 @@ paths: '404': $ref: '#/components/responses/NotFound' patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: updateOAuthApp tags: [Connect] @@ -56708,6 +56917,7 @@ paths: '404': $ref: '#/components/responses/NotFound' delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: deleteOAuthApp tags: [Connect] @@ -56741,6 +56951,7 @@ paths: description: Accounts are still connected through the app (OAUTH_APP_IN_USE); resend with confirm=true. /v1/connect/oauth-apps/{appId}/test: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: testOAuthApp tags: [Connect] @@ -56948,6 +57159,7 @@ paths: /v1/connect/linkedin/select-organization: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: selectLinkedInOrganization tags: [Connect] @@ -57109,6 +57321,7 @@ paths: /v1/connect/pinterest/select-board: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listPinterestBoardsForSelection tags: [Connect] @@ -57162,6 +57375,7 @@ paths: '403': { description: No access to profile } '500': { description: Failed to fetch boards } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: selectPinterestBoard tags: [Connect] @@ -57271,6 +57485,7 @@ paths: /v1/connect/snapchat/select-profile: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listSnapchatProfiles tags: [Connect] @@ -57327,6 +57542,7 @@ paths: '403': { description: No access to profile } '500': { description: Failed to fetch public profiles } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: selectSnapchatProfile tags: [Connect] @@ -57463,6 +57679,7 @@ paths: /v1/connect/bluesky/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectBlueskyCredentials tags: [Connect] @@ -57527,6 +57744,7 @@ paths: /v1/connect/openai-ads/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectOpenAIAdsCredentials tags: [Connect] @@ -57595,6 +57813,7 @@ paths: /v1/connect/applovin-ads/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectAppLovinAdsCredentials tags: [Connect] @@ -57688,6 +57907,7 @@ paths: /v1/connect/snapchat-ads/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectSnapchatAdsCredentials tags: [Connect] @@ -57756,6 +57976,7 @@ paths: /v1/connect/klaviyo/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectKlaviyoCredentials tags: [Connect] @@ -57817,6 +58038,7 @@ paths: /v1/connect/attentive/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectAttentiveCredentials tags: [Connect] @@ -57877,6 +58099,7 @@ paths: /v1/connect/impact/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectImpactCredentials tags: [Connect] @@ -57949,6 +58172,7 @@ paths: /v1/connect/awin/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectAwinCredentials tags: [Connect] @@ -58013,6 +58237,7 @@ paths: /v1/connect/tradedesk-ads/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectTradeDeskAdsCredentials x-platforms: [tradedeskads] @@ -58081,6 +58306,7 @@ paths: /v1/connect/tradedesk-ads/partner: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: connectTradeDeskAdsPartner x-platforms: @@ -58183,6 +58409,7 @@ paths: /v1/connect/taboola-ads/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectTaboolaAdsCredentials tags: [Connect] @@ -58248,6 +58475,7 @@ paths: /v1/connect/whop-ads/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectWhopAdsCredentials tags: [Connect] @@ -58312,6 +58540,7 @@ paths: /v1/connect/whatsapp/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectWhatsAppCredentials tags: [Connect] @@ -58432,6 +58661,7 @@ paths: /v1/connect/whatsapp/select-phone-number: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listWhatsAppPhoneNumbers tags: [Connect] @@ -58516,6 +58746,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: completeWhatsAppPhoneSelection tags: [Connect] @@ -58618,6 +58849,7 @@ paths: /v1/connect/whatsapp/embedded-signup: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectWhatsAppEmbeddedSignup tags: [Connect] @@ -58683,6 +58915,7 @@ paths: /v1/connect/whatsapp/sdk-config: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppSdkConfig tags: [Connect] @@ -58723,6 +58956,7 @@ paths: /v1/connect/discord: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectDiscordChannel tags: [Connect] @@ -58762,6 +58996,7 @@ paths: /v1/connect/slack: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listSlackChannels tags: [Connect] @@ -58870,6 +59105,7 @@ paths: '403': { x-summary: "The key has no access to the profile, Slack is temporarily unavailable, or the connect token is for another profile: check both.", description: 'No access to the profile, or Slack connections are temporarily unavailable (code: feature_not_available), or the connect token was issued for a different profile or platform (INSUFFICIENT_PERMISSIONS)' } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: connectSlackChannel tags: [Connect] @@ -58910,6 +59146,7 @@ paths: /v1/connect/line/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: connectLineCredentials tags: @@ -59041,6 +59278,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/connect/wechat/credentials: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: connectWechatCredentials tags: @@ -59175,6 +59413,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/connect/wechat/ip-whitelist: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getWechatIpWhitelist tags: @@ -59208,6 +59447,7 @@ paths: $ref: '#/components/responses/ResourceGroupForbidden' /v1/connect/telegram: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getTelegramConnectStatus tags: [Connect] @@ -59271,6 +59511,7 @@ paths: '404': { description: Profile not found } '500': { description: Internal error } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: initiateTelegramConnect tags: [Connect] @@ -59330,6 +59571,7 @@ paths: '404': { description: Profile not found } '500': { description: Internal error } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: completeTelegramConnect tags: [Connect] @@ -59408,6 +59650,7 @@ paths: /v1/accounts/{accountId}/webhook-subscription: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getPageWebhookSubscription tags: [Connect] @@ -59447,6 +59690,7 @@ paths: '409': 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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: resyncPageWebhookSubscription tags: [Connect] @@ -59496,6 +59740,7 @@ paths: description: Meta rejected the subscription, or (Instagram) the account has no webhook subscription right now /v1/accounts/{accountId}/business-partners: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listBusinessPartners tags: [Accounts] @@ -59529,6 +59774,7 @@ paths: '422': { description: "No Facebook Page is linked (Instagram Login account, or no Page selected)." } '429': { $ref: '#/components/responses/RateLimited' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: grantBusinessPartner tags: [Accounts] @@ -59608,6 +59854,7 @@ paths: '422': { description: "The Page is not owned by a business portfolio, or no Page is linked to the account." } '429': { $ref: '#/components/responses/RateLimited' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: revokeBusinessPartner tags: [Accounts] @@ -59639,6 +59886,7 @@ paths: /v1/accounts/{accountId}/facebook-page: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getFacebookPages tags: [Connect] @@ -59711,6 +59959,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: 'Account not found, or not a facebook or metaads account' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateFacebookPage tags: [Connect] @@ -59770,6 +60019,7 @@ paths: /v1/accounts/{accountId}/facebook-page-info: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getFacebookPageInfo tags: [Account Settings] @@ -59815,6 +60065,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateFacebookPageInfo tags: [Account Settings] @@ -59893,6 +60144,7 @@ paths: /v1/accounts/{accountId}/linkedin-organizations: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getLinkedInOrganizations tags: [Connect] @@ -59935,6 +60187,7 @@ paths: /v1/accounts/{accountId}/linkedin-aggregate-analytics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getLinkedInAggregateAnalytics tags: [Analytics] @@ -60156,6 +60409,7 @@ paths: /v1/accounts/{accountId}/linkedin-post-analytics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getLinkedInPostAnalytics tags: [Analytics] @@ -60276,6 +60530,7 @@ paths: /v1/accounts/{accountId}/linkedin-post-reactions: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getLinkedInPostReactions tags: [Analytics] @@ -60380,6 +60635,7 @@ paths: /v1/accounts/{accountId}/linkedin-organization: put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateLinkedInOrganization tags: [Connect] @@ -60433,6 +60689,7 @@ paths: /v1/accounts/{accountId}/linkedin-mentions: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getLinkedInMentions tags: [LinkedIn Mentions] @@ -60612,6 +60869,7 @@ paths: /v1/accounts/{accountId}/instagram/stories: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: listInstagramStories tags: [Instagram] @@ -60691,6 +60949,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/accounts/{accountId}/instagram/publishing-limit: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getInstagramPublishingLimit tags: [Instagram] @@ -60733,6 +60992,7 @@ paths: /v1/accounts/{accountId}/instagram/audio: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: searchInstagramAudio tags: [Instagram] @@ -60787,6 +61047,7 @@ paths: /v1/accounts/{accountId}/instagram/audio/{audioId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getInstagramAudio tags: [Instagram] @@ -60827,6 +61088,7 @@ paths: /v1/accounts/{accountId}/instagram/business-discovery: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInstagramBusinessDiscovery tags: [Instagram] @@ -60881,6 +61143,7 @@ paths: /v1/accounts/{accountId}/instagram/media/{mediaId}/collaborators: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: publishing operationId: listInstagramMediaCollaborators tags: @@ -60946,6 +61209,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/live-media: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: analytics operationId: listInstagramLiveMedia tags: [Instagram] @@ -61004,6 +61268,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/tags: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: analytics operationId: listInstagramTaggedMedia tags: [Instagram] @@ -61077,6 +61342,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/mentions/media/{mediaId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getInstagramMentionedMedia tags: [Instagram] @@ -61132,6 +61398,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/mentions/comments/{commentId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getInstagramMentionedComment tags: [Instagram] @@ -61186,6 +61453,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/stories/{storyId}/insights: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getInstagramStoryInsights tags: [Instagram] @@ -61265,6 +61533,7 @@ paths: /v1/accounts/{accountId}/pinterest-boards: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getPinterestBoards tags: [Connect] @@ -61308,6 +61577,7 @@ paths: '409': { x-summary: "The account has no stored access token: reconnect it.", description: 'The account has no stored access token (ads_connection_required). Reconnect it.' } '502': { description: 'Pinterest rejected or failed the request.' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updatePinterestBoards tags: [Connect] @@ -61353,6 +61623,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Account not found } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createPinterestBoard tags: [Connect] @@ -61415,6 +61686,7 @@ paths: /v1/accounts/{accountId}/youtube-captions: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getYoutubeCaptions tags: [Connect] @@ -61538,6 +61810,7 @@ paths: /v1/accounts/{accountId}/youtube-playlists: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getYoutubePlaylists tags: [Connect] @@ -61588,6 +61861,7 @@ paths: '401': { x-summary: "The API key is missing or invalid, or the YouTube token was revoked or expired: send a valid key or reconnect.", description: 'Missing or invalid API key (missing_credentials / invalid_credentials), or the stored YouTube token was revoked or expired (reconnect_required): reconnect the account.' } '404': { description: Account not found } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createYoutubePlaylist tags: [Connect] @@ -61663,6 +61937,7 @@ paths: '429': { description: "YouTube rate limit exceeded." } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateYoutubeDefaultPlaylist tags: [Connect] @@ -61703,6 +61978,7 @@ paths: /v1/accounts/{accountId}/gmb-locations: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getGmbLocations tags: [Connect] @@ -61775,6 +62051,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Account not found } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateGmbLocation tags: [Connect] @@ -61835,6 +62112,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createGoogleBusinessLocation tags: [Connect] @@ -61970,6 +62248,7 @@ paths: /v1/accounts/{accountId}/gmb-locations/search: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: searchGoogleBusinessLocations tags: [Connect] @@ -62054,6 +62333,7 @@ paths: /v1/accounts/{accountId}/gmb-locations/assign: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: assignGoogleBusinessLocation tags: [Connect] @@ -62140,6 +62420,7 @@ paths: /v1/accounts/{accountId}/facebook-post-reactions: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getFacebookPostReactions tags: [Analytics] @@ -62203,6 +62484,7 @@ paths: /v1/accounts/{accountId}/facebook-visitor-posts: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: listFacebookVisitorPosts x-platforms: ["facebook"] @@ -62309,6 +62591,7 @@ paths: /v1/accounts/{accountId}/facebook-tagged-posts: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: listFacebookTaggedPosts tags: [Analytics] @@ -62401,6 +62684,7 @@ paths: /v1/accounts/{accountId}/reddit-subreddits: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getRedditSubreddits tags: [Connect] @@ -62454,6 +62738,7 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateRedditSubreddits tags: [Connect] @@ -62496,6 +62781,7 @@ paths: /v1/accounts/{accountId}/reddit-subreddits/{subreddit}/rules: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getSubredditRules tags: [Connect] @@ -62562,6 +62848,7 @@ paths: /v1/accounts/{accountId}/reddit-vote: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: voteRedditThing tags: [Connect] @@ -62621,6 +62908,7 @@ paths: /v1/accounts/{accountId}/reddit-flairs: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getRedditFlairs tags: [Connect] @@ -62671,6 +62959,7 @@ paths: '404': { description: Account not found } '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setRedditPostFlair tags: [Connect] @@ -62726,6 +63015,7 @@ paths: /v1/accounts/{accountId}/hubspot-settings: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getHubSpotSettings tags: @@ -62756,6 +63046,7 @@ paths: '404': description: Account not found patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: updateHubSpotSettings tags: @@ -62858,6 +63149,7 @@ paths: description: Account not found /v1/accounts/{accountId}/hubspot-settings/contact-properties: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: listHubSpotContactProperties tags: @@ -62893,6 +63185,7 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-settings: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getGohighlevelSettings tags: @@ -62923,6 +63216,7 @@ paths: '404': description: Account not found patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: updateGohighlevelSettings tags: @@ -62990,6 +63284,7 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-audiences: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listGohighlevelAudienceSyncs tags: @@ -63021,6 +63316,7 @@ paths: '404': description: Account not found post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: startGohighlevelAudienceSync tags: @@ -63103,6 +63399,7 @@ paths: description: The tag is being set up or synced right now, or is already synced. Retry later, or stop the existing sync first. /v1/accounts/{accountId}/gohighlevel-audiences/{syncId}: delete: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: stopGohighlevelAudienceSync tags: @@ -63147,6 +63444,7 @@ paths: description: The tag is being set up or synced right now, or is already synced. Retry later, or stop the existing sync first. /v1/accounts/{accountId}/gohighlevel-funnel-tracking: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getGohighlevelFunnelTracking tags: @@ -63179,6 +63477,7 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-funnel-tracking/verify: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: verifyGohighlevelFunnelTracking tags: @@ -63228,6 +63527,7 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-won-deals-backfill: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: sendGohighlevelPastWonDeals tags: @@ -63280,6 +63580,7 @@ paths: description: Another call is sending this sub-account's past won deals. Retry when it ends. /v1/accounts/{accountId}/salesforce-settings: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getSalesforceSettings tags: @@ -63310,6 +63611,7 @@ paths: '404': description: Account not found patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: updateSalesforceSettings tags: @@ -63382,6 +63684,7 @@ paths: description: Account not found /v1/crm/{accountId}/contacts/search: get: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: searchCrmContacts tags: @@ -63460,6 +63763,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/contacts: post: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: createCrmContact tags: @@ -63525,6 +63829,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/contacts/{contactId}: get: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: getCrmContact tags: @@ -63562,6 +63867,7 @@ paths: '502': $ref: '#/components/responses/UpstreamFailure' patch: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: updateCrmContact tags: @@ -63612,6 +63918,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/contacts/{contactId}/activities: post: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: createCrmActivity tags: @@ -63690,6 +63997,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/deals: get: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: listCrmDeals tags: @@ -63745,6 +64053,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/deals/{dealId}: get: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: getCrmDeal tags: @@ -63782,6 +64091,7 @@ paths: '502': $ref: '#/components/responses/UpstreamFailure' patch: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: updateCrmDeal tags: @@ -63857,6 +64167,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/owners: get: + x-oauth-scopes: ["automations:write"] x-resource-group: contacts operationId: listCrmOwners tags: @@ -63903,6 +64214,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/accounts/{accountId}/stripe-settings: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: getStripeSettings tags: @@ -63932,6 +64244,7 @@ paths: '404': description: Account not found patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: updateStripeSettings tags: @@ -63981,6 +64294,7 @@ paths: description: Account not found /v1/accounts/{accountId}/slack-settings: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getSlackSettings tags: [Accounts] @@ -64016,6 +64330,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Account not found } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateSlackSettings tags: [Accounts] @@ -64045,6 +64360,7 @@ paths: /v1/accounts/{accountId}/bluesky-settings: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getBlueskySettings tags: [Accounts] @@ -64071,6 +64387,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Account not found } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateBlueskySettings tags: [Accounts] @@ -64104,6 +64421,7 @@ paths: /v1/accounts/{accountId}/discord-settings: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getDiscordSettings tags: [Discord] @@ -64154,6 +64472,7 @@ paths: '404': { description: Account not found } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateDiscordSettings tags: [Discord] @@ -64224,6 +64543,7 @@ paths: /v1/accounts/{accountId}/discord-channels: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getDiscordChannels tags: [Discord] @@ -64267,6 +64587,7 @@ paths: /v1/accounts/{accountId}/slack-members: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: listSlackMembers tags: [Slack] @@ -64315,6 +64636,7 @@ paths: /v1/discord/dms: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendDiscordDirectMessage tags: [Discord] @@ -64423,6 +64745,7 @@ paths: /v1/discord/guilds/{guildId}/roles: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: listDiscordGuildRoles tags: [Discord] @@ -64467,6 +64790,7 @@ paths: '403': { description: Discord refused the request (bot lacks View Channels permission in the guild). } '502': { description: Discord was unreachable or returned an unclassified error. } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: createDiscordGuildRole tags: [Discord] @@ -64519,6 +64843,7 @@ paths: /v1/discord/guilds/{guildId}/roles/{roleId}: patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: editDiscordGuildRole tags: [Discord] @@ -64564,6 +64889,7 @@ paths: '403': { description: "Discord refused the action (bot lacks Manage Roles, or the target role sits at or above the bot's highest role)." } '502': { description: Discord was unreachable or returned an unclassified error. } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: deleteDiscordGuildRole tags: [Discord] @@ -64596,6 +64922,7 @@ paths: /v1/discord/guilds/{guildId}/members: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: listDiscordGuildMembers tags: [Discord] @@ -64636,6 +64963,7 @@ paths: /v1/discord/guilds/{guildId}/members/search: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: searchDiscordGuildMembers tags: [Discord] @@ -64668,6 +64996,7 @@ paths: /v1/discord/guilds/{guildId}/members/{userId}: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: getDiscordGuildMember tags: [Discord] @@ -64696,6 +65025,7 @@ paths: /v1/discord/guilds/{guildId}/members/{userId}/roles/{roleId}: put: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: addDiscordMemberRole tags: [Discord] @@ -64735,6 +65065,7 @@ paths: '502': { description: Discord was unreachable or returned an unclassified error. } delete: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: removeDiscordMemberRole tags: [Discord] @@ -64770,6 +65101,7 @@ paths: /v1/discord/channels/{channelId}/messages/{messageId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: deleteDiscordMessage tags: [Discord] @@ -64805,6 +65137,7 @@ paths: /v1/discord/channels/{channelId}/messages/{messageId}/crosspost: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: crosspostDiscordMessage tags: [Discord] @@ -64839,6 +65172,7 @@ paths: /v1/discord/channels/{channelId}/threads: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: createDiscordThread tags: [Discord] @@ -64894,6 +65228,7 @@ paths: /v1/discord/channels/{channelId}/pins: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: listDiscordPinnedMessages tags: [Discord] @@ -64936,6 +65271,7 @@ paths: /v1/discord/channels/{channelId}/pins/{messageId}: put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: pinDiscordMessage tags: [Discord] @@ -64972,6 +65308,7 @@ paths: '502': { description: Bot lacks MANAGE_MESSAGES in the channel. } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: unpinDiscordMessage tags: [Discord] @@ -65002,6 +65339,7 @@ paths: /v1/discord/guilds/{guildId}/events: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: listDiscordScheduledEvents tags: [Discord] @@ -65035,6 +65373,7 @@ paths: '502': { description: Bot lacks access to the guild's events. } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: createDiscordScheduledEvent tags: [Discord] @@ -65120,6 +65459,7 @@ paths: /v1/discord/guilds/{guildId}/events/{eventId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getDiscordScheduledEvent tags: [Discord] @@ -65141,6 +65481,7 @@ paths: '404': { description: Event or Discord account not found. } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: updateDiscordScheduledEvent tags: [Discord] @@ -65190,6 +65531,7 @@ paths: '502': { description: Discord was unreachable or returned an unclassified error. } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: deleteDiscordScheduledEvent tags: [Discord] @@ -65217,6 +65559,7 @@ paths: /v1/queue/slots: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: listQueueSlots tags: [Queue] @@ -65297,6 +65640,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Profile not found } post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: createQueueSlot tags: [Queue] @@ -65350,6 +65694,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Profile not found } put: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: updateQueueSlot tags: [Queue] @@ -65423,6 +65768,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Profile not found } delete: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: deleteQueueSlot tags: [Queue] @@ -65456,6 +65802,7 @@ paths: '404': { description: Profile or queue not found } /v1/queue/preview: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: previewQueue tags: [Queue] @@ -65499,6 +65846,7 @@ paths: '404': { description: Profile or queue schedule not found } /v1/queue/next-slot: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: getNextQueueSlot tags: [Queue] @@ -65537,6 +65885,7 @@ paths: # ============================================ /v1/webhooks/settings: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" operationId: getWebhookSettings tags: [Webhooks] @@ -65579,6 +65928,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { $ref: '#/components/responses/ResourceGroupForbidden' } post: + x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" operationId: createWebhookSettings tags: [Webhooks] @@ -65729,6 +66079,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } '404': { description: 'A profile in `profileIds` (`profile_not_found`) or an account in `accountIds` (`account_not_found`) is not in your team' } put: + x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" operationId: updateWebhookSettings tags: [Webhooks] @@ -65886,6 +66237,7 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } '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-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" operationId: deleteWebhookSettings tags: [Webhooks] @@ -65927,6 +66279,7 @@ paths: /v1/webhooks/logs: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" operationId: getWebhookLogs tags: [Webhooks] @@ -66032,6 +66385,7 @@ paths: /v1/webhooks/logs/redeliver: post: + x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" operationId: redeliverWebhookEvent tags: [Webhooks] @@ -66108,6 +66462,7 @@ paths: /v1/webhooks/test: post: + x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" operationId: testWebhook tags: [Webhooks] @@ -66360,6 +66715,7 @@ paths: /v1/logs: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: listLogs tags: [Logs] @@ -66567,6 +66923,7 @@ paths: # Unified Inbox Endpoints /v1/email/threads: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listEmailThreads tags: [Email] @@ -66613,6 +66970,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } /v1/email/threads/{threadId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getEmailThread tags: [Email] @@ -66641,6 +66999,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateEmailThread tags: [Email] @@ -66669,6 +67028,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/messages: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listEmailMessages tags: [Email] @@ -66716,6 +67076,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } '429': { $ref: '#/components/responses/RateLimited' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendEmailMessage tags: [Email] @@ -66789,6 +67150,7 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/messages/scheduled: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listScheduledEmails tags: [Email] @@ -66814,6 +67176,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/email/messages/scheduled/{scheduleId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getScheduledEmail tags: [Email] @@ -66835,6 +67198,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: cancelScheduledEmail tags: [Email] @@ -66859,6 +67223,7 @@ paths: '409': { description: 'The send already left, failed or was cancelled; the message names its status.' } /v1/email/messages/{messageId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getEmailMessage tags: [Email] @@ -66884,6 +67249,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateEmailMessage tags: [Email] @@ -66912,6 +67278,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: trashEmailMessage tags: [Email] @@ -66939,6 +67306,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/messages/{messageId}/reply: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: replyEmailMessage tags: [Email] @@ -66988,6 +67356,7 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/messages/{messageId}/forward: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: forwardEmailMessage tags: [Email] @@ -67025,6 +67394,7 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/drafts: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listEmailDrafts tags: [Email] @@ -67051,6 +67421,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createEmailDraft tags: [Email] @@ -67082,6 +67453,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/drafts/{draftId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getEmailDraft tags: [Email] @@ -67105,6 +67477,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateEmailDraft tags: [Email] @@ -67134,6 +67507,7 @@ paths: '409': { description: 'draft_sending: a send of this draft is in flight', content: { application/json: { schema: { $ref: '#/components/schemas/ErrorResponse' } } } } '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-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteEmailDraft tags: [Email] @@ -67161,6 +67535,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/drafts/{draftId}/send: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendEmailDraft tags: [Email] @@ -67212,6 +67587,7 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/folders: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listEmailFolders tags: [Email] @@ -67241,6 +67617,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/imap/discover: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: discoverImapSettings tags: [Email] @@ -67269,6 +67646,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/email/imap/accounts: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createImapAccount tags: [Email] @@ -67345,6 +67723,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/email/labels: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listEmailLabels tags: [Email] @@ -67366,6 +67745,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createEmailLabel tags: [Email] @@ -67411,6 +67791,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/send-as: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listEmailSendAs tags: [Email] @@ -67437,6 +67818,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: declareEmailSendAs tags: [Email] @@ -67476,6 +67858,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/send-as/{email}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteEmailSendAs tags: [Email] @@ -67504,6 +67887,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/shared-mailboxes: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listEmailSharedMailboxes tags: [Email] @@ -67525,6 +67909,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: addEmailSharedMailbox tags: [Email] @@ -67576,6 +67961,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/signatures: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listEmailSignatures tags: [Email] @@ -67596,6 +67982,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createEmailSignature tags: [Email] @@ -67628,6 +68015,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/email/signatures/import: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: importEmailSignatures tags: [Email] @@ -67650,6 +68038,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/signatures/{signatureId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getEmailSignature tags: [Email] @@ -67669,6 +68058,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateEmailSignature tags: [Email] @@ -67701,6 +68091,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteEmailSignature tags: [Email] @@ -67725,6 +68116,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/email/labels/{labelId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteEmailLabel tags: [Email] @@ -67753,6 +68145,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/attachments/{attachmentId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: downloadEmailAttachment tags: [Email] @@ -67775,6 +68168,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/calendars: get: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: listCalendars tags: [Calendar] @@ -67797,6 +68191,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/events: get: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: listCalendarEvents tags: [Calendar] @@ -67850,6 +68245,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } '429': { $ref: '#/components/responses/RateLimited' } post: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: createCalendarEvent tags: [Calendar] @@ -67911,6 +68307,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/events/{eventId}: get: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: getCalendarEvent tags: [Calendar] @@ -67935,6 +68332,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: updateCalendarEvent tags: [Calendar] @@ -67968,6 +68366,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } delete: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: deleteCalendarEvent tags: [Calendar] @@ -67997,6 +68396,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/events/{eventId}/instances: get: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: listCalendarEventInstances tags: [Calendar] @@ -68032,6 +68432,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/events/{eventId}/rsvp: post: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: rsvpCalendarEvent tags: [Calendar] @@ -68068,6 +68469,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/free-busy: post: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: calendarFreeBusy tags: [Calendar] @@ -68143,6 +68545,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/availability: post: + x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" operationId: calendarAvailability tags: [Calendar] @@ -68203,6 +68606,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/files: get: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: listFiles tags: [Files] @@ -68240,6 +68644,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: uploadFile tags: [Files] @@ -68284,6 +68689,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/files/folders: post: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: createFolder tags: [Files] @@ -68314,6 +68720,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/files/picker-sessions: post: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: createFilePickerSession tags: [Files] @@ -68374,6 +68781,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/files/{fileId}: get: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: getFile tags: [Files] @@ -68397,6 +68805,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: updateFile tags: [Files] @@ -68430,6 +68839,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: trashFile tags: [Files] @@ -68458,6 +68868,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/files/{fileId}/download: get: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: downloadFile tags: [Files] @@ -68479,6 +68890,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/files/{fileId}/share-link: get: + x-oauth-scopes: ["files:write"] x-resource-group: "files" operationId: getFileShareLink tags: [Files] @@ -68503,6 +68915,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/connect/microsoft/admin-consent: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: startMicrosoftAdminConsent tags: [Connect] @@ -68540,6 +68953,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/connect/google/org: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createGoogleOrgConnection tags: [Connect] @@ -68587,6 +69001,7 @@ paths: '403': { $ref: '#/components/responses/OrgConnectionForbidden' } /v1/connect/microsoft/org: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createMicrosoftOrgConnection tags: [Connect] @@ -68629,6 +69044,7 @@ paths: '403': { $ref: '#/components/responses/OrgConnectionForbidden' } /v1/org-connections: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [google, microsoft] operationId: listOrgConnections @@ -68653,6 +69069,7 @@ paths: parameters: - { name: orgConnectionId, in: path, required: true, schema: { type: string } } get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [google, microsoft] operationId: getOrgConnection @@ -68672,6 +69089,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [google, microsoft] operationId: updateOrgConnection @@ -68704,6 +69122,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [google, microsoft] operationId: deleteOrgConnection @@ -68731,6 +69150,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/org-connections/{orgConnectionId}/verify: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [google, microsoft] operationId: verifyOrgConnection @@ -68767,6 +69187,7 @@ paths: '409': { $ref: '#/components/responses/OrgGrantIncomplete' } /v1/org-connections/{orgConnectionId}/users: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [google, microsoft] operationId: listOrgConnectionUsers @@ -68804,6 +69225,7 @@ paths: '409': { $ref: '#/components/responses/OrgGrantIncomplete' } /v1/org-connections/{orgConnectionId}/mailboxes: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" x-platforms: [google, microsoft] operationId: addOrgConnectionMailbox @@ -68836,6 +69258,7 @@ paths: '409': { $ref: '#/components/responses/OrgGrantIncomplete' } /v1/inbox/conversations: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listInboxConversations summary: List conversations @@ -69053,6 +69476,7 @@ paths: '403': description: Inbox addon required post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [twitter, bluesky, reddit, whatsapp, sms, slack, imessage, google, microsoft, imap] operationId: createInboxConversation @@ -69522,6 +69946,7 @@ paths: schema: { $ref: '#/components/schemas/WhatsAppTemplateLookupError' } /v1/inbox/conversations/search: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: searchInboxConversations summary: Search conversations @@ -69659,6 +70084,7 @@ paths: description: Inbox addon required /v1/inbox/conversations/{conversationId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getInboxConversation summary: Get conversation @@ -69748,6 +70174,7 @@ paths: '404': description: Conversation not found put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateInboxConversation summary: Update conversation status @@ -69793,6 +70220,7 @@ paths: '404': description: Conversation not found (WhatsApp only; other platforms upsert) delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteInboxConversation summary: Delete conversation @@ -69850,6 +70278,7 @@ paths: /v1/inbox/conversations/{conversationId}/messages: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getInboxConversationMessages summary: List messages @@ -70127,6 +70556,7 @@ paths: '502': { $ref: '#/components/responses/UpstreamFailure' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendInboxMessage summary: Send message @@ -70915,6 +71345,7 @@ paths: /v1/whatsapp/media/{mediaId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getWhatsAppMedia tags: [WhatsApp] @@ -70955,6 +71386,7 @@ paths: /v1/inbox/conversations/{conversationId}/messages/{messageId}: patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [telegram, imessage] operationId: editInboxMessage @@ -71021,6 +71453,7 @@ paths: '403': description: Inbox addon required delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [telegram, twitter, bluesky, reddit, imessage] operationId: deleteInboxMessage @@ -71071,6 +71504,7 @@ paths: /v1/inbox/conversations/{conversationId}/typing: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [facebook, instagram, telegram, whatsapp, imessage] operationId: sendTypingIndicator @@ -71127,6 +71561,7 @@ paths: /v1/inbox/conversations/{conversationId}/thread-control: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [whatsapp, facebook, instagram] operationId: setConversationThreadControl @@ -71224,6 +71659,7 @@ paths: /v1/inbox/conversations/{conversationId}/accept: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [facebook, instagram] operationId: acceptConversationRequest @@ -71289,6 +71725,7 @@ paths: /v1/inbox/labels: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: messages x-platforms: [facebook] operationId: listInboxLabels @@ -71333,6 +71770,7 @@ paths: '422': description: No Facebook Page is selected on this account (linked_account_required); reconnect it and select the Page post: + x-oauth-scopes: ["messaging:write"] x-resource-group: messages x-platforms: [facebook] operationId: createInboxLabel @@ -71384,6 +71822,7 @@ paths: /v1/inbox/labels/{labelId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: messages x-platforms: [facebook] operationId: deleteInboxLabel @@ -71430,6 +71869,7 @@ paths: /v1/inbox/conversations/{conversationId}/labels: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: messages x-platforms: [facebook] operationId: listConversationLabels @@ -71479,6 +71919,7 @@ paths: '422': description: No Facebook Page is selected on this account (linked_account_required); reconnect it and select the Page post: + x-oauth-scopes: ["messaging:write"] x-resource-group: messages x-platforms: [facebook] operationId: addConversationLabel @@ -71533,6 +71974,7 @@ paths: /v1/inbox/conversations/{conversationId}/labels/{labelId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: messages x-platforms: [facebook] operationId: removeConversationLabel @@ -71584,6 +72026,7 @@ paths: /v1/inbox/conversations/{conversationId}/read: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: markConversationRead summary: Mark a conversation as read @@ -71641,6 +72084,7 @@ paths: /v1/inbox/conversations/{conversationId}/messages/{messageId}/reactions: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [telegram, whatsapp, instagram, facebook, slack, imessage] operationId: addMessageReaction @@ -71699,6 +72143,7 @@ paths: '404': description: 'Account, conversation or message not found (message_not_found when messageId does not resolve to a message in this conversation)' delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [telegram, whatsapp, instagram, facebook, slack, imessage] operationId: removeMessageReaction @@ -71754,6 +72199,7 @@ paths: /v1/media/upload-direct: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: uploadMediaDirect summary: Upload media file @@ -71806,6 +72252,7 @@ paths: /v1/accounts/{accountId}/messenger-menu: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getMessengerMenu summary: Get persistent menu @@ -71830,6 +72277,7 @@ paths: description: Not a Facebook or Instagram account '401': { $ref: '#/components/responses/Unauthorized' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setMessengerMenu summary: Set persistent menu @@ -71867,6 +72315,7 @@ paths: x-summary: "The page has no Get Started button: set one with the messenger-get-started endpoint, then retry." description: 'The page has no Get Started button. Set one with PUT /v1/accounts/{accountId}/messenger-get-started and retry.' delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteMessengerMenu description: Removes the persistent menu from this Facebook Messenger or Instagram account. @@ -71886,6 +72335,7 @@ paths: /v1/accounts/{accountId}/messenger-get-started: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getMessengerGetStarted summary: Get FB Get Started button @@ -71913,6 +72363,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setMessengerGetStarted summary: Set FB Get Started button @@ -71957,6 +72408,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteMessengerGetStarted summary: Delete FB Get Started button @@ -71986,6 +72438,7 @@ paths: /v1/accounts/{accountId}/messenger-greeting: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getMessengerGreeting summary: Get FB greeting text @@ -72012,6 +72465,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setMessengerGreeting summary: Set FB greeting text @@ -72053,6 +72507,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteMessengerGreeting summary: Delete FB greeting text @@ -72079,6 +72534,7 @@ paths: /v1/accounts/{accountId}/messenger-ice-breakers: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getMessengerIceBreakers summary: Get FB ice breakers @@ -72105,6 +72561,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setMessengerIceBreakers summary: Set FB ice breakers @@ -72153,6 +72610,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteMessengerIceBreakers summary: Delete FB ice breakers @@ -72179,6 +72637,7 @@ paths: /v1/accounts/{accountId}/instagram-ice-breakers: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getInstagramIceBreakers summary: Get IG ice breakers @@ -72203,6 +72662,7 @@ paths: description: Not an Instagram account '401': { $ref: '#/components/responses/Unauthorized' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setInstagramIceBreakers summary: Set IG ice breakers @@ -72239,6 +72699,7 @@ paths: description: Invalid request '401': { $ref: '#/components/responses/Unauthorized' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteInstagramIceBreakers description: Removes the ice breaker questions from an Instagram account's Messenger experience. @@ -72258,6 +72719,7 @@ paths: /v1/accounts/{accountId}/telegram-commands: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getTelegramCommands summary: Get TG bot commands @@ -72288,6 +72750,7 @@ paths: description: Not a Telegram account '401': { $ref: '#/components/responses/Unauthorized' } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setTelegramCommands summary: Set TG bot commands @@ -72323,6 +72786,7 @@ paths: description: Invalid request '401': { $ref: '#/components/responses/Unauthorized' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteTelegramCommands description: Clears all bot commands configured for a Telegram bot account. @@ -72342,6 +72806,7 @@ paths: /v1/accounts/{accountId}/wechat-server-config: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWechatServerConfig summary: Get WeChat server config @@ -72387,6 +72852,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/inbox/conversations/{conversationId}/messages/{messageId}/attachments/{index}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getMessageAttachment summary: Resolve message attachment @@ -72470,6 +72936,7 @@ paths: /v1/inbox/comments: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: listInboxComments summary: List commented posts @@ -72628,6 +73095,7 @@ paths: /v1/inbox/comments/{postId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getInboxPostComments summary: Get post comments @@ -72862,6 +73330,7 @@ paths: '502': description: 'Upstream platform error (code platform_api_error, type platform_error)' post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: replyToInboxPost summary: Reply to comment @@ -72980,6 +73449,7 @@ paths: description: 'Upstream platform error (code platform_api_error, type platform_error)' '503': { $ref: '#/components/responses/TemporarilyUnavailable' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: deleteInboxComment summary: Delete comment @@ -73040,6 +73510,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}: patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [reddit] operationId: editInboxComment @@ -73101,6 +73572,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/moderation: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [youtube] operationId: setCommentModeration @@ -73171,6 +73643,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/hide: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [facebook, instagram, threads, twitter, tiktok] operationId: hideInboxComment @@ -73222,6 +73695,7 @@ paths: '403': description: Inbox addon required delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [facebook, instagram, threads, twitter, tiktok] operationId: unhideInboxComment @@ -73265,6 +73739,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/pin: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [tiktok] operationId: pinInboxComment @@ -73309,6 +73784,7 @@ paths: '403': description: Inbox addon required delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [tiktok] operationId: unpinInboxComment @@ -73350,6 +73826,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/like: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [facebook, twitter, bluesky, reddit, linkedin, instagram, tiktok] operationId: likeInboxComment @@ -73426,6 +73903,7 @@ paths: x-summary: "The LinkedIn account already holds a reaction on this target: remove it before creating another." 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-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [facebook, twitter, bluesky, reddit, linkedin, instagram, tiktok] operationId: unlikeInboxComment @@ -73476,6 +73954,7 @@ paths: /v1/inbox/posts/{postId}/like: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [linkedin, twitter, facebook, youtube, bluesky, instagram] operationId: likePost @@ -73558,6 +74037,7 @@ paths: x-summary: "The LinkedIn account already holds a reaction on this target: remove it before creating another." 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-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [linkedin, twitter, facebook, youtube, bluesky, instagram] operationId: unlikePost @@ -73608,6 +74088,7 @@ paths: /v1/inbox/comments/{postId}/{commentId}/private-reply: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook] operationId: sendPrivateReplyToComment @@ -73879,6 +74360,7 @@ paths: /v1/twitter/retweet: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: retweetPost summary: Retweet a post @@ -73915,6 +74397,7 @@ paths: '403': { description: 'X rejected the request (e.g. suspended account, missing OAuth scope)' } '404': { description: Account not found } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: undoRetweet summary: Undo retweet @@ -73951,6 +74434,7 @@ paths: /v1/twitter/bookmark: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: bookmarkPost summary: Bookmark a tweet @@ -73988,6 +74472,7 @@ paths: '403': { description: 'X rejected the request (e.g. suspended account, missing OAuth scope)' } '404': { description: Account not found } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: removeBookmark summary: Remove bookmark @@ -74024,6 +74509,7 @@ paths: /v1/twitter/follow: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: followUser summary: Follow a user @@ -74062,6 +74548,7 @@ paths: '403': { description: 'X rejected the request (e.g. suspended account, missing OAuth scope)' } '404': { description: Account not found } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: unfollowUser summary: Unfollow a user @@ -74098,6 +74585,7 @@ paths: /v1/twitter/search: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: searchTweets summary: Search recent tweets @@ -74211,6 +74699,7 @@ paths: /v1/twitter/tweet: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getTweet summary: Look up a tweet @@ -74282,6 +74771,7 @@ paths: /v1/inbox/mentions: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: listInboxMentions summary: List mentions @@ -74413,6 +74903,7 @@ paths: /v1/inbox/mentions/reply: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [instagram] operationId: replyToMention @@ -74475,6 +74966,7 @@ paths: /v1/inbox/reviews: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: listInboxReviews summary: List reviews @@ -74613,6 +75105,7 @@ paths: /v1/inbox/reviews/{reviewId}/reply: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: replyToInboxReview summary: Reply to review @@ -74694,6 +75187,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" x-platforms: [googlebusiness] operationId: deleteInboxReviewReply @@ -74752,6 +75246,7 @@ paths: /v1/whatsapp/templates: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppTemplates tags: [WhatsApp] @@ -74824,6 +75319,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createWhatsAppTemplate tags: [WhatsApp] @@ -74976,6 +75472,7 @@ paths: /v1/whatsapp/templates/{templateName}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppTemplate tags: [WhatsApp] @@ -75059,6 +75556,7 @@ paths: languages: { type: array, items: { type: string } } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateWhatsAppTemplate tags: [WhatsApp] @@ -75179,6 +75677,7 @@ paths: languages: { type: array, items: { type: string } } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteWhatsAppTemplate tags: [WhatsApp] @@ -75246,6 +75745,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. } /v1/whatsapp/templates/id/{templateId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppTemplateById tags: [WhatsApp] @@ -75297,6 +75797,7 @@ paths: '404': { description: Account not found. } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateWhatsAppTemplateById tags: [WhatsApp] @@ -75381,6 +75882,7 @@ paths: '404': { description: Account not found. } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteWhatsAppTemplateById tags: [WhatsApp] @@ -75422,6 +75924,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.' } /v1/whatsapp/calling: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppCallingConfig tags: [WhatsApp Calling] @@ -75471,6 +75974,7 @@ paths: /v1/whatsapp/phone-numbers/{id}/calling: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: enableWhatsAppCallingLegacy deprecated: true @@ -75527,6 +76031,7 @@ paths: '404': { description: WhatsApp phone number not found } '422': { description: 'Not eligible to enable calling: not on usage-based billing.' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: updateWhatsAppCallingLegacy deprecated: true @@ -75570,6 +76075,7 @@ paths: '404': { description: WhatsApp phone number not found } '422': { description: Calling must be enabled before settings can be updated } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: disableWhatsAppCallingLegacy deprecated: true @@ -75595,6 +76101,7 @@ paths: /v1/whatsapp/call-permissions: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: getWhatsAppCallPermissions tags: [WhatsApp Calling] @@ -75634,6 +76141,7 @@ paths: /v1/whatsapp/calls: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: initiateWhatsAppCall tags: [WhatsApp Calling] @@ -75716,6 +76224,7 @@ paths: '422': { description: "Calling not enabled, BIC country blocked, or missing Meta SIP credentials" } '502': { description: Telnyx-side originate failed; the Call doc has been marked failed. } get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWhatsAppCalls tags: [WhatsApp Calling] @@ -75775,6 +76284,7 @@ paths: /v1/whatsapp/calls/{id}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getWhatsAppCall tags: [WhatsApp Calling] @@ -75799,6 +76309,7 @@ paths: /v1/whatsapp/calls/{id}/recording: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getWhatsAppCallRecording tags: [WhatsApp Calling] @@ -75833,6 +76344,7 @@ paths: /v1/whatsapp/calls/estimate: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getWhatsAppCallEstimate tags: [WhatsApp Calling] @@ -75871,6 +76383,7 @@ paths: /v1/calls: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listCalls tags: [Calls] @@ -75920,6 +76433,7 @@ paths: /v1/calls/{id}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getCall tags: [Calls] @@ -75954,6 +76468,7 @@ paths: /v1/calls/{id}/recording: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getCallRecording tags: [Calls] @@ -75987,6 +76502,7 @@ paths: /v1/voice/calls: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createVoiceCall tags: [Voice] @@ -76062,6 +76578,7 @@ paths: '429': { description: 'A team or profile call limit was reached (`call_limit_reached`). `details.limit` names it: `team_concurrent_calls`, `team_daily_cost`, `profile_outbound_calls_per_hour`, `profile_daily_call_spend`, or `outbound_paused`.' } '502': { description: Carrier-side originate failed; the call has been marked failed. } get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listVoiceCalls tags: [Voice] @@ -76107,6 +76624,7 @@ paths: /v1/voice/calls/{id}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getVoiceCall tags: [Voice] @@ -76131,6 +76649,7 @@ paths: /v1/voice/calls/{id}/end: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: endVoiceCall tags: [Voice] @@ -76171,6 +76690,7 @@ paths: /v1/voice/calls/{id}/recording: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getVoiceCallRecording tags: [Voice] @@ -76202,6 +76722,7 @@ paths: /v1/voice/calls/{id}/transfer: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: transferVoiceCall tags: [Voice] @@ -76240,6 +76761,7 @@ paths: /v1/voice/calls/estimate: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getVoiceCallEstimate tags: [Voice] @@ -76331,6 +76853,7 @@ paths: /v1/voice/calls/web: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createVoiceWebSession tags: [Voice] @@ -76362,6 +76885,7 @@ paths: /v1/voice/calls/web/inbound: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createVoiceWebInboundSession tags: [Voice] @@ -76391,6 +76915,7 @@ paths: /v1/voice/calls/web/dial: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: dialVoiceWebCall tags: [Voice] @@ -77138,6 +77663,7 @@ paths: /v1/sms/messages: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendSms tags: [SMS] @@ -77209,6 +77735,7 @@ paths: /v1/rcs/brands: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listRcsBrands tags: [RCS] @@ -77230,6 +77757,7 @@ paths: /v1/rcs/agents: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listRcsAgents tags: [RCS] @@ -77251,6 +77779,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { description: 'Your plan does not include the inbox, which RCS requires.' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createRcsAgent tags: [RCS] @@ -77301,6 +77830,7 @@ paths: /v1/rcs/agents/{agentId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getRcsAgent tags: [RCS] @@ -77323,6 +77853,7 @@ paths: '403': { description: 'Your plan does not include the inbox, which RCS requires.' } '404': { description: Agent not found } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateRcsAgent tags: [RCS] @@ -77363,6 +77894,7 @@ paths: '404': { description: Agent not found } '409': { description: 'The filing is locked because it is already with the carriers' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deactivateRcsAgent tags: [RCS] @@ -77389,6 +77921,7 @@ paths: /v1/rcs/agents/{agentId}/launch-request: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: requestRcsAgentLaunch tags: [RCS] @@ -77426,6 +77959,7 @@ paths: /v1/rcs/agents/{agentId}/test-devices: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listRcsTestDevices tags: [RCS] @@ -77448,6 +77982,7 @@ paths: '403': { description: 'Your plan does not include the inbox, which RCS requires.' } '404': { description: Agent not found } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: addRcsTestDevice tags: [RCS] @@ -77486,6 +78021,7 @@ paths: /v1/rcs/agents/{agentId}/test-devices/{testDeviceId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: removeRcsTestDevice tags: [RCS] @@ -77511,6 +78047,7 @@ paths: /v1/rcs/assets: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: uploadRcsAsset tags: [RCS] @@ -77547,6 +78084,7 @@ paths: /v1/rcs/messages: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendRcsMessage tags: [RCS] @@ -77608,6 +78146,7 @@ paths: /v1/rcs/capabilities: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getRcsCapabilities tags: [RCS] @@ -77635,6 +78174,7 @@ paths: /v1/sms/lookup: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: lookupSmsNumber tags: [SMS] @@ -77667,6 +78207,7 @@ paths: /v1/sms/opt-outs: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: listSmsOptOuts tags: [SMS] @@ -77708,6 +78249,7 @@ paths: schema: { type: string, description: "`format=csv` download. Columns: phone_number, opted_out_at, keyword, our_number, source" } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: createSmsOptOut tags: [SMS] @@ -77744,6 +78286,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: deleteSmsOptOut tags: [SMS] @@ -77784,6 +78327,7 @@ paths: /v1/sms/sender-ids: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createSmsSenderId tags: [SMS] @@ -77836,6 +78380,7 @@ paths: '409': { description: 'Billing setup is incomplete for this team (code `billing_setup_incomplete`); contact support.' } '422': { description: 'Sender ID rejected: it appears to impersonate a protected brand or institution.' } get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listSmsSenderIds tags: [SMS] @@ -77877,6 +78422,7 @@ paths: /v1/sms/sender-ids/limit-request: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: requestSmsSenderIdLimitIncrease tags: [SMS] @@ -77914,6 +78460,7 @@ paths: /v1/sms/sender-ids/{id}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: deleteSmsSenderId tags: [SMS] @@ -77940,6 +78487,7 @@ paths: /v1/branded-calling/enterprises: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createBrandedCallingEnterprise tags: [Branded Calling] @@ -77987,6 +78535,7 @@ paths: '409': { $ref: '#/components/responses/IdempotencyKeyInFlight' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listBrandedCallingEnterprises tags: [Branded Calling] @@ -78007,6 +78556,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/branded-calling/enterprises/{id}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getBrandedCallingEnterprise tags: [Branded Calling] @@ -78025,6 +78575,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Business not found } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: deleteBrandedCallingEnterprise tags: [Branded Calling] @@ -78049,6 +78600,7 @@ paths: '409': { description: 'The business still has caller identities (code invalid_resource_state).' } /v1/branded-calling/share: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: shareBrandedCallingIdentityForm tags: [Branded Calling] @@ -78094,6 +78646,7 @@ paths: '404': { description: 'Business or identity not found, or the identity is not in review' } /v1/branded-calling/call-reasons: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listBrandedCallingCallReasons tags: [Branded Calling] @@ -78113,6 +78666,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/branded-calling/identities: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createBrandedCallingIdentity tags: [Branded Calling] @@ -78179,6 +78733,7 @@ paths: '409': { $ref: '#/components/responses/IdempotencyKeyInFlight' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listBrandedCallingIdentities tags: [Branded Calling] @@ -78199,6 +78754,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/branded-calling/identities/preflight: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: preflightBrandedCallingIdentity tags: [Branded Calling] @@ -78257,6 +78813,7 @@ paths: '404': { description: Business not found } /v1/branded-calling/identities/{id}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getBrandedCallingIdentity tags: [Branded Calling] @@ -78276,6 +78833,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Identity not found } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: updateBrandedCallingIdentity tags: [Branded Calling] @@ -78327,6 +78885,7 @@ paths: '409': { description: 'The identity cannot be edited in its current status (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: deleteBrandedCallingIdentity tags: [Branded Calling] @@ -78351,6 +78910,7 @@ paths: '409': { description: 'An infringement claim is open on this identity (code invalid_resource_state).' } /v1/branded-calling/identities/{id}/verify-email: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: resendBrandedCallingAuthorizerCode tags: [Branded Calling] @@ -78375,6 +78935,7 @@ paths: '409': { description: 'The identity is not waiting for a code (code invalid_resource_state).' } /v1/branded-calling/identities/{id}/verify-email/confirm: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: confirmBrandedCallingAuthorizerEmail tags: [Branded Calling] @@ -78409,6 +78970,7 @@ paths: '409': { description: 'The identity is not waiting for a code (code invalid_resource_state).' } /v1/branded-calling/identities/{id}/numbers: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listBrandedCallingIdentityNumbers tags: [Branded Calling] @@ -78432,6 +78994,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Identity not found } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: attachBrandedCallingNumbers tags: [Branded Calling] @@ -78478,6 +79041,7 @@ paths: '409': { description: 'The identity is not verified yet, or a number already belongs to an identity (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: detachBrandedCallingNumbers tags: [Branded Calling] @@ -78510,6 +79074,7 @@ paths: '404': { description: 'Identity not found, or none of the numbers is attached to it' } /v1/sms/registrations: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: startSmsRegistration tags: [SMS] @@ -78657,6 +79222,7 @@ paths: '422': { description: Carrier registry rejected a field; `param` names it when known. } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listSmsRegistrations tags: [SMS] @@ -78719,6 +79285,7 @@ paths: /v1/sms/registrations/preflight: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: preflightSmsRegistration tags: [SMS] @@ -78777,6 +79344,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/sms/registrations/{id}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: deactivateSmsRegistration tags: [SMS] @@ -78804,6 +79372,7 @@ paths: '403': { description: 'The caller is a team member limited to specific profiles; registrations cover the whole account.' } '404': { description: Registration not found } get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getSmsRegistration tags: [SMS] @@ -78852,6 +79421,7 @@ paths: /v1/sms/registrations/{id}/verify-otp: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: verifySmsRegistrationOtp tags: [SMS] @@ -78889,6 +79459,7 @@ paths: /v1/sms/registrations/{id}/resend-otp: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: resendSmsRegistrationOtp tags: [SMS] @@ -78919,6 +79490,7 @@ paths: /v1/sms/registrations/{id}/appeal: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: appealSmsRegistration tags: [SMS] @@ -78967,6 +79539,7 @@ paths: /v1/sms/registrations/{id}/respond: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: respondToSmsRegistrationReview tags: [SMS] @@ -79033,6 +79606,7 @@ paths: /v1/sms/opt-in-proof: post: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: uploadSmsOptInProofFile tags: [SMS] @@ -79068,6 +79642,7 @@ paths: /v1/sms/registrations/{id}/opt-in-proof: post: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: uploadSmsOptInProof tags: [SMS] @@ -79106,6 +79681,7 @@ paths: /v1/sms/registrations/share: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: shareSmsRegistration tags: [SMS] @@ -79142,6 +79718,7 @@ paths: /v1/whatsapp/template-library: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppLibraryTemplate tags: [WhatsApp Templates] @@ -79190,6 +79767,7 @@ paths: /v1/whatsapp/catalogs: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWhatsAppCatalogs tags: [WhatsApp] @@ -79224,6 +79802,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/AccountUnavailable' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: linkWhatsAppCatalog tags: [WhatsApp] @@ -79259,6 +79838,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/AccountUnavailable' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: unlinkWhatsAppCatalog tags: [WhatsApp] @@ -79281,6 +79861,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/whatsapp/commerce-settings: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getWhatsAppCommerceSettings tags: [WhatsApp] @@ -79305,6 +79886,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/AccountUnavailable' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateWhatsAppCommerceSettings tags: [WhatsApp] @@ -79338,6 +79920,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/whatsapp/conversational-automation: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppConversationalAutomation tags: [WhatsApp] @@ -79363,6 +79946,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setWhatsAppConversationalAutomation tags: [WhatsApp] @@ -79399,6 +79983,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteWhatsAppConversationalAutomation tags: [WhatsApp] @@ -79426,6 +80011,7 @@ paths: /v1/whatsapp/business-profile: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppBusinessProfile tags: [WhatsApp] @@ -79467,6 +80053,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateWhatsAppBusinessProfile tags: [WhatsApp] @@ -79539,6 +80126,7 @@ paths: /v1/whatsapp/business-profile/photo: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: uploadWhatsAppProfilePhoto tags: [WhatsApp] @@ -79598,6 +80186,7 @@ paths: /v1/whatsapp/business-profile/display-name: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppDisplayName tags: [WhatsApp] @@ -79636,6 +80225,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found or accountId is not a valid ObjectId } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateWhatsAppDisplayName tags: [WhatsApp] @@ -79686,6 +80276,7 @@ paths: /v1/whatsapp/business-profile/username: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsappBusinessUsername tags: [WhatsApp] @@ -79724,6 +80315,7 @@ paths: '403': { description: "Meta has not granted username management for this WhatsApp Business Account (code insufficient_permissions)" } '404': { description: WhatsApp account not found } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setWhatsappBusinessUsername tags: [WhatsApp] @@ -79805,6 +80397,7 @@ paths: '403': { description: "Meta has not granted username management for this WhatsApp Business Account (code insufficient_permissions)" } '404': { description: WhatsApp account not found } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteWhatsappBusinessUsername tags: [WhatsApp] @@ -79844,6 +80437,7 @@ paths: /v1/whatsapp/business-profile/username/suggestions: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsappBusinessUsernameSuggestions tags: [WhatsApp] @@ -79881,6 +80475,7 @@ paths: /v1/whatsapp/number-info: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: getWhatsAppNumberInfo tags: [WhatsApp Phone Numbers] @@ -79947,6 +80542,7 @@ paths: /v1/whatsapp/pricing-analytics: get: + x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" operationId: getWhatsAppPricingAnalytics tags: [WhatsApp Phone Numbers] @@ -80053,6 +80649,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/whatsapp/block-users/status: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: getWhatsAppBlockStatus tags: [WhatsApp] @@ -80082,6 +80679,7 @@ paths: /v1/whatsapp/block-users: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: getWhatsAppBlockedUsers tags: [WhatsApp] @@ -80114,6 +80712,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: blockWhatsAppUsers tags: [WhatsApp] @@ -80172,6 +80771,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } delete: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: unblockWhatsAppUsers tags: [WhatsApp] @@ -80226,6 +80826,7 @@ paths: /v1/whatsapp/account-events: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWhatsAppAccountEvents tags: [WhatsApp] @@ -80269,6 +80870,7 @@ paths: '404': { description: WhatsApp account not found } /v1/whatsapp/dataset: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppDataset tags: [WhatsApp] @@ -80297,6 +80899,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createWhatsAppDataset tags: [WhatsApp] @@ -80359,6 +80962,7 @@ paths: /v1/phone-numbers: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listPhoneNumbers tags: [Phone Numbers] @@ -80448,6 +81052,7 @@ paths: /v1/phone-numbers/{id}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getPhoneNumber tags: [Phone Numbers] @@ -80497,6 +81102,7 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: releasePhoneNumber tags: [Phone Numbers] @@ -80540,6 +81146,7 @@ paths: /v1/phone-numbers/purchase: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: purchasePhoneNumber tags: [Phone Numbers] @@ -80769,6 +81376,7 @@ paths: /v1/phone-numbers/claims/{claimId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getPhoneNumberClaim tags: [Phone Numbers] @@ -80812,6 +81420,7 @@ paths: /v1/phone-numbers/countries: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listPhoneNumberCountries tags: [Phone Numbers] @@ -80877,6 +81486,7 @@ paths: /v1/phone-numbers/available: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: searchAvailablePhoneNumbers tags: [Phone Numbers] @@ -80944,6 +81554,7 @@ paths: /v1/phone-numbers/availability: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: checkPhoneNumberAvailability tags: [Phone Numbers] @@ -81061,6 +81672,7 @@ paths: /v1/whatsapp/phone-numbers: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getWhatsAppPhoneNumbers deprecated: true @@ -81155,6 +81767,7 @@ paths: /v1/whatsapp/phone-numbers/purchase: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: purchaseWhatsAppPhoneNumber deprecated: true @@ -81312,6 +81925,7 @@ paths: /v1/whatsapp/phone-numbers/countries: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listWhatsAppNumberCountries deprecated: true @@ -81349,6 +81963,7 @@ paths: /v1/whatsapp/phone-numbers/available: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: searchAvailableWhatsAppNumbers deprecated: true @@ -81395,6 +82010,7 @@ paths: /v1/whatsapp/phone-numbers/availability: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: checkWhatsAppNumberAvailability deprecated: true @@ -81508,6 +82124,7 @@ paths: /v1/phone-numbers/kyc: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getPhoneNumberKycForm tags: [Phone Numbers] @@ -81585,6 +82202,7 @@ paths: '403': { description: API key does not have access to this profile. } '404': { description: Profile not found or access denied. } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: submitPhoneNumberKyc tags: [Phone Numbers] @@ -81696,6 +82314,7 @@ paths: /v1/phone-numbers/kyc/document/{documentId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: viewPhoneNumberKycDocument tags: [Phone Numbers] @@ -81724,6 +82343,7 @@ paths: /v1/phone-numbers/kyc/upload-document: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: uploadPhoneNumberKycDocument tags: [Phone Numbers] @@ -81759,6 +82379,7 @@ paths: /v1/phone-numbers/kyc/validate-address: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: validatePhoneNumberKycAddress tags: [Phone Numbers] @@ -81830,6 +82451,7 @@ paths: /v1/phone-numbers/kyc/share: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createPhoneNumberKycLink tags: [Phone Numbers] @@ -81902,6 +82524,7 @@ paths: /v1/phone-numbers/port-in: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createPhoneNumberPortIn tags: [Phone Numbers] @@ -82016,6 +82639,7 @@ paths: '409': { description: "A number is already provisioned, or already in an in-flight port" } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listPhoneNumberPortIns tags: [Phone Numbers] @@ -82053,6 +82677,7 @@ paths: /v1/phone-numbers/port-in/check: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: checkPhoneNumberPortability tags: [Phone Numbers] @@ -82131,6 +82756,7 @@ paths: /v1/phone-numbers/port-in/claims/{claimId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getPhoneNumberPortClaim tags: [Phone Numbers] @@ -82160,6 +82786,7 @@ paths: /v1/phone-numbers/port-in/documents: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: uploadPhoneNumberPortInDocument tags: [Phone Numbers] @@ -82202,6 +82829,7 @@ paths: /v1/phone-numbers/port-in/requirements: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getPhoneNumberPortInRequirements tags: [Phone Numbers] @@ -82249,6 +82877,7 @@ paths: /v1/phone-numbers/port-in/{id}/requirements: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getPhoneNumberPortInOrderRequirements tags: [Phone Numbers] @@ -82291,6 +82920,7 @@ paths: /v1/phone-numbers/port-in/{id}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: cancelPhoneNumberPortIn tags: [Phone Numbers] @@ -82321,6 +82951,7 @@ paths: /v1/phone-numbers/kyc/review-packet: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: reviewPhoneNumberKycPacket tags: [Phone Numbers] @@ -82375,6 +83006,7 @@ paths: /v1/phone-numbers/{id}/remediate: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getPhoneNumberRemediation tags: [Phone Numbers] @@ -82406,6 +83038,7 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { description: Number not found } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: remediatePhoneNumber tags: [Phone Numbers] @@ -82452,6 +83085,7 @@ paths: /v1/phone-numbers/{id}/remediate/reply: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: replyToPhoneNumberReviewer tags: [Phone Numbers] @@ -82506,6 +83140,7 @@ paths: /v1/phone-numbers/{id}/remediate/respond: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: respondToPhoneNumberReviewer tags: [Phone Numbers] @@ -82589,6 +83224,7 @@ paths: /v1/whatsapp/phone-numbers/kyc: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getWhatsAppNumberKycForm deprecated: true @@ -82670,6 +83306,7 @@ paths: '403': { description: API key does not have access to this profile. } '404': { description: Profile not found or access denied. } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: submitWhatsAppNumberKyc deprecated: true @@ -82785,6 +83422,7 @@ paths: /v1/whatsapp/phone-numbers/kyc/upload-document: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: uploadWhatsAppNumberKycDocument deprecated: true @@ -82825,6 +83463,7 @@ paths: /v1/whatsapp/phone-numbers/kyc/validate-address: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: validateWhatsAppNumberKycAddress deprecated: true @@ -82898,6 +83537,7 @@ paths: /v1/whatsapp/phone-numbers/kyc/share: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createWhatsAppNumberKycLink deprecated: true @@ -82968,6 +83608,7 @@ paths: /v1/whatsapp/phone-numbers/{id}/profile: patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: moveWhatsAppNumberToProfile tags: [WhatsApp Phone Numbers] @@ -83026,6 +83667,7 @@ paths: /v1/whatsapp/phone-numbers/{id}/remediate: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getWhatsAppNumberRemediation deprecated: true @@ -83060,6 +83702,7 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { description: Number not found } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: remediateWhatsAppNumber deprecated: true @@ -83111,6 +83754,7 @@ paths: /v1/phone-numbers/{id}/voice: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: enableVoiceOnNumber tags: [Voice] @@ -83207,6 +83851,7 @@ paths: '409': { description: 'This number is attached to a SIP trunk (detach it first), or it is a Zernio number that is not active yet or was released (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: disableVoiceOnNumber tags: [Voice] @@ -83234,6 +83879,7 @@ paths: /v1/phone-numbers/stock-watches: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createPhoneNumberStockWatch tags: [Phone Numbers] @@ -83292,6 +83938,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listPhoneNumberStockWatches tags: [Phone Numbers] @@ -83313,6 +83960,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/phone-numbers/stock-watches/{id}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: deletePhoneNumberStockWatch tags: [Phone Numbers] @@ -83335,6 +83983,7 @@ paths: '404': { description: 'Stock watch not found (code stock_watch_not_found).' } /v1/phone-numbers/sip-trunks: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createSipTrunk tags: [Voice] @@ -83395,6 +84044,7 @@ paths: '409': { description: 'The team trunk limit was reached (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: listSipTrunks tags: [Voice] @@ -83432,6 +84082,7 @@ paths: /v1/phone-numbers/sip-trunks/{id}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getSipTrunk tags: [Voice] @@ -83471,6 +84122,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: SIP trunk not found } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: deleteSipTrunk tags: [Voice] @@ -83502,6 +84154,7 @@ paths: /v1/phone-numbers/sip-trunks/{id}/rotate-credentials: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: rotateSipTrunkCredentials tags: [Voice] @@ -83534,6 +84187,7 @@ paths: /v1/phone-numbers/{id}/sip-trunk: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: attachNumberToSipTrunk tags: [Voice] @@ -83576,6 +84230,7 @@ paths: '409': { x-summary: "The number is not in a state that allows trunk attachment: resolve its calling, WhatsApp, status or trunk conflict first.", description: 'The number still has Calls or WhatsApp calling enabled, is mid WhatsApp verification, is not active, or is attached to another trunk (code invalid_resource_state).' } '422': { description: 'This number is hosted by your own carrier (brought via WhatsApp embedded signup), so it cannot be trunked.' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: detachNumberFromSipTrunk tags: [Voice] @@ -83604,6 +84259,7 @@ paths: /v1/phone-numbers/{id}/sms: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: enableSmsOnNumber tags: [SMS] @@ -83663,6 +84319,7 @@ paths: '409': { description: 'This is a Zernio number that is not active yet or was released, so SMS cannot be enabled on it yet (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: disableSmsOnNumber tags: [SMS] @@ -83692,6 +84349,7 @@ paths: /v1/phone-numbers/{id}/sms/reuse-registration: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: reuseSmsRegistrationForNumber tags: [SMS] @@ -83723,6 +84381,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/request-code: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: requestPhoneNumberWhatsAppCode tags: [Phone Numbers] @@ -83784,6 +84443,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/calling: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getWhatsAppCalling tags: [WhatsApp Calling] @@ -83829,6 +84489,7 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { description: Number not found } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: enableWhatsAppCalling tags: [WhatsApp Calling] @@ -83882,6 +84543,7 @@ paths: '409': { description: 'This number is attached to a SIP trunk; detach it first (code invalid_resource_state).' } '422': { description: 'Not eligible to enable calling: not on usage-based billing.' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: updateWhatsAppCalling tags: [WhatsApp Calling] @@ -83921,6 +84583,7 @@ paths: '404': { description: Phone number not found } '422': { description: Calling must be enabled before settings can be updated } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: disableWhatsAppCalling tags: [WhatsApp Calling] @@ -83942,6 +84605,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/caller-id-verification: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: startWhatsAppCallerIdVerification tags: [WhatsApp Calling] @@ -83983,6 +84647,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/caller-id-verification/verify: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: verifyWhatsAppCallerId tags: [WhatsApp Calling] @@ -84021,6 +84686,7 @@ paths: /v1/whatsapp/phone-numbers/{phoneNumberId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getWhatsAppPhoneNumber deprecated: true @@ -84073,6 +84739,7 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: releaseWhatsAppPhoneNumber deprecated: true @@ -84134,6 +84801,7 @@ paths: /v1/whatsapp/sandbox/sessions: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWhatsAppSandboxSessions tags: [WhatsApp Sandbox] @@ -84163,6 +84831,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { description: Inbox addon required } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createWhatsAppSandboxSession tags: [WhatsApp Sandbox] @@ -84218,6 +84887,7 @@ paths: /v1/whatsapp/sandbox/sessions/{sessionId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteWhatsAppSandboxSession tags: [WhatsApp Sandbox] @@ -84255,6 +84925,7 @@ paths: /v1/whatsapp/wa-groups: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWhatsAppGroupChats tags: [WhatsApp] @@ -84297,6 +84968,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createWhatsAppGroupChat tags: [WhatsApp] @@ -84341,6 +85013,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getWhatsAppGroupChat tags: [WhatsApp] @@ -84385,6 +85058,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateWhatsAppGroupChat tags: [WhatsApp] @@ -84422,6 +85096,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteWhatsAppGroupChat tags: [WhatsApp] @@ -84451,6 +85126,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}/participants: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: addWhatsAppGroupParticipants tags: [WhatsApp] @@ -84490,6 +85166,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: removeWhatsAppGroupParticipants tags: [WhatsApp] @@ -84530,6 +85207,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}/invite-link: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createWhatsAppGroupInviteLink tags: [WhatsApp] @@ -84558,6 +85236,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}/join-requests: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWhatsAppGroupJoinRequests tags: [WhatsApp] @@ -84590,6 +85269,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: approveWhatsAppGroupJoinRequests tags: [WhatsApp] @@ -84628,6 +85308,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: rejectWhatsAppGroupJoinRequests tags: [WhatsApp] @@ -84670,6 +85351,7 @@ paths: /v1/whatsapp/flows: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listWhatsAppFlows tags: [WhatsApp Flows] @@ -84713,6 +85395,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createWhatsAppFlow tags: [WhatsApp Flows] @@ -84775,6 +85458,7 @@ paths: /v1/whatsapp/flows/{flowId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppFlow tags: [WhatsApp Flows] @@ -84817,6 +85501,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Flow or account not found } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateWhatsAppFlow tags: [WhatsApp Flows] @@ -84857,6 +85542,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account or flow not found } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteWhatsAppFlow tags: [WhatsApp Flows] @@ -84883,6 +85569,7 @@ paths: /v1/whatsapp/flows/{flowId}/json: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppFlowJson tags: [WhatsApp Flows] @@ -84914,6 +85601,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } put: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: uploadWhatsAppFlowJson tags: [WhatsApp Flows] @@ -85002,6 +85690,7 @@ paths: /v1/whatsapp/flows/{flowId}/preview: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppFlowPreview tags: [WhatsApp Flows] @@ -85031,6 +85720,7 @@ paths: /v1/whatsapp/flows/{flowId}/versions: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listWhatsAppFlowVersions tags: [WhatsApp Flows] @@ -85068,6 +85758,7 @@ paths: /v1/whatsapp/flows/{flowId}/publish: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: publishWhatsAppFlow tags: [WhatsApp Flows] @@ -85104,6 +85795,7 @@ paths: /v1/whatsapp/flows/{flowId}/deprecate: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deprecateWhatsAppFlow tags: [WhatsApp Flows] @@ -85139,6 +85831,7 @@ paths: /v1/whatsapp/flows/encryption-key: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWhatsAppFlowsEncryptionKey tags: [WhatsApp Flows] @@ -85182,6 +85875,7 @@ paths: '404': { description: WhatsApp account not found } '502': { description: Meta rejected the request } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: setWhatsAppFlowsEncryptionKey tags: [WhatsApp Flows] @@ -85220,6 +85914,7 @@ paths: /v1/whatsapp/flows/send: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendWhatsAppFlowMessage tags: [WhatsApp Flows] @@ -85291,6 +85986,7 @@ paths: /v1/whatsapp/flow-responses: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWhatsAppFlowResponses tags: [WhatsApp Flows] @@ -85336,6 +86032,7 @@ paths: /v1/contacts: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: listContacts summary: List contacts @@ -85398,6 +86095,7 @@ paths: '400': { description: Invalid request } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: createContact summary: Create contact @@ -85459,6 +86157,7 @@ paths: /v1/contacts/groups: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: listContactGroups summary: List contact groups @@ -85502,6 +86201,7 @@ paths: '412': { description: The account was connected without the contacts area } /v1/contacts/autocomplete: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: autocompleteContacts summary: Search people @@ -85558,6 +86258,7 @@ paths: '412': { description: 'The account was connected without the contacts or directory area' } /v1/contacts/{contactId}: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: getContact summary: Get contact @@ -85612,6 +86313,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: updateContact summary: Update contact @@ -85659,6 +86361,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: deleteContact summary: Delete contact @@ -85674,6 +86377,7 @@ paths: /v1/contacts/{contactId}/channels: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: getContactChannels summary: List channels for a contact @@ -85710,6 +86414,7 @@ paths: /v1/contacts/bulk: post: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: bulkCreateContacts summary: Bulk create contacts @@ -85768,6 +86473,7 @@ paths: /v1/contacts/{contactId}/fields/{slug}: put: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: setContactFieldValue summary: Set custom field value @@ -85790,6 +86496,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: clearContactFieldValue summary: Clear custom field value @@ -85807,6 +86514,7 @@ paths: /v1/custom-fields: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listCustomFields summary: List custom field definitions @@ -85837,6 +86545,7 @@ paths: '400': { description: Invalid profileId format } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createCustomField summary: Create custom field @@ -85879,6 +86588,7 @@ paths: /v1/custom-fields/{fieldId}: patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateCustomField summary: Update custom field @@ -85916,6 +86626,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteCustomField summary: Delete custom field @@ -85933,6 +86644,7 @@ paths: /v1/broadcasts: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: listBroadcasts @@ -85986,6 +86698,7 @@ paths: '400': { description: Invalid request } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: createBroadcast @@ -86066,6 +86779,7 @@ paths: /v1/broadcasts/{broadcastId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: getBroadcast @@ -86108,6 +86822,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: updateBroadcast @@ -86168,6 +86883,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: deleteBroadcast @@ -86183,6 +86899,7 @@ paths: /v1/broadcasts/{broadcastId}/send: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: sendBroadcast @@ -86211,6 +86928,7 @@ paths: /v1/broadcasts/{broadcastId}/schedule: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: scheduleBroadcast @@ -86249,6 +86967,7 @@ paths: /v1/broadcasts/{broadcastId}/cancel: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: cancelBroadcast @@ -86277,6 +86996,7 @@ paths: /v1/broadcasts/{broadcastId}/recipients: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: listBroadcastRecipients @@ -86337,6 +87057,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: addBroadcastRecipients @@ -86535,6 +87256,7 @@ paths: '404': { description: 'Code `support_run_not_found`: no such run, or it was not started by your team.', content: { application/json: { schema: { $ref: '#/components/schemas/ErrorResponse' } } } } /v1/workflows: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listWorkflows summary: List workflows @@ -86580,6 +87302,7 @@ paths: hasMore: { type: boolean } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createWorkflow x-platforms: [hubspot, salesforce, gohighlevel] @@ -86630,6 +87353,7 @@ paths: /v1/workflows/{workflowId}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWorkflow summary: Get workflow with graph @@ -86667,6 +87391,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: updateWorkflow x-platforms: [hubspot, salesforce, gohighlevel] @@ -86731,6 +87456,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: deleteWorkflow summary: Delete workflow @@ -86745,6 +87471,7 @@ paths: /v1/workflows/{workflowId}/activate: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: activateWorkflow summary: Activate workflow @@ -86773,6 +87500,7 @@ paths: /v1/workflows/{workflowId}/pause: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: pauseWorkflow summary: Pause workflow @@ -86800,6 +87528,7 @@ paths: /v1/workflows/{workflowId}/take-over: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: takeOverWorkflow summary: Take over a workflow @@ -86831,6 +87560,7 @@ paths: /v1/workflows/{workflowId}/executions: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWorkflowExecutions summary: List workflow runs @@ -86885,6 +87615,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: triggerWorkflow summary: Manually start a workflow run @@ -86931,6 +87662,7 @@ paths: /v1/workflows/{workflowId}/trigger: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: triggerApiCallWorkflow summary: Start an API-triggered workflow @@ -86976,6 +87708,7 @@ paths: /v1/workflows/{workflowId}/executions/{executionId}/events: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listWorkflowExecutionEvents summary: Get an execution's timeline @@ -87013,6 +87746,7 @@ paths: /v1/workflows/{workflowId}/duplicate: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: duplicateWorkflow summary: Duplicate a workflow @@ -87052,6 +87786,7 @@ paths: /v1/workflows/{workflowId}/versions: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listWorkflowVersions summary: List a workflow's version history @@ -87090,6 +87825,7 @@ paths: /v1/workflows/{workflowId}/versions/{version}: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: getWorkflowVersion summary: Get a specific workflow version @@ -87129,6 +87865,7 @@ paths: /v1/workflows/{workflowId}/versions/{version}/restore: post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: restoreWorkflowVersion summary: Restore a workflow version @@ -87168,6 +87905,7 @@ paths: /v1/sequences: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: listSequences @@ -87218,6 +87956,7 @@ paths: '400': { description: Invalid request } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: createSequence @@ -87285,6 +88024,7 @@ paths: /v1/sequences/{sequenceId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: getSequence @@ -87331,6 +88071,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: updateSequence @@ -87398,6 +88139,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: deleteSequence @@ -87414,6 +88156,7 @@ paths: /v1/sequences/{sequenceId}/activate: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: activateSequence @@ -87442,6 +88185,7 @@ paths: /v1/sequences/{sequenceId}/pause: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: pauseSequence @@ -87470,6 +88214,7 @@ paths: /v1/sequences/{sequenceId}/enroll: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: enrollContacts @@ -87515,6 +88260,7 @@ paths: /v1/sequences/{sequenceId}/enroll/{contactId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: unenrollContact @@ -87532,6 +88278,7 @@ paths: /v1/sequences/{sequenceId}/enrollments: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: listSequenceEnrollments @@ -87586,6 +88333,7 @@ paths: /v1/comment-automations: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listCommentAutomations tags: [Comment Automations] @@ -87652,6 +88400,7 @@ paths: '503': { $ref: '#/components/responses/TemporarilyUnavailable' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createCommentAutomation tags: [Comment Automations] @@ -87873,6 +88622,7 @@ paths: /v1/comment-automations/{automationId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getCommentAutomation tags: [Comment Automations] @@ -87940,6 +88690,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateCommentAutomation tags: [Comment Automations] @@ -88058,6 +88809,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '409': { description: An active automation already exists for the post this request re-binds to } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteCommentAutomation tags: [Comment Automations] @@ -88074,6 +88826,7 @@ paths: /v1/comment-automations/{automationId}/logs: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listCommentAutomationLogs tags: [Comment Automations] @@ -88129,6 +88882,7 @@ paths: /v1/ads: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAds tags: ["Ad Campaigns"] @@ -88205,6 +88959,7 @@ paths: /v1/ads/search-terms: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdsSearchTerms tags: ["Ad Insights"] @@ -88276,6 +89031,7 @@ paths: /v1/ads/recommendations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listGoogleRecommendations summary: List Google Ads recommendations @@ -88324,6 +89080,7 @@ paths: '501': { description: "accountId is not a Google Ads connection." } /v1/ads/recommendations/apply: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: applyGoogleRecommendations summary: Apply Google Ads recommendations @@ -88397,6 +89154,7 @@ paths: '501': { description: "accountId is not a Google Ads connection." } /v1/ads/recommendations/dismiss: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: dismissGoogleRecommendations summary: Dismiss Google Ads recommendations @@ -88440,6 +89198,7 @@ paths: '501': { description: "accountId is not a Google Ads connection." } /v1/ads/bid-strategies: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listBidStrategies tags: ["Ad Campaigns"] @@ -88487,6 +89246,7 @@ paths: '429': { description: "Google Ads operations budget exhausted; retry later." } '501': { description: Only available on Google Ads accounts } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createBidStrategy tags: ["Ad Campaigns"] @@ -88542,6 +89302,7 @@ paths: /v1/ads/bid-strategies/{strategyId}: patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateBidStrategy tags: ["Ad Campaigns"] @@ -88605,6 +89366,7 @@ paths: /v1/ads/shared-budgets: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listSharedBudgets tags: ["Ad Campaigns"] @@ -88649,6 +89411,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createSharedBudget tags: ["Ad Campaigns"] @@ -88700,6 +89463,7 @@ paths: /v1/ads/local-services/leads: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listLocalServicesLeads tags: ["Ad Insights"] @@ -88771,6 +89535,7 @@ paths: /v1/ads/local-services/leads/{leadId}/conversations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listLocalServicesLeadConversations tags: ["Ad Insights"] @@ -88836,6 +89601,7 @@ paths: /v1/ads/keywords: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdKeywords tags: ["Ad Campaigns"] @@ -88890,6 +89656,7 @@ paths: x-summary: "Ads access is required: legacy plans need the Ads add-on, and usage-based plans include it by default." description: Ads access required. Legacy plans need the Ads add-on; included by default on usage-based plans. post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: addAdKeywords tags: ["Ad Campaigns"] @@ -88956,6 +89723,7 @@ paths: /v1/ads/keywords/{keywordId}: patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdKeyword tags: ["Ad Campaigns"] @@ -89005,6 +89773,7 @@ paths: '422': { description: 'Negative keywords have no status or bid on Google; they cannot be paused, enabled or given a bid.' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeAdKeyword tags: ["Ad Campaigns"] @@ -89044,6 +89813,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/automations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAutomations tags: [Automations] @@ -89099,6 +89869,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: createAutomation tags: [Automations] @@ -89174,6 +89945,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/automations/catalog: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAutomationCatalog tags: [Automations] @@ -89244,6 +90016,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/automations/actions: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAutomationActions tags: [Automations] @@ -89292,6 +90065,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/automations/{automationId}/checks: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAutomationChecks tags: [Automations] @@ -89328,6 +90102,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/preview: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: previewAutomationDraft tags: [Automations] @@ -89369,6 +90144,7 @@ paths: required: true schema: { type: string } get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAutomation tags: [Automations] @@ -89390,6 +90166,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: updateAutomation tags: [Automations] @@ -89463,6 +90240,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: deleteAutomation tags: [Automations] @@ -89483,6 +90261,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/{automationId}/activate: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: activateAutomation tags: [Automations] @@ -89511,6 +90290,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/{automationId}/pause: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: pauseAutomation tags: [Automations] @@ -89538,6 +90318,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/{automationId}/take-over: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: takeOverAutomation tags: [Automations] @@ -89573,6 +90354,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/{automationId}/preview: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: previewAutomation tags: [Automations] @@ -89607,6 +90389,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/templates: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAutomationTemplates tags: @@ -89640,6 +90423,7 @@ paths: '401': $ref: '#/components/responses/Unauthorized' post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: createAutomationTemplate tags: @@ -89723,6 +90507,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/{templateId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAutomationTemplate tags: @@ -89760,6 +90545,7 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' patch: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: updateAutomationTemplate tags: @@ -89820,6 +90606,7 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' delete: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: deleteAutomationTemplate tags: @@ -89857,6 +90644,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/automations/templates/{templateId}/install: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: installAutomationTemplate tags: @@ -89953,6 +90741,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/shared/{shareToken}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getSharedAutomationTemplate tags: @@ -89992,6 +90781,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/automations/templates/shared/{shareToken}/install: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: installSharedAutomationTemplate tags: @@ -90087,6 +90877,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/zernio/{templateId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getZernioAutomationTemplate tags: @@ -90127,6 +90918,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/automations/templates/zernio/{templateId}/install: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: installZernioAutomationTemplate tags: @@ -90223,6 +91015,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/controls: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAutomationControls tags: @@ -90249,6 +91042,7 @@ paths: '403': $ref: '#/components/responses/AutomationsAdsRequired' patch: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: updateAutomationControls tags: @@ -90297,6 +91091,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/controls/ad-accounts: patch: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: updateAutomationAdAccountControls tags: @@ -90368,6 +91163,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/{automationId}/approvals: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAutomationApprovals tags: @@ -90424,6 +91220,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/{automationId}/approvals/{approvalId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAutomationApproval tags: @@ -90466,6 +91263,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/{automationId}/approvals/{approvalId}/approve: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: approveAutomationApproval tags: @@ -90521,6 +91319,7 @@ paths: $ref: '#/components/responses/AutomationApprovalRefused' /v1/automations/{automationId}/approvals/{approvalId}/reject: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: rejectAutomationApproval tags: @@ -90574,6 +91373,7 @@ paths: $ref: '#/components/responses/AutomationApprovalRefused' /v1/automations/backtest: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: backtestAutomationDraft tags: @@ -90610,6 +91410,7 @@ paths: $ref: '#/components/responses/AutomationsAdsRequired' /v1/automations/{automationId}/backtest: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: backtestAutomation tags: @@ -90647,6 +91448,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/ads/rules: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAdRules tags: [Ad Rules] @@ -90695,6 +91497,7 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: createAdRule tags: [Ad Rules] @@ -90794,6 +91597,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/ads/rules/templates: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAdRuleTemplates tags: [Ad Rules] @@ -90833,6 +91637,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/rules/hourly-windows: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAdRuleHourlyWindows tags: [Ad Rules] @@ -90870,6 +91675,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/rules/activity: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAdRuleActivity tags: [Ad Rules] @@ -90935,6 +91741,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/ads/rules/activity/{activityId}/undo: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: undoAdRuleActivity tags: [Ad Rules] @@ -91005,6 +91812,7 @@ paths: required: true schema: { type: string } get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getAdRule tags: [Ad Rules] @@ -91038,6 +91846,7 @@ paths: '404': $ref: '#/components/responses/NotFound' patch: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: updateAdRule tags: [Ad Rules] @@ -91098,6 +91907,7 @@ paths: '404': $ref: '#/components/responses/NotFound' delete: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: deleteAdRule tags: [Ad Rules] @@ -91131,6 +91941,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/ads/rules/{ruleId}/preview: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: previewAdRule tags: [Ad Rules] @@ -91172,6 +91983,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/ads/rules/alerts: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAdAccountRuleAlerts tags: [Ad Rules] @@ -91233,6 +92045,7 @@ paths: $ref: '#/components/responses/Unauthorized' /v1/ads/rules/{ruleId}/alerts: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAdRuleAlerts tags: [Ad Rules] @@ -91295,6 +92108,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/ads/rules/{ruleId}/runs: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listAdRuleRuns tags: [Ad Rules] @@ -91344,6 +92158,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/ads/campaign-results: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: uploadCampaignResults tags: ["Ad Campaign Results"] @@ -91408,6 +92223,7 @@ paths: '422': { description: 'The `Idempotency-Key` was used with a different body.' } '429': { $ref: '#/components/responses/RateLimited' } get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listCampaignResults tags: ["Ad Campaign Results"] @@ -91457,6 +92273,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/uploads/{uploadId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getCampaignResultsUpload tags: ["Ad Campaign Results"] @@ -91505,6 +92322,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/campaign-results/totals: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getCampaignResultsTotals tags: ["Ad Campaign Results"] @@ -91542,6 +92360,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/events: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getCampaignResultEvents tags: ["Ad Campaign Results"] @@ -91563,6 +92382,7 @@ paths: eventNames: { type: array, items: { type: string }, example: [Purchase, Lead, CompleteRegistration] } '401': { $ref: '#/components/responses/Unauthorized' } put: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: setCampaignResultEvents tags: ["Ad Campaign Results"] @@ -91603,6 +92423,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/tag-new-ads: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getTagNewAds tags: ["Ad Campaign Results"] @@ -91624,6 +92445,7 @@ paths: enabled: { type: boolean, example: false } '401': { $ref: '#/components/responses/Unauthorized' } put: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: setTagNewAds tags: ["Ad Campaign Results"] @@ -91658,6 +92480,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/profit: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getCampaignResultProfit tags: ["Ad Campaign Results"] @@ -91675,6 +92498,7 @@ paths: schema: { $ref: '#/components/schemas/CampaignResultProfit' } '401': { $ref: '#/components/responses/Unauthorized' } put: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: setCampaignResultProfit tags: ["Ad Campaign Results"] @@ -91710,6 +92534,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/metrics: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listCampaignResultMetrics tags: ["Ad Campaign Results"] @@ -91736,6 +92561,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/metrics/{key}: put: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: setCampaignResultMetric tags: ["Ad Campaign Results"] @@ -91777,6 +92603,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaigns: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdCampaigns tags: ["Ad Campaigns"] @@ -91870,6 +92697,7 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdCampaign tags: ["Ad Campaigns"] @@ -92054,6 +92882,7 @@ paths: /v1/ads/campaigns/{campaignId}/status: put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdCampaignStatus tags: ["Ad Campaigns"] @@ -92147,6 +92976,7 @@ paths: /v1/ads/campaigns/{campaignId}/ad-schedule: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getCampaignAdSchedule tags: ["Ad Campaigns"] @@ -92228,6 +93058,7 @@ paths: '501': description: "Not a Google Ads campaign: ad schedules are a Google criterion." put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateCampaignAdSchedule tags: ["Ad Campaigns"] @@ -92326,6 +93157,7 @@ paths: /v1/ads/campaigns/{campaignId}/bidding: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getCampaignBidding tags: ["Ad Campaigns"] @@ -92390,6 +93222,7 @@ paths: /v1/ads/campaigns/{campaignId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdCampaignDetails tags: ["Ad Campaigns"] @@ -92428,6 +93261,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdCampaign tags: ["Ad Campaigns"] @@ -92599,6 +93433,7 @@ paths: '501': { description: Operation not supported on this platform } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdCampaign tags: ["Ad Campaigns"] @@ -92727,6 +93562,7 @@ paths: /v1/ads/campaigns/{campaignId}/negative-keywords: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listCampaignNegativeKeywords tags: ["Ad Campaigns"] @@ -92779,6 +93615,7 @@ paths: '429': { description: Google Ads operations budget exhausted; retry later } '501': { description: Only available on Google Ads campaigns } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: replaceCampaignNegativeKeywords tags: ["Ad Campaigns"] @@ -92847,6 +93684,7 @@ paths: '429': { description: Google Ads operations budget exhausted; retry later } '501': { description: Only available on Google Ads campaigns } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: editCampaignNegativeKeywords tags: ["Ad Campaigns"] @@ -92917,6 +93755,7 @@ paths: /v1/ads/campaigns/bulk-status: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: bulkUpdateAdCampaignStatus tags: ["Ad Campaigns"] @@ -92992,6 +93831,7 @@ paths: description: 'Returned with code `ads_allowance_exceeded` when the team has no payment method on file and has reached the 500 free live ads: add a card to resume.' /v1/ads/campaigns/{campaignId}/duplicate: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: duplicateAdCampaign tags: ["Ad Campaigns"] @@ -93153,6 +93993,7 @@ paths: /v1/ads/campaigns/{campaignId}/targeting: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getCampaignTargeting tags: ["Ad Campaigns"] @@ -93248,6 +94089,7 @@ paths: '404': { description: Campaign not found } '501': { description: Only available on Google Ads campaigns } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateCampaignTargeting tags: ["Ad Campaigns"] @@ -93434,6 +94276,7 @@ paths: /v1/ads/ad-sets: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdSets tags: ["Ad Campaigns"] @@ -93573,6 +94416,7 @@ paths: description: Ads access required (Ads add-on on legacy plans, included on usage-based plans). post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdSet tags: ["Ad Campaigns"] @@ -93687,6 +94531,7 @@ paths: /v1/ads/ad-sets/{adSetId}/duplicate: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: duplicateAdSet tags: ["Ad Campaigns"] @@ -93804,6 +94649,7 @@ paths: /v1/ads/{adId}/duplicate: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: duplicateAd tags: ["Ad Campaigns"] @@ -93906,6 +94752,7 @@ paths: /v1/ads/ad-sets/{adSetId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdSetDetails tags: ["Ad Campaigns"] @@ -93944,6 +94791,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdSet tags: ["Ad Campaigns"] @@ -94328,6 +95176,7 @@ paths: '502': { description: "Meta: the ad set's live targeting could not be read, so the placements or targeting update was not written" } '501': { description: "bidStrategy not supported on the platform (Meta, TikTok, OpenAI and Reddit only)" } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdSet tags: ["Ad Campaigns"] @@ -94364,6 +95213,7 @@ paths: /v1/ads/ad-sets/{adSetId}/targeting: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdSetTargeting tags: ["Ad Campaigns"] @@ -94409,6 +95259,7 @@ paths: '501': { description: "The platform has no ad set targeting read (every platform but Reddit and Amazon)" } /v1/ads/ad-sets/{adSetId}/status: put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdSetStatus tags: ["Ad Campaigns"] @@ -94493,6 +95344,7 @@ paths: /v1/ads/tree: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdTree tags: ["Ad Campaigns"] @@ -94583,6 +95435,7 @@ paths: /v1/ads/performance: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdsByPerformance tags: ["Ad Campaigns"] @@ -94637,6 +95490,7 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } /v1/ads/timeline: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdsTimeline tags: ["Ad Campaigns"] @@ -94705,6 +95559,7 @@ paths: /v1/ads/{adId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAd tags: ["Ad Campaigns"] @@ -94827,6 +95682,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '501': { description: "`accountId` names a connection that is not Meta (unsynced ad reads are Meta only)." } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAd tags: ["Ad Campaigns"] @@ -95252,6 +96108,7 @@ paths: '501': { description: "targeting or creative not supported on the platform (supported on Meta, TikTok, and LinkedIn)" } '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-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAd tags: ["Ad Campaigns"] @@ -95321,6 +96178,7 @@ paths: /v1/ads/{adId}/status: put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdStatus tags: ["Ad Campaigns"] @@ -95415,6 +96273,7 @@ paths: /v1/ads/campaigns/{campaignId}/assets: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listCampaignAssets summary: List campaign assets @@ -95557,6 +96416,7 @@ paths: '501': description: "Only supported on Google Ads." post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: attachCampaignAssets summary: Attach campaign assets @@ -95693,6 +96553,7 @@ paths: '501': description: "Only supported on Google Ads." put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateCampaignAssets summary: Update campaign assets @@ -95780,6 +96641,7 @@ paths: '501': description: "Only supported on Google Ads." delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeCampaignAssets summary: Remove campaign assets @@ -95838,6 +96700,7 @@ paths: /v1/ads/ad-sets/{adSetId}/assets: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdGroupAssets summary: List ad-group assets @@ -95979,6 +96842,7 @@ paths: '501': description: "Only supported on Google Ads." post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: attachAdGroupAssets summary: Attach ad-group assets @@ -96115,6 +96979,7 @@ paths: '501': description: "Only supported on Google Ads." put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdGroupAssets summary: Update ad-group assets @@ -96203,6 +97068,7 @@ paths: '501': description: "Only supported on Google Ads." delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeAdGroupAssets summary: Remove ad-group assets @@ -96261,6 +97127,7 @@ paths: /v1/ads/campaigns/{campaignId}/analytics: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getCampaignAnalytics tags: ["Ad Insights"] @@ -96376,6 +97243,7 @@ paths: /v1/ads/preview: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: generateAdPreviews tags: ["Ad Creatives"] @@ -96435,6 +97303,7 @@ paths: /v1/ads/{adId}/preview: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdPreviews tags: ["Ad Creatives"] @@ -96481,6 +97350,7 @@ paths: /v1/ads/{adId}/review: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdReview tags: ["Ad Campaigns"] @@ -96639,6 +97509,7 @@ paths: /v1/ads/{adId}/tiktok-smart-plus-review: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getTikTokSmartPlusAdReview tags: ["Ad Campaigns"] @@ -96711,6 +97582,7 @@ paths: /v1/ads/{adId}/media: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdMedia tags: ["Ad Creatives"] @@ -96778,6 +97650,7 @@ paths: /v1/ads/keywords/ideas: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: generateKeywordIdeas tags: ["Ad Insights"] @@ -96838,6 +97711,7 @@ paths: /v1/ads/keywords/historical-metrics: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: generateKeywordHistoricalMetrics tags: ["Ad Insights"] @@ -96892,6 +97766,7 @@ paths: /v1/ads/insights: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: queryAdInsights tags: ["Ad Insights"] @@ -97027,6 +97902,7 @@ paths: /v1/ads/insights/reports: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdInsightsReport tags: ["Ad Insights"] @@ -97095,6 +97971,7 @@ paths: /v1/ads/insights/reports/{reportRunId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdInsightsReport tags: ["Ad Insights"] @@ -97143,6 +98020,7 @@ paths: /v1/ads/{adId}/analytics: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdAnalytics tags: ["Ad Insights"] @@ -97224,6 +98102,7 @@ paths: /v1/ads/{adId}/tracking-tags: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdTrackingTags tags: ["Tracking Tags"] @@ -97267,6 +98146,7 @@ paths: '404': { description: "Ad not found" } '405': { description: "Platform has no click-URL tracking surface" } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdTrackingTags tags: ["Tracking Tags"] @@ -97361,6 +98241,7 @@ paths: '502': { x-summary: "Meta accepted the request but failed to produce the image, for example from an upload or processing timeout.", 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`." } /v1/ads/{adId}/comments: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: getAdComments tags: ["Ad Accounts"] @@ -97542,6 +98423,7 @@ paths: /v1/ads/{adId}/comments/{commentId}/reply: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: replyToAdComment summary: Reply to an ad comment @@ -97624,6 +98506,7 @@ paths: /v1/ads/{adId}/comments/{commentId}/hide: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: hideAdComment summary: Hide or unhide an ad comment @@ -97694,6 +98577,7 @@ paths: /v1/ads/{adId}/comments/{commentId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" operationId: deleteAdComment summary: Delete an ad comment @@ -97760,6 +98644,7 @@ paths: /v1/ads/business-centers: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdsBusinessCenters tags: ["Ad Accounts"] @@ -97795,6 +98680,7 @@ paths: /v1/ads/alerts: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdsAlerts tags: ["Ad Campaigns"] @@ -97847,6 +98733,7 @@ paths: /v1/ads/alerts/{alertId}/dismiss: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: dismissAdsAlert tags: ["Ad Campaigns"] @@ -97880,6 +98767,7 @@ paths: /v1/ads/activity: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdsActivityLog tags: ["Ad Accounts"] @@ -97951,6 +98839,7 @@ paths: /v1/ads/rf-predictions: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createRfPrediction tags: ["Reach and Frequency"] @@ -98022,6 +98911,7 @@ paths: /v1/ads/rf-predictions/{predictionId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getRfPrediction tags: ["Reach and Frequency"] @@ -98053,6 +98943,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: cancelRfReservation tags: ["Reach and Frequency"] @@ -98080,6 +98971,7 @@ paths: /v1/ads/rf-predictions/{predictionId}/reserve: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: reserveRfPrediction tags: ["Reach and Frequency"] @@ -98124,6 +99016,7 @@ paths: /v1/ads/studies: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdStudies tags: ["Ad Accounts"] @@ -98168,6 +99061,7 @@ paths: /v1/ads/tiktok-identities: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdsTikTokIdentities tags: ["Ad Creatives"] @@ -98212,6 +99106,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } /v1/ads/tiktok-smart-plus-materials: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getTikTokSmartPlusMaterialReport tags: ["Ad Insights"] @@ -98314,6 +99209,7 @@ paths: '502': { x-summary: "TikTok returned incomplete Smart+ data: retry later, and pass smartPlusAdIds or adGroupIds for advertisers with over 2,000 Smart+ ads.", description: "Retry later. Returned when:\n\n- more rows than the tolerance (2, or 1% of the rows) were missing from TikTok's material report after a retry (`details` carries `totalNumber`, `distinctRows` and `missingRows`); or\n- TikTok's Smart+ ad listing returned fewer ads than it declared (`details` carries `declaredAds`, `listedAds` and `listingTruncated`).\n\nWith `listingTruncated`, the advertiser has more than 2,000 Smart+ ads, so pass `smartPlusAdIds` or `adGroupIds`." } /v1/ads/tiktok-smart-plus-reviews: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listTikTokSmartPlusReviews tags: ["Ad Campaigns"] @@ -98509,6 +99405,7 @@ paths: '429': { description: "TikTok's general rate limit hit while listing the Smart+ ads (`Retry-After: 10`).", $ref: '#/components/responses/RateLimited' } /v1/ads/instagram-accounts: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdsInstagramAccounts summary: List Instagram ad identities @@ -98579,6 +99476,7 @@ paths: /v1/ads/instagram-posts: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdsInstagramPosts summary: List Instagram posts to boost @@ -98655,6 +99553,7 @@ paths: /v1/ads/advertisable-applications: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdvertisableApplications summary: List advertisable apps @@ -98710,6 +99609,7 @@ paths: /v1/ads/ios-fourteen-campaign-limits: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getIosFourteenCampaignLimits summary: Get iOS 14 campaign limits @@ -98755,6 +99655,7 @@ paths: /v1/ads/businesses: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listMetaBusinesses tags: ["Ad Accounts"] @@ -98796,6 +99697,7 @@ paths: /v1/ads/businesses/users: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listMetaBusinessUsers tags: ["Ad Accounts"] @@ -98837,6 +99739,7 @@ paths: /v1/ads/page-users: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listPageUsers tags: ["Ad Accounts"] @@ -98874,6 +99777,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } '501': { description: Only supported on Meta (facebook/instagram) } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: assignPageUser tags: ["Ad Accounts"] @@ -98933,6 +99837,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } '501': { description: Only supported on Meta (facebook/instagram) } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removePageUser tags: ["Ad Accounts"] @@ -98967,6 +99872,7 @@ paths: /v1/ads/labels: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdLabels tags: ["Ad Accounts"] @@ -99022,6 +99928,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta and Google Ads accounts } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdLabel tags: ["Ad Accounts"] @@ -99070,6 +99977,7 @@ paths: /v1/ads/labels/{labelId}: patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdLabel tags: ["Ad Accounts"] @@ -99116,6 +100024,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeAdLabel tags: ["Ad Accounts"] @@ -99152,6 +100061,7 @@ paths: /v1/ads/labels/{labelId}/assignments: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: attachAdLabel tags: ["Ad Accounts"] @@ -99198,6 +100108,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: detachAdLabel tags: ["Ad Accounts"] @@ -99239,6 +100150,7 @@ paths: /v1/ads/high-demand-periods: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listHighDemandPeriods tags: ["Ad Accounts"] @@ -99282,6 +100194,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createHighDemandPeriod tags: ["Ad Accounts"] @@ -99335,6 +100248,7 @@ paths: /v1/ads/creatives: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdCreatives tags: ["Ad Creatives"] @@ -99379,6 +100293,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdCreative tags: ["Ad Creatives"] @@ -99507,6 +100422,7 @@ paths: /v1/ads/creatives/{creativeId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdCreative tags: ["Ad Creatives"] @@ -99541,6 +100457,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdCreative tags: ["Ad Creatives"] @@ -99584,6 +100501,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdCreative tags: ["Ad Creatives"] @@ -99618,6 +100536,7 @@ paths: /v1/ads/value-rule-sets: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listValueRuleSets tags: ["Ad Accounts"] @@ -99674,6 +100593,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createValueRuleSet tags: ["Ad Accounts"] @@ -99756,6 +100676,7 @@ paths: /v1/ads/value-rule-sets/{valueRuleSetId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getValueRuleSet tags: ["Ad Accounts"] @@ -99792,6 +100713,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateValueRuleSet tags: ["Ad Accounts"] @@ -99857,6 +100779,7 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteValueRuleSet tags: ["Ad Accounts"] @@ -99892,6 +100815,7 @@ paths: /v1/ads/accounts/negative-keyword-lists: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "listAdNegativeKeywordLists" tags: @@ -100003,6 +100927,7 @@ paths: "501": description: "Available only on Google Ads." post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "createAdNegativeKeywordList" tags: @@ -100126,6 +101051,7 @@ paths: description: "Available only on Google Ads." /v1/ads/accounts/negative-keyword-lists/{listId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "getAdNegativeKeywordList" tags: @@ -100256,6 +101182,7 @@ paths: "501": description: "Available only on Google Ads." put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "updateAdNegativeKeywordList" tags: @@ -100365,6 +101292,7 @@ paths: "501": description: "Available only on Google Ads." delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "deleteAdNegativeKeywordList" tags: @@ -100468,6 +101396,7 @@ paths: description: "Available only on Google Ads." /v1/ads/accounts/negative-keyword-lists/{listId}/keywords: put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "replaceAdNegativeKeywordListKeywords" tags: @@ -100593,6 +101522,7 @@ paths: "501": description: "Available only on Google Ads." patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "editAdNegativeKeywordListKeywords" tags: @@ -100724,6 +101654,7 @@ paths: description: "Available only on Google Ads." /v1/ads/campaigns/{campaignId}/negative-keyword-lists: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "listCampaignNegativeKeywordLists" tags: @@ -100819,6 +101750,7 @@ paths: "501": description: "Available only on Google Ads." put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "replaceCampaignNegativeKeywordLists" tags: @@ -100921,6 +101853,7 @@ paths: "501": description: "Available only on Google Ads." patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: "editCampaignNegativeKeywordLists" tags: @@ -101032,6 +101965,7 @@ paths: /v1/ads/accounts/callouts: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAccountCallouts summary: List account callouts @@ -101110,6 +102044,7 @@ paths: '501': description: "Only supported on Google Ads." post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: addAccountCallouts summary: Add account callouts @@ -101198,6 +102133,7 @@ paths: '501': description: "Only supported on Google Ads." put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAccountCallouts summary: Update account callouts @@ -101297,6 +102233,7 @@ paths: '501': description: "Only supported on Google Ads." delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeAccountCallout summary: Remove account callout @@ -101349,6 +102286,7 @@ paths: /v1/ads/accounts/sitelinks: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAccountSitelinks summary: List account sitelinks @@ -101438,6 +102376,7 @@ paths: '501': description: "Only supported on Google Ads." post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: addAccountSitelinks summary: Add account sitelinks @@ -101538,6 +102477,7 @@ paths: '501': description: "Only supported on Google Ads." put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAccountSitelinks summary: Update account sitelinks @@ -101655,6 +102595,7 @@ paths: '501': description: "Only supported on Google Ads." delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeAccountSitelink summary: Remove account sitelink @@ -101707,6 +102648,7 @@ paths: /v1/ads/accounts/structured-snippets: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAccountStructuredSnippets summary: List account snippets @@ -101793,6 +102735,7 @@ paths: '501': description: "Only supported on Google Ads." post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: addAccountStructuredSnippets summary: Add account snippets @@ -101905,6 +102848,7 @@ paths: '501': description: "Only supported on Google Ads." put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAccountStructuredSnippets summary: Update account snippets @@ -102001,6 +102945,7 @@ paths: '501': description: "Only supported on Google Ads." delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeAccountStructuredSnippet summary: Remove account snippet @@ -102053,6 +102998,7 @@ paths: /v1/ads/accounts/hierarchy: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdAccountHierarchy tags: ["Ad Accounts"] @@ -102152,6 +103098,7 @@ paths: /v1/ads/accounts/manager-links: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: inviteAdAccountToManager tags: ["Ad Accounts"] @@ -102202,6 +103149,7 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdAccountManagerLink tags: ["Ad Accounts"] @@ -102252,6 +103200,7 @@ paths: /v1/ads/accounts/billing: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdAccountBilling tags: ["Ad Accounts"] @@ -102332,6 +103281,7 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: setUpAdAccountBilling tags: ["Ad Accounts"] @@ -102446,6 +103396,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/ads/accounts/user-invitations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdAccountUserInvitations tags: ["Ad Accounts"] @@ -102493,6 +103444,7 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: inviteAdAccountUser tags: ["Ad Accounts"] @@ -102553,6 +103505,7 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: revokeAdAccountUserInvitation tags: ["Ad Accounts"] @@ -102591,6 +103544,7 @@ paths: /v1/ads/accounts/user-invitations/pending-approvals: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdAccountUserInvitationApprovals tags: ["Ad Accounts"] @@ -102633,6 +103587,7 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: withdrawAdAccountUserInvitationApproval tags: ["Ad Accounts"] @@ -102673,6 +103628,7 @@ paths: /v1/ads/accounts/users: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdAccountUsers tags: ["Ad Accounts"] @@ -102709,6 +103665,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } '501': { description: Only supported on Meta (facebook/instagram) } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: assignAdAccountUser tags: ["Ad Accounts"] @@ -102764,6 +103721,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } '501': { description: Only supported on Meta (facebook/instagram) } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeAdAccountUser tags: ["Ad Accounts"] @@ -102798,6 +103756,7 @@ paths: /v1/ads/accounts/finance: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdAccountFinance tags: ["Ad Accounts"] @@ -102841,6 +103800,7 @@ paths: /v1/ads/accounts/health: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdAccountHealth tags: ["Ad Accounts"] @@ -102942,6 +103902,7 @@ paths: /v1/ads/accounts/live: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdAccountLiveEntities tags: ["Ad Accounts"] @@ -103108,6 +104069,7 @@ paths: /v1/ads/accounts: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdAccount summary: Create ad account @@ -103300,6 +104262,7 @@ paths: platform: "meta" details: { creationStatus: "unknown" } get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdAccounts tags: ["Ad Accounts"] @@ -103424,6 +104387,7 @@ paths: description: 'Platform ads connection required (TikTok Ads, X Ads, code `ads_connection_required`), or Instagram missing linked Facebook account. Code `ads_no_ad_accounts`: the TikTok Ads connection is in place but its login has no advertiser accounts; create one in TikTok Ads Manager or grant access to it, then reconnect.' '429': { $ref: '#/components/responses/RateLimited' } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdAccount tags: ["Ad Accounts"] @@ -103530,6 +104494,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } /v1/ads/dsa-defaults: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getDsaDefaults tags: ["Ad Accounts"] @@ -103567,6 +104532,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/dsa-recommendations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getDsaRecommendations tags: ["Ad Accounts"] @@ -103607,6 +104573,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/boost: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: boostPost tags: ["Ad Campaigns"] @@ -104283,6 +105250,7 @@ paths: /v1/ads/campaigns/{campaignId}/asset-groups: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listGoogleAssetGroups summary: List Performance Max asset groups @@ -104350,6 +105318,7 @@ paths: '501': description: "Campaign is not on Google Ads." post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createGoogleAssetGroup summary: Create a Performance Max asset group @@ -104423,6 +105392,7 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getGoogleAssetGroup summary: Get a Performance Max asset group @@ -104457,6 +105427,7 @@ paths: '429': { description: "Google quota or the Zernio Google operations burst limit is exhausted." } '501': { description: "Campaign is not on Google Ads." } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateGoogleAssetGroup summary: Update a Performance Max asset group @@ -104505,6 +105476,7 @@ paths: '429': { description: "Google quota or the Zernio Google operations burst limit is exhausted." } '501': { description: "Campaign is not on Google Ads." } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeGoogleAssetGroup summary: Remove a Performance Max asset group @@ -104540,6 +105512,7 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}/assets: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: editGoogleAssetGroupAssets summary: Link or unlink asset group assets @@ -104592,6 +105565,7 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}/listing-group-filters: put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: replaceGoogleListingGroupFilters summary: Replace an asset group's listing-group tree @@ -104640,6 +105614,7 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/create: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createStandaloneAd tags: ["Ad Campaigns"] @@ -106353,6 +107328,7 @@ paths: /v1/ads/leads: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: listLeads tags: ["Lead Gen"] @@ -106426,6 +107402,7 @@ paths: /v1/ads/leads/counts: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: countLeads tags: ["Lead Gen"] @@ -106463,6 +107440,7 @@ paths: /v1/ads/leads/{id}: patch: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: updateLead tags: ["Lead Gen"] @@ -106509,6 +107487,7 @@ paths: /v1/leads: post: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: createLead tags: ["Lead Gen"] @@ -106578,6 +107557,7 @@ paths: /v1/ads/lead-forms: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listLeadForms tags: ["Lead Gen"] @@ -106608,6 +107588,7 @@ paths: '409': { $ref: '#/components/responses/AccountDisconnected' } '403': { description: Ads add-on required. } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createLeadForm tags: ["Lead Gen"] @@ -106797,6 +107778,7 @@ paths: /v1/ads/lead-forms/{formId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getLeadForm tags: ["Lead Gen"] @@ -106841,6 +107823,7 @@ paths: '409': { $ref: '#/components/responses/AccountDisconnected' } '404': { description: "No lead form with that id on the Page this account manages." } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: archiveLeadForm tags: ["Lead Gen"] @@ -106867,6 +107850,7 @@ paths: /v1/ads/lead-forms/{formId}/leads: get: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: listFormLeads tags: ["Lead Gen"] @@ -106937,6 +107921,7 @@ paths: /v1/ads/lead-forms/{formId}/test-leads: post: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: createTestLead tags: ["Lead Gen"] @@ -106979,6 +107964,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '409': { $ref: '#/components/responses/AccountDisconnected' } delete: + x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" operationId: deleteTestLead tags: ["Lead Gen"] @@ -107008,6 +107994,7 @@ paths: /v1/ads/images: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: uploadAdImage tags: ["Ad Creatives"] @@ -107056,6 +108043,7 @@ paths: '502': { x-summary: "Meta accepted the request but failed to produce the image, for example from an upload or processing timeout.", 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`." } get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdImages tags: ["Ad Creatives"] @@ -107101,6 +108089,7 @@ paths: /v1/ads/videos: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: uploadAdVideo tags: ["Ad Creatives"] @@ -107189,6 +108178,7 @@ paths: '502': { x-summary: "Meta accepted the upload but failed to produce the video, such as from a chunk transfer or processing timeout.", description: "Meta accepted the request then failed to produce the media (upload session, chunk transfer, processing timeout, or a response with no video id). Inspect `platformError.reason`." } get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdVideos tags: ["Ad Creatives"] @@ -107249,6 +108239,7 @@ paths: /v1/ads/videos/{videoId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdVideoStatus tags: ["Ad Creatives"] @@ -107297,6 +108288,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdVideo tags: ["Ad Creatives"] @@ -107336,6 +108328,7 @@ paths: /v1/ads/interests: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: searchAdInterests deprecated: true @@ -107378,6 +108371,7 @@ paths: /v1/ads/targeting/search: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: searchAdTargeting tags: ["Ad Targeting"] @@ -107596,6 +108590,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/targeting/browse: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: browseAdTargeting tags: ["Ad Targeting"] @@ -107691,6 +108686,7 @@ paths: '501': { description: "accountId is not a Meta connection (platform_not_supported)." } /v1/ads/library: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: searchAdLibrary tags: ["Ad Library"] @@ -107844,6 +108840,7 @@ paths: /v1/ads/targeting/reach-estimate: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: estimateAdReach tags: ["Ad Targeting"] @@ -107922,6 +108919,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/targeting/bid-pricing: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getLinkedInBidPricing tags: ["Ad Targeting"] @@ -107994,6 +108992,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/targeting/supply-forecast: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getLinkedInSupplyForecast tags: ["Ad Targeting"] @@ -108078,6 +109077,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/catalogs: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdCatalogs tags: ["Product Catalogs"] @@ -108127,6 +109127,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { $ref: '#/components/responses/CatalogPermissionDenied' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdCatalog tags: ["Product Catalogs"] @@ -108172,6 +109173,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } /v1/ads/catalogs/{catalogId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdCatalog tags: ["Product Catalogs"] @@ -108199,6 +109201,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdCatalog tags: ["Product Catalogs"] @@ -108226,6 +109229,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/products: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdCatalogProducts tags: ["Product Catalogs"] @@ -108261,6 +109265,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdCatalogProduct tags: ["Product Catalogs"] @@ -108303,6 +109308,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/products/batch: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: batchAdCatalogProducts tags: ["Product Catalogs"] @@ -108355,6 +109361,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/batches/{handle}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdCatalogBatch tags: ["Product Catalogs"] @@ -108396,6 +109403,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/products/{productId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdCatalogProduct tags: ["Product Catalogs"] @@ -108424,6 +109432,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdCatalogProduct tags: ["Product Catalogs"] @@ -108463,6 +109472,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdCatalogProduct tags: ["Product Catalogs"] @@ -108489,6 +109499,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/feeds: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdCatalogFeeds tags: ["Product Catalogs"] @@ -108518,6 +109529,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdCatalogFeed tags: ["Product Catalogs"] @@ -108565,6 +109577,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/feeds/{feedId}/uploads: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdCatalogFeedUploads tags: ["Product Catalogs"] @@ -108595,6 +109608,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdCatalogFeedUpload tags: ["Product Catalogs"] @@ -108635,6 +109649,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/product-sets: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdCatalogProductSets tags: ["Product Catalogs"] @@ -108671,6 +109686,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdCatalogProductSet tags: ["Product Catalogs"] @@ -108711,6 +109727,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/product-sets/{productSetId}: put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdCatalogProductSet tags: ["Product Catalogs"] @@ -108749,6 +109766,7 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdCatalogProductSet tags: ["Product Catalogs"] @@ -108775,6 +109793,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/audiences: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdAudiences tags: ["Ad Audiences"] @@ -108831,6 +109850,7 @@ paths: x-summary: "Ads access is required: legacy plans need the Ads add-on, and usage-based plans include it by default." description: Ads access required. Legacy plans need the Ads add-on; included by default on usage-based plans. post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdAudience tags: ["Ad Audiences"] @@ -109082,6 +110102,7 @@ paths: /v1/ads/audiences/{audienceId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdAudience tags: ["Ad Audiences"] @@ -109117,6 +110138,7 @@ paths: To fix `ad_account_not_selected`, 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. '404': { $ref: '#/components/responses/NotFound' } put: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdAudience tags: ["Ad Audiences"] @@ -109180,6 +110202,7 @@ paths: '501': description: Platform audience updates are only supported on Meta delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdAudience tags: ["Ad Audiences"] @@ -109229,6 +110252,7 @@ paths: /v1/ads/audiences/{audienceId}/users: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: addUsersToAdAudience tags: ["Ad Audiences"] @@ -109313,6 +110337,7 @@ paths: '422': description: Audience is not a customer_list type or has no platform ID yet delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeUsersFromAdAudience tags: ["Ad Audiences"] @@ -109377,6 +110402,7 @@ paths: /v1/ads/audiences/{audienceId}/companies: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: replaceAdAudienceCompanies tags: ["Ad Audiences"] @@ -109451,6 +110477,7 @@ paths: /v1/ads/conversions/quality: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getConversionsQuality tags: [Conversions] @@ -109503,6 +110530,7 @@ paths: '405': { description: "Platform does not expose Event Match Quality (neither Meta nor Pinterest)." } /v1/ads/conversions: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: sendConversions tags: [Conversions] @@ -109781,6 +110809,7 @@ paths: /v1/ads/conversions/adjustments: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: adjustConversions tags: [Conversions] @@ -109932,6 +110961,7 @@ paths: /v1/ads/conversions/actions: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listConversionActions tags: [Conversions] @@ -109997,6 +111027,7 @@ paths: '501': description: Conversion actions are only available for Google Ads (the account's platform is not `googleads`). post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createConversionAction tags: [Conversions] @@ -110087,6 +111118,7 @@ paths: /v1/ads/conversions/goals: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdConversionGoals tags: [Conversions] @@ -110128,6 +111160,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdConversionGoals tags: [Conversions] @@ -110173,6 +111206,7 @@ paths: /v1/ads/conversions/actions/{actionId}: patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateConversionAction tags: [Conversions] @@ -110254,6 +111288,7 @@ paths: /v1/ads/conversions/custom-goals: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listCustomConversionGoals tags: [Conversions] @@ -110288,6 +111323,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createCustomConversionGoal tags: [Conversions] @@ -110333,6 +111369,7 @@ paths: /v1/ads/conversions/custom-goals/{goalId}: patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateCustomConversionGoal tags: [Conversions] @@ -110378,6 +111415,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeCustomConversionGoal tags: [Conversions] @@ -110414,6 +111452,7 @@ paths: /v1/events: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" 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 @@ -110514,6 +111553,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: sendEvents tags: [Conversions] @@ -110657,6 +111697,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/events/paths: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getConversionPaths tags: [Conversions] @@ -110697,6 +111738,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/survey: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getSurveyAnswers tags: [Conversions] @@ -110747,6 +111789,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/ltv: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getLtvCohorts tags: [Conversions] @@ -110794,6 +111837,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/accuracy: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getEventsAccuracy tags: [Conversions] @@ -110877,6 +111921,7 @@ paths: '403': { description: 'No ads access on the account (`ads_addon_required`).' } /v1/events/overview: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getEventsOverview tags: [Conversions] @@ -111000,6 +112045,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/overview/daily: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getEventsOverviewDaily tags: [Conversions] @@ -111152,6 +112198,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/names: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listEventNames tags: [Conversions] @@ -111189,6 +112236,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/{eventId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getEvent tags: [Conversions] @@ -111269,6 +112317,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: restateEvent tags: [Conversions] @@ -111314,6 +112363,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: retractEvent tags: [Conversions] @@ -111353,6 +112403,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/destinations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listEventDestinations tags: [Conversions] @@ -111381,6 +112432,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createEventDestination tags: [Conversions] @@ -111425,6 +112477,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/events/destinations/{destinationId}: delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteEventDestination tags: [Conversions] @@ -111452,6 +112505,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/forwarding-rules: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listForwardingRules tags: [Conversions] @@ -111479,6 +112533,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" 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] @@ -111541,6 +112596,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/events/forwarding-rules/{ruleId}: patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateForwardingRule tags: [Conversions] @@ -111590,6 +112646,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteForwardingRule tags: [Conversions] @@ -111617,6 +112674,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-sites: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listTrackingSites tags: [Conversions] @@ -111653,6 +112711,7 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: createTrackingSite tags: [Conversions] @@ -111722,6 +112781,7 @@ paths: required: true schema: { type: string } get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getTrackingSite tags: [Conversions] @@ -111746,6 +112806,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: updateTrackingSite tags: [Conversions] @@ -111836,6 +112897,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: deleteTrackingSite tags: [Conversions] @@ -111851,6 +112913,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-sites/{siteId}/rotate-key: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: rotateTrackingSiteKey tags: [Conversions] @@ -111882,6 +112945,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-sites/{siteId}/proxy-check: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: checkTrackingSiteProxy tags: [Conversions] @@ -111908,6 +112972,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-links: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: listTrackingLinks tags: [Tracking links] @@ -111948,6 +113013,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: createTrackingLink tags: [Tracking links] @@ -112004,6 +113070,7 @@ paths: required: true schema: { type: string } get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getTrackingLink tags: [Tracking links] @@ -112028,6 +113095,7 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: updateTrackingLink tags: [Tracking links] @@ -112071,6 +113139,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: deleteTrackingLink tags: [Tracking links] @@ -112086,6 +113155,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-links/{linkId}/rotate-postback-token: post: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: rotateTrackingLinkPostbackToken tags: [Tracking links] @@ -112117,6 +113187,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-links/{linkId}/stats: get: + x-oauth-scopes: ["ads:write"] x-resource-group: ads operationId: getTrackingLinkStats tags: [Tracking links] @@ -112153,6 +113224,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/campaigns/{campaignId}/conversion-goals: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getCampaignConversionGoals tags: ["Ad Campaigns"] @@ -112189,6 +113261,7 @@ paths: '409': { description: 'Campaign matches multiple accessible accounts, or the connection needs reconnecting' } '501': { description: Only available on Google Ads campaigns } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateCampaignConversionGoals tags: ["Ad Campaigns"] @@ -112242,6 +113315,7 @@ paths: /v1/ads/conversions/destinations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdConversionDestinations tags: [Conversions] @@ -112351,6 +113425,7 @@ paths: description: LinkedIn rate limit hit. Retry with backoff. post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdConversionDestination tags: [Conversions] @@ -112519,6 +113594,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdConversionDestination tags: [Conversions] @@ -112560,6 +113636,7 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateAdConversionDestination tags: [Conversions] @@ -112640,6 +113717,7 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteAdConversionDestination tags: [Conversions] @@ -112678,6 +113756,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}/associations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdConversionAssociations tags: [Conversions] @@ -112726,6 +113805,7 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: addAdConversionAssociations tags: [Conversions] @@ -112793,6 +113873,7 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeAdConversionAssociations tags: [Conversions] @@ -112850,6 +113931,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}/metrics: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getAdConversionMetrics tags: [Conversions] @@ -112916,6 +113998,7 @@ paths: /v1/ads/conversions/custom-conversions: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listAdCustomConversions tags: [Conversions] @@ -112948,6 +114031,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '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-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createAdCustomConversion tags: [Conversions] @@ -113002,6 +114086,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listConversionDestinations deprecated: true @@ -113094,6 +114179,7 @@ paths: description: LinkedIn rate limit hit. Retry with backoff. post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createConversionDestination deprecated: true @@ -113238,6 +114324,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getConversionDestination deprecated: true @@ -113277,6 +114364,7 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateConversionDestination deprecated: true @@ -113353,6 +114441,7 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteConversionDestination deprecated: true @@ -113384,6 +114473,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listConversionAssociations deprecated: true @@ -113429,6 +114519,7 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: addConversionAssociations deprecated: true @@ -113494,6 +114585,7 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeConversionAssociations deprecated: true @@ -113549,6 +114641,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getConversionMetrics deprecated: true @@ -113603,6 +114696,7 @@ paths: /v1/whatsapp/conversions: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listWhatsAppConversions tags: [WhatsApp] @@ -113672,6 +114766,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: sendWhatsAppConversion tags: [WhatsApp] @@ -113880,6 +114975,7 @@ paths: /v1/ads/messaging: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createMessagingAd tags: ["Messaging Ads"] @@ -114109,6 +115205,7 @@ paths: /v1/ads/call: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createCallAd tags: ["Messaging Ads"] @@ -114193,6 +115290,7 @@ paths: /v1/ads/ctwa: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createCtwaAd tags: ["Messaging Ads"] @@ -114328,6 +115426,7 @@ paths: /v1/accounts/{accountId}/custom-conversions: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: listCustomConversions deprecated: true @@ -114360,6 +115459,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" operationId: createCustomConversion deprecated: true @@ -114405,6 +115505,7 @@ paths: /v1/accounts/{accountId}/business-agent: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentStatus tags: [Business Agent] @@ -114439,6 +115540,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/onboard: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: onboardBusinessAgent tags: [Business Agent] @@ -114476,6 +115578,7 @@ paths: '409': { description: 'Meta rejected the state change (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/settings: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentSettings tags: [Business Agent] @@ -114502,6 +115605,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } patch: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateBusinessAgentSettings tags: [Business Agent] @@ -114560,6 +115664,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/allowlist: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentAllowlist tags: [Business Agent] @@ -114585,6 +115690,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: addBusinessAgentAllowlistEntry tags: [Business Agent] @@ -114614,6 +115720,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/allowlist/{entryId}: delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: removeBusinessAgentAllowlistEntry tags: [Business Agent] @@ -114630,6 +115737,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/business-information: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentBusinessInformation tags: [Business Agent] @@ -114649,6 +115757,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: replaceBusinessAgentBusinessInformation tags: [Business Agent] @@ -114673,6 +115782,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: resetBusinessAgentBusinessInformation tags: [Business Agent] @@ -114688,6 +115798,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/faqs: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentFaqs tags: [Business Agent] @@ -114712,6 +115823,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createBusinessAgentFaq tags: [Business Agent] @@ -114738,6 +115850,7 @@ paths: '409': { description: 'Meta rejected the entry (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/faqs/{faqId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentFaq tags: [Business Agent] @@ -114757,6 +115870,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateBusinessAgentFaq tags: [Business Agent] @@ -114781,6 +115895,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteBusinessAgentFaq tags: [Business Agent] @@ -114797,6 +115912,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/websites: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentWebsites tags: [Business Agent] @@ -114821,6 +115937,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: addBusinessAgentWebsite tags: [Business Agent] @@ -114846,6 +115963,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/websites/{websiteId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentWebsite tags: [Business Agent] @@ -114865,6 +115983,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateBusinessAgentWebsite tags: [Business Agent] @@ -114889,6 +116008,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteBusinessAgentWebsite tags: [Business Agent] @@ -114905,6 +116025,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/files: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentFiles tags: [Business Agent] @@ -114929,6 +116050,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: uploadBusinessAgentFile tags: [Business Agent] @@ -114975,6 +116097,7 @@ paths: '413': { x-summary: "The file is larger than 100 MB: upload a smaller file.", description: 'File larger than 100 MB (code payload_too_large). A multipart body above the request limit is rejected by the host before the route runs.' } /v1/accounts/{accountId}/business-agent/files/{fileId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentFile tags: [Business Agent] @@ -114994,6 +116117,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteBusinessAgentFile tags: [Business Agent] @@ -115010,6 +116134,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/skills: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentSkills tags: [Business Agent] @@ -115034,6 +116159,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createBusinessAgentSkill tags: [Business Agent] @@ -115059,6 +116185,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/skills/{skillId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentSkill tags: [Business Agent] @@ -115078,6 +116205,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateBusinessAgentSkill tags: [Business Agent] @@ -115102,6 +116230,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteBusinessAgentSkill tags: [Business Agent] @@ -115118,6 +116247,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/ui-skills: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentUiSkills tags: [Business Agent] @@ -115147,6 +116277,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createBusinessAgentUiSkill tags: [Business Agent] @@ -115172,6 +116303,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/ui-skills/{uiSkillId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentUiSkill tags: [Business Agent] @@ -115191,6 +116323,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateBusinessAgentUiSkill tags: [Business Agent] @@ -115215,6 +116348,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteBusinessAgentUiSkill tags: [Business Agent] @@ -115231,6 +116365,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentConnectors tags: [Business Agent] @@ -115256,6 +116391,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createBusinessAgentConnector tags: [Business Agent] @@ -115282,6 +116418,7 @@ paths: '409': { description: 'A connector with that name already exists (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentConnector tags: [Business Agent] @@ -115301,6 +116438,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateBusinessAgentConnector tags: [Business Agent] @@ -115325,6 +116463,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteBusinessAgentConnector tags: [Business Agent] @@ -115341,6 +116480,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/credentials: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: setBusinessAgentConnectorCredentials tags: [Business Agent] @@ -115388,6 +116528,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/refresh-tools: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: refreshBusinessAgentConnectorTools tags: [Business Agent] @@ -115409,6 +116550,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/logs: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentConnectorLogs tags: [Business Agent] @@ -115441,6 +116583,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: listBusinessAgentConnectorTools tags: [Business Agent] @@ -115466,6 +116609,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: createBusinessAgentConnectorTool tags: [Business Agent] @@ -115492,6 +116636,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools/{toolId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentConnectorTool tags: [Business Agent] @@ -115512,6 +116657,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: updateBusinessAgentConnectorTool tags: [Business Agent] @@ -115537,6 +116683,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: deleteBusinessAgentConnectorTool tags: [Business Agent] @@ -115554,6 +116701,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools/{toolId}/run: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: runBusinessAgentConnectorTool tags: [Business Agent] @@ -115589,6 +116737,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/budget: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentBudget tags: [Business Agent] @@ -115614,6 +116763,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: replaceBusinessAgentBudget tags: [Business Agent] @@ -115651,6 +116801,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/test-messages: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendBusinessAgentTestMessage tags: [Business Agent] @@ -115682,6 +116833,7 @@ paths: '429': { description: 'Meta hourly test-message limit reached (code rate_limited, Retry-After when known).' } /v1/accounts/{accountId}/business-agent/events: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: sendBusinessAgentEvent tags: [Business Agent] @@ -115719,6 +116871,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/events/{eventId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: getBusinessAgentEvent tags: [Business Agent] @@ -115739,6 +116892,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/evals: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: readBusinessAgentEvals tags: [Business Agent] @@ -115764,6 +116918,7 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" operationId: startBusinessAgentEvalRun tags: [Business Agent] @@ -115798,6 +116953,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/tracking-tags: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listTrackingTags tags: ["Tracking Tags"] @@ -115877,6 +117033,7 @@ paths: '502': { x-summary: "Meta was unreachable or returned an unclassified error: retry the request.", description: 'Meta was unreachable or returned an unclassified error (type: platform_error; the raw Meta payload is in platformError). Retryable.' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createTrackingTag tags: ["Tracking Tags"] @@ -115999,6 +117156,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getTrackingTag tags: ["Tracking Tags"] @@ -116072,6 +117230,7 @@ paths: '502': { x-summary: "Meta was unreachable or returned an unclassified error: retry the request.", description: 'Meta was unreachable or returned an unclassified error (type: platform_error; the raw Meta payload is in platformError). Retryable.' } patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateTrackingTag tags: ["Tracking Tags"] @@ -116185,6 +117344,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/shared-accounts: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listTrackingTagSharedAccounts tags: ["Tracking Tags"] @@ -116228,6 +117388,7 @@ paths: '502': { x-summary: "Meta was unreachable or returned an unclassified error: retry the request.", description: 'Meta was unreachable or returned an unclassified error (type: platform_error; the raw Meta payload is in platformError). Retryable.' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: addTrackingTagSharedAccount tags: ["Tracking Tags"] @@ -116286,6 +117447,7 @@ paths: '502': { x-summary: "Meta was unreachable or returned an unclassified error: retry the request.", description: 'Meta was unreachable or returned an unclassified error (type: platform_error; the raw Meta payload is in platformError). Retryable.' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeTrackingTagSharedAccount tags: ["Tracking Tags"] @@ -116322,6 +117484,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/install: post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: installTrackingTagOnStore tags: ["Tracking Tags"] @@ -116515,6 +117678,7 @@ paths: reason: { $ref: '#/components/schemas/TrackingTagInstallBlockedReason' } '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-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getTrackingTagStoreInstall tags: ["Tracking Tags"] @@ -116581,6 +117745,7 @@ paths: '501': { description: 'The platform does not offer this operation (code `platform_not_supported`); the message names the reason and the alternative.' } '409': { $ref: '#/components/responses/StoreReconnectRequired' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeTrackingTagFromStore tags: ["Tracking Tags"] @@ -116631,6 +117796,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/events: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listTrackingTagEvents tags: ["Tracking Tags"] @@ -116719,6 +117885,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: 'The platform has no conversion-event objects (code `platform_not_supported`); the message names the alternative.' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: createTrackingTagEvent tags: ["Tracking Tags"] @@ -116838,6 +118005,7 @@ paths: '501': { description: 'The platform cannot create conversion events through its API (code `platform_not_supported`).' } /v1/accounts/{accountId}/tracking-tags/{tagId}/events/{eventId}: patch: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: updateTrackingTagEvent tags: ["Tracking Tags"] @@ -116901,6 +118069,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: 'The platform cannot update conversion events through its API (code `platform_not_supported`).' } delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: deleteTrackingTagEvent tags: ["Tracking Tags"] @@ -116964,6 +118133,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/users: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listTrackingTagUsers tags: ["Tracking Tags"] @@ -117003,6 +118173,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: 'The platform has no tag user assignment (code `platform_not_supported`).' } post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: assignTrackingTagUser tags: ["Tracking Tags"] @@ -117052,6 +118223,7 @@ paths: '501': { description: 'The platform has no tag user assignment (code `platform_not_supported`).' } /v1/accounts/{accountId}/tracking-tags/{tagId}/users/{userId}: delete: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: removeTrackingTagUser tags: ["Tracking Tags"] @@ -117088,6 +118260,7 @@ paths: '501': { description: 'The platform cannot remove tag users through its API (code `platform_not_supported`); the message says where to do it.' } /v1/accounts/{accountId}/tracking-tags/{tagId}/partners: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: listTrackingTagPartners tags: ["Tracking Tags"] @@ -117127,6 +118300,7 @@ paths: '501': { description: 'The platform has no partner sharing (code `platform_not_supported`).' } /v1/accounts/{accountId}/tracking-tags/{tagId}/diagnostics: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getTrackingTagDiagnostics tags: ["Tracking Tags"] @@ -117166,6 +118340,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/stats: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getTrackingTagStats tags: ["Tracking Tags"] @@ -117288,6 +118463,7 @@ paths: /v1/accounts/{accountId}/blogs: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: listBlogs tags: ["Blogs"] @@ -117333,6 +118509,7 @@ paths: '502': { description: 'The connected platform returned an unclassified upstream error.' } post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: createBlog tags: ["Blogs"] @@ -117377,6 +118554,7 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: getBlog tags: ["Blogs"] @@ -117411,6 +118589,7 @@ paths: '502': { description: 'The connected platform returned an unclassified upstream error.' } patch: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: updateBlog tags: ["Blogs"] @@ -117455,6 +118634,7 @@ paths: '429': { x-summary: "Zernio or Shopify rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by Shopify. Retry later.' } delete: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: deleteBlog tags: ["Blogs"] @@ -117482,6 +118662,7 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}/articles: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: listBlogArticles tags: ["Blogs"] @@ -117535,6 +118716,7 @@ paths: '502': { description: 'The connected platform returned an unclassified upstream error.' } post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: createBlogArticle tags: ["Blogs"] @@ -117640,6 +118822,7 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}: get: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: getBlogArticle tags: ["Blogs"] @@ -117677,6 +118860,7 @@ paths: '502': { description: 'The connected platform returned an unclassified upstream error.' } patch: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: updateBlogArticle tags: ["Blogs"] @@ -117756,6 +118940,7 @@ paths: '502': { x-summary: "The connected platform returned an unclassified upstream error: check the article state before repeating the request.", description: 'The connected platform returned an unclassified upstream error. Article mutations are not blindly retried.' } delete: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: deleteBlogArticle tags: ["Blogs"] @@ -117788,6 +118973,7 @@ paths: /v1/accounts/{accountId}/products: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listProducts deprecated: true @@ -117836,6 +119022,7 @@ paths: /v1/accounts/{accountId}/products/{productId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getProduct deprecated: true @@ -117871,6 +119058,7 @@ paths: '429': { x-summary: "Zernio or Shopify rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by Shopify. Retry later.' } patch: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateProduct deprecated: true @@ -117964,6 +119152,7 @@ paths: /v1/commerce/store: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getCommerceStore tags: ["Commerce"] @@ -117999,6 +119188,7 @@ paths: /v1/commerce/orders: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: listCommerceOrders tags: @@ -118120,6 +119310,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/orders/{orderId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: getCommerceOrder tags: @@ -118170,6 +119361,7 @@ paths: 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-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: updateCommerceOrder tags: @@ -118240,6 +119432,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/orders/{orderId}/refunds: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: createCommerceRefund tags: @@ -118317,6 +119510,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/orders/{orderId}/edits: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: createCommerceOrderEdit tags: @@ -118405,6 +119599,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/orders/{orderId}/cancel: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: cancelCommerceOrder tags: @@ -118472,6 +119667,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/draft-orders: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: createCommerceDraftOrder tags: @@ -118574,6 +119770,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/draft-orders/{draftOrderId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: getCommerceDraftOrder tags: @@ -118621,6 +119818,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/draft-orders/{draftOrderId}/invoice: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: sendCommerceDraftOrderInvoice tags: @@ -118674,6 +119872,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/customers: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: listCommerceCustomers tags: @@ -118751,6 +119950,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/customers/{customerId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: commerce operationId: getCommerceCustomer tags: @@ -118798,6 +119998,7 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/products: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceProducts tags: ["Commerce"] @@ -118836,6 +120037,7 @@ paths: '404': { description: 'Account not found or not accessible (code account_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceProduct tags: ["Commerce"] @@ -118933,6 +120135,7 @@ paths: /v1/commerce/products/state: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: changeCommerceProductState tags: ["Commerce"] @@ -118979,6 +120182,7 @@ paths: /v1/commerce/products/{productId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getCommerceProduct tags: ["Commerce"] @@ -119004,6 +120208,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or product not found (code product_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateCommerceProduct tags: ["Commerce"] @@ -119054,6 +120259,7 @@ paths: /v1/commerce/products/{productId}/price: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateCommerceProductPrices tags: ["Commerce"] @@ -119111,6 +120317,7 @@ paths: /v1/commerce/collections: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceCollections tags: ["Commerce"] @@ -119144,6 +120351,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or collection not found (code resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceCollection tags: ["Commerce"] @@ -119197,6 +120405,7 @@ paths: /v1/commerce/collections/{collectionId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getCommerceCollection tags: ["Commerce"] @@ -119223,6 +120432,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or collection not found (code resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateCommerceCollection tags: ["Commerce"] @@ -119272,6 +120482,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or collection not found (code resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceCollection tags: ["Commerce"] @@ -119301,6 +120512,7 @@ paths: /v1/commerce/collections/{collectionId}/products: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: changeCommerceCollectionProducts tags: ["Commerce"] @@ -119345,6 +120557,7 @@ paths: /v1/commerce/products/{productId}/variants: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceProductVariants tags: ["Commerce"] @@ -119405,6 +120618,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceProductVariants tags: ["Commerce"] @@ -119434,6 +120648,7 @@ paths: /v1/commerce/products/{productId}/options: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceProductOptions tags: ["Commerce"] @@ -119480,6 +120695,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceProductOptions tags: ["Commerce"] @@ -119510,6 +120726,7 @@ paths: /v1/commerce/products/{productId}/images: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: addCommerceProductImages tags: ["Commerce"] @@ -119555,6 +120772,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: removeCommerceProductImages tags: ["Commerce"] @@ -119585,6 +120803,7 @@ paths: /v1/commerce/products/{productId}/images/reorder: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: reorderCommerceProductImages tags: ["Commerce"] @@ -119623,6 +120842,7 @@ paths: /v1/commerce/products/{productId}/duplicate: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: duplicateCommerceProduct tags: ["Commerce"] @@ -119663,6 +120883,7 @@ paths: /v1/commerce/products/{productId}/metafields: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceProductMetafields tags: ["Commerce"] @@ -119689,6 +120910,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: setCommerceProductMetafields tags: ["Commerce"] @@ -119729,6 +120951,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceProductMetafields tags: ["Commerce"] @@ -119758,6 +120981,7 @@ paths: /v1/commerce/products/{productId}/channels: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: changeCommerceProductChannels tags: ["Commerce"] @@ -119799,6 +121023,7 @@ paths: /v1/commerce/collections/{collectionId}/metafields: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceCollectionMetafields tags: ["Commerce"] @@ -119825,6 +121050,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: setCommerceCollectionMetafields tags: ["Commerce"] @@ -119865,6 +121091,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceCollectionMetafields tags: ["Commerce"] @@ -119894,6 +121121,7 @@ paths: /v1/commerce/collections/{collectionId}/channels: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: changeCommerceCollectionChannels tags: ["Commerce"] @@ -119935,6 +121163,7 @@ paths: /v1/commerce/products/tags: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: changeCommerceProductTags tags: ["Commerce"] @@ -119980,6 +121209,7 @@ paths: /v1/commerce/collections/{collectionId}/reorder: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: reorderCommerceCollectionProducts tags: ["Commerce"] @@ -120027,6 +121257,7 @@ paths: /v1/commerce/pages: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommercePages tags: ["Commerce"] @@ -120056,6 +121287,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommercePage tags: ["Commerce"] @@ -120094,6 +121326,7 @@ paths: /v1/commerce/pages/{pageId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getCommercePage tags: ["Commerce"] @@ -120120,6 +121353,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateCommercePage tags: ["Commerce"] @@ -120158,6 +121392,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommercePage tags: ["Commerce"] @@ -120187,6 +121422,7 @@ paths: /v1/commerce/locations: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceLocations tags: ["Commerce"] @@ -120215,6 +121451,7 @@ paths: /v1/commerce/inventory: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceInventory tags: ["Commerce"] @@ -120244,6 +121481,7 @@ paths: /v1/commerce/products/{productId}/inventory: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: changeCommerceInventory tags: ["Commerce"] @@ -120293,6 +121531,7 @@ paths: /v1/commerce/channels: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceChannels tags: ["Commerce"] @@ -120321,6 +121560,7 @@ paths: /v1/commerce/discounts: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceDiscounts tags: ["Commerce"] @@ -120350,6 +121590,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceDiscount tags: ["Commerce"] @@ -120403,6 +121644,7 @@ paths: /v1/commerce/discounts/{discountId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getCommerceDiscount tags: ["Commerce"] @@ -120429,6 +121671,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateCommerceDiscount tags: ["Commerce"] @@ -120475,6 +121718,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceDiscount tags: ["Commerce"] @@ -120504,6 +121748,7 @@ paths: /v1/commerce/discounts/{discountId}/state: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: setCommerceDiscountActive tags: ["Commerce"] @@ -120542,6 +121787,7 @@ paths: /v1/commerce/discounts/{discountId}/codes: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: addCommerceDiscountCodes tags: ["Commerce"] @@ -120580,6 +121826,7 @@ paths: /v1/commerce/redirects: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceRedirects tags: ["Commerce"] @@ -120609,6 +121856,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceRedirect tags: ["Commerce"] @@ -120645,6 +121893,7 @@ paths: /v1/commerce/redirects/{redirectId}: patch: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateCommerceRedirect tags: ["Commerce"] @@ -120681,6 +121930,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceRedirect tags: ["Commerce"] @@ -120710,6 +121960,7 @@ paths: /v1/commerce/menus: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceMenus tags: ["Commerce"] @@ -120735,6 +121986,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceMenu tags: ["Commerce"] @@ -120775,6 +122027,7 @@ paths: /v1/commerce/menus/{menuId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getCommerceMenu tags: ["Commerce"] @@ -120801,6 +122054,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateCommerceMenu tags: ["Commerce"] @@ -120842,6 +122096,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceMenu tags: ["Commerce"] @@ -120871,6 +122126,7 @@ paths: /v1/commerce/metaobject-definitions: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceMetaobjectDefinitions tags: ["Commerce"] @@ -120899,6 +122155,7 @@ paths: /v1/commerce/metaobjects: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceMetaobjects tags: ["Commerce"] @@ -120928,6 +122185,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceMetaobject tags: ["Commerce"] @@ -120974,6 +122232,7 @@ paths: /v1/commerce/metaobjects/{metaobjectId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getCommerceMetaobject tags: ["Commerce"] @@ -121000,6 +122259,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: updateCommerceMetaobject tags: ["Commerce"] @@ -121046,6 +122306,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceMetaobject tags: ["Commerce"] @@ -121075,6 +122336,7 @@ paths: /v1/commerce/markets: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceMarkets tags: ["Commerce"] @@ -121103,6 +122365,7 @@ paths: /v1/commerce/price-lists: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommercePriceLists tags: ["Commerce"] @@ -121131,6 +122394,7 @@ paths: /v1/commerce/price-lists/{priceListId}/prices: put: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: setCommercePriceListPrices tags: ["Commerce"] @@ -121178,6 +122442,7 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommercePriceListPrices tags: ["Commerce"] @@ -121209,6 +122474,7 @@ paths: /v1/commerce/marketing-activities: put: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: upsertCommerceMarketingActivity tags: ["Commerce"] @@ -121271,6 +122537,7 @@ paths: /v1/commerce/marketing-activities/{remoteId}: delete: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceMarketingActivity tags: ["Commerce"] @@ -121300,6 +122567,7 @@ paths: /v1/commerce/marketing-activities/{remoteId}/engagements: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: addCommerceMarketingEngagement tags: ["Commerce"] @@ -121346,6 +122614,7 @@ paths: /v1/commerce/catalog-syncs: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: listCommerceCatalogSyncs tags: ["Commerce"] @@ -121371,6 +122640,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: 'Account not found or not accessible (code account_not_found).' } post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: createCommerceCatalogSync tags: ["Commerce"] @@ -121422,6 +122692,7 @@ paths: /v1/commerce/catalog-syncs/{syncId}: get: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: getCommerceCatalogSync tags: ["Commerce"] @@ -121445,6 +122716,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: 'Catalog sync not found (code resource_not_found).' } delete: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: deleteCommerceCatalogSync tags: ["Commerce"] @@ -121471,6 +122743,7 @@ paths: /v1/commerce/catalog-syncs/{syncId}/run: post: + x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" operationId: runCommerceCatalogSync tags: ["Commerce"] @@ -121497,6 +122770,7 @@ paths: /v1/verify/verifications: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: createVerification tags: [Verify] @@ -121562,6 +122836,7 @@ paths: /v1/verify/verifications/{verificationId}: get: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: getVerification tags: [Verify] @@ -121587,6 +122862,7 @@ paths: /v1/verify/verifications/{verificationId}/check: post: + x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" operationId: checkVerification tags: [Verify] @@ -121628,6 +122904,7 @@ paths: /v1/ads/pixels: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: 'listTikTokAdPixels' summary: 'List TikTok ad pixels' @@ -121719,6 +122996,7 @@ paths: description: 'Pixel Management permission is missing (code reconnect_required). Reconnect TikTok Ads to grant it.' /v1/ads/partnership-content: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: 'listPartnershipAdContent' summary: 'List partnership ad content' @@ -121794,6 +123072,7 @@ paths: description: 'The advertiser Instagram Business Account could not be resolved.' /v1/ads/partnership-permissions: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: 'listPartnershipAdPermissions' summary: 'List partnership permissions' @@ -121843,6 +123122,7 @@ paths: "422": description: 'The advertiser Instagram Business Account could not be resolved.' post: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: 'setPartnershipAdPermission' summary: 'Set partnership permission' @@ -121900,6 +123180,7 @@ paths: description: 'The advertiser Instagram Business Account could not be resolved.' /v1/media/prepare: post: + x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" operationId: prepareMedia tags: [Media] @@ -122093,6 +123374,7 @@ paths: /v1/conversion-audit/meta-audit: get: + x-oauth-scopes: ["ads:write"] x-resource-group: "ads" operationId: getMetaConversionAudit tags: [Conversion Audit] @@ -122177,6 +123459,7 @@ paths: /v1/conversion-audit/monitors: get: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: listConversionAuditMonitors tags: @@ -122204,6 +123487,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { $ref: '#/components/responses/ResourceGroupForbidden' } post: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: createConversionAuditMonitor tags: @@ -122262,6 +123546,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/conversion-audit/monitors/{monitorId}: delete: + x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts operationId: deleteConversionAuditMonitor tags: @@ -122368,6 +123653,7 @@ paths: $ref: '#/components/responses/RateLimited' /v1/creator-campaigns: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: createCreatorCampaign tags: [Creator Campaigns] @@ -122405,6 +123691,7 @@ paths: '409': { $ref: '#/components/responses/IdempotencyKeyInFlight' } '422': { $ref: '#/components/responses/IdempotencyKeyReused' } get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCreatorCampaigns tags: [Creator Campaigns] @@ -122449,6 +123736,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: getCreatorCampaign tags: [Creator Campaigns] @@ -122477,6 +123765,7 @@ paths: '403': { $ref: '#/components/responses/CreatorCampaignForbidden' } '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } patch: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: updateCreatorCampaign tags: [Creator Campaigns] @@ -122516,6 +123805,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/budget: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: raiseCreatorCampaignBudget tags: [Creator Campaigns] @@ -122563,6 +123853,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/activate: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: activateCreatorCampaign tags: [Creator Campaigns] @@ -122595,6 +123886,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/pause: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: pauseCreatorCampaign tags: [Creator Campaigns] @@ -122626,6 +123918,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/close: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: closeCreatorCampaign tags: [Creator Campaigns] @@ -122660,6 +123953,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: createCampaignParticipant tags: [Creator Campaigns] @@ -122714,6 +124008,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } '422': { $ref: '#/components/responses/IdempotencyKeyReused' } get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCampaignParticipants tags: [Creator Campaigns] @@ -122755,6 +124050,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/participants/{participantId}: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: getCampaignParticipant tags: [Creator Campaigns] @@ -122789,6 +124085,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/approve: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: approveCampaignParticipant tags: [Creator Campaigns] @@ -122836,6 +124133,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/deny: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: denyCampaignParticipant tags: [Creator Campaigns] @@ -122872,6 +124170,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/suspend: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: suspendCampaignParticipant tags: [Creator Campaigns] @@ -122907,6 +124206,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/reinstate: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: reinstateCampaignParticipant tags: [Creator Campaigns] @@ -122942,6 +124242,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/remove: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: removeCampaignParticipant tags: [Creator Campaigns] @@ -122978,6 +124279,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/move: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: moveCampaignParticipant tags: [Creator Campaigns] @@ -123039,6 +124341,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/resend-invite: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: resendCampaignParticipantInvite tags: [Creator Campaigns] @@ -123080,6 +124383,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/settle: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: settleCampaignParticipant tags: [Creator Campaigns] @@ -123141,6 +124445,7 @@ paths: schema: { type: string } description: Campaign ID. post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: createCampaignPayoutBatch tags: [Creator Campaigns] @@ -123222,6 +124527,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } '429': { $ref: '#/components/responses/PaymentAttemptsLimited' } get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCampaignPayoutBatches tags: [Creator Campaigns] @@ -123253,6 +124559,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/payout-batches/preview: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: previewCampaignPayoutBatch tags: [Creator Campaigns] @@ -123301,6 +124608,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/invite-link: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: createCampaignInviteLink tags: [Creator Campaigns] @@ -123333,6 +124641,7 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/submissions: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCampaignSubmissions tags: [Creator Campaigns] @@ -123402,6 +124711,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/submissions/{submissionId}: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: getCampaignSubmission tags: [Creator Campaigns] @@ -123436,6 +124746,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/approve: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: approveCampaignSubmission tags: [Creator Campaigns] @@ -123491,6 +124802,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reject: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: rejectCampaignSubmission tags: [Creator Campaigns] @@ -123539,6 +124851,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reopen: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: reopenCampaignSubmission tags: [Creator Campaigns] @@ -123587,6 +124900,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/drafts: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCampaignDrafts tags: [Creator Campaigns] @@ -123635,6 +124949,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/drafts/{draftId}: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: getCampaignDraft tags: [Creator Campaigns] @@ -123673,6 +124988,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/drafts/{draftId}/approve: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: approveCampaignDraft tags: [Creator Campaigns] @@ -123712,6 +125028,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/drafts/{draftId}/request-revision: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: requestCampaignDraftRevision tags: [Creator Campaigns] @@ -123771,6 +125088,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/drafts/{draftId}/reject: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: rejectCampaignDraft tags: [Creator Campaigns] @@ -123819,6 +125137,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/samples: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCampaignSamples tags: [Creator Campaigns] @@ -123865,6 +125184,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/samples/{sampleId}/approve: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: approveCampaignSample tags: [Creator Campaigns] @@ -123917,6 +125237,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/creator-campaigns/{campaignId}/samples/{sampleId}/decline: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: declineCampaignSample tags: [Creator Campaigns] @@ -123963,6 +125284,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/samples/{sampleId}/ship: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: shipCampaignSample tags: [Creator Campaigns] @@ -124009,6 +125331,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/payables: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCampaignPayables tags: [Creator Campaigns] @@ -124041,6 +125364,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/adjustments: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: createCampaignAdjustment tags: [Creator Campaigns] @@ -124086,6 +125410,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/ledger: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCampaignLedger tags: [Creator Campaigns] @@ -124145,6 +125470,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/orders: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: listCampaignOrders tags: [Creator Campaigns] @@ -124226,6 +125552,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/report: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: getCampaignReport tags: [Creator Campaigns] @@ -124256,6 +125583,7 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/ads/launch: post: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: launchCampaignAds tags: [Creator Campaigns] @@ -124337,6 +125665,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/ad-results: get: + x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" operationId: getCampaignAdResults tags: [Creator Campaigns] diff --git a/scripts/generate_mcp_tools.py b/scripts/generate_mcp_tools.py index 834aa265..e54db485 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,28 @@ def generate_tool_handler( return "\n".join(lines) +def declared_oauth_scope(scopes: list[str], read_only: bool) -> str | None: + """The one scope a tool declares, out of the spec's x-oauth-scopes (any of which reaches it). + + A read prefers 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" + return next((s for s in scopes if s.endswith(preferred)), scopes[0] if scopes else None) + + +def oauth_scope_table(operations: list[dict[str, Any]]) -> list[str]: + scoped = sorted((op["tool_name"], op["oauth_scope"]) for op in operations if op["oauth_scope"]) + return [ + "", + "", + "# The OAuth scope each tool declares (securitySchemes), from the spec's x-oauth-scopes.", + "TOOL_OAUTH_SCOPE: dict[str, str] = {", + *(f' "{name}": "{scope}",' for name, scope in scoped), + "}", + ] + + def main() -> int: """Main entry point.""" project_root = Path(__file__).parent.parent @@ -839,6 +911,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 +919,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_scope": declared_oauth_scope(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], @@ -987,6 +1057,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 +1067,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..ffba9b2a 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]"] = {} @@ -158,24 +159,27 @@ def _touch(token_key: str) -> None: 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 +226,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 +311,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..9ef5c919 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_SCOPE 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( + scope_by_tool=TOOL_OAUTH_SCOPE, + 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..149d9925 --- /dev/null +++ b/src/late/mcp/chatgpt_tools.py @@ -0,0 +1,145 @@ +"""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_SCOPE, 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. Reads +# only, from resource groups a link reaches with the scopes ChatGPT already +# asks for plus messaging:write for the inbox: ads and contacts reads wait, +# because their only scopes (ads:write, automations:write) also allow spending +# and sending. Sends, 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", + "broadcasts_list_broadcast_recipients", + "reviews_list_inbox_reviews", + "comment_automations_list_comment_automations", + "instagram_get_instagram_story_insights", + "analytics_get_tik_tok_account_insights", + "workflows_list_workflow_executions", + "accounts_get_google_business_location_details", + "analytics_get_google_business_performance", + "analytics_get_you_tube_daily_views", + "analytics_get_post_timeline", + "accounts_get_instagram_follow_status", + "accounts_get_follower_stats", + "analytics_get_instagram_demographics", + "whatsapp_get_whats_app_templates", + "analytics_get_linked_in_post_analytics", + "broadcasts_get_broadcast", + "workflows_get_workflow", + "instagram_list_instagram_stories", + "analytics_get_facebook_page_insights", + "analytics_get_instagram_follower_history", + "profiles_get_profile", + "instagram_get_instagram_publishing_limit", + "analytics_get_you_tube_video_retention", + "mentions_list_inbox_mentions", + "accounts_get_tik_tok_creator_info", + "analytics_get_you_tube_channel_insights", +) + +CHATGPT_GENERATED_TOOLS = WAVE_1 + + +_SUMMARY_MAX = 400 +_PARAM_MAX = 160 +_ARGS_HEADING = re.compile(r"\n[ \t]*Args:\n") +_PARAM_LINE = re.compile(r"^([ \t]+)(\w+):\s*(.*)$") + + +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], _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()] + lines = [_clip(p, _SUMMARY_MAX) for p in paragraphs[:2]] + arguments = _argument_lines(rest[0]) if rest else [] + if arguments: + lines += ["Args:", *arguments] + return "\n\n".join(lines[:2]) + ("\n\n" + "\n".join(lines[2:]) if arguments else "") + + +def oauth_scopes_of(tools: Iterable[str]) -> list[str]: + """The scopes these generated tools declare, deduplicated in first-use order.""" + return list(dict.fromkeys(TOOL_OAUTH_SCOPE[tool] for tool in tools)) + + +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 = [TOOL_OAUTH_SCOPE[fn.__name__]] + 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/generated_tools.py b/src/late/mcp/generated_tools.py index 1ea2af5c..36fee4cd 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( @@ -12664,9 +12664,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( @@ -13731,9 +13731,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( @@ -13796,9 +13796,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( @@ -14224,7 +14224,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( @@ -14708,9 +14708,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: @@ -15022,9 +15022,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( @@ -15083,9 +15083,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( @@ -15146,9 +15146,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( @@ -16529,9 +16529,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( @@ -16593,9 +16593,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( @@ -16667,9 +16667,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( @@ -16776,9 +16776,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( @@ -17750,9 +17750,9 @@ def automations_list_automation_checks( @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( @@ -17959,9 +17959,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: @@ -30720,9 +30720,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( @@ -35260,9 +35260,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( @@ -40072,9 +40072,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( @@ -41280,7 +41280,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( @@ -45847,9 +45847,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( @@ -45930,9 +45930,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( @@ -45977,9 +45977,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( @@ -46047,9 +46047,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: @@ -46621,9 +46621,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( @@ -46815,9 +46815,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( @@ -50026,7 +50026,7 @@ def reach_and_frequency_reserve_rf_prediction( title="Search posts", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def reddit_search_reddit( @@ -50072,7 +50072,7 @@ def reddit_search_reddit( title="Get subreddit feed", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def reddit_get_reddit_feed( @@ -50115,7 +50115,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( @@ -53061,9 +53061,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: @@ -53578,7 +53578,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( @@ -53642,7 +53642,7 @@ def twitter_engagement_search_tweets( title="Look up a tweet", readOnlyHint=True, destructiveHint=False, - openWorldHint=False, + openWorldHint=True, ) ) def twitter_engagement_get_tweet( @@ -54070,9 +54070,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: @@ -54112,9 +54112,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( @@ -54150,9 +54150,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: @@ -59204,9 +59204,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( @@ -60324,3 +60324,1336 @@ def workspaces_create_workspace_api_key( return _format_response(response) except Exception as e: raise ToolError(f"Error: {e}") from e + + +# The OAuth scope each tool declares (securitySchemes), from the spec's x-oauth-scopes. +TOOL_OAUTH_SCOPE: dict[str, str] = { + "account_groups_create_account_group": "accounts:write", + "account_groups_delete_account_group": "accounts:write", + "account_groups_list_account_groups": "accounts:read", + "account_groups_update_account_group": "accounts:write", + "account_settings_delete_instagram_ice_breakers": "accounts:write", + "account_settings_delete_messenger_get_started": "accounts:write", + "account_settings_delete_messenger_greeting": "accounts:write", + "account_settings_delete_messenger_ice_breakers": "accounts:write", + "account_settings_delete_messenger_menu": "accounts:write", + "account_settings_delete_telegram_commands": "accounts:write", + "account_settings_get_facebook_page_info": "accounts:read", + "account_settings_get_instagram_ice_breakers": "accounts:read", + "account_settings_get_messenger_get_started": "accounts:read", + "account_settings_get_messenger_greeting": "accounts:read", + "account_settings_get_messenger_ice_breakers": "accounts:read", + "account_settings_get_messenger_menu": "accounts:read", + "account_settings_get_telegram_commands": "accounts:read", + "account_settings_get_wechat_server_config": "accounts:read", + "account_settings_set_instagram_ice_breakers": "accounts:write", + "account_settings_set_messenger_get_started": "accounts:write", + "account_settings_set_messenger_greeting": "accounts:write", + "account_settings_set_messenger_ice_breakers": "accounts:write", + "account_settings_set_messenger_menu": "accounts:write", + "account_settings_set_telegram_commands": "accounts:write", + "account_settings_update_facebook_page_info": "accounts:write", + "accounts_batch_get_google_business_reviews": "messaging:write", + "accounts_create_google_business_media": "accounts:write", + "accounts_create_google_business_place_action": "accounts:write", + "accounts_delete_account": "accounts:write", + "accounts_delete_google_business_media": "accounts:write", + "accounts_delete_google_business_place_action": "accounts:write", + "accounts_delete_google_business_review_reply": "messaging:write", + "accounts_get_account": "accounts:read", + "accounts_get_account_health": "accounts:read", + "accounts_get_account_posts": "posts:read", + "accounts_get_all_accounts_health": "accounts:read", + "accounts_get_bluesky_settings": "accounts:read", + "accounts_get_follower_stats": "analytics:read", + "accounts_get_gmb_attribute_metadata": "accounts:read", + "accounts_get_gohighlevel_funnel_tracking": "ads:write", + "accounts_get_gohighlevel_settings": "accounts:read", + "accounts_get_google_business_attributes": "accounts:read", + "accounts_get_google_business_food_menus": "accounts:read", + "accounts_get_google_business_location_details": "accounts:read", + "accounts_get_google_business_review": "messaging:write", + "accounts_get_google_business_reviews": "messaging:write", + "accounts_get_hub_spot_settings": "accounts:read", + "accounts_get_instagram_follow_status": "accounts:read", + "accounts_get_linked_in_mentions": "accounts:read", + "accounts_get_salesforce_settings": "accounts:read", + "accounts_get_slack_settings": "accounts:read", + "accounts_get_stripe_settings": "accounts:read", + "accounts_get_tik_tok_creator_info": "accounts:read", + "accounts_grant_business_partner": "accounts:write", + "accounts_list_accounts": "accounts:read", + "accounts_list_business_partners": "accounts:read", + "accounts_list_gohighlevel_audience_syncs": "ads:write", + "accounts_list_google_business_media": "accounts:read", + "accounts_list_google_business_place_actions": "accounts:read", + "accounts_list_hub_spot_contact_properties": "accounts:read", + "accounts_list_tik_tok_commercial_music": "accounts:read", + "accounts_move_account_to_profile": "accounts:write", + "accounts_reply_to_google_business_review": "messaging:write", + "accounts_revoke_business_partner": "accounts:write", + "accounts_search_tik_tok_locations": "accounts:read", + "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_update_bluesky_settings": "accounts:write", + "accounts_update_gohighlevel_settings": "accounts:write", + "accounts_update_google_business_attributes": "accounts:write", + "accounts_update_google_business_food_menus": "accounts:write", + "accounts_update_google_business_location_details": "accounts:write", + "accounts_update_google_business_place_action": "accounts:write", + "accounts_update_hub_spot_settings": "accounts:write", + "accounts_update_salesforce_settings": "accounts:write", + "accounts_update_slack_settings": "accounts:write", + "accounts_update_stripe_settings": "accounts:write", + "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", + "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:write", + "ad_accounts_get_ad_account_finance": "ads:write", + "ad_accounts_get_ad_account_health": "ads:write", + "ad_accounts_get_ad_account_hierarchy": "ads:write", + "ad_accounts_get_ad_account_live_entities": "ads:write", + "ad_accounts_get_ad_comments": "messaging:write", + "ad_accounts_get_ad_negative_keyword_list": "ads:write", + "ad_accounts_get_ads_activity_log": "ads:write", + "ad_accounts_get_dsa_defaults": "ads:write", + "ad_accounts_get_dsa_recommendations": "ads:write", + "ad_accounts_get_ios_fourteen_campaign_limits": "ads:write", + "ad_accounts_get_value_rule_set": "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:write", + "ad_accounts_list_account_sitelinks": "ads:write", + "ad_accounts_list_account_structured_snippets": "ads:write", + "ad_accounts_list_ad_account_user_invitation_approvals": "ads:write", + "ad_accounts_list_ad_account_user_invitations": "ads:write", + "ad_accounts_list_ad_account_users": "ads:write", + "ad_accounts_list_ad_accounts": "ads:write", + "ad_accounts_list_ad_labels": "ads:write", + "ad_accounts_list_ad_negative_keyword_lists": "ads:write", + "ad_accounts_list_ad_studies": "ads:write", + "ad_accounts_list_ads_business_centers": "ads:write", + "ad_accounts_list_ads_instagram_accounts": "ads:write", + "ad_accounts_list_ads_instagram_posts": "ads:write", + "ad_accounts_list_advertisable_applications": "ads:write", + "ad_accounts_list_custom_conversions": "accounts:read", + "ad_accounts_list_high_demand_periods": "ads:write", + "ad_accounts_list_meta_business_users": "ads:write", + "ad_accounts_list_meta_businesses": "ads:write", + "ad_accounts_list_page_users": "ads:write", + "ad_accounts_list_tik_tok_ad_pixels": "ads:write", + "ad_accounts_list_value_rule_sets": "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:write", + "ad_audiences_list_ad_audiences": "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:write", + "ad_campaign_results_get_campaign_result_profit": "ads:write", + "ad_campaign_results_get_campaign_results_totals": "ads:write", + "ad_campaign_results_get_campaign_results_upload": "ads:write", + "ad_campaign_results_get_tag_new_ads": "ads:write", + "ad_campaign_results_list_campaign_result_metrics": "ads:write", + "ad_campaign_results_list_campaign_results": "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:write", + "ad_campaigns_get_ad_campaign_details": "ads:write", + "ad_campaigns_get_ad_review": "ads:write", + "ad_campaigns_get_ad_set_details": "ads:write", + "ad_campaigns_get_ad_set_targeting": "ads:write", + "ad_campaigns_get_ad_tree": "ads:write", + "ad_campaigns_get_ads_timeline": "ads:write", + "ad_campaigns_get_campaign_ad_schedule": "ads:write", + "ad_campaigns_get_campaign_bidding": "ads:write", + "ad_campaigns_get_campaign_conversion_goals": "ads:write", + "ad_campaigns_get_campaign_targeting": "ads:write", + "ad_campaigns_get_google_asset_group": "ads:write", + "ad_campaigns_get_tik_tok_smart_plus_ad_review": "ads:write", + "ad_campaigns_list_ad_campaigns": "ads:write", + "ad_campaigns_list_ad_group_assets": "ads:write", + "ad_campaigns_list_ad_keywords": "ads:write", + "ad_campaigns_list_ad_sets": "ads:write", + "ad_campaigns_list_ads": "ads:write", + "ad_campaigns_list_ads_alerts": "ads:write", + "ad_campaigns_list_ads_by_performance": "ads:write", + "ad_campaigns_list_bid_strategies": "ads:write", + "ad_campaigns_list_campaign_assets": "ads:write", + "ad_campaigns_list_campaign_negative_keyword_lists": "ads:write", + "ad_campaigns_list_campaign_negative_keywords": "ads:write", + "ad_campaigns_list_google_asset_groups": "ads:write", + "ad_campaigns_list_google_recommendations": "ads:write", + "ad_campaigns_list_shared_budgets": "ads:write", + "ad_campaigns_list_tik_tok_smart_plus_reviews": "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:write", + "ad_creatives_get_ad_media": "ads:write", + "ad_creatives_get_ad_previews": "ads:write", + "ad_creatives_get_ad_video_status": "ads:write", + "ad_creatives_list_ad_creatives": "ads:write", + "ad_creatives_list_ad_images": "ads:write", + "ad_creatives_list_ad_videos": "ads:write", + "ad_creatives_list_ads_tik_tok_identities": "ads:write", + "ad_creatives_list_partnership_ad_content": "ads:write", + "ad_creatives_list_partnership_ad_permissions": "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:write", + "ad_insights_get_ad_insights_report": "ads:write", + "ad_insights_get_ads_search_terms": "ads:write", + "ad_insights_get_campaign_analytics": "ads:write", + "ad_insights_get_tik_tok_smart_plus_material_report": "ads:write", + "ad_insights_list_local_services_lead_conversations": "ads:write", + "ad_insights_list_local_services_leads": "ads:write", + "ad_insights_query_ad_insights": "ads:write", + "ad_library_search_ad_library": "ads:write", + "ad_rules_create_ad_rule": "ads:write", + "ad_rules_delete_ad_rule": "ads:write", + "ad_rules_get_ad_rule": "ads:write", + "ad_rules_get_ad_rule_hourly_windows": "ads:write", + "ad_rules_list_ad_account_rule_alerts": "ads:write", + "ad_rules_list_ad_rule_activity": "ads:write", + "ad_rules_list_ad_rule_alerts": "ads:write", + "ad_rules_list_ad_rule_runs": "ads:write", + "ad_rules_list_ad_rule_templates": "ads:write", + "ad_rules_list_ad_rules": "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: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:write", + "ad_targeting_search_ad_targeting": "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", + "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:write", + "automations_get_automation_approval": "ads:write", + "automations_get_automation_catalog": "ads:write", + "automations_get_automation_controls": "ads:write", + "automations_get_automation_template": "ads:write", + "automations_get_shared_automation_template": "ads:write", + "automations_get_zernio_automation_template": "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:write", + "automations_list_automation_approvals": "ads:write", + "automations_list_automation_checks": "ads:write", + "automations_list_automation_templates": "ads:write", + "automations_list_automations": "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", + "blogs_create_blog_article": "posts:write", + "blogs_delete_blog": "posts:write", + "blogs_delete_blog_article": "posts:write", + "blogs_get_blog": "posts:read", + "blogs_get_blog_article": "posts:read", + "blogs_list_blog_articles": "posts:read", + "blogs_list_blogs": "posts:read", + "blogs_update_blog": "posts:write", + "blogs_update_blog_article": "posts:write", + "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:write", + "branded_calling_get_branded_calling_identity": "messaging:write", + "branded_calling_list_branded_calling_call_reasons": "messaging:write", + "branded_calling_list_branded_calling_enterprises": "messaging:write", + "branded_calling_list_branded_calling_identities": "messaging:write", + "branded_calling_list_branded_calling_identity_numbers": "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:write", + "broadcasts_list_broadcast_recipients": "messaging:write", + "broadcasts_list_broadcasts": "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:write", + "business_agent_get_business_agent_business_information": "messaging:write", + "business_agent_get_business_agent_connector": "messaging:write", + "business_agent_get_business_agent_connector_logs": "messaging:write", + "business_agent_get_business_agent_connector_tool": "messaging:write", + "business_agent_get_business_agent_event": "messaging:write", + "business_agent_get_business_agent_faq": "messaging:write", + "business_agent_get_business_agent_file": "messaging:write", + "business_agent_get_business_agent_skill": "messaging:write", + "business_agent_get_business_agent_status": "messaging:write", + "business_agent_get_business_agent_ui_skill": "messaging:write", + "business_agent_get_business_agent_website": "messaging:write", + "business_agent_list_business_agent_allowlist": "messaging:write", + "business_agent_list_business_agent_connector_tools": "messaging:write", + "business_agent_list_business_agent_connectors": "messaging:write", + "business_agent_list_business_agent_faqs": "messaging:write", + "business_agent_list_business_agent_files": "messaging:write", + "business_agent_list_business_agent_settings": "messaging:write", + "business_agent_list_business_agent_skills": "messaging:write", + "business_agent_list_business_agent_ui_skills": "messaging:write", + "business_agent_list_business_agent_websites": "messaging:write", + "business_agent_onboard_business_agent": "messaging:write", + "business_agent_read_business_agent_evals": "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:write", + "calls_get_call_recording": "messaging:write", + "calls_list_calls": "messaging:write", + "comment_automations_create_comment_automation": "messaging:write", + "comment_automations_delete_comment_automation": "messaging:write", + "comment_automations_get_comment_automation": "messaging:write", + "comment_automations_list_comment_automation_logs": "messaging:write", + "comment_automations_list_comment_automations": "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:write", + "comments_hide_inbox_comment": "messaging:write", + "comments_like_inbox_comment": "messaging:write", + "comments_like_post": "messaging:write", + "comments_list_inbox_comments": "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", + "connect_ads": "accounts:read", + "connect_app_lovin_ads_credentials": "accounts:write", + "connect_assign_google_business_location": "accounts:write", + "connect_attentive_credentials": "accounts:write", + "connect_awin_credentials": "accounts:write", + "connect_bluesky_credentials": "accounts:write", + "connect_complete_telegram_connect": "accounts:write", + "connect_complete_whats_app_phone_selection": "accounts:write", + "connect_configure_tik_tok_ads_brand_identity": "accounts:write", + "connect_create_google_business_location": "accounts:write", + "connect_create_google_org_connection": "accounts:write", + "connect_create_microsoft_org_connection": "accounts:write", + "connect_create_o_auth_app": "accounts:write", + "connect_create_pinterest_board": "accounts:write", + "connect_create_platform_invite": "accounts:write", + "connect_create_youtube_playlist": "accounts:write", + "connect_delete_o_auth_app": "accounts:write", + "connect_delete_org_connection": "accounts:write", + "connect_discord_channel": "accounts:write", + "connect_get_amazon_ads_connect_url": "accounts:read", + "connect_get_campaign_manager_connect_url": "accounts:read", + "connect_get_connect_handoff": "accounts:read", + "connect_get_connect_url": "accounts:read", + "connect_get_connect_welcome_screen": "accounts:read", + "connect_get_facebook_pages": "accounts:read", + "connect_get_gmb_locations": "accounts:read", + "connect_get_gohighlevel_connect_url": "accounts:read", + "connect_get_google_analytics_connect_url": "accounts:read", + "connect_get_google_search_console_connect_url": "accounts:read", + "connect_get_hub_spot_connect_url": "accounts:read", + "connect_get_linked_in_organizations": "accounts:read", + "connect_get_o_auth_app": "accounts:read", + "connect_get_org_connection": "accounts:read", + "connect_get_page_webhook_subscription": "accounts:read", + "connect_get_pinterest_boards": "accounts:read", + "connect_get_reddit_flairs": "accounts:read", + "connect_get_reddit_subreddits": "accounts:read", + "connect_get_salesforce_connect_url": "accounts:read", + "connect_get_shopify_connect_url": "accounts:read", + "connect_get_stripe_connect_url": "accounts:read", + "connect_get_subreddit_rules": "accounts:read", + "connect_get_telegram_connect_status": "accounts:read", + "connect_get_webflow_connect_url": "accounts:read", + "connect_get_wechat_ip_whitelist": "accounts:read", + "connect_get_whats_app_sdk_config": "accounts:read", + "connect_get_wix_connect_url": "accounts:read", + "connect_get_word_press_auth_url": "accounts:read", + "connect_get_youtube_captions": "accounts:read", + "connect_get_youtube_playlists": "accounts:read", + "connect_handle_o_auth_callback": "accounts:write", + "connect_impact_credentials": "accounts:write", + "connect_initiate_telegram_connect": "accounts:write", + "connect_klaviyo_credentials": "accounts:write", + "connect_line_credentials": "accounts:write", + "connect_list_campaign_manager_profiles": "accounts:read", + "connect_list_facebook_pages": "accounts:read", + "connect_list_google_analytics_properties": "accounts:read", + "connect_list_google_business_categories": "accounts:read", + "connect_list_google_business_locations": "accounts:read", + "connect_list_google_search_console_sites": "accounts:read", + "connect_list_instagram_pages": "accounts:read", + "connect_list_o_auth_apps": "accounts:read", + "connect_list_org_connection_users": "accounts:read", + "connect_list_org_connections": "accounts:read", + "connect_list_pinterest_boards_for_selection": "accounts:read", + "connect_list_slack_channels": "accounts:read", + "connect_list_snapchat_profiles": "accounts:read", + "connect_list_whats_app_phone_numbers": "accounts:read", + "connect_open_ai_ads_credentials": "accounts:write", + "connect_resync_page_webhook_subscription": "accounts:write", + "connect_search_google_business_locations": "accounts:read", + "connect_select_campaign_manager_profile": "accounts:write", + "connect_select_facebook_page": "accounts:write", + "connect_select_google_analytics_property": "accounts:write", + "connect_select_google_business_location": "accounts:write", + "connect_select_google_search_console_site": "accounts:write", + "connect_select_instagram_account": "accounts:write", + "connect_select_linked_in_organization": "accounts:write", + "connect_select_pinterest_board": "accounts:write", + "connect_select_snapchat_profile": "accounts:write", + "connect_set_reddit_post_flair": "accounts:write", + "connect_shopify_with_token": "accounts:write", + "connect_slack_channel": "accounts:write", + "connect_snapchat_ads_credentials": "accounts:write", + "connect_start_microsoft_admin_consent": "accounts:read", + "connect_taboola_ads_credentials": "accounts:write", + "connect_test_o_auth_app": "accounts:write", + "connect_trade_desk_ads_credentials": "accounts:write", + "connect_trade_desk_ads_partner": "accounts:write", + "connect_update_connect_welcome_screen": "accounts:write", + "connect_update_facebook_page": "accounts:write", + "connect_update_gmb_location": "accounts:write", + "connect_update_linked_in_organization": "accounts:write", + "connect_update_o_auth_app": "accounts:write", + "connect_update_org_connection": "accounts:write", + "connect_update_pinterest_boards": "accounts:write", + "connect_update_reddit_subreddits": "accounts:write", + "connect_update_youtube_default_playlist": "accounts:write", + "connect_verify_org_connection": "accounts:write", + "connect_vote_reddit_thing": "messaging:write", + "connect_webflow_with_site_token": "accounts:write", + "connect_wechat_credentials": "accounts:write", + "connect_whats_app_credentials": "accounts:write", + "connect_whats_app_embedded_signup": "accounts:write", + "connect_whop_ads_credentials": "accounts:write", + "connect_word_press_with_application_password": "accounts:write", + "contacts_autocomplete_contacts": "automations:write", + "contacts_bulk_create_contacts": "automations:write", + "contacts_create_contact": "automations:write", + "contacts_delete_contact": "automations:write", + "contacts_get_contact": "automations:write", + "contacts_get_contact_channels": "automations:write", + "contacts_list_contact_groups": "automations:write", + "contacts_list_contacts": "automations:write", + "contacts_update_contact": "automations:write", + "content_retention_get_content_retention": "accounts:read", + "content_retention_update_content_retention": "accounts:write", + "conversion_audit_create_conversion_audit_monitor": "accounts:write", + "conversion_audit_delete_conversion_audit_monitor": "accounts:write", + "conversion_audit_get_meta_conversion_audit": "ads:write", + "conversion_audit_list_conversion_audit_monitors": "accounts:read", + "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:write", + "conversions_get_ad_conversion_metrics": "ads:write", + "conversions_get_conversion_destination": "ads:write", + "conversions_get_conversion_metrics": "ads:write", + "conversions_get_conversion_paths": "ads:write", + "conversions_get_conversions_quality": "ads:write", + "conversions_get_event": "ads:write", + "conversions_get_events_accuracy": "ads:write", + "conversions_get_events_overview": "ads:write", + "conversions_get_events_overview_daily": "ads:write", + "conversions_get_ltv_cohorts": "ads:write", + "conversions_get_survey_answers": "ads:write", + "conversions_get_tracking_site": "ads:write", + "conversions_list_ad_conversion_associations": "ads:write", + "conversions_list_ad_conversion_destinations": "ads:write", + "conversions_list_ad_conversion_goals": "ads:write", + "conversions_list_ad_custom_conversions": "ads:write", + "conversions_list_conversion_actions": "ads:write", + "conversions_list_conversion_associations": "ads:write", + "conversions_list_conversion_destinations": "ads:write", + "conversions_list_custom_conversion_goals": "ads:write", + "conversions_list_event_destinations": "ads:write", + "conversions_list_event_names": "ads:write", + "conversions_list_events": "ads:write", + "conversions_list_forwarding_rules": "ads:write", + "conversions_list_tracking_sites": "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", + "creator_portal_get_creator_payout_statement": "money:write", + "creator_portal_get_creator_payouts": "money:write", + "creator_portal_get_creator_portal": "money:write", + "crm_create_crm_activity": "automations:write", + "crm_create_crm_contact": "automations:write", + "crm_get_crm_contact": "automations:write", + "crm_get_crm_deal": "automations:write", + "crm_list_crm_deals": "automations:write", + "crm_list_crm_owners": "automations:write", + "crm_search_crm_contacts": "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", + "custom_fields_delete_custom_field": "accounts:write", + "custom_fields_list_custom_fields": "accounts:read", + "custom_fields_set_contact_field_value": "automations:write", + "custom_fields_update_custom_field": "accounts:write", + "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", + "discord_get_discord_guild_member": "automations:write", + "discord_get_discord_scheduled_event": "messaging:write", + "discord_get_discord_settings": "accounts:read", + "discord_list_discord_guild_members": "automations:write", + "discord_list_discord_guild_roles": "messaging:write", + "discord_list_discord_pinned_messages": "messaging:write", + "discord_list_discord_scheduled_events": "messaging:write", + "discord_pin_discord_message": "messaging:write", + "discord_remove_discord_member_role": "automations:write", + "discord_search_discord_guild_members": "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", + "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:write", + "email_forward_email_message": "messaging:write", + "email_get_email_draft": "messaging:write", + "email_get_email_message": "messaging:write", + "email_get_email_signature": "messaging:write", + "email_get_email_thread": "messaging:write", + "email_get_scheduled_email": "messaging:write", + "email_import_email_signatures": "messaging:write", + "email_list_email_drafts": "messaging:write", + "email_list_email_folders": "messaging:write", + "email_list_email_labels": "messaging:write", + "email_list_email_messages": "messaging:write", + "email_list_email_send_as": "messaging:write", + "email_list_email_shared_mailboxes": "messaging:write", + "email_list_email_signatures": "messaging:write", + "email_list_email_threads": "messaging:write", + "email_list_scheduled_emails": "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", + "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", + "gmb_services_update_google_business_services": "accounts:write", + "gmb_verifications_complete_google_business_verification": "accounts:write", + "gmb_verifications_fetch_google_business_verification_options": "accounts:read", + "gmb_verifications_get_google_business_verifications": "accounts:read", + "gmb_verifications_start_google_business_verification": "accounts:write", + "inbox_analytics_get_inbox_conversation_analytics": "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:write", + "instagram_get_instagram_audio": "accounts:read", + "instagram_get_instagram_business_discovery": "analytics:read", + "instagram_get_instagram_mentioned_comment": "messaging:write", + "instagram_get_instagram_mentioned_media": "messaging:write", + "instagram_get_instagram_publishing_limit": "accounts:read", + "instagram_get_instagram_story_insights": "analytics:read", + "instagram_list_instagram_live_media": "analytics:read", + "instagram_list_instagram_media_collaborators": "posts:read", + "instagram_list_instagram_stories": "analytics:read", + "instagram_list_instagram_tagged_media": "analytics:read", + "instagram_search_instagram_audio": "accounts:read", + "lead_gen_archive_lead_form": "ads:write", + "lead_gen_count_leads": "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:write", + "lead_gen_list_form_leads": "automations:write", + "lead_gen_list_lead_forms": "ads:write", + "lead_gen_list_leads": "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", + "media_get_media_presigned_url": "posts:write", + "media_prepare_media": "posts:write", + "mentions_list_inbox_mentions": "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:write", + "messages_get_inbox_conversation_messages": "messaging:write", + "messages_get_message_attachment": "messaging:write", + "messages_list_conversation_labels": "messaging:write", + "messages_list_inbox_conversations": "messaging:write", + "messages_list_inbox_labels": "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: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", + "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:write", + "metrics_get_ad_metrics": "ads:write", + "metrics_get_ad_set_metrics": "ads:write", + "metrics_get_campaign_metrics": "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: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:write", + "phone_numbers_get_phone_number_claim": "messaging:write", + "phone_numbers_get_phone_number_kyc_form": "messaging:write", + "phone_numbers_get_phone_number_port_claim": "messaging:write", + "phone_numbers_get_phone_number_port_in_order_requirements": "messaging:write", + "phone_numbers_get_phone_number_port_in_requirements": "messaging:write", + "phone_numbers_get_phone_number_remediation": "messaging:write", + "phone_numbers_list_phone_number_countries": "messaging:write", + "phone_numbers_list_phone_number_port_ins": "messaging:write", + "phone_numbers_list_phone_number_stock_watches": "messaging:write", + "phone_numbers_list_phone_numbers": "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: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:write", + "posts_bulk_upload_posts": "posts:write", + "posts_create_post": "posts:write", + "posts_delete_post": "posts:write", + "posts_edit_post": "posts:write", + "posts_get_post": "posts:read", + "posts_list_posts": "posts:read", + "posts_pin_post": "posts:write", + "posts_review_post": "posts:write", + "posts_unpin_post": "posts:write", + "posts_unpublish_post": "posts:write", + "posts_update_post": "posts:write", + "posts_update_post_metadata": "posts:write", + "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:write", + "product_catalogs_get_ad_catalog_batch": "ads:write", + "product_catalogs_get_ad_catalog_product": "ads:write", + "product_catalogs_list_ad_catalog_feed_uploads": "ads:write", + "product_catalogs_list_ad_catalog_feeds": "ads:write", + "product_catalogs_list_ad_catalog_product_sets": "ads:write", + "product_catalogs_list_ad_catalog_products": "ads:write", + "product_catalogs_list_ad_catalogs": "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", + "profiles_delete_profile": "accounts:write", + "profiles_get_profile": "accounts:read", + "profiles_get_profile_limits": "accounts:read", + "profiles_list_profiles": "accounts:read", + "profiles_update_profile": "accounts:write", + "queue_create_queue_slot": "posts:write", + "queue_delete_queue_slot": "posts:write", + "queue_get_next_queue_slot": "posts:read", + "queue_list_queue_slots": "posts:read", + "queue_preview_queue": "posts:read", + "queue_update_queue_slot": "posts:write", + "rcs_add_rcs_test_device": "messaging:write", + "rcs_create_rcs_agent": "messaging:write", + "rcs_deactivate_rcs_agent": "messaging:write", + "rcs_get_rcs_agent": "messaging:write", + "rcs_get_rcs_capabilities": "messaging:write", + "rcs_list_rcs_agents": "messaging:write", + "rcs_list_rcs_brands": "messaging:write", + "rcs_list_rcs_test_devices": "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:write", + "reach_and_frequency_reserve_rf_prediction": "ads:write", + "reddit_get_reddit_feed": "messaging:write", + "reddit_get_reddit_post_comments": "messaging:write", + "reddit_search_reddit": "messaging:write", + "reviews_delete_inbox_review_reply": "messaging:write", + "reviews_list_inbox_reviews": "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:write", + "sequences_list_sequence_enrollments": "messaging:write", + "sequences_list_sequences": "messaging:write", + "sequences_pause_sequence": "messaging:write", + "sequences_unenroll_contact": "messaging:write", + "sequences_update_sequence": "messaging:write", + "slack_list_slack_members": "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:write", + "sms_list_sms_opt_outs": "automations:write", + "sms_list_sms_registrations": "messaging:write", + "sms_list_sms_sender_ids": "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:write", + "tracking_links_get_tracking_link_stats": "ads:write", + "tracking_links_list_tracking_links": "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:write", + "tracking_tags_get_tracking_tag": "ads:write", + "tracking_tags_get_tracking_tag_diagnostics": "ads:write", + "tracking_tags_get_tracking_tag_stats": "ads:write", + "tracking_tags_get_tracking_tag_store_install": "ads:write", + "tracking_tags_install_tracking_tag_on_store": "ads:write", + "tracking_tags_list_tracking_tag_events": "ads:write", + "tracking_tags_list_tracking_tag_partners": "ads:write", + "tracking_tags_list_tracking_tag_shared_accounts": "ads:write", + "tracking_tags_list_tracking_tag_users": "ads:write", + "tracking_tags_list_tracking_tags": "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:write", + "twitter_engagement_remove_bookmark": "messaging:write", + "twitter_engagement_retweet_post": "messaging:write", + "twitter_engagement_search_tweets": "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", + "users_get_user": "accounts:read", + "users_list_users": "accounts:read", + "users_remove_user": "accounts:write", + "validate_media": "posts:read", + "validate_post": "posts:read", + "validate_post_length": "posts:read", + "validate_subreddit": "posts:read", + "verify_check_verification": "messaging:write", + "verify_create_verification": "messaging:write", + "verify_get_verification": "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:write", + "voice_get_voice_call": "messaging:write", + "voice_get_voice_call_estimate": "messaging:write", + "voice_get_voice_call_recording": "messaging:write", + "voice_list_sip_trunks": "messaging:write", + "voice_list_voice_calls": "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:write", + "whatsapp_calling_get_whats_app_call_estimate": "messaging:write", + "whatsapp_calling_get_whats_app_call_permissions": "automations:write", + "whatsapp_calling_get_whats_app_call_recording": "messaging:write", + "whatsapp_calling_get_whats_app_calling": "messaging:write", + "whatsapp_calling_get_whats_app_calling_config": "accounts:read", + "whatsapp_calling_initiate_whats_app_call": "messaging:write", + "whatsapp_calling_list_whats_app_calls": "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", + "whatsapp_create_whats_app_group_chat": "messaging:write", + "whatsapp_create_whats_app_group_invite_link": "messaging:write", + "whatsapp_create_whats_app_template": "accounts:write", + "whatsapp_delete_whats_app_conversational_automation": "accounts:write", + "whatsapp_delete_whats_app_group_chat": "messaging:write", + "whatsapp_delete_whats_app_template": "accounts:write", + "whatsapp_delete_whats_app_template_by_id": "accounts:write", + "whatsapp_delete_whatsapp_business_username": "accounts:write", + "whatsapp_flows_create_whats_app_flow": "accounts:write", + "whatsapp_flows_delete_whats_app_flow": "accounts:write", + "whatsapp_flows_deprecate_whats_app_flow": "accounts:write", + "whatsapp_flows_get_whats_app_flow": "accounts:read", + "whatsapp_flows_get_whats_app_flow_json": "accounts:read", + "whatsapp_flows_get_whats_app_flow_preview": "accounts:read", + "whatsapp_flows_get_whats_app_flows_encryption_key": "accounts:read", + "whatsapp_flows_list_whats_app_flow_responses": "messaging:write", + "whatsapp_flows_list_whats_app_flow_versions": "accounts:read", + "whatsapp_flows_list_whats_app_flows": "accounts:read", + "whatsapp_flows_publish_whats_app_flow": "accounts:write", + "whatsapp_flows_send_whats_app_flow_message": "messaging:write", + "whatsapp_flows_set_whats_app_flows_encryption_key": "accounts:write", + "whatsapp_flows_update_whats_app_flow": "accounts:write", + "whatsapp_flows_upload_whats_app_flow_json": "accounts:write", + "whatsapp_get_whats_app_block_status": "automations:write", + "whatsapp_get_whats_app_blocked_users": "automations:write", + "whatsapp_get_whats_app_business_profile": "accounts:read", + "whatsapp_get_whats_app_commerce_settings": "messaging:write", + "whatsapp_get_whats_app_conversational_automation": "accounts:read", + "whatsapp_get_whats_app_dataset": "accounts:read", + "whatsapp_get_whats_app_display_name": "accounts:read", + "whatsapp_get_whats_app_group_chat": "messaging:write", + "whatsapp_get_whats_app_media": "messaging:write", + "whatsapp_get_whats_app_template": "accounts:read", + "whatsapp_get_whats_app_template_by_id": "accounts:read", + "whatsapp_get_whats_app_templates": "accounts:read", + "whatsapp_get_whatsapp_business_username": "accounts:read", + "whatsapp_get_whatsapp_business_username_suggestions": "accounts:read", + "whatsapp_link_whats_app_catalog": "messaging:write", + "whatsapp_list_whats_app_account_events": "messaging:write", + "whatsapp_list_whats_app_catalogs": "messaging:write", + "whatsapp_list_whats_app_conversions": "ads:write", + "whatsapp_list_whats_app_group_chats": "messaging:write", + "whatsapp_list_whats_app_group_join_requests": "messaging:write", + "whatsapp_phone_numbers_check_whats_app_number_availability": "messaging:write", + "whatsapp_phone_numbers_create_whats_app_number_kyc_link": "messaging:write", + "whatsapp_phone_numbers_get_whats_app_number_info": "automations:write", + "whatsapp_phone_numbers_get_whats_app_number_kyc_form": "messaging:write", + "whatsapp_phone_numbers_get_whats_app_number_remediation": "messaging:write", + "whatsapp_phone_numbers_get_whats_app_phone_number": "messaging:write", + "whatsapp_phone_numbers_get_whats_app_phone_numbers": "messaging:write", + "whatsapp_phone_numbers_get_whats_app_pricing_analytics": "analytics:read", + "whatsapp_phone_numbers_list_whats_app_number_countries": "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: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", + "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", + "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:write", + "whatsapp_send_whats_app_conversion": "ads:write", + "whatsapp_set_whats_app_conversational_automation": "accounts:write", + "whatsapp_set_whatsapp_business_username": "accounts:write", + "whatsapp_templates_get_whats_app_library_template": "accounts:read", + "whatsapp_unblock_whats_app_users": "automations:write", + "whatsapp_unlink_whats_app_catalog": "messaging:write", + "whatsapp_update_whats_app_business_profile": "accounts:write", + "whatsapp_update_whats_app_commerce_settings": "messaging:write", + "whatsapp_update_whats_app_display_name": "accounts:write", + "whatsapp_update_whats_app_group_chat": "messaging:write", + "whatsapp_update_whats_app_template": "accounts:write", + "whatsapp_update_whats_app_template_by_id": "accounts:write", + "whatsapp_upload_whats_app_profile_photo": "accounts:write", + "whatsapp_verify_whats_app_number": "accounts:write", + "workflows_activate_workflow": "accounts:write", + "workflows_create_workflow": "accounts:write", + "workflows_delete_workflow": "accounts:write", + "workflows_duplicate_workflow": "accounts:write", + "workflows_get_workflow": "accounts:read", + "workflows_get_workflow_version": "accounts:read", + "workflows_list_workflow_execution_events": "messaging:write", + "workflows_list_workflow_executions": "messaging:write", + "workflows_list_workflow_versions": "accounts:read", + "workflows_list_workflows": "accounts:read", + "workflows_pause_workflow": "accounts:write", + "workflows_restore_workflow_version": "accounts:write", + "workflows_take_over_workflow": "accounts:write", + "workflows_trigger_api_call_workflow": "messaging:write", + "workflows_trigger_workflow": "messaging:write", + "workflows_update_workflow": "accounts:write", +} 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..f4f933d3 --- /dev/null +++ b/src/late/mcp/middleware/missing_scope.py @@ -0,0 +1,88 @@ +"""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) 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, + *, + scope_by_tool: Mapping[str, str], + resource_metadata_url: str, + scopes: Sequence[str], + ) -> None: + self._scope_by_tool = scope_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: + needed = self._scope_by_tool.get(context.message.name) + granted = _granted_scopes() + if ( + needed is None + or granted is None + or needed in granted + or not _refused_for_a_group(exc.__cause__) + ): + raise + 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_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..88d21d15 --- /dev/null +++ b/tests/test_chatgpt_generated_tools.py @@ -0,0 +1,169 @@ +"""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 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_SCOPE + +LIVE_TOOLS = json.loads( + (Path(__file__).parent / "fixtures" / "chatgpt_live_tools.json").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_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_SCOPE[name]]} + ], 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_SCOPE[name] 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 not {"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" + ) + + +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:write" in challenge + assert "messaging:write" 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: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") 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..1d0a0380 --- /dev/null +++ b/tests/test_generated_mcp_annotations.py @@ -0,0 +1,81 @@ +"""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_SCOPE, 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_scope(both, True) == "posts:read" + assert generator.declared_oauth_scope(both, False) == "posts:write" + assert ( + generator.declared_oauth_scope(["messaging:write"], True) == "messaging:write" + ) + assert generator.declared_oauth_scope([], True) is None + + +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_the_inbox_needs_the_messaging_scope(): + assert TOOL_OAUTH_SCOPE["messages_list_inbox_conversations"] == "messaging:write" + assert TOOL_OAUTH_SCOPE["accounts_get_account_health"] == "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 From f94bdfba9c95e9257a29b4633e3e38980767532c Mon Sep 17 00:00:00 2001 From: Miki Palet <64255955+mikipalet@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:13:04 +0000 Subject: [PATCH 2/4] feat(mcp): wave 1 declares the new read scopes and takes the most used ads and contacts reads Schedule-Posts-API #10145 adds read-only ads:read, contacts:read and messaging:read. Reads now declare them (TOOL_OAUTH_SCOPES keeps every scope that reaches a tool, the declared one first), so /chatgpt advertises messaging:read, ads:read and contacts:read instead of messaging:write. Wave 1 is re-ranked over every readable group: ads and contacts reads in the top 40 replace the tail of the old list. The re-link challenge fires only when the token holds none of a tool's scopes, so a :write scope still covers the read. Argument lines in descriptions are capped at 100 chars. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kx4ZnYRCwTShnKwf5bar5Y --- openapi.yaml | 648 ++-- scripts/generate_mcp_tools.py | 20 +- src/late/mcp/chatgpt_server.py | 4 +- src/late/mcp/chatgpt_tools.py | 40 +- src/late/mcp/constants.py | 3 + src/late/mcp/generated_tools.py | 4529 +++++++++++++++------- src/late/mcp/middleware/missing_scope.py | 14 +- tests/test_chatgpt_generated_tools.py | 20 +- tests/test_generated_mcp_annotations.py | 23 +- 9 files changed, 3594 insertions(+), 1707 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index d7148f23..92bbbde7 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -37504,7 +37504,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ads: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAdMetrics tags: @@ -37656,7 +37656,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/campaigns: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getCampaignMetrics tags: @@ -37754,7 +37754,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ad-sets: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAdSetMetrics tags: @@ -37844,7 +37844,7 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ad-accounts: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAdAccountMetrics tags: @@ -44422,7 +44422,7 @@ paths: /v1/analytics/inbox/conversations: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listInboxConversationAnalytics tags: [Inbox Analytics] @@ -44530,7 +44530,7 @@ paths: /v1/analytics/inbox/conversations/{conversationId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getInboxConversationAnalytics tags: [Inbox Analytics] @@ -44881,7 +44881,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/reddit/search: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: searchReddit tags: [Reddit Search] @@ -44963,7 +44963,7 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } /v1/reddit/feed: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getRedditFeed tags: [Reddit Search] @@ -45057,7 +45057,7 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } /v1/reddit/comments/{postId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getRedditPostComments tags: [Reddit Search] @@ -54331,7 +54331,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getGoogleBusinessReviews tags: [GMB Reviews] @@ -56404,7 +56404,7 @@ paths: /v1/accounts/{accountId}/gmb-reviews/{reviewId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getGoogleBusinessReview tags: [GMB Reviews] @@ -61342,7 +61342,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/mentions/media/{mediaId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getInstagramMentionedMedia tags: [Instagram] @@ -61398,7 +61398,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/mentions/comments/{commentId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getInstagramMentionedComment tags: [Instagram] @@ -63284,7 +63284,7 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-audiences: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listGohighlevelAudienceSyncs tags: @@ -63444,7 +63444,7 @@ paths: description: The tag is being set up or synced right now, or is already synced. Retry later, or stop the existing sync first. /v1/accounts/{accountId}/gohighlevel-funnel-tracking: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getGohighlevelFunnelTracking tags: @@ -63684,7 +63684,7 @@ paths: description: Account not found /v1/crm/{accountId}/contacts/search: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts operationId: searchCrmContacts tags: @@ -63829,7 +63829,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/contacts/{contactId}: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts operationId: getCrmContact tags: @@ -63997,7 +63997,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/deals: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts operationId: listCrmDeals tags: @@ -64053,7 +64053,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/deals/{dealId}: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts operationId: getCrmDeal tags: @@ -64167,7 +64167,7 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/owners: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts operationId: listCrmOwners tags: @@ -64587,7 +64587,7 @@ paths: /v1/accounts/{accountId}/slack-members: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: listSlackMembers tags: [Slack] @@ -64745,7 +64745,7 @@ paths: /v1/discord/guilds/{guildId}/roles: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: listDiscordGuildRoles tags: [Discord] @@ -64922,7 +64922,7 @@ paths: /v1/discord/guilds/{guildId}/members: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: listDiscordGuildMembers tags: [Discord] @@ -64963,7 +64963,7 @@ paths: /v1/discord/guilds/{guildId}/members/search: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: searchDiscordGuildMembers tags: [Discord] @@ -64996,7 +64996,7 @@ paths: /v1/discord/guilds/{guildId}/members/{userId}: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: getDiscordGuildMember tags: [Discord] @@ -65228,7 +65228,7 @@ paths: /v1/discord/channels/{channelId}/pins: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: listDiscordPinnedMessages tags: [Discord] @@ -65339,7 +65339,7 @@ paths: /v1/discord/guilds/{guildId}/events: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: listDiscordScheduledEvents tags: [Discord] @@ -65459,7 +65459,7 @@ paths: /v1/discord/guilds/{guildId}/events/{eventId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getDiscordScheduledEvent tags: [Discord] @@ -66923,7 +66923,7 @@ paths: # Unified Inbox Endpoints /v1/email/threads: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listEmailThreads tags: [Email] @@ -66970,7 +66970,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } /v1/email/threads/{threadId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getEmailThread tags: [Email] @@ -67028,7 +67028,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/messages: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listEmailMessages tags: [Email] @@ -67150,7 +67150,7 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/messages/scheduled: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listScheduledEmails tags: [Email] @@ -67176,7 +67176,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/email/messages/scheduled/{scheduleId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getScheduledEmail tags: [Email] @@ -67223,7 +67223,7 @@ paths: '409': { description: 'The send already left, failed or was cancelled; the message names its status.' } /v1/email/messages/{messageId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getEmailMessage tags: [Email] @@ -67394,7 +67394,7 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/drafts: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listEmailDrafts tags: [Email] @@ -67453,7 +67453,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/drafts/{draftId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getEmailDraft tags: [Email] @@ -67587,7 +67587,7 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/folders: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listEmailFolders tags: [Email] @@ -67723,7 +67723,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/email/labels: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listEmailLabels tags: [Email] @@ -67791,7 +67791,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/send-as: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listEmailSendAs tags: [Email] @@ -67887,7 +67887,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/shared-mailboxes: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listEmailSharedMailboxes tags: [Email] @@ -67961,7 +67961,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/signatures: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listEmailSignatures tags: [Email] @@ -68038,7 +68038,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/signatures/{signatureId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getEmailSignature tags: [Email] @@ -68145,7 +68145,7 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/attachments/{attachmentId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: downloadEmailAttachment tags: [Email] @@ -69258,7 +69258,7 @@ paths: '409': { $ref: '#/components/responses/OrgGrantIncomplete' } /v1/inbox/conversations: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listInboxConversations summary: List conversations @@ -69946,7 +69946,7 @@ paths: schema: { $ref: '#/components/schemas/WhatsAppTemplateLookupError' } /v1/inbox/conversations/search: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: searchInboxConversations summary: Search conversations @@ -70084,7 +70084,7 @@ paths: description: Inbox addon required /v1/inbox/conversations/{conversationId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getInboxConversation summary: Get conversation @@ -70278,7 +70278,7 @@ paths: /v1/inbox/conversations/{conversationId}/messages: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getInboxConversationMessages summary: List messages @@ -71345,7 +71345,7 @@ paths: /v1/whatsapp/media/{mediaId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getWhatsAppMedia tags: [WhatsApp] @@ -71725,7 +71725,7 @@ paths: /v1/inbox/labels: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: messages x-platforms: [facebook] operationId: listInboxLabels @@ -71869,7 +71869,7 @@ paths: /v1/inbox/conversations/{conversationId}/labels: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: messages x-platforms: [facebook] operationId: listConversationLabels @@ -72852,7 +72852,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/inbox/conversations/{conversationId}/messages/{messageId}/attachments/{index}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getMessageAttachment summary: Resolve message attachment @@ -72936,7 +72936,7 @@ paths: /v1/inbox/comments: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: listInboxComments summary: List commented posts @@ -73095,7 +73095,7 @@ paths: /v1/inbox/comments/{postId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getInboxPostComments summary: Get post comments @@ -74585,7 +74585,7 @@ paths: /v1/twitter/search: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: searchTweets summary: Search recent tweets @@ -74699,7 +74699,7 @@ paths: /v1/twitter/tweet: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getTweet summary: Look up a tweet @@ -74771,7 +74771,7 @@ paths: /v1/inbox/mentions: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: listInboxMentions summary: List mentions @@ -74966,7 +74966,7 @@ paths: /v1/inbox/reviews: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: listInboxReviews summary: List reviews @@ -76101,7 +76101,7 @@ paths: /v1/whatsapp/call-permissions: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: getWhatsAppCallPermissions tags: [WhatsApp Calling] @@ -76224,7 +76224,7 @@ paths: '422': { description: "Calling not enabled, BIC country blocked, or missing Meta SIP credentials" } '502': { description: Telnyx-side originate failed; the Call doc has been marked failed. } get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWhatsAppCalls tags: [WhatsApp Calling] @@ -76284,7 +76284,7 @@ paths: /v1/whatsapp/calls/{id}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getWhatsAppCall tags: [WhatsApp Calling] @@ -76309,7 +76309,7 @@ paths: /v1/whatsapp/calls/{id}/recording: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getWhatsAppCallRecording tags: [WhatsApp Calling] @@ -76344,7 +76344,7 @@ paths: /v1/whatsapp/calls/estimate: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getWhatsAppCallEstimate tags: [WhatsApp Calling] @@ -76383,7 +76383,7 @@ paths: /v1/calls: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listCalls tags: [Calls] @@ -76433,7 +76433,7 @@ paths: /v1/calls/{id}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getCall tags: [Calls] @@ -76468,7 +76468,7 @@ paths: /v1/calls/{id}/recording: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getCallRecording tags: [Calls] @@ -76578,7 +76578,7 @@ paths: '429': { description: 'A team or profile call limit was reached (`call_limit_reached`). `details.limit` names it: `team_concurrent_calls`, `team_daily_cost`, `profile_outbound_calls_per_hour`, `profile_daily_call_spend`, or `outbound_paused`.' } '502': { description: Carrier-side originate failed; the call has been marked failed. } get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listVoiceCalls tags: [Voice] @@ -76624,7 +76624,7 @@ paths: /v1/voice/calls/{id}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getVoiceCall tags: [Voice] @@ -76690,7 +76690,7 @@ paths: /v1/voice/calls/{id}/recording: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getVoiceCallRecording tags: [Voice] @@ -76761,7 +76761,7 @@ paths: /v1/voice/calls/estimate: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getVoiceCallEstimate tags: [Voice] @@ -77735,7 +77735,7 @@ paths: /v1/rcs/brands: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listRcsBrands tags: [RCS] @@ -77757,7 +77757,7 @@ paths: /v1/rcs/agents: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listRcsAgents tags: [RCS] @@ -77830,7 +77830,7 @@ paths: /v1/rcs/agents/{agentId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getRcsAgent tags: [RCS] @@ -77959,7 +77959,7 @@ paths: /v1/rcs/agents/{agentId}/test-devices: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listRcsTestDevices tags: [RCS] @@ -78146,7 +78146,7 @@ paths: /v1/rcs/capabilities: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getRcsCapabilities tags: [RCS] @@ -78207,7 +78207,7 @@ paths: /v1/sms/opt-outs: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: listSmsOptOuts tags: [SMS] @@ -78380,7 +78380,7 @@ paths: '409': { description: 'Billing setup is incomplete for this team (code `billing_setup_incomplete`); contact support.' } '422': { description: 'Sender ID rejected: it appears to impersonate a protected brand or institution.' } get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listSmsSenderIds tags: [SMS] @@ -78535,7 +78535,7 @@ paths: '409': { $ref: '#/components/responses/IdempotencyKeyInFlight' } '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-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listBrandedCallingEnterprises tags: [Branded Calling] @@ -78556,7 +78556,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/branded-calling/enterprises/{id}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getBrandedCallingEnterprise tags: [Branded Calling] @@ -78646,7 +78646,7 @@ paths: '404': { description: 'Business or identity not found, or the identity is not in review' } /v1/branded-calling/call-reasons: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listBrandedCallingCallReasons tags: [Branded Calling] @@ -78733,7 +78733,7 @@ paths: '409': { $ref: '#/components/responses/IdempotencyKeyInFlight' } '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-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listBrandedCallingIdentities tags: [Branded Calling] @@ -78813,7 +78813,7 @@ paths: '404': { description: Business not found } /v1/branded-calling/identities/{id}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getBrandedCallingIdentity tags: [Branded Calling] @@ -78970,7 +78970,7 @@ paths: '409': { description: 'The identity is not waiting for a code (code invalid_resource_state).' } /v1/branded-calling/identities/{id}/numbers: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listBrandedCallingIdentityNumbers tags: [Branded Calling] @@ -79222,7 +79222,7 @@ paths: '422': { description: Carrier registry rejected a field; `param` names it when known. } '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-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listSmsRegistrations tags: [SMS] @@ -79372,7 +79372,7 @@ paths: '403': { description: 'The caller is a team member limited to specific profiles; registrations cover the whole account.' } '404': { description: Registration not found } get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getSmsRegistration tags: [SMS] @@ -79767,7 +79767,7 @@ paths: /v1/whatsapp/catalogs: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWhatsAppCatalogs tags: [WhatsApp] @@ -79861,7 +79861,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/whatsapp/commerce-settings: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getWhatsAppCommerceSettings tags: [WhatsApp] @@ -80475,7 +80475,7 @@ paths: /v1/whatsapp/number-info: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: getWhatsAppNumberInfo tags: [WhatsApp Phone Numbers] @@ -80649,7 +80649,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/whatsapp/block-users/status: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: getWhatsAppBlockStatus tags: [WhatsApp] @@ -80679,7 +80679,7 @@ paths: /v1/whatsapp/block-users: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: getWhatsAppBlockedUsers tags: [WhatsApp] @@ -80826,7 +80826,7 @@ paths: /v1/whatsapp/account-events: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWhatsAppAccountEvents tags: [WhatsApp] @@ -80962,7 +80962,7 @@ paths: /v1/phone-numbers: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listPhoneNumbers tags: [Phone Numbers] @@ -81052,7 +81052,7 @@ paths: /v1/phone-numbers/{id}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getPhoneNumber tags: [Phone Numbers] @@ -81376,7 +81376,7 @@ paths: /v1/phone-numbers/claims/{claimId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getPhoneNumberClaim tags: [Phone Numbers] @@ -81420,7 +81420,7 @@ paths: /v1/phone-numbers/countries: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listPhoneNumberCountries tags: [Phone Numbers] @@ -81486,7 +81486,7 @@ paths: /v1/phone-numbers/available: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: searchAvailablePhoneNumbers tags: [Phone Numbers] @@ -81554,7 +81554,7 @@ paths: /v1/phone-numbers/availability: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: checkPhoneNumberAvailability tags: [Phone Numbers] @@ -81672,7 +81672,7 @@ paths: /v1/whatsapp/phone-numbers: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getWhatsAppPhoneNumbers deprecated: true @@ -81925,7 +81925,7 @@ paths: /v1/whatsapp/phone-numbers/countries: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listWhatsAppNumberCountries deprecated: true @@ -81963,7 +81963,7 @@ paths: /v1/whatsapp/phone-numbers/available: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: searchAvailableWhatsAppNumbers deprecated: true @@ -82010,7 +82010,7 @@ paths: /v1/whatsapp/phone-numbers/availability: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: checkWhatsAppNumberAvailability deprecated: true @@ -82124,7 +82124,7 @@ paths: /v1/phone-numbers/kyc: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getPhoneNumberKycForm tags: [Phone Numbers] @@ -82314,7 +82314,7 @@ paths: /v1/phone-numbers/kyc/document/{documentId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: viewPhoneNumberKycDocument tags: [Phone Numbers] @@ -82639,7 +82639,7 @@ paths: '409': { description: "A number is already provisioned, or already in an in-flight port" } '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-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listPhoneNumberPortIns tags: [Phone Numbers] @@ -82756,7 +82756,7 @@ paths: /v1/phone-numbers/port-in/claims/{claimId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getPhoneNumberPortClaim tags: [Phone Numbers] @@ -82829,7 +82829,7 @@ paths: /v1/phone-numbers/port-in/requirements: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getPhoneNumberPortInRequirements tags: [Phone Numbers] @@ -82877,7 +82877,7 @@ paths: /v1/phone-numbers/port-in/{id}/requirements: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getPhoneNumberPortInOrderRequirements tags: [Phone Numbers] @@ -83006,7 +83006,7 @@ paths: /v1/phone-numbers/{id}/remediate: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getPhoneNumberRemediation tags: [Phone Numbers] @@ -83224,7 +83224,7 @@ paths: /v1/whatsapp/phone-numbers/kyc: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getWhatsAppNumberKycForm deprecated: true @@ -83667,7 +83667,7 @@ paths: /v1/whatsapp/phone-numbers/{id}/remediate: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getWhatsAppNumberRemediation deprecated: true @@ -83938,7 +83938,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '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-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listPhoneNumberStockWatches tags: [Phone Numbers] @@ -84044,7 +84044,7 @@ paths: '409': { description: 'The team trunk limit was reached (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: listSipTrunks tags: [Voice] @@ -84082,7 +84082,7 @@ paths: /v1/phone-numbers/sip-trunks/{id}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getSipTrunk tags: [Voice] @@ -84443,7 +84443,7 @@ paths: /v1/phone-numbers/{id}/whatsapp/calling: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getWhatsAppCalling tags: [WhatsApp Calling] @@ -84686,7 +84686,7 @@ paths: /v1/whatsapp/phone-numbers/{phoneNumberId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getWhatsAppPhoneNumber deprecated: true @@ -84801,7 +84801,7 @@ paths: /v1/whatsapp/sandbox/sessions: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWhatsAppSandboxSessions tags: [WhatsApp Sandbox] @@ -84925,7 +84925,7 @@ paths: /v1/whatsapp/wa-groups: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWhatsAppGroupChats tags: [WhatsApp] @@ -85013,7 +85013,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getWhatsAppGroupChat tags: [WhatsApp] @@ -85236,7 +85236,7 @@ paths: /v1/whatsapp/wa-groups/{groupId}/join-requests: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWhatsAppGroupJoinRequests tags: [WhatsApp] @@ -85986,7 +85986,7 @@ paths: /v1/whatsapp/flow-responses: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWhatsAppFlowResponses tags: [WhatsApp Flows] @@ -86032,7 +86032,7 @@ paths: /v1/contacts: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: listContacts summary: List contacts @@ -86157,7 +86157,7 @@ paths: /v1/contacts/groups: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: listContactGroups summary: List contact groups @@ -86201,7 +86201,7 @@ paths: '412': { description: The account was connected without the contacts area } /v1/contacts/autocomplete: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: autocompleteContacts summary: Search people @@ -86258,7 +86258,7 @@ paths: '412': { description: 'The account was connected without the contacts or directory area' } /v1/contacts/{contactId}: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: getContact summary: Get contact @@ -86377,7 +86377,7 @@ paths: /v1/contacts/{contactId}/channels: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: getContactChannels summary: List channels for a contact @@ -86644,7 +86644,7 @@ paths: /v1/broadcasts: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: listBroadcasts @@ -86779,7 +86779,7 @@ paths: /v1/broadcasts/{broadcastId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: getBroadcast @@ -86996,7 +86996,7 @@ paths: /v1/broadcasts/{broadcastId}/recipients: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack, imessage, line] operationId: listBroadcastRecipients @@ -87560,7 +87560,7 @@ paths: /v1/workflows/{workflowId}/executions: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWorkflowExecutions summary: List workflow runs @@ -87708,7 +87708,7 @@ paths: /v1/workflows/{workflowId}/executions/{executionId}/events: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listWorkflowExecutionEvents summary: Get an execution's timeline @@ -87905,7 +87905,7 @@ paths: /v1/sequences: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: listSequences @@ -88024,7 +88024,7 @@ paths: /v1/sequences/{sequenceId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: getSequence @@ -88278,7 +88278,7 @@ paths: /v1/sequences/{sequenceId}/enrollments: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" x-platforms: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, imessage, line, wechat] operationId: listSequenceEnrollments @@ -88333,7 +88333,7 @@ paths: /v1/comment-automations: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listCommentAutomations tags: [Comment Automations] @@ -88622,7 +88622,7 @@ paths: /v1/comment-automations/{automationId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getCommentAutomation tags: [Comment Automations] @@ -88826,7 +88826,7 @@ paths: /v1/comment-automations/{automationId}/logs: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listCommentAutomationLogs tags: [Comment Automations] @@ -88882,7 +88882,7 @@ paths: /v1/ads: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAds tags: ["Ad Campaigns"] @@ -88959,7 +88959,7 @@ paths: /v1/ads/search-terms: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdsSearchTerms tags: ["Ad Insights"] @@ -89031,7 +89031,7 @@ paths: /v1/ads/recommendations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listGoogleRecommendations summary: List Google Ads recommendations @@ -89198,7 +89198,7 @@ paths: '501': { description: "accountId is not a Google Ads connection." } /v1/ads/bid-strategies: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listBidStrategies tags: ["Ad Campaigns"] @@ -89366,7 +89366,7 @@ paths: /v1/ads/shared-budgets: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listSharedBudgets tags: ["Ad Campaigns"] @@ -89463,7 +89463,7 @@ paths: /v1/ads/local-services/leads: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listLocalServicesLeads tags: ["Ad Insights"] @@ -89535,7 +89535,7 @@ paths: /v1/ads/local-services/leads/{leadId}/conversations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listLocalServicesLeadConversations tags: ["Ad Insights"] @@ -89601,7 +89601,7 @@ paths: /v1/ads/keywords: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdKeywords tags: ["Ad Campaigns"] @@ -89813,7 +89813,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/automations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAutomations tags: [Automations] @@ -89945,7 +89945,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/automations/catalog: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAutomationCatalog tags: [Automations] @@ -90016,7 +90016,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/automations/actions: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAutomationActions tags: [Automations] @@ -90065,7 +90065,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/automations/{automationId}/checks: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAutomationChecks tags: [Automations] @@ -90144,7 +90144,7 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAutomation tags: [Automations] @@ -90389,7 +90389,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/templates: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAutomationTemplates tags: @@ -90507,7 +90507,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/{templateId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAutomationTemplate tags: @@ -90741,7 +90741,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/shared/{shareToken}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getSharedAutomationTemplate tags: @@ -90877,7 +90877,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/zernio/{templateId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getZernioAutomationTemplate tags: @@ -91015,7 +91015,7 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/controls: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAutomationControls tags: @@ -91163,7 +91163,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/{automationId}/approvals: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAutomationApprovals tags: @@ -91220,7 +91220,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/{automationId}/approvals/{approvalId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAutomationApproval tags: @@ -91448,7 +91448,7 @@ paths: $ref: '#/components/responses/NotFound' /v1/ads/rules: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAdRules tags: [Ad Rules] @@ -91597,7 +91597,7 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/ads/rules/templates: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAdRuleTemplates tags: [Ad Rules] @@ -91637,7 +91637,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/rules/hourly-windows: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAdRuleHourlyWindows tags: [Ad Rules] @@ -91675,7 +91675,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/rules/activity: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAdRuleActivity tags: [Ad Rules] @@ -91812,7 +91812,7 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getAdRule tags: [Ad Rules] @@ -91983,7 +91983,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/ads/rules/alerts: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAdAccountRuleAlerts tags: [Ad Rules] @@ -92045,7 +92045,7 @@ paths: $ref: '#/components/responses/Unauthorized' /v1/ads/rules/{ruleId}/alerts: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAdRuleAlerts tags: [Ad Rules] @@ -92108,7 +92108,7 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/ads/rules/{ruleId}/runs: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listAdRuleRuns tags: [Ad Rules] @@ -92223,7 +92223,7 @@ paths: '422': { description: 'The `Idempotency-Key` was used with a different body.' } '429': { $ref: '#/components/responses/RateLimited' } get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listCampaignResults tags: ["Ad Campaign Results"] @@ -92273,7 +92273,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/uploads/{uploadId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getCampaignResultsUpload tags: ["Ad Campaign Results"] @@ -92322,7 +92322,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/campaign-results/totals: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getCampaignResultsTotals tags: ["Ad Campaign Results"] @@ -92360,7 +92360,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/events: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getCampaignResultEvents tags: ["Ad Campaign Results"] @@ -92423,7 +92423,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/tag-new-ads: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getTagNewAds tags: ["Ad Campaign Results"] @@ -92480,7 +92480,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/profit: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getCampaignResultProfit tags: ["Ad Campaign Results"] @@ -92534,7 +92534,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/metrics: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listCampaignResultMetrics tags: ["Ad Campaign Results"] @@ -92603,7 +92603,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaigns: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdCampaigns tags: ["Ad Campaigns"] @@ -92976,7 +92976,7 @@ paths: /v1/ads/campaigns/{campaignId}/ad-schedule: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getCampaignAdSchedule tags: ["Ad Campaigns"] @@ -93157,7 +93157,7 @@ paths: /v1/ads/campaigns/{campaignId}/bidding: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getCampaignBidding tags: ["Ad Campaigns"] @@ -93222,7 +93222,7 @@ paths: /v1/ads/campaigns/{campaignId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdCampaignDetails tags: ["Ad Campaigns"] @@ -93562,7 +93562,7 @@ paths: /v1/ads/campaigns/{campaignId}/negative-keywords: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listCampaignNegativeKeywords tags: ["Ad Campaigns"] @@ -93993,7 +93993,7 @@ paths: /v1/ads/campaigns/{campaignId}/targeting: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getCampaignTargeting tags: ["Ad Campaigns"] @@ -94276,7 +94276,7 @@ paths: /v1/ads/ad-sets: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdSets tags: ["Ad Campaigns"] @@ -94752,7 +94752,7 @@ paths: /v1/ads/ad-sets/{adSetId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdSetDetails tags: ["Ad Campaigns"] @@ -95213,7 +95213,7 @@ paths: /v1/ads/ad-sets/{adSetId}/targeting: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdSetTargeting tags: ["Ad Campaigns"] @@ -95344,7 +95344,7 @@ paths: /v1/ads/tree: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdTree tags: ["Ad Campaigns"] @@ -95435,7 +95435,7 @@ paths: /v1/ads/performance: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdsByPerformance tags: ["Ad Campaigns"] @@ -95490,7 +95490,7 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } /v1/ads/timeline: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdsTimeline tags: ["Ad Campaigns"] @@ -95559,7 +95559,7 @@ paths: /v1/ads/{adId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAd tags: ["Ad Campaigns"] @@ -96273,7 +96273,7 @@ paths: /v1/ads/campaigns/{campaignId}/assets: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listCampaignAssets summary: List campaign assets @@ -96700,7 +96700,7 @@ paths: /v1/ads/ad-sets/{adSetId}/assets: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdGroupAssets summary: List ad-group assets @@ -97127,7 +97127,7 @@ paths: /v1/ads/campaigns/{campaignId}/analytics: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getCampaignAnalytics tags: ["Ad Insights"] @@ -97303,7 +97303,7 @@ paths: /v1/ads/{adId}/preview: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdPreviews tags: ["Ad Creatives"] @@ -97350,7 +97350,7 @@ paths: /v1/ads/{adId}/review: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdReview tags: ["Ad Campaigns"] @@ -97509,7 +97509,7 @@ paths: /v1/ads/{adId}/tiktok-smart-plus-review: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getTikTokSmartPlusAdReview tags: ["Ad Campaigns"] @@ -97582,7 +97582,7 @@ paths: /v1/ads/{adId}/media: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdMedia tags: ["Ad Creatives"] @@ -97766,7 +97766,7 @@ paths: /v1/ads/insights: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: queryAdInsights tags: ["Ad Insights"] @@ -97971,7 +97971,7 @@ paths: /v1/ads/insights/reports/{reportRunId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdInsightsReport tags: ["Ad Insights"] @@ -98020,7 +98020,7 @@ paths: /v1/ads/{adId}/analytics: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdAnalytics tags: ["Ad Insights"] @@ -98102,7 +98102,7 @@ paths: /v1/ads/{adId}/tracking-tags: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdTrackingTags tags: ["Tracking Tags"] @@ -98241,7 +98241,7 @@ paths: '502': { x-summary: "Meta accepted the request but failed to produce the image, for example from an upload or processing timeout.", 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`." } /v1/ads/{adId}/comments: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" operationId: getAdComments tags: ["Ad Accounts"] @@ -98644,7 +98644,7 @@ paths: /v1/ads/business-centers: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdsBusinessCenters tags: ["Ad Accounts"] @@ -98680,7 +98680,7 @@ paths: /v1/ads/alerts: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdsAlerts tags: ["Ad Campaigns"] @@ -98767,7 +98767,7 @@ paths: /v1/ads/activity: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdsActivityLog tags: ["Ad Accounts"] @@ -98911,7 +98911,7 @@ paths: /v1/ads/rf-predictions/{predictionId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getRfPrediction tags: ["Reach and Frequency"] @@ -99016,7 +99016,7 @@ paths: /v1/ads/studies: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdStudies tags: ["Ad Accounts"] @@ -99061,7 +99061,7 @@ paths: /v1/ads/tiktok-identities: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdsTikTokIdentities tags: ["Ad Creatives"] @@ -99106,7 +99106,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } /v1/ads/tiktok-smart-plus-materials: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getTikTokSmartPlusMaterialReport tags: ["Ad Insights"] @@ -99209,7 +99209,7 @@ paths: '502': { x-summary: "TikTok returned incomplete Smart+ data: retry later, and pass smartPlusAdIds or adGroupIds for advertisers with over 2,000 Smart+ ads.", description: "Retry later. Returned when:\n\n- more rows than the tolerance (2, or 1% of the rows) were missing from TikTok's material report after a retry (`details` carries `totalNumber`, `distinctRows` and `missingRows`); or\n- TikTok's Smart+ ad listing returned fewer ads than it declared (`details` carries `declaredAds`, `listedAds` and `listingTruncated`).\n\nWith `listingTruncated`, the advertiser has more than 2,000 Smart+ ads, so pass `smartPlusAdIds` or `adGroupIds`." } /v1/ads/tiktok-smart-plus-reviews: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listTikTokSmartPlusReviews tags: ["Ad Campaigns"] @@ -99405,7 +99405,7 @@ paths: '429': { description: "TikTok's general rate limit hit while listing the Smart+ ads (`Retry-After: 10`).", $ref: '#/components/responses/RateLimited' } /v1/ads/instagram-accounts: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdsInstagramAccounts summary: List Instagram ad identities @@ -99476,7 +99476,7 @@ paths: /v1/ads/instagram-posts: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdsInstagramPosts summary: List Instagram posts to boost @@ -99553,7 +99553,7 @@ paths: /v1/ads/advertisable-applications: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdvertisableApplications summary: List advertisable apps @@ -99609,7 +99609,7 @@ paths: /v1/ads/ios-fourteen-campaign-limits: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getIosFourteenCampaignLimits summary: Get iOS 14 campaign limits @@ -99655,7 +99655,7 @@ paths: /v1/ads/businesses: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listMetaBusinesses tags: ["Ad Accounts"] @@ -99697,7 +99697,7 @@ paths: /v1/ads/businesses/users: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listMetaBusinessUsers tags: ["Ad Accounts"] @@ -99739,7 +99739,7 @@ paths: /v1/ads/page-users: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listPageUsers tags: ["Ad Accounts"] @@ -99872,7 +99872,7 @@ paths: /v1/ads/labels: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdLabels tags: ["Ad Accounts"] @@ -100150,7 +100150,7 @@ paths: /v1/ads/high-demand-periods: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listHighDemandPeriods tags: ["Ad Accounts"] @@ -100248,7 +100248,7 @@ paths: /v1/ads/creatives: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdCreatives tags: ["Ad Creatives"] @@ -100422,7 +100422,7 @@ paths: /v1/ads/creatives/{creativeId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdCreative tags: ["Ad Creatives"] @@ -100536,7 +100536,7 @@ paths: /v1/ads/value-rule-sets: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listValueRuleSets tags: ["Ad Accounts"] @@ -100676,7 +100676,7 @@ paths: /v1/ads/value-rule-sets/{valueRuleSetId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getValueRuleSet tags: ["Ad Accounts"] @@ -100815,7 +100815,7 @@ paths: /v1/ads/accounts/negative-keyword-lists: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: "listAdNegativeKeywordLists" tags: @@ -101051,7 +101051,7 @@ paths: description: "Available only on Google Ads." /v1/ads/accounts/negative-keyword-lists/{listId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: "getAdNegativeKeywordList" tags: @@ -101654,7 +101654,7 @@ paths: description: "Available only on Google Ads." /v1/ads/campaigns/{campaignId}/negative-keyword-lists: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: "listCampaignNegativeKeywordLists" tags: @@ -101965,7 +101965,7 @@ paths: /v1/ads/accounts/callouts: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAccountCallouts summary: List account callouts @@ -102286,7 +102286,7 @@ paths: /v1/ads/accounts/sitelinks: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAccountSitelinks summary: List account sitelinks @@ -102648,7 +102648,7 @@ paths: /v1/ads/accounts/structured-snippets: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAccountStructuredSnippets summary: List account snippets @@ -102998,7 +102998,7 @@ paths: /v1/ads/accounts/hierarchy: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdAccountHierarchy tags: ["Ad Accounts"] @@ -103200,7 +103200,7 @@ paths: /v1/ads/accounts/billing: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdAccountBilling tags: ["Ad Accounts"] @@ -103396,7 +103396,7 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/ads/accounts/user-invitations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdAccountUserInvitations tags: ["Ad Accounts"] @@ -103544,7 +103544,7 @@ paths: /v1/ads/accounts/user-invitations/pending-approvals: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdAccountUserInvitationApprovals tags: ["Ad Accounts"] @@ -103628,7 +103628,7 @@ paths: /v1/ads/accounts/users: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdAccountUsers tags: ["Ad Accounts"] @@ -103756,7 +103756,7 @@ paths: /v1/ads/accounts/finance: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdAccountFinance tags: ["Ad Accounts"] @@ -103800,7 +103800,7 @@ paths: /v1/ads/accounts/health: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdAccountHealth tags: ["Ad Accounts"] @@ -103902,7 +103902,7 @@ paths: /v1/ads/accounts/live: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdAccountLiveEntities tags: ["Ad Accounts"] @@ -104262,7 +104262,7 @@ paths: platform: "meta" details: { creationStatus: "unknown" } get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdAccounts tags: ["Ad Accounts"] @@ -104494,7 +104494,7 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } /v1/ads/dsa-defaults: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getDsaDefaults tags: ["Ad Accounts"] @@ -104532,7 +104532,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/dsa-recommendations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getDsaRecommendations tags: ["Ad Accounts"] @@ -105250,7 +105250,7 @@ paths: /v1/ads/campaigns/{campaignId}/asset-groups: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listGoogleAssetGroups summary: List Performance Max asset groups @@ -105392,7 +105392,7 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getGoogleAssetGroup summary: Get a Performance Max asset group @@ -107328,7 +107328,7 @@ paths: /v1/ads/leads: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: listLeads tags: ["Lead Gen"] @@ -107402,7 +107402,7 @@ paths: /v1/ads/leads/counts: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: countLeads tags: ["Lead Gen"] @@ -107557,7 +107557,7 @@ paths: /v1/ads/lead-forms: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listLeadForms tags: ["Lead Gen"] @@ -107778,7 +107778,7 @@ paths: /v1/ads/lead-forms/{formId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getLeadForm tags: ["Lead Gen"] @@ -107850,7 +107850,7 @@ paths: /v1/ads/lead-forms/{formId}/leads: get: - x-oauth-scopes: ["automations:write"] + x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" operationId: listFormLeads tags: ["Lead Gen"] @@ -108043,7 +108043,7 @@ paths: '502': { x-summary: "Meta accepted the request but failed to produce the image, for example from an upload or processing timeout.", 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`." } get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdImages tags: ["Ad Creatives"] @@ -108178,7 +108178,7 @@ paths: '502': { x-summary: "Meta accepted the upload but failed to produce the video, such as from a chunk transfer or processing timeout.", description: "Meta accepted the request then failed to produce the media (upload session, chunk transfer, processing timeout, or a response with no video id). Inspect `platformError.reason`." } get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdVideos tags: ["Ad Creatives"] @@ -108239,7 +108239,7 @@ paths: /v1/ads/videos/{videoId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdVideoStatus tags: ["Ad Creatives"] @@ -108328,7 +108328,7 @@ paths: /v1/ads/interests: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: searchAdInterests deprecated: true @@ -108371,7 +108371,7 @@ paths: /v1/ads/targeting/search: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: searchAdTargeting tags: ["Ad Targeting"] @@ -108590,7 +108590,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/targeting/browse: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: browseAdTargeting tags: ["Ad Targeting"] @@ -108686,7 +108686,7 @@ paths: '501': { description: "accountId is not a Meta connection (platform_not_supported)." } /v1/ads/library: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: searchAdLibrary tags: ["Ad Library"] @@ -109077,7 +109077,7 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/catalogs: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdCatalogs tags: ["Product Catalogs"] @@ -109173,7 +109173,7 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } /v1/ads/catalogs/{catalogId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdCatalog tags: ["Product Catalogs"] @@ -109229,7 +109229,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/products: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdCatalogProducts tags: ["Product Catalogs"] @@ -109361,7 +109361,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/batches/{handle}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdCatalogBatch tags: ["Product Catalogs"] @@ -109403,7 +109403,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/products/{productId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdCatalogProduct tags: ["Product Catalogs"] @@ -109499,7 +109499,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/feeds: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdCatalogFeeds tags: ["Product Catalogs"] @@ -109577,7 +109577,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/feeds/{feedId}/uploads: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdCatalogFeedUploads tags: ["Product Catalogs"] @@ -109649,7 +109649,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/product-sets: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdCatalogProductSets tags: ["Product Catalogs"] @@ -109793,7 +109793,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/audiences: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdAudiences tags: ["Ad Audiences"] @@ -110102,7 +110102,7 @@ paths: /v1/ads/audiences/{audienceId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdAudience tags: ["Ad Audiences"] @@ -110477,7 +110477,7 @@ paths: /v1/ads/conversions/quality: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getConversionsQuality tags: [Conversions] @@ -110961,7 +110961,7 @@ paths: /v1/ads/conversions/actions: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listConversionActions tags: [Conversions] @@ -111118,7 +111118,7 @@ paths: /v1/ads/conversions/goals: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdConversionGoals tags: [Conversions] @@ -111288,7 +111288,7 @@ paths: /v1/ads/conversions/custom-goals: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listCustomConversionGoals tags: [Conversions] @@ -111452,7 +111452,7 @@ paths: /v1/events: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" 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 @@ -111697,7 +111697,7 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/events/paths: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getConversionPaths tags: [Conversions] @@ -111738,7 +111738,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/survey: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getSurveyAnswers tags: [Conversions] @@ -111789,7 +111789,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/ltv: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getLtvCohorts tags: [Conversions] @@ -111837,7 +111837,7 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/accuracy: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getEventsAccuracy tags: [Conversions] @@ -111921,7 +111921,7 @@ paths: '403': { description: 'No ads access on the account (`ads_addon_required`).' } /v1/events/overview: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getEventsOverview tags: [Conversions] @@ -112045,7 +112045,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/overview/daily: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getEventsOverviewDaily tags: [Conversions] @@ -112198,7 +112198,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/names: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listEventNames tags: [Conversions] @@ -112236,7 +112236,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/{eventId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getEvent tags: [Conversions] @@ -112403,7 +112403,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/destinations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listEventDestinations tags: [Conversions] @@ -112505,7 +112505,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/forwarding-rules: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listForwardingRules tags: [Conversions] @@ -112674,7 +112674,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-sites: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listTrackingSites tags: [Conversions] @@ -112781,7 +112781,7 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getTrackingSite tags: [Conversions] @@ -112972,7 +112972,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-links: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: listTrackingLinks tags: [Tracking links] @@ -113070,7 +113070,7 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getTrackingLink tags: [Tracking links] @@ -113187,7 +113187,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-links/{linkId}/stats: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads operationId: getTrackingLinkStats tags: [Tracking links] @@ -113224,7 +113224,7 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/campaigns/{campaignId}/conversion-goals: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getCampaignConversionGoals tags: ["Ad Campaigns"] @@ -113315,7 +113315,7 @@ paths: /v1/ads/conversions/destinations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdConversionDestinations tags: [Conversions] @@ -113594,7 +113594,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdConversionDestination tags: [Conversions] @@ -113756,7 +113756,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}/associations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdConversionAssociations tags: [Conversions] @@ -113931,7 +113931,7 @@ paths: /v1/ads/conversions/destinations/{destinationId}/metrics: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getAdConversionMetrics tags: [Conversions] @@ -113998,7 +113998,7 @@ paths: /v1/ads/conversions/custom-conversions: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listAdCustomConversions tags: [Conversions] @@ -114086,7 +114086,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listConversionDestinations deprecated: true @@ -114324,7 +114324,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getConversionDestination deprecated: true @@ -114473,7 +114473,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listConversionAssociations deprecated: true @@ -114641,7 +114641,7 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getConversionMetrics deprecated: true @@ -114696,7 +114696,7 @@ paths: /v1/whatsapp/conversions: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listWhatsAppConversions tags: [WhatsApp] @@ -115505,7 +115505,7 @@ paths: /v1/accounts/{accountId}/business-agent: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentStatus tags: [Business Agent] @@ -115578,7 +115578,7 @@ paths: '409': { description: 'Meta rejected the state change (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/settings: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentSettings tags: [Business Agent] @@ -115664,7 +115664,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/allowlist: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentAllowlist tags: [Business Agent] @@ -115737,7 +115737,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/business-information: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentBusinessInformation tags: [Business Agent] @@ -115798,7 +115798,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/faqs: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentFaqs tags: [Business Agent] @@ -115850,7 +115850,7 @@ paths: '409': { description: 'Meta rejected the entry (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/faqs/{faqId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentFaq tags: [Business Agent] @@ -115912,7 +115912,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/websites: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentWebsites tags: [Business Agent] @@ -115963,7 +115963,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/websites/{websiteId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentWebsite tags: [Business Agent] @@ -116025,7 +116025,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/files: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentFiles tags: [Business Agent] @@ -116097,7 +116097,7 @@ paths: '413': { x-summary: "The file is larger than 100 MB: upload a smaller file.", description: 'File larger than 100 MB (code payload_too_large). A multipart body above the request limit is rejected by the host before the route runs.' } /v1/accounts/{accountId}/business-agent/files/{fileId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentFile tags: [Business Agent] @@ -116134,7 +116134,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/skills: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentSkills tags: [Business Agent] @@ -116185,7 +116185,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/skills/{skillId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentSkill tags: [Business Agent] @@ -116247,7 +116247,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/ui-skills: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentUiSkills tags: [Business Agent] @@ -116303,7 +116303,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/ui-skills/{uiSkillId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentUiSkill tags: [Business Agent] @@ -116365,7 +116365,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentConnectors tags: [Business Agent] @@ -116418,7 +116418,7 @@ paths: '409': { description: 'A connector with that name already exists (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentConnector tags: [Business Agent] @@ -116550,7 +116550,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/logs: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentConnectorLogs tags: [Business Agent] @@ -116583,7 +116583,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: listBusinessAgentConnectorTools tags: [Business Agent] @@ -116636,7 +116636,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools/{toolId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentConnectorTool tags: [Business Agent] @@ -116737,7 +116737,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/budget: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentBudget tags: [Business Agent] @@ -116871,7 +116871,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/events/{eventId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: getBusinessAgentEvent tags: [Business Agent] @@ -116892,7 +116892,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/evals: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" operationId: readBusinessAgentEvals tags: [Business Agent] @@ -116953,7 +116953,7 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/tracking-tags: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listTrackingTags tags: ["Tracking Tags"] @@ -117156,7 +117156,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getTrackingTag tags: ["Tracking Tags"] @@ -117344,7 +117344,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/shared-accounts: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listTrackingTagSharedAccounts tags: ["Tracking Tags"] @@ -117678,7 +117678,7 @@ paths: reason: { $ref: '#/components/schemas/TrackingTagInstallBlockedReason' } '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-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getTrackingTagStoreInstall tags: ["Tracking Tags"] @@ -117796,7 +117796,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/events: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listTrackingTagEvents tags: ["Tracking Tags"] @@ -118133,7 +118133,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/users: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listTrackingTagUsers tags: ["Tracking Tags"] @@ -118260,7 +118260,7 @@ paths: '501': { description: 'The platform cannot remove tag users through its API (code `platform_not_supported`); the message says where to do it.' } /v1/accounts/{accountId}/tracking-tags/{tagId}/partners: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: listTrackingTagPartners tags: ["Tracking Tags"] @@ -118300,7 +118300,7 @@ paths: '501': { description: 'The platform has no partner sharing (code `platform_not_supported`).' } /v1/accounts/{accountId}/tracking-tags/{tagId}/diagnostics: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getTrackingTagDiagnostics tags: ["Tracking Tags"] @@ -118340,7 +118340,7 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/stats: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getTrackingTagStats tags: ["Tracking Tags"] @@ -122836,7 +122836,7 @@ paths: /v1/verify/verifications/{verificationId}: get: - x-oauth-scopes: ["messaging:write"] + x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" operationId: getVerification tags: [Verify] @@ -122904,7 +122904,7 @@ paths: /v1/ads/pixels: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: 'listTikTokAdPixels' summary: 'List TikTok ad pixels' @@ -122996,7 +122996,7 @@ paths: description: 'Pixel Management permission is missing (code reconnect_required). Reconnect TikTok Ads to grant it.' /v1/ads/partnership-content: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: 'listPartnershipAdContent' summary: 'List partnership ad content' @@ -123072,7 +123072,7 @@ paths: description: 'The advertiser Instagram Business Account could not be resolved.' /v1/ads/partnership-permissions: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: 'listPartnershipAdPermissions' summary: 'List partnership permissions' @@ -123374,7 +123374,7 @@ paths: /v1/conversion-audit/meta-audit: get: - x-oauth-scopes: ["ads:write"] + x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" operationId: getMetaConversionAudit tags: [Conversion Audit] diff --git a/scripts/generate_mcp_tools.py b/scripts/generate_mcp_tools.py index e54db485..5a005172 100644 --- a/scripts/generate_mcp_tools.py +++ b/scripts/generate_mcp_tools.py @@ -839,24 +839,26 @@ def generate_tool_handler( return "\n".join(lines) -def declared_oauth_scope(scopes: list[str], read_only: bool) -> str | None: - """The one scope a tool declares, out of the spec's x-oauth-scopes (any of which reaches it). +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 prefers a :read scope and a write a :write one, so ChatGPT asks for + 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" - return next((s for s in scopes if s.endswith(preferred)), scopes[0] if scopes else None) + 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_scope"]) for op in operations if op["oauth_scope"]) + scoped = sorted((op["tool_name"], op["oauth_scopes"]) for op in operations if op["oauth_scopes"]) return [ "", "", - "# The OAuth scope each tool declares (securitySchemes), from the spec's x-oauth-scopes.", - "TOOL_OAUTH_SCOPE: dict[str, str] = {", - *(f' "{name}": "{scope}",' for name, scope in scoped), + "# 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), "}", ] @@ -921,7 +923,7 @@ def main() -> int: "platforms": operation.get("x-platforms", []), "read_only": read_only, "open_world": not read_only or operation_id in OPEN_WORLD_READ_OPERATIONS, - "oauth_scope": declared_oauth_scope(operation.get("x-oauth-scopes") or [], read_only), + "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], diff --git a/src/late/mcp/chatgpt_server.py b/src/late/mcp/chatgpt_server.py index 9ef5c919..fc2a5644 100644 --- a/src/late/mcp/chatgpt_server.py +++ b/src/late/mcp/chatgpt_server.py @@ -35,7 +35,7 @@ ENDPOINT_OAUTH_PROTECTED_RESOURCE, MCP_PUBLIC_URL, ) -from late.mcp.generated_tools import TOOL_OAUTH_SCOPE +from late.mcp.generated_tools import TOOL_OAUTH_SCOPES from late.mcp.media_items import media_item from late.mcp.middleware import ( MissingScopeChallengeMiddleware, @@ -562,7 +562,7 @@ def _describe_post(post: Post, verb: str) -> str: chatgpt_mcp.add_middleware(RateLimitGuidanceMiddleware()) chatgpt_mcp.add_middleware( MissingScopeChallengeMiddleware( - scope_by_tool=TOOL_OAUTH_SCOPE, + scopes_by_tool=TOOL_OAUTH_SCOPES, resource_metadata_url=( f"{MCP_PUBLIC_URL}{ENDPOINT_OAUTH_PROTECTED_RESOURCE}{ENDPOINT_CHATGPT}" ), diff --git a/src/late/mcp/chatgpt_tools.py b/src/late/mcp/chatgpt_tools.py index 149d9925..b836cd4e 100644 --- a/src/late/mcp/chatgpt_tools.py +++ b/src/late/mcp/chatgpt_tools.py @@ -13,18 +13,18 @@ import re from typing import TYPE_CHECKING, Any -from late.mcp.generated_tools import TOOL_OAUTH_SCOPE, register_generated_tools +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. Reads -# only, from resource groups a link reaches with the scopes ChatGPT already -# asks for plus messaging:write for the inbox: ads and contacts reads wait, -# because their only scopes (ads:write, automations:write) also allow spending -# and sending. Sends, deletes and spend are later waves. +# 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", @@ -40,39 +40,39 @@ "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", - "broadcasts_get_broadcast", - "workflows_get_workflow", - "instagram_list_instagram_stories", - "analytics_get_facebook_page_insights", - "analytics_get_instagram_follower_history", - "profiles_get_profile", - "instagram_get_instagram_publishing_limit", - "analytics_get_you_tube_video_retention", - "mentions_list_inbox_mentions", - "accounts_get_tik_tok_creator_info", - "analytics_get_you_tube_channel_insights", + "contacts_list_contacts", ) CHATGPT_GENERATED_TOOLS = WAVE_1 _SUMMARY_MAX = 400 -_PARAM_MAX = 160 +_PARAM_MAX = 100 _ARGS_HEADING = re.compile(r"\n[ \t]*Args:\n") _PARAM_LINE = re.compile(r"^([ \t]+)(\w+):\s*(.*)$") @@ -113,7 +113,7 @@ def concise_description(doc: str) -> str: def oauth_scopes_of(tools: Iterable[str]) -> list[str]: """The scopes these generated tools declare, deduplicated in first-use order.""" - return list(dict.fromkeys(TOOL_OAUTH_SCOPE[tool] for tool in tools)) + return list(dict.fromkeys(TOOL_OAUTH_SCOPES[tool][0] for tool in tools)) class _ListedToolsOnly: @@ -128,7 +128,7 @@ def tool(self, **kwargs: Any) -> Callable[[Callable[..., Any]], Callable[..., An def register(fn: Callable[..., Any]) -> Callable[..., Any]: if fn.__name__ not in self._listed: return fn - scopes = [TOOL_OAUTH_SCOPE[fn.__name__]] + scopes = [TOOL_OAUTH_SCOPES[fn.__name__][0]] meta = {"securitySchemes": [{"type": "oauth2", "scopes": scopes}]} description = concise_description(fn.__doc__ or fn.__name__) self._server.tool(meta=meta, description=description, **kwargs)(fn) 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 36fee4cd..1ef6ce6b 100644 --- a/src/late/mcp/generated_tools.py +++ b/src/late/mcp/generated_tools.py @@ -60326,1334 +60326,3203 @@ def workspaces_create_workspace_api_key( raise ToolError(f"Error: {e}") from e -# The OAuth scope each tool declares (securitySchemes), from the spec's x-oauth-scopes. -TOOL_OAUTH_SCOPE: dict[str, str] = { - "account_groups_create_account_group": "accounts:write", - "account_groups_delete_account_group": "accounts:write", - "account_groups_list_account_groups": "accounts:read", - "account_groups_update_account_group": "accounts:write", - "account_settings_delete_instagram_ice_breakers": "accounts:write", - "account_settings_delete_messenger_get_started": "accounts:write", - "account_settings_delete_messenger_greeting": "accounts:write", - "account_settings_delete_messenger_ice_breakers": "accounts:write", - "account_settings_delete_messenger_menu": "accounts:write", - "account_settings_delete_telegram_commands": "accounts:write", - "account_settings_get_facebook_page_info": "accounts:read", - "account_settings_get_instagram_ice_breakers": "accounts:read", - "account_settings_get_messenger_get_started": "accounts:read", - "account_settings_get_messenger_greeting": "accounts:read", - "account_settings_get_messenger_ice_breakers": "accounts:read", - "account_settings_get_messenger_menu": "accounts:read", - "account_settings_get_telegram_commands": "accounts:read", - "account_settings_get_wechat_server_config": "accounts:read", - "account_settings_set_instagram_ice_breakers": "accounts:write", - "account_settings_set_messenger_get_started": "accounts:write", - "account_settings_set_messenger_greeting": "accounts:write", - "account_settings_set_messenger_ice_breakers": "accounts:write", - "account_settings_set_messenger_menu": "accounts:write", - "account_settings_set_telegram_commands": "accounts:write", - "account_settings_update_facebook_page_info": "accounts:write", - "accounts_batch_get_google_business_reviews": "messaging:write", - "accounts_create_google_business_media": "accounts:write", - "accounts_create_google_business_place_action": "accounts:write", - "accounts_delete_account": "accounts:write", - "accounts_delete_google_business_media": "accounts:write", - "accounts_delete_google_business_place_action": "accounts:write", - "accounts_delete_google_business_review_reply": "messaging:write", - "accounts_get_account": "accounts:read", - "accounts_get_account_health": "accounts:read", - "accounts_get_account_posts": "posts:read", - "accounts_get_all_accounts_health": "accounts:read", - "accounts_get_bluesky_settings": "accounts:read", - "accounts_get_follower_stats": "analytics:read", - "accounts_get_gmb_attribute_metadata": "accounts:read", - "accounts_get_gohighlevel_funnel_tracking": "ads:write", - "accounts_get_gohighlevel_settings": "accounts:read", - "accounts_get_google_business_attributes": "accounts:read", - "accounts_get_google_business_food_menus": "accounts:read", - "accounts_get_google_business_location_details": "accounts:read", - "accounts_get_google_business_review": "messaging:write", - "accounts_get_google_business_reviews": "messaging:write", - "accounts_get_hub_spot_settings": "accounts:read", - "accounts_get_instagram_follow_status": "accounts:read", - "accounts_get_linked_in_mentions": "accounts:read", - "accounts_get_salesforce_settings": "accounts:read", - "accounts_get_slack_settings": "accounts:read", - "accounts_get_stripe_settings": "accounts:read", - "accounts_get_tik_tok_creator_info": "accounts:read", - "accounts_grant_business_partner": "accounts:write", - "accounts_list_accounts": "accounts:read", - "accounts_list_business_partners": "accounts:read", - "accounts_list_gohighlevel_audience_syncs": "ads:write", - "accounts_list_google_business_media": "accounts:read", - "accounts_list_google_business_place_actions": "accounts:read", - "accounts_list_hub_spot_contact_properties": "accounts:read", - "accounts_list_tik_tok_commercial_music": "accounts:read", - "accounts_move_account_to_profile": "accounts:write", - "accounts_reply_to_google_business_review": "messaging:write", - "accounts_revoke_business_partner": "accounts:write", - "accounts_search_tik_tok_locations": "accounts:read", - "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_update_bluesky_settings": "accounts:write", - "accounts_update_gohighlevel_settings": "accounts:write", - "accounts_update_google_business_attributes": "accounts:write", - "accounts_update_google_business_food_menus": "accounts:write", - "accounts_update_google_business_location_details": "accounts:write", - "accounts_update_google_business_place_action": "accounts:write", - "accounts_update_hub_spot_settings": "accounts:write", - "accounts_update_salesforce_settings": "accounts:write", - "accounts_update_slack_settings": "accounts:write", - "accounts_update_stripe_settings": "accounts:write", - "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", - "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:write", - "ad_accounts_get_ad_account_finance": "ads:write", - "ad_accounts_get_ad_account_health": "ads:write", - "ad_accounts_get_ad_account_hierarchy": "ads:write", - "ad_accounts_get_ad_account_live_entities": "ads:write", - "ad_accounts_get_ad_comments": "messaging:write", - "ad_accounts_get_ad_negative_keyword_list": "ads:write", - "ad_accounts_get_ads_activity_log": "ads:write", - "ad_accounts_get_dsa_defaults": "ads:write", - "ad_accounts_get_dsa_recommendations": "ads:write", - "ad_accounts_get_ios_fourteen_campaign_limits": "ads:write", - "ad_accounts_get_value_rule_set": "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:write", - "ad_accounts_list_account_sitelinks": "ads:write", - "ad_accounts_list_account_structured_snippets": "ads:write", - "ad_accounts_list_ad_account_user_invitation_approvals": "ads:write", - "ad_accounts_list_ad_account_user_invitations": "ads:write", - "ad_accounts_list_ad_account_users": "ads:write", - "ad_accounts_list_ad_accounts": "ads:write", - "ad_accounts_list_ad_labels": "ads:write", - "ad_accounts_list_ad_negative_keyword_lists": "ads:write", - "ad_accounts_list_ad_studies": "ads:write", - "ad_accounts_list_ads_business_centers": "ads:write", - "ad_accounts_list_ads_instagram_accounts": "ads:write", - "ad_accounts_list_ads_instagram_posts": "ads:write", - "ad_accounts_list_advertisable_applications": "ads:write", - "ad_accounts_list_custom_conversions": "accounts:read", - "ad_accounts_list_high_demand_periods": "ads:write", - "ad_accounts_list_meta_business_users": "ads:write", - "ad_accounts_list_meta_businesses": "ads:write", - "ad_accounts_list_page_users": "ads:write", - "ad_accounts_list_tik_tok_ad_pixels": "ads:write", - "ad_accounts_list_value_rule_sets": "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:write", - "ad_audiences_list_ad_audiences": "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:write", - "ad_campaign_results_get_campaign_result_profit": "ads:write", - "ad_campaign_results_get_campaign_results_totals": "ads:write", - "ad_campaign_results_get_campaign_results_upload": "ads:write", - "ad_campaign_results_get_tag_new_ads": "ads:write", - "ad_campaign_results_list_campaign_result_metrics": "ads:write", - "ad_campaign_results_list_campaign_results": "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:write", - "ad_campaigns_get_ad_campaign_details": "ads:write", - "ad_campaigns_get_ad_review": "ads:write", - "ad_campaigns_get_ad_set_details": "ads:write", - "ad_campaigns_get_ad_set_targeting": "ads:write", - "ad_campaigns_get_ad_tree": "ads:write", - "ad_campaigns_get_ads_timeline": "ads:write", - "ad_campaigns_get_campaign_ad_schedule": "ads:write", - "ad_campaigns_get_campaign_bidding": "ads:write", - "ad_campaigns_get_campaign_conversion_goals": "ads:write", - "ad_campaigns_get_campaign_targeting": "ads:write", - "ad_campaigns_get_google_asset_group": "ads:write", - "ad_campaigns_get_tik_tok_smart_plus_ad_review": "ads:write", - "ad_campaigns_list_ad_campaigns": "ads:write", - "ad_campaigns_list_ad_group_assets": "ads:write", - "ad_campaigns_list_ad_keywords": "ads:write", - "ad_campaigns_list_ad_sets": "ads:write", - "ad_campaigns_list_ads": "ads:write", - "ad_campaigns_list_ads_alerts": "ads:write", - "ad_campaigns_list_ads_by_performance": "ads:write", - "ad_campaigns_list_bid_strategies": "ads:write", - "ad_campaigns_list_campaign_assets": "ads:write", - "ad_campaigns_list_campaign_negative_keyword_lists": "ads:write", - "ad_campaigns_list_campaign_negative_keywords": "ads:write", - "ad_campaigns_list_google_asset_groups": "ads:write", - "ad_campaigns_list_google_recommendations": "ads:write", - "ad_campaigns_list_shared_budgets": "ads:write", - "ad_campaigns_list_tik_tok_smart_plus_reviews": "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:write", - "ad_creatives_get_ad_media": "ads:write", - "ad_creatives_get_ad_previews": "ads:write", - "ad_creatives_get_ad_video_status": "ads:write", - "ad_creatives_list_ad_creatives": "ads:write", - "ad_creatives_list_ad_images": "ads:write", - "ad_creatives_list_ad_videos": "ads:write", - "ad_creatives_list_ads_tik_tok_identities": "ads:write", - "ad_creatives_list_partnership_ad_content": "ads:write", - "ad_creatives_list_partnership_ad_permissions": "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:write", - "ad_insights_get_ad_insights_report": "ads:write", - "ad_insights_get_ads_search_terms": "ads:write", - "ad_insights_get_campaign_analytics": "ads:write", - "ad_insights_get_tik_tok_smart_plus_material_report": "ads:write", - "ad_insights_list_local_services_lead_conversations": "ads:write", - "ad_insights_list_local_services_leads": "ads:write", - "ad_insights_query_ad_insights": "ads:write", - "ad_library_search_ad_library": "ads:write", - "ad_rules_create_ad_rule": "ads:write", - "ad_rules_delete_ad_rule": "ads:write", - "ad_rules_get_ad_rule": "ads:write", - "ad_rules_get_ad_rule_hourly_windows": "ads:write", - "ad_rules_list_ad_account_rule_alerts": "ads:write", - "ad_rules_list_ad_rule_activity": "ads:write", - "ad_rules_list_ad_rule_alerts": "ads:write", - "ad_rules_list_ad_rule_runs": "ads:write", - "ad_rules_list_ad_rule_templates": "ads:write", - "ad_rules_list_ad_rules": "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: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:write", - "ad_targeting_search_ad_targeting": "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", - "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:write", - "automations_get_automation_approval": "ads:write", - "automations_get_automation_catalog": "ads:write", - "automations_get_automation_controls": "ads:write", - "automations_get_automation_template": "ads:write", - "automations_get_shared_automation_template": "ads:write", - "automations_get_zernio_automation_template": "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:write", - "automations_list_automation_approvals": "ads:write", - "automations_list_automation_checks": "ads:write", - "automations_list_automation_templates": "ads:write", - "automations_list_automations": "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", - "blogs_create_blog_article": "posts:write", - "blogs_delete_blog": "posts:write", - "blogs_delete_blog_article": "posts:write", - "blogs_get_blog": "posts:read", - "blogs_get_blog_article": "posts:read", - "blogs_list_blog_articles": "posts:read", - "blogs_list_blogs": "posts:read", - "blogs_update_blog": "posts:write", - "blogs_update_blog_article": "posts:write", - "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:write", - "branded_calling_get_branded_calling_identity": "messaging:write", - "branded_calling_list_branded_calling_call_reasons": "messaging:write", - "branded_calling_list_branded_calling_enterprises": "messaging:write", - "branded_calling_list_branded_calling_identities": "messaging:write", - "branded_calling_list_branded_calling_identity_numbers": "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:write", - "broadcasts_list_broadcast_recipients": "messaging:write", - "broadcasts_list_broadcasts": "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:write", - "business_agent_get_business_agent_business_information": "messaging:write", - "business_agent_get_business_agent_connector": "messaging:write", - "business_agent_get_business_agent_connector_logs": "messaging:write", - "business_agent_get_business_agent_connector_tool": "messaging:write", - "business_agent_get_business_agent_event": "messaging:write", - "business_agent_get_business_agent_faq": "messaging:write", - "business_agent_get_business_agent_file": "messaging:write", - "business_agent_get_business_agent_skill": "messaging:write", - "business_agent_get_business_agent_status": "messaging:write", - "business_agent_get_business_agent_ui_skill": "messaging:write", - "business_agent_get_business_agent_website": "messaging:write", - "business_agent_list_business_agent_allowlist": "messaging:write", - "business_agent_list_business_agent_connector_tools": "messaging:write", - "business_agent_list_business_agent_connectors": "messaging:write", - "business_agent_list_business_agent_faqs": "messaging:write", - "business_agent_list_business_agent_files": "messaging:write", - "business_agent_list_business_agent_settings": "messaging:write", - "business_agent_list_business_agent_skills": "messaging:write", - "business_agent_list_business_agent_ui_skills": "messaging:write", - "business_agent_list_business_agent_websites": "messaging:write", - "business_agent_onboard_business_agent": "messaging:write", - "business_agent_read_business_agent_evals": "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:write", - "calls_get_call_recording": "messaging:write", - "calls_list_calls": "messaging:write", - "comment_automations_create_comment_automation": "messaging:write", - "comment_automations_delete_comment_automation": "messaging:write", - "comment_automations_get_comment_automation": "messaging:write", - "comment_automations_list_comment_automation_logs": "messaging:write", - "comment_automations_list_comment_automations": "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:write", - "comments_hide_inbox_comment": "messaging:write", - "comments_like_inbox_comment": "messaging:write", - "comments_like_post": "messaging:write", - "comments_list_inbox_comments": "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", - "connect_ads": "accounts:read", - "connect_app_lovin_ads_credentials": "accounts:write", - "connect_assign_google_business_location": "accounts:write", - "connect_attentive_credentials": "accounts:write", - "connect_awin_credentials": "accounts:write", - "connect_bluesky_credentials": "accounts:write", - "connect_complete_telegram_connect": "accounts:write", - "connect_complete_whats_app_phone_selection": "accounts:write", - "connect_configure_tik_tok_ads_brand_identity": "accounts:write", - "connect_create_google_business_location": "accounts:write", - "connect_create_google_org_connection": "accounts:write", - "connect_create_microsoft_org_connection": "accounts:write", - "connect_create_o_auth_app": "accounts:write", - "connect_create_pinterest_board": "accounts:write", - "connect_create_platform_invite": "accounts:write", - "connect_create_youtube_playlist": "accounts:write", - "connect_delete_o_auth_app": "accounts:write", - "connect_delete_org_connection": "accounts:write", - "connect_discord_channel": "accounts:write", - "connect_get_amazon_ads_connect_url": "accounts:read", - "connect_get_campaign_manager_connect_url": "accounts:read", - "connect_get_connect_handoff": "accounts:read", - "connect_get_connect_url": "accounts:read", - "connect_get_connect_welcome_screen": "accounts:read", - "connect_get_facebook_pages": "accounts:read", - "connect_get_gmb_locations": "accounts:read", - "connect_get_gohighlevel_connect_url": "accounts:read", - "connect_get_google_analytics_connect_url": "accounts:read", - "connect_get_google_search_console_connect_url": "accounts:read", - "connect_get_hub_spot_connect_url": "accounts:read", - "connect_get_linked_in_organizations": "accounts:read", - "connect_get_o_auth_app": "accounts:read", - "connect_get_org_connection": "accounts:read", - "connect_get_page_webhook_subscription": "accounts:read", - "connect_get_pinterest_boards": "accounts:read", - "connect_get_reddit_flairs": "accounts:read", - "connect_get_reddit_subreddits": "accounts:read", - "connect_get_salesforce_connect_url": "accounts:read", - "connect_get_shopify_connect_url": "accounts:read", - "connect_get_stripe_connect_url": "accounts:read", - "connect_get_subreddit_rules": "accounts:read", - "connect_get_telegram_connect_status": "accounts:read", - "connect_get_webflow_connect_url": "accounts:read", - "connect_get_wechat_ip_whitelist": "accounts:read", - "connect_get_whats_app_sdk_config": "accounts:read", - "connect_get_wix_connect_url": "accounts:read", - "connect_get_word_press_auth_url": "accounts:read", - "connect_get_youtube_captions": "accounts:read", - "connect_get_youtube_playlists": "accounts:read", - "connect_handle_o_auth_callback": "accounts:write", - "connect_impact_credentials": "accounts:write", - "connect_initiate_telegram_connect": "accounts:write", - "connect_klaviyo_credentials": "accounts:write", - "connect_line_credentials": "accounts:write", - "connect_list_campaign_manager_profiles": "accounts:read", - "connect_list_facebook_pages": "accounts:read", - "connect_list_google_analytics_properties": "accounts:read", - "connect_list_google_business_categories": "accounts:read", - "connect_list_google_business_locations": "accounts:read", - "connect_list_google_search_console_sites": "accounts:read", - "connect_list_instagram_pages": "accounts:read", - "connect_list_o_auth_apps": "accounts:read", - "connect_list_org_connection_users": "accounts:read", - "connect_list_org_connections": "accounts:read", - "connect_list_pinterest_boards_for_selection": "accounts:read", - "connect_list_slack_channels": "accounts:read", - "connect_list_snapchat_profiles": "accounts:read", - "connect_list_whats_app_phone_numbers": "accounts:read", - "connect_open_ai_ads_credentials": "accounts:write", - "connect_resync_page_webhook_subscription": "accounts:write", - "connect_search_google_business_locations": "accounts:read", - "connect_select_campaign_manager_profile": "accounts:write", - "connect_select_facebook_page": "accounts:write", - "connect_select_google_analytics_property": "accounts:write", - "connect_select_google_business_location": "accounts:write", - "connect_select_google_search_console_site": "accounts:write", - "connect_select_instagram_account": "accounts:write", - "connect_select_linked_in_organization": "accounts:write", - "connect_select_pinterest_board": "accounts:write", - "connect_select_snapchat_profile": "accounts:write", - "connect_set_reddit_post_flair": "accounts:write", - "connect_shopify_with_token": "accounts:write", - "connect_slack_channel": "accounts:write", - "connect_snapchat_ads_credentials": "accounts:write", - "connect_start_microsoft_admin_consent": "accounts:read", - "connect_taboola_ads_credentials": "accounts:write", - "connect_test_o_auth_app": "accounts:write", - "connect_trade_desk_ads_credentials": "accounts:write", - "connect_trade_desk_ads_partner": "accounts:write", - "connect_update_connect_welcome_screen": "accounts:write", - "connect_update_facebook_page": "accounts:write", - "connect_update_gmb_location": "accounts:write", - "connect_update_linked_in_organization": "accounts:write", - "connect_update_o_auth_app": "accounts:write", - "connect_update_org_connection": "accounts:write", - "connect_update_pinterest_boards": "accounts:write", - "connect_update_reddit_subreddits": "accounts:write", - "connect_update_youtube_default_playlist": "accounts:write", - "connect_verify_org_connection": "accounts:write", - "connect_vote_reddit_thing": "messaging:write", - "connect_webflow_with_site_token": "accounts:write", - "connect_wechat_credentials": "accounts:write", - "connect_whats_app_credentials": "accounts:write", - "connect_whats_app_embedded_signup": "accounts:write", - "connect_whop_ads_credentials": "accounts:write", - "connect_word_press_with_application_password": "accounts:write", - "contacts_autocomplete_contacts": "automations:write", - "contacts_bulk_create_contacts": "automations:write", - "contacts_create_contact": "automations:write", - "contacts_delete_contact": "automations:write", - "contacts_get_contact": "automations:write", - "contacts_get_contact_channels": "automations:write", - "contacts_list_contact_groups": "automations:write", - "contacts_list_contacts": "automations:write", - "contacts_update_contact": "automations:write", - "content_retention_get_content_retention": "accounts:read", - "content_retention_update_content_retention": "accounts:write", - "conversion_audit_create_conversion_audit_monitor": "accounts:write", - "conversion_audit_delete_conversion_audit_monitor": "accounts:write", - "conversion_audit_get_meta_conversion_audit": "ads:write", - "conversion_audit_list_conversion_audit_monitors": "accounts:read", - "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:write", - "conversions_get_ad_conversion_metrics": "ads:write", - "conversions_get_conversion_destination": "ads:write", - "conversions_get_conversion_metrics": "ads:write", - "conversions_get_conversion_paths": "ads:write", - "conversions_get_conversions_quality": "ads:write", - "conversions_get_event": "ads:write", - "conversions_get_events_accuracy": "ads:write", - "conversions_get_events_overview": "ads:write", - "conversions_get_events_overview_daily": "ads:write", - "conversions_get_ltv_cohorts": "ads:write", - "conversions_get_survey_answers": "ads:write", - "conversions_get_tracking_site": "ads:write", - "conversions_list_ad_conversion_associations": "ads:write", - "conversions_list_ad_conversion_destinations": "ads:write", - "conversions_list_ad_conversion_goals": "ads:write", - "conversions_list_ad_custom_conversions": "ads:write", - "conversions_list_conversion_actions": "ads:write", - "conversions_list_conversion_associations": "ads:write", - "conversions_list_conversion_destinations": "ads:write", - "conversions_list_custom_conversion_goals": "ads:write", - "conversions_list_event_destinations": "ads:write", - "conversions_list_event_names": "ads:write", - "conversions_list_events": "ads:write", - "conversions_list_forwarding_rules": "ads:write", - "conversions_list_tracking_sites": "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", - "creator_portal_get_creator_payout_statement": "money:write", - "creator_portal_get_creator_payouts": "money:write", - "creator_portal_get_creator_portal": "money:write", - "crm_create_crm_activity": "automations:write", - "crm_create_crm_contact": "automations:write", - "crm_get_crm_contact": "automations:write", - "crm_get_crm_deal": "automations:write", - "crm_list_crm_deals": "automations:write", - "crm_list_crm_owners": "automations:write", - "crm_search_crm_contacts": "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", - "custom_fields_delete_custom_field": "accounts:write", - "custom_fields_list_custom_fields": "accounts:read", - "custom_fields_set_contact_field_value": "automations:write", - "custom_fields_update_custom_field": "accounts:write", - "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", - "discord_get_discord_guild_member": "automations:write", - "discord_get_discord_scheduled_event": "messaging:write", - "discord_get_discord_settings": "accounts:read", - "discord_list_discord_guild_members": "automations:write", - "discord_list_discord_guild_roles": "messaging:write", - "discord_list_discord_pinned_messages": "messaging:write", - "discord_list_discord_scheduled_events": "messaging:write", - "discord_pin_discord_message": "messaging:write", - "discord_remove_discord_member_role": "automations:write", - "discord_search_discord_guild_members": "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", - "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:write", - "email_forward_email_message": "messaging:write", - "email_get_email_draft": "messaging:write", - "email_get_email_message": "messaging:write", - "email_get_email_signature": "messaging:write", - "email_get_email_thread": "messaging:write", - "email_get_scheduled_email": "messaging:write", - "email_import_email_signatures": "messaging:write", - "email_list_email_drafts": "messaging:write", - "email_list_email_folders": "messaging:write", - "email_list_email_labels": "messaging:write", - "email_list_email_messages": "messaging:write", - "email_list_email_send_as": "messaging:write", - "email_list_email_shared_mailboxes": "messaging:write", - "email_list_email_signatures": "messaging:write", - "email_list_email_threads": "messaging:write", - "email_list_scheduled_emails": "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", - "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", - "gmb_services_update_google_business_services": "accounts:write", - "gmb_verifications_complete_google_business_verification": "accounts:write", - "gmb_verifications_fetch_google_business_verification_options": "accounts:read", - "gmb_verifications_get_google_business_verifications": "accounts:read", - "gmb_verifications_start_google_business_verification": "accounts:write", - "inbox_analytics_get_inbox_conversation_analytics": "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:write", - "instagram_get_instagram_audio": "accounts:read", - "instagram_get_instagram_business_discovery": "analytics:read", - "instagram_get_instagram_mentioned_comment": "messaging:write", - "instagram_get_instagram_mentioned_media": "messaging:write", - "instagram_get_instagram_publishing_limit": "accounts:read", - "instagram_get_instagram_story_insights": "analytics:read", - "instagram_list_instagram_live_media": "analytics:read", - "instagram_list_instagram_media_collaborators": "posts:read", - "instagram_list_instagram_stories": "analytics:read", - "instagram_list_instagram_tagged_media": "analytics:read", - "instagram_search_instagram_audio": "accounts:read", - "lead_gen_archive_lead_form": "ads:write", - "lead_gen_count_leads": "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:write", - "lead_gen_list_form_leads": "automations:write", - "lead_gen_list_lead_forms": "ads:write", - "lead_gen_list_leads": "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", - "media_get_media_presigned_url": "posts:write", - "media_prepare_media": "posts:write", - "mentions_list_inbox_mentions": "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:write", - "messages_get_inbox_conversation_messages": "messaging:write", - "messages_get_message_attachment": "messaging:write", - "messages_list_conversation_labels": "messaging:write", - "messages_list_inbox_conversations": "messaging:write", - "messages_list_inbox_labels": "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: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", - "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:write", - "metrics_get_ad_metrics": "ads:write", - "metrics_get_ad_set_metrics": "ads:write", - "metrics_get_campaign_metrics": "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: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:write", - "phone_numbers_get_phone_number_claim": "messaging:write", - "phone_numbers_get_phone_number_kyc_form": "messaging:write", - "phone_numbers_get_phone_number_port_claim": "messaging:write", - "phone_numbers_get_phone_number_port_in_order_requirements": "messaging:write", - "phone_numbers_get_phone_number_port_in_requirements": "messaging:write", - "phone_numbers_get_phone_number_remediation": "messaging:write", - "phone_numbers_list_phone_number_countries": "messaging:write", - "phone_numbers_list_phone_number_port_ins": "messaging:write", - "phone_numbers_list_phone_number_stock_watches": "messaging:write", - "phone_numbers_list_phone_numbers": "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: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:write", - "posts_bulk_upload_posts": "posts:write", - "posts_create_post": "posts:write", - "posts_delete_post": "posts:write", - "posts_edit_post": "posts:write", - "posts_get_post": "posts:read", - "posts_list_posts": "posts:read", - "posts_pin_post": "posts:write", - "posts_review_post": "posts:write", - "posts_unpin_post": "posts:write", - "posts_unpublish_post": "posts:write", - "posts_update_post": "posts:write", - "posts_update_post_metadata": "posts:write", - "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:write", - "product_catalogs_get_ad_catalog_batch": "ads:write", - "product_catalogs_get_ad_catalog_product": "ads:write", - "product_catalogs_list_ad_catalog_feed_uploads": "ads:write", - "product_catalogs_list_ad_catalog_feeds": "ads:write", - "product_catalogs_list_ad_catalog_product_sets": "ads:write", - "product_catalogs_list_ad_catalog_products": "ads:write", - "product_catalogs_list_ad_catalogs": "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", - "profiles_delete_profile": "accounts:write", - "profiles_get_profile": "accounts:read", - "profiles_get_profile_limits": "accounts:read", - "profiles_list_profiles": "accounts:read", - "profiles_update_profile": "accounts:write", - "queue_create_queue_slot": "posts:write", - "queue_delete_queue_slot": "posts:write", - "queue_get_next_queue_slot": "posts:read", - "queue_list_queue_slots": "posts:read", - "queue_preview_queue": "posts:read", - "queue_update_queue_slot": "posts:write", - "rcs_add_rcs_test_device": "messaging:write", - "rcs_create_rcs_agent": "messaging:write", - "rcs_deactivate_rcs_agent": "messaging:write", - "rcs_get_rcs_agent": "messaging:write", - "rcs_get_rcs_capabilities": "messaging:write", - "rcs_list_rcs_agents": "messaging:write", - "rcs_list_rcs_brands": "messaging:write", - "rcs_list_rcs_test_devices": "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:write", - "reach_and_frequency_reserve_rf_prediction": "ads:write", - "reddit_get_reddit_feed": "messaging:write", - "reddit_get_reddit_post_comments": "messaging:write", - "reddit_search_reddit": "messaging:write", - "reviews_delete_inbox_review_reply": "messaging:write", - "reviews_list_inbox_reviews": "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:write", - "sequences_list_sequence_enrollments": "messaging:write", - "sequences_list_sequences": "messaging:write", - "sequences_pause_sequence": "messaging:write", - "sequences_unenroll_contact": "messaging:write", - "sequences_update_sequence": "messaging:write", - "slack_list_slack_members": "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:write", - "sms_list_sms_opt_outs": "automations:write", - "sms_list_sms_registrations": "messaging:write", - "sms_list_sms_sender_ids": "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:write", - "tracking_links_get_tracking_link_stats": "ads:write", - "tracking_links_list_tracking_links": "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:write", - "tracking_tags_get_tracking_tag": "ads:write", - "tracking_tags_get_tracking_tag_diagnostics": "ads:write", - "tracking_tags_get_tracking_tag_stats": "ads:write", - "tracking_tags_get_tracking_tag_store_install": "ads:write", - "tracking_tags_install_tracking_tag_on_store": "ads:write", - "tracking_tags_list_tracking_tag_events": "ads:write", - "tracking_tags_list_tracking_tag_partners": "ads:write", - "tracking_tags_list_tracking_tag_shared_accounts": "ads:write", - "tracking_tags_list_tracking_tag_users": "ads:write", - "tracking_tags_list_tracking_tags": "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:write", - "twitter_engagement_remove_bookmark": "messaging:write", - "twitter_engagement_retweet_post": "messaging:write", - "twitter_engagement_search_tweets": "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", - "users_get_user": "accounts:read", - "users_list_users": "accounts:read", - "users_remove_user": "accounts:write", - "validate_media": "posts:read", - "validate_post": "posts:read", - "validate_post_length": "posts:read", - "validate_subreddit": "posts:read", - "verify_check_verification": "messaging:write", - "verify_create_verification": "messaging:write", - "verify_get_verification": "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:write", - "voice_get_voice_call": "messaging:write", - "voice_get_voice_call_estimate": "messaging:write", - "voice_get_voice_call_recording": "messaging:write", - "voice_list_sip_trunks": "messaging:write", - "voice_list_voice_calls": "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:write", - "whatsapp_calling_get_whats_app_call_estimate": "messaging:write", - "whatsapp_calling_get_whats_app_call_permissions": "automations:write", - "whatsapp_calling_get_whats_app_call_recording": "messaging:write", - "whatsapp_calling_get_whats_app_calling": "messaging:write", - "whatsapp_calling_get_whats_app_calling_config": "accounts:read", - "whatsapp_calling_initiate_whats_app_call": "messaging:write", - "whatsapp_calling_list_whats_app_calls": "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", - "whatsapp_create_whats_app_group_chat": "messaging:write", - "whatsapp_create_whats_app_group_invite_link": "messaging:write", - "whatsapp_create_whats_app_template": "accounts:write", - "whatsapp_delete_whats_app_conversational_automation": "accounts:write", - "whatsapp_delete_whats_app_group_chat": "messaging:write", - "whatsapp_delete_whats_app_template": "accounts:write", - "whatsapp_delete_whats_app_template_by_id": "accounts:write", - "whatsapp_delete_whatsapp_business_username": "accounts:write", - "whatsapp_flows_create_whats_app_flow": "accounts:write", - "whatsapp_flows_delete_whats_app_flow": "accounts:write", - "whatsapp_flows_deprecate_whats_app_flow": "accounts:write", - "whatsapp_flows_get_whats_app_flow": "accounts:read", - "whatsapp_flows_get_whats_app_flow_json": "accounts:read", - "whatsapp_flows_get_whats_app_flow_preview": "accounts:read", - "whatsapp_flows_get_whats_app_flows_encryption_key": "accounts:read", - "whatsapp_flows_list_whats_app_flow_responses": "messaging:write", - "whatsapp_flows_list_whats_app_flow_versions": "accounts:read", - "whatsapp_flows_list_whats_app_flows": "accounts:read", - "whatsapp_flows_publish_whats_app_flow": "accounts:write", - "whatsapp_flows_send_whats_app_flow_message": "messaging:write", - "whatsapp_flows_set_whats_app_flows_encryption_key": "accounts:write", - "whatsapp_flows_update_whats_app_flow": "accounts:write", - "whatsapp_flows_upload_whats_app_flow_json": "accounts:write", - "whatsapp_get_whats_app_block_status": "automations:write", - "whatsapp_get_whats_app_blocked_users": "automations:write", - "whatsapp_get_whats_app_business_profile": "accounts:read", - "whatsapp_get_whats_app_commerce_settings": "messaging:write", - "whatsapp_get_whats_app_conversational_automation": "accounts:read", - "whatsapp_get_whats_app_dataset": "accounts:read", - "whatsapp_get_whats_app_display_name": "accounts:read", - "whatsapp_get_whats_app_group_chat": "messaging:write", - "whatsapp_get_whats_app_media": "messaging:write", - "whatsapp_get_whats_app_template": "accounts:read", - "whatsapp_get_whats_app_template_by_id": "accounts:read", - "whatsapp_get_whats_app_templates": "accounts:read", - "whatsapp_get_whatsapp_business_username": "accounts:read", - "whatsapp_get_whatsapp_business_username_suggestions": "accounts:read", - "whatsapp_link_whats_app_catalog": "messaging:write", - "whatsapp_list_whats_app_account_events": "messaging:write", - "whatsapp_list_whats_app_catalogs": "messaging:write", - "whatsapp_list_whats_app_conversions": "ads:write", - "whatsapp_list_whats_app_group_chats": "messaging:write", - "whatsapp_list_whats_app_group_join_requests": "messaging:write", - "whatsapp_phone_numbers_check_whats_app_number_availability": "messaging:write", - "whatsapp_phone_numbers_create_whats_app_number_kyc_link": "messaging:write", - "whatsapp_phone_numbers_get_whats_app_number_info": "automations:write", - "whatsapp_phone_numbers_get_whats_app_number_kyc_form": "messaging:write", - "whatsapp_phone_numbers_get_whats_app_number_remediation": "messaging:write", - "whatsapp_phone_numbers_get_whats_app_phone_number": "messaging:write", - "whatsapp_phone_numbers_get_whats_app_phone_numbers": "messaging:write", - "whatsapp_phone_numbers_get_whats_app_pricing_analytics": "analytics:read", - "whatsapp_phone_numbers_list_whats_app_number_countries": "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: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", - "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", - "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:write", - "whatsapp_send_whats_app_conversion": "ads:write", - "whatsapp_set_whats_app_conversational_automation": "accounts:write", - "whatsapp_set_whatsapp_business_username": "accounts:write", - "whatsapp_templates_get_whats_app_library_template": "accounts:read", - "whatsapp_unblock_whats_app_users": "automations:write", - "whatsapp_unlink_whats_app_catalog": "messaging:write", - "whatsapp_update_whats_app_business_profile": "accounts:write", - "whatsapp_update_whats_app_commerce_settings": "messaging:write", - "whatsapp_update_whats_app_display_name": "accounts:write", - "whatsapp_update_whats_app_group_chat": "messaging:write", - "whatsapp_update_whats_app_template": "accounts:write", - "whatsapp_update_whats_app_template_by_id": "accounts:write", - "whatsapp_upload_whats_app_profile_photo": "accounts:write", - "whatsapp_verify_whats_app_number": "accounts:write", - "workflows_activate_workflow": "accounts:write", - "workflows_create_workflow": "accounts:write", - "workflows_delete_workflow": "accounts:write", - "workflows_duplicate_workflow": "accounts:write", - "workflows_get_workflow": "accounts:read", - "workflows_get_workflow_version": "accounts:read", - "workflows_list_workflow_execution_events": "messaging:write", - "workflows_list_workflow_executions": "messaging:write", - "workflows_list_workflow_versions": "accounts:read", - "workflows_list_workflows": "accounts:read", - "workflows_pause_workflow": "accounts:write", - "workflows_restore_workflow_version": "accounts:write", - "workflows_take_over_workflow": "accounts:write", - "workflows_trigger_api_call_workflow": "messaging:write", - "workflows_trigger_workflow": "messaging:write", - "workflows_update_workflow": "accounts:write", +# 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_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_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",), + "creator_portal_get_creator_payout_statement": ("money:write",), + "creator_portal_get_creator_payouts": ("money:write",), + "creator_portal_get_creator_portal": ("money: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/missing_scope.py b/src/late/mcp/middleware/missing_scope.py index f4f933d3..55bf26d6 100644 --- a/src/late/mcp/middleware/missing_scope.py +++ b/src/late/mcp/middleware/missing_scope.py @@ -5,7 +5,8 @@ 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) stays a plain error: re-linking cannot fix it. +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 @@ -45,11 +46,11 @@ class MissingScopeChallengeMiddleware(Middleware): def __init__( self, *, - scope_by_tool: Mapping[str, str], + scopes_by_tool: Mapping[str, Sequence[str]], resource_metadata_url: str, scopes: Sequence[str], ) -> None: - self._scope_by_tool = scope_by_tool + self._scopes_by_tool = scopes_by_tool self._challenge = ( f'Bearer resource_metadata="{resource_metadata_url}", ' f'error="insufficient_scope", scope="{" ".join(scopes)}", ' @@ -64,15 +65,16 @@ async def on_call_tool( try: return await call_next(context) except ToolError as exc: - needed = self._scope_by_tool.get(context.message.name) + reaching = self._scopes_by_tool.get(context.message.name) granted = _granted_scopes() if ( - needed is None + not reaching or granted is None - or needed in granted + or granted.intersection(reaching) or not _refused_for_a_group(exc.__cause__) ): raise + needed = reaching[0] return ToolResult( content=[ TextContent( diff --git a/tests/test_chatgpt_generated_tools.py b/tests/test_chatgpt_generated_tools.py index 88d21d15..918de22e 100644 --- a/tests/test_chatgpt_generated_tools.py +++ b/tests/test_chatgpt_generated_tools.py @@ -18,7 +18,7 @@ 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_SCOPE +from late.mcp.generated_tools import TOOL_OAUTH_SCOPES LIVE_TOOLS = json.loads( (Path(__file__).parent / "fixtures" / "chatgpt_live_tools.json").read_text() @@ -71,7 +71,7 @@ async def test_every_generated_tool_has_explicit_hints_and_its_oauth_scope(): assert hints["destructiveHint"] is False, name assert hints["openWorldHint"] is False, name assert listed[name]["_meta"]["securitySchemes"] == [ - {"type": "oauth2", "scopes": [TOOL_OAUTH_SCOPE[name]]} + {"type": "oauth2", "scopes": [TOOL_OAUTH_SCOPES[name][0]]} ], name @@ -83,7 +83,7 @@ async def test_generated_descriptions_stay_short(): def test_advertises_exactly_the_scopes_the_listed_tools_need(): - needed = {TOOL_OAUTH_SCOPE[name] for name in CHATGPT_GENERATED_TOOLS} + needed = {TOOL_OAUTH_SCOPES[name][0] for name in CHATGPT_GENERATED_TOOLS} assert CHATGPT_SCOPES[:4] == [ "posts:read", @@ -92,7 +92,13 @@ def test_advertises_exactly_the_scopes_the_listed_tools_need(): "analytics:read", ] assert set(CHATGPT_SCOPES) == LINK_SCOPES | needed - assert not {"ads:write", "automations:write", "money:write"} & set(CHATGPT_SCOPES) + 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(): @@ -143,14 +149,16 @@ async def test_a_link_without_the_tools_scope_is_asked_to_relink(monkeypatch): 'Bearer resource_metadata="https://mcp.zernio.com/.well-known/oauth-protected-resource/chatgpt"' ) assert 'error="insufficient_scope"' in challenge - assert "messaging:write" in challenge - assert "messaging:write" in result.content[0].text + 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), diff --git a/tests/test_generated_mcp_annotations.py b/tests/test_generated_mcp_annotations.py index 1d0a0380..aeaf1064 100644 --- a/tests/test_generated_mcp_annotations.py +++ b/tests/test_generated_mcp_annotations.py @@ -13,7 +13,7 @@ import pytest from fastmcp import FastMCP -from late.mcp.generated_tools import TOOL_OAUTH_SCOPE, register_generated_tools +from late.mcp.generated_tools import TOOL_OAUTH_SCOPES, register_generated_tools @pytest.fixture(scope="module") @@ -37,12 +37,10 @@ def 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_scope(both, True) == "posts:read" - assert generator.declared_oauth_scope(both, False) == "posts:write" - assert ( - generator.declared_oauth_scope(["messaging:write"], True) == "messaging:write" - ) - assert generator.declared_oauth_scope([], True) is None + 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): @@ -76,6 +74,11 @@ def test_every_tool_sets_all_three_hints(tools): assert isinstance(hints.openWorldHint, bool), name -def test_the_inbox_needs_the_messaging_scope(): - assert TOOL_OAUTH_SCOPE["messages_list_inbox_conversations"] == "messaging:write" - assert TOOL_OAUTH_SCOPE["accounts_get_account_health"] == "accounts:read" +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" From f3a3cf3ae241fd4db4788a7d852e62d0bbbab1a1 Mon Sep 17 00:00:00 2001 From: Miki Palet <64255955+mikipalet@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:21:35 +0000 Subject: [PATCH 3/4] fix(mcp): review follow-ups for the ChatGPT wave - The generator refuses a spec with no x-oauth-scopes instead of emptying the scope table, and a listed tool without a scope fails with its name. - Pin the server instructions; test a generated tool's success path and the scope claim read from the verified token. - Descriptions keep arguments documented by name only and no longer put a blank line after "Args:". - A cache hit also keeps the token's identity (user id, scope) fresh. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kx4ZnYRCwTShnKwf5bar5Y --- scripts/generate_mcp_tools.py | 7 +++ src/late/mcp/auth.py | 8 ++- src/late/mcp/chatgpt_tools.py | 21 +++++--- tests/fixtures/chatgpt_live_instructions.txt | 1 + tests/test_chatgpt_generated_tools.py | 57 ++++++++++++++++++-- 5 files changed, 83 insertions(+), 11 deletions(-) create mode 100644 tests/fixtures/chatgpt_live_instructions.txt diff --git a/scripts/generate_mcp_tools.py b/scripts/generate_mcp_tools.py index 5a005172..f8597a58 100644 --- a/scripts/generate_mcp_tools.py +++ b/scripts/generate_mcp_tools.py @@ -934,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 = [ '"""', diff --git a/src/late/mcp/auth.py b/src/late/mcp/auth.py index ffba9b2a..ab5212fe 100644 --- a/src/late/mcp/auth.py +++ b/src/late/mcp/auth.py @@ -154,6 +154,8 @@ 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: @@ -179,7 +181,11 @@ def _identity_in(response: httpx.Response) -> dict[str, str]: 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} + return { + claim: value + for claim, value in named.items() + if isinstance(value, str) and value + } def forget_rejected_token(token: str) -> None: diff --git a/src/late/mcp/chatgpt_tools.py b/src/late/mcp/chatgpt_tools.py index b836cd4e..88e02d29 100644 --- a/src/late/mcp/chatgpt_tools.py +++ b/src/late/mcp/chatgpt_tools.py @@ -74,7 +74,7 @@ _SUMMARY_MAX = 400 _PARAM_MAX = 100 _ARGS_HEADING = re.compile(r"\n[ \t]*Args:\n") -_PARAM_LINE = re.compile(r"^([ \t]+)(\w+):\s*(.*)$") +_PARAM_LINE = re.compile(r"^([ \t]+)(\w+)(?::[ \t]*(.*))?$") def _clip(text: str, limit: int) -> str: @@ -89,7 +89,7 @@ def _argument_lines(args: str) -> list[str]: return [] indent = matches[0][1] return [ - f" {m[2]}: {_clip(m[3], _PARAM_MAX)}".rstrip() + f" {m[2]}: {_clip(m[3] or '', _PARAM_MAX)}".rstrip(": ") for m in matches if m[1] == indent ] @@ -104,16 +104,18 @@ def concise_description(doc: str) -> str: """ narrative, *rest = _ARGS_HEADING.split(doc, maxsplit=1) paragraphs = [p for p in inspect.cleandoc(narrative).split("\n\n") if p.strip()] - lines = [_clip(p, _SUMMARY_MAX) for p in paragraphs[:2]] + sections = [_clip(p, _SUMMARY_MAX) for p in paragraphs[:2]] arguments = _argument_lines(rest[0]) if rest else [] if arguments: - lines += ["Args:", *arguments] - return "\n\n".join(lines[:2]) + ("\n\n" + "\n".join(lines[2:]) if arguments else "") + 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(TOOL_OAUTH_SCOPES[tool][0] for tool in tools)) + return list( + dict.fromkeys(s for tool in tools for s in TOOL_OAUTH_SCOPES.get(tool, ())[:1]) + ) class _ListedToolsOnly: @@ -128,7 +130,12 @@ def tool(self, **kwargs: Any) -> Callable[[Callable[..., Any]], Callable[..., An def register(fn: Callable[..., Any]) -> Callable[..., Any]: if fn.__name__ not in self._listed: return fn - scopes = [TOOL_OAUTH_SCOPES[fn.__name__][0]] + 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) 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/test_chatgpt_generated_tools.py b/tests/test_chatgpt_generated_tools.py index 918de22e..9a50c11c 100644 --- a/tests/test_chatgpt_generated_tools.py +++ b/tests/test_chatgpt_generated_tools.py @@ -15,14 +15,16 @@ 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 -LIVE_TOOLS = json.loads( - (Path(__file__).parent / "fixtures" / "chatgpt_live_tools.json").read_text() -) +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 = { @@ -54,6 +56,11 @@ async def test_the_live_tools_keep_the_definitions_openai_approved(): 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() @@ -127,6 +134,18 @@ def test_a_description_keeps_its_first_paragraph_and_one_line_per_argument(): ) +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) @@ -175,3 +194,35 @@ async def test_other_403s_stay_plain_errors(monkeypatch, granted, 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 From 3fae5e83599002e66d5f7703fad99bb4094ab832 Mon Sep 17 00:00:00 2001 From: Miki Palet <64255955+mikipalet@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:57:15 +0000 Subject: [PATCH 4/4] chore(mcp): regenerate from the live spec, which now carries x-oauth-scopes Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kx4ZnYRCwTShnKwf5bar5Y --- openapi.yaml | 2659 +++++++++++++++---------------- src/late/mcp/generated_tools.py | 11 +- 2 files changed, 1337 insertions(+), 1333 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 3cc86d03..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 @@ -35946,8 +35946,8 @@ paths: # ============================================ /v1/tools/validate/post-length: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: validatePostLength tags: [Validate] summary: Validate character count @@ -36016,8 +36016,8 @@ paths: /v1/tools/validate/post: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: validatePost tags: [Validate] summary: Validate post content @@ -36112,8 +36112,8 @@ paths: /v1/tools/validate/media: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: validateMedia tags: [Validate] summary: Validate media URL @@ -36188,8 +36188,8 @@ paths: /v1/tools/validate/subreddit: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: validateSubreddit tags: [Validate] summary: Check subreddit existence @@ -36249,8 +36249,8 @@ paths: # ============================================ /v1/metrics/catalog: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getMetricsCatalog tags: - Metrics @@ -36398,8 +36398,8 @@ paths: $ref: '#/components/responses/AnalyticsRateLimited' /v1/metrics/posts: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getPostMetrics tags: - Metrics @@ -36849,8 +36849,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/accounts: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getAccountMetrics tags: - Metrics @@ -37044,8 +37044,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/insights: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getInsightMetrics tags: - Metrics @@ -37369,8 +37369,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/inbox: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: getInboxMetrics tags: - Metrics @@ -37567,8 +37567,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ads: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdMetrics tags: - Metrics @@ -37719,8 +37719,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/campaigns: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignMetrics tags: - Metrics @@ -37817,8 +37817,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ad-sets: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdSetMetrics tags: - Metrics @@ -37907,8 +37907,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/ad-accounts: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountMetrics tags: - Metrics @@ -37964,8 +37964,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/platform-queries/meta-ads: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: queryMetaAds tags: - Metrics @@ -38039,8 +38039,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/platform-queries/google-ads: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: queryGoogleAds tags: - Metrics @@ -38113,8 +38113,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/platform-queries/tiktok-ads: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: queryTikTokAds tags: - Metrics @@ -38194,8 +38194,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/metrics/platform-queries/google-analytics: post: - x-oauth-scopes: ["analytics:read"] x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: queryGoogleAnalytics tags: - Metrics @@ -38292,8 +38292,8 @@ paths: $ref: '#/components/responses/TemporarilyUnavailable' /v1/analytics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getAnalytics tags: [Analytics] summary: Get post analytics @@ -38573,8 +38573,8 @@ paths: /v1/analytics/delta: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getAnalyticsDelta tags: [Analytics] summary: Analytics changed since a cursor @@ -38756,8 +38756,8 @@ paths: /v1/analytics/youtube/channel-insights: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getYouTubeChannelInsights tags: [Analytics] summary: Get YouTube channel insights @@ -38858,8 +38858,8 @@ paths: /v1/analytics/linkedin/org-aggregate-analytics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInOrgAggregateAnalytics tags: [Analytics] summary: Get LinkedIn org analytics @@ -38975,8 +38975,8 @@ paths: /v1/analytics/tiktok/account-insights: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getTikTokAccountInsights tags: [Analytics] summary: Get TikTok account-level insights @@ -39094,8 +39094,8 @@ paths: /v1/analytics/pinterest/account-insights: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getPinterestAccountInsights tags: [Analytics] summary: Get Pinterest account-level insights @@ -39175,8 +39175,8 @@ paths: /v1/analytics/tiktok/demographics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getTikTokDemographics tags: [Analytics] summary: Get TikTok follower demographics @@ -39286,8 +39286,8 @@ paths: /v1/analytics/youtube/daily-views: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getYouTubeDailyViews tags: [Analytics] summary: Get YouTube daily views @@ -39434,8 +39434,8 @@ paths: /v1/analytics/youtube/video-retention: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getYouTubeVideoRetention tags: [Analytics] summary: Get YouTube video retention curve @@ -39594,8 +39594,8 @@ paths: /v1/analytics/facebook/page-insights: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFacebookPageInsights tags: [Analytics] summary: Get Facebook Page insights @@ -39779,8 +39779,8 @@ paths: /v1/analytics/facebook/post-earnings: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFacebookPostEarnings tags: [Analytics] summary: Get Facebook post monetization earnings @@ -39894,8 +39894,8 @@ paths: /v1/analytics/instagram/account-insights: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramAccountInsights tags: [Analytics] summary: Get Instagram insights @@ -40056,8 +40056,8 @@ paths: /v1/analytics/instagram/follower-history: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramFollowerHistory tags: [Analytics] summary: Get Instagram follower history @@ -40128,8 +40128,8 @@ paths: /v1/analytics/facebook/demographics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFacebookDemographics tags: [Analytics] summary: Get Facebook Page demographics @@ -40232,8 +40232,8 @@ paths: /v1/analytics/linkedin/demographics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInDemographics tags: [Analytics] summary: Get LinkedIn organization follower demographics @@ -40340,8 +40340,8 @@ paths: /v1/analytics/instagram/demographics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramDemographics tags: [Analytics] summary: Get Instagram demographics @@ -40463,8 +40463,8 @@ paths: /v1/analytics/instagram/online-followers: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramOnlineFollowers tags: [Analytics] summary: Get Instagram online followers @@ -40548,8 +40548,8 @@ paths: /v1/analytics/youtube/demographics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getYouTubeDemographics tags: [Analytics] summary: Get YouTube demographics @@ -40720,8 +40720,8 @@ paths: /v1/analytics/daily-metrics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getDailyMetrics tags: [Analytics] summary: Get daily aggregated metrics @@ -40884,8 +40884,8 @@ paths: /v1/analytics/dashboard: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getAnalyticsDashboard tags: [Analytics] summary: Get an analytics dashboard @@ -41005,8 +41005,8 @@ paths: /v1/analytics/best-time: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getBestTimeToPost tags: [Analytics] summary: Get best times to post @@ -41084,8 +41084,8 @@ paths: /v1/analytics/content-decay: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getContentDecay tags: [Analytics] summary: Get content performance decay @@ -41180,8 +41180,8 @@ paths: /v1/analytics/posting-frequency: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getPostingFrequency tags: [Analytics] summary: Get frequency vs engagement @@ -41263,8 +41263,8 @@ paths: /v1/ledger/balances: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getLedgerBalances tags: [Ledger] summary: Get ledger balances @@ -41310,8 +41310,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/ledger/entries: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: listLedgerEntries tags: [Ledger] summary: List ledger entries @@ -41386,8 +41386,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/balance: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getBalance tags: [Treasury] summary: Get balance @@ -41467,8 +41467,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/balance/auto-recharge: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getAutoRecharge tags: [Treasury] summary: Get auto top-up settings @@ -41496,8 +41496,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } '409': { description: 'Code `balance_billing_required`: the account is not on the prepaid balance.' } patch: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: updateAutoRecharge tags: [Treasury] summary: Update auto top-up settings @@ -41550,8 +41550,8 @@ paths: '409': { description: 'Code `balance_billing_required`: the account is not on the prepaid balance. Code `payment_method_required`: turning auto top-up on needs a saved card.' } /v1/balance/top-ups: post: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: createTopup tags: [Treasury] summary: Add funds @@ -41628,8 +41628,8 @@ paths: '422': $ref: '#/components/responses/IdempotencyKeyReused' get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: listTopups tags: [Treasury] summary: List top-ups @@ -41658,8 +41658,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/balance/top-ups/preview: post: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: previewTopup tags: [Treasury] summary: Preview a top-up's tax @@ -41700,8 +41700,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/balance/top-ups/{topupId}/receipt: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getTopupReceipt tags: [Treasury] summary: Get a top-up receipt @@ -41744,8 +41744,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/balance/top-ups/{topupId}/invoice: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getTopupInvoice tags: [Treasury] summary: Get a top-up invoice @@ -41788,8 +41788,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/balance/top-ups/{topupId}/statement: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getTopupStatement tags: [Treasury] summary: Get a top-up invoice (alias) @@ -41835,8 +41835,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/balance/top-ups/{topupId}/confirm: post: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: confirmTopup tags: [Treasury] summary: Confirm a top-up @@ -41868,8 +41868,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/balance/top-ups/{topupId}/cancel: post: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: cancelTopup tags: [Treasury] summary: Cancel a top-up @@ -41906,8 +41906,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/payees: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: listPayees tags: [Treasury] summary: List payees @@ -41928,8 +41928,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/payees/{payeeId}/onboarding-link: post: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: createPayeeOnboardingLink tags: [Treasury] summary: Create a payee onboarding link @@ -41958,8 +41958,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/transfers: post: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: createTransfer tags: [Treasury] summary: Create a transfer (removed) @@ -41995,8 +41995,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: listTransfers tags: [Treasury] summary: List transfers @@ -42025,8 +42025,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } /v1/transfers/{transferId}: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getTransfer tags: [Treasury] summary: Get a transfer @@ -42093,7 +42093,6 @@ paths: parameters: - $ref: '#/components/parameters/CreatorPortalToken' get: - x-oauth-scopes: ["money:write"] x-resource-group: "public" operationId: getCreatorPortal tags: [Creator Portal] @@ -42561,7 +42560,6 @@ paths: parameters: - $ref: '#/components/parameters/CreatorPortalToken' get: - x-oauth-scopes: ["money:write"] x-resource-group: "public" operationId: getCreatorPayouts tags: [Creator Portal] @@ -42678,7 +42676,6 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["money:write"] x-resource-group: "public" operationId: getCreatorPayoutStatement tags: [Creator Portal] @@ -42704,8 +42701,8 @@ paths: '429': { $ref: '#/components/responses/CreatorPortalRateLimited' } /v1/payout-batches/{batchId}: get: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: getPayoutBatch tags: [Treasury] summary: Get a payout batch @@ -42736,8 +42733,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/payout-batches/{batchId}/confirm: post: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: confirmPayoutBatch tags: [Treasury] summary: Confirm a payout batch payment @@ -42773,8 +42770,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/payout-batches/{batchId}/cancel: post: - x-oauth-scopes: ["money:write"] x-resource-group: "money" + x-oauth-scopes: ["money:write"] operationId: cancelPayoutBatch tags: [Treasury] summary: Cancel an unpaid payout batch @@ -42812,8 +42809,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/analytics/post-timeline: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getPostTimeline tags: [Analytics] summary: Get post analytics timeline @@ -42996,8 +42993,8 @@ paths: /v1/analytics/googleanalytics/report: post: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: runGoogleAnalyticsReport tags: [Analytics] summary: Run a Google Analytics (GA4) report @@ -43069,8 +43066,8 @@ paths: $ref: '#/components/responses/RateLimited' /v1/analytics/googleanalytics/realtime: post: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: runGoogleAnalyticsRealtimeReport tags: [Analytics] summary: Run a Google Analytics (GA4) realtime report @@ -43123,8 +43120,8 @@ paths: $ref: '#/components/responses/RateLimited' /v1/analytics/googleanalytics/metadata: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getGoogleAnalyticsMetadata tags: [Analytics] summary: List Google Analytics (GA4) dimensions and metrics @@ -43183,8 +43180,8 @@ paths: $ref: '#/components/responses/RateLimited' /v1/analytics/googlesearchconsole/search-analytics: post: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: queryGoogleSearchConsoleSearchAnalytics tags: [Analytics] x-platforms: [googlesearchconsole] @@ -43315,8 +43312,8 @@ paths: description: Google could not be reached, or failed while answering. Nothing was changed; retry shortly. /v1/analytics/googlesearchconsole/sitemaps: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listGoogleSearchConsoleSitemaps tags: [Analytics] x-platforms: [googlesearchconsole] @@ -43381,8 +43378,8 @@ paths: description: Google could not be reached, or failed while answering. Nothing was changed; retry shortly. /v1/analytics/googlesearchconsole/url-inspection: post: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: inspectGoogleSearchConsoleUrl tags: [Analytics] x-platforms: [googlesearchconsole] @@ -43442,8 +43439,8 @@ paths: description: Google could not be reached, or failed while answering. Nothing was changed; retry shortly. /v1/analytics/tracking: post: - x-oauth-scopes: ["analytics:read"] 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] @@ -43521,8 +43518,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } get: - x-oauth-scopes: ["analytics:read"] 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] @@ -43570,8 +43567,8 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } /v1/analytics/tracking/{windowId}: get: - x-oauth-scopes: ["analytics:read"] 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] @@ -43604,8 +43601,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } '429': { $ref: '#/components/responses/AnalyticsRateLimited' } delete: - x-oauth-scopes: ["analytics:read"] 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] @@ -43639,8 +43636,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/analytics/samples: get: - x-oauth-scopes: ["analytics:read"] 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] @@ -43703,8 +43700,8 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } /v1/posts/{postId}/authenticity: get: - x-oauth-scopes: ["analytics:read"] 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] @@ -43744,8 +43741,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/analytics/authenticity: get: - x-oauth-scopes: ["analytics:read"] 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] @@ -43813,8 +43810,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/analytics/googlebusiness/performance: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getGoogleBusinessPerformance tags: [Analytics] summary: Get Google Business Profile performance metrics @@ -43951,8 +43948,8 @@ paths: /v1/analytics/googlebusiness/search-keywords: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getGoogleBusinessSearchKeywords tags: [Analytics] summary: Get Google Business Profile search keywords @@ -44073,8 +44070,8 @@ paths: # at 365 days. /v1/analytics/inbox/volume: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxVolume tags: [Inbox Analytics] summary: Get inbox messaging volume @@ -44167,8 +44164,8 @@ paths: /v1/analytics/inbox/heatmap: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxHeatmap tags: [Inbox Analytics] summary: Get day × hour heatmap @@ -44244,8 +44241,8 @@ paths: /v1/analytics/inbox/source-breakdown: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxSourceBreakdown tags: [Inbox Analytics] summary: Get inbox source breakdown @@ -44322,8 +44319,8 @@ paths: /v1/analytics/inbox/response-time: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxResponseTime tags: [Inbox Analytics] summary: Get inbox response-time stats @@ -44407,8 +44404,8 @@ paths: /v1/analytics/inbox/top-accounts: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInboxTopAccounts tags: [Inbox Analytics] summary: Get top accounts by inbox volume @@ -44485,8 +44482,8 @@ paths: /v1/analytics/inbox/conversations: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxConversationAnalytics tags: [Inbox Analytics] summary: List conversation analytics @@ -44593,8 +44590,8 @@ paths: /v1/analytics/inbox/conversations/{conversationId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInboxConversationAnalytics tags: [Inbox Analytics] summary: Get conversation analytics @@ -44694,8 +44691,8 @@ paths: /v1/account-groups: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listAccountGroups tags: [Account Groups] summary: List groups @@ -44743,8 +44740,8 @@ paths: - "64e1f0a9e2b5af0012ab34cf" '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createAccountGroup tags: [Account Groups] summary: Create group @@ -44805,8 +44802,8 @@ paths: '409': { description: Group name already exists } /v1/account-groups/{groupId}: put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateAccountGroup tags: [Account Groups] summary: Update group @@ -44858,8 +44855,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '409': { description: Group name already exists } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteAccountGroup tags: [Account Groups] summary: Delete group @@ -44885,8 +44882,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/media/presign: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getMediaPresignedUrl tags: [Media] summary: Get upload URL @@ -44944,8 +44941,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/reddit/search: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchReddit tags: [Reddit Search] summary: Search posts @@ -45026,8 +45023,8 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } /v1/reddit/feed: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getRedditFeed tags: [Reddit Search] summary: Get subreddit feed @@ -45120,8 +45117,8 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } /v1/reddit/comments/{postId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getRedditPostComments tags: [Reddit Search] summary: Get the comments of a Reddit post @@ -45253,8 +45250,8 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } /v1/billing: get: - x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getBilling tags: [Usage] summary: Account billing snapshot (plan, cycle, balance, caps, status) @@ -45279,8 +45276,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/billing/x-pricing: get: - x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getXApiPricing tags: [Usage] summary: Get X API pricing table @@ -45358,8 +45355,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/usage: get: - x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getUsage tags: [Usage] summary: Usage snapshot (default) or billed-spend metering (with params) @@ -45491,8 +45488,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/usage-stats: get: - x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getUsageStats tags: [Usage] summary: Get plan and usage snapshot (plan, limits, payment status) @@ -45611,8 +45608,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/usage/calls: get: - x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getCallsUsage tags: [Usage] summary: Calling usage and cost @@ -45695,8 +45692,8 @@ paths: /v1/usage/sms: get: - x-oauth-scopes: ["accounts:read"] x-resource-group: "billing" + x-oauth-scopes: ["accounts:read"] operationId: getSmsUsage tags: [Usage] summary: SMS usage (volumes) @@ -45764,8 +45761,8 @@ paths: /v1/posts: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listPosts tags: [Posts] summary: List posts @@ -45980,8 +45977,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: createPost x-selectedCodeSample: schedule x-docs: @@ -46823,8 +46820,8 @@ paths: schema: { type: integer } /v1/posts/sync-external: post: - x-oauth-scopes: ["posts:read", "posts:write"] 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] @@ -46959,8 +46956,8 @@ paths: /v1/posts/{postId}: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getPost tags: [Posts] summary: Get post @@ -47086,8 +47083,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } '404': { $ref: '#/components/responses/NotFound' } put: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: updatePost tags: [Posts] summary: Update post @@ -47253,8 +47250,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: deletePost tags: [Posts] summary: Delete post @@ -47312,8 +47309,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/posts/bulk-upload: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: bulkUploadPosts tags: [Posts] summary: Bulk upload from CSV @@ -47449,8 +47446,8 @@ paths: type: object /v1/posts/{postId}/retry: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: retryPost tags: [Posts] summary: Retry failed post @@ -47582,8 +47579,8 @@ paths: type: object /v1/posts/{postId}/review: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: reviewPost tags: [Posts] summary: Approve or reject a post @@ -47633,8 +47630,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/posts/{postId}/unpublish: post: - x-oauth-scopes: ["posts:read", "posts:write"] 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] @@ -47709,8 +47706,8 @@ paths: description: Platform API deletion failed /v1/posts/{postId}/pin: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] x-platforms: [facebook] operationId: pinPost tags: [Posts] @@ -47773,8 +47770,8 @@ paths: description: Facebook API call failed /v1/posts/{postId}/unpin: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] x-platforms: [facebook] operationId: unpinPost tags: [Posts] @@ -47837,8 +47834,8 @@ paths: description: Facebook API call failed /v1/posts/{postId}/edit: post: - x-oauth-scopes: ["posts:read", "posts:write"] 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] @@ -47986,8 +47983,8 @@ paths: description: Platform API edit failed for a reason the platform did not classify. /v1/posts/{postId}/update-metadata: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] x-platforms: [youtube, facebook] operationId: updatePostMetadata tags: [Posts] @@ -48160,8 +48157,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/users: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listUsers tags: [Users] summary: List users @@ -48217,8 +48214,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/users/me: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getCurrentUser tags: [Users] summary: Get the current user @@ -48266,8 +48263,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/users/{userId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getUser tags: [Users] summary: Get user @@ -48309,8 +48306,8 @@ paths: description: Forbidden '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: removeUser tags: [Users] summary: Remove member @@ -48372,8 +48369,8 @@ paths: description: 'The member''s data could not be moved yet. Nothing was changed. Retry in a minute.' /v1/profiles: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listProfiles tags: [Profiles] summary: List profiles @@ -48428,8 +48425,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createProfile tags: [Profiles] summary: Create profile @@ -48498,8 +48495,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/profiles/{profileId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getProfile tags: [Profiles] summary: Get profile @@ -48528,8 +48525,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateProfile tags: [Profiles] summary: Update profile @@ -48587,8 +48584,8 @@ paths: '403': { description: 'Only the team owner can change contentRetention, with a session or a full-access key.' } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteProfile tags: [Profiles] summary: Delete profile @@ -48617,8 +48614,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/profiles/{profileId}/limits: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getProfileLimits tags: [Profiles] summary: Get profile call limits @@ -48657,8 +48654,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/accounts: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listAccounts tags: [Accounts] summary: List accounts @@ -48838,8 +48835,8 @@ paths: /v1/accounts/follower-stats: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFollowerStats tags: [Accounts, Analytics] summary: Get follower stats @@ -48934,8 +48931,8 @@ paths: requiresAddon: { type: boolean, example: true } /v1/accounts/{accountId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getAccount tags: [Accounts] summary: Get account @@ -48983,8 +48980,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '503': { $ref: '#/components/responses/TemporarilyUnavailable' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateAccount tags: [Accounts] summary: Update account @@ -49100,8 +49097,8 @@ paths: '403': { description: '`metaAdsSyncEnabled: true` on a Facebook account without `ads_management` and `ads_read` (`reconnect_required`), without the Ads add-on (`ads_addon_required`) or over the managed ads allowance (`ads_allowance_exceeded`).' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: moveAccountToProfile tags: [Accounts] summary: Move account to another profile @@ -49148,8 +49145,8 @@ paths: '403': { description: API key does not have access to the source account or target profile } '404': { description: Account or target profile not found } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteAccount tags: [Accounts] summary: Disconnect account @@ -49179,8 +49176,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/accounts/health: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getAllAccountsHealth tags: [Accounts] summary: Check accounts health @@ -49338,8 +49335,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/accounts/{accountId}/whatsapp/register: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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 @@ -49392,8 +49389,8 @@ paths: description: 'Meta rejected the registration (e.g. PIN mismatch), or the number cannot be registered through the API.' /v1/accounts/{accountId}/whatsapp/request-code: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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 @@ -49466,8 +49463,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/accounts/{accountId}/whatsapp/verify-code: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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 @@ -49513,8 +49510,8 @@ paths: description: 'The account has no phone number bound to it yet.' /v1/accounts/{accountId}/health: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getAccountHealth tags: [Accounts] summary: Check account health @@ -49813,8 +49810,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/accounts/{accountId}/posts: get: - x-oauth-scopes: ["posts:read", "posts:write"] 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"] @@ -49930,8 +49927,8 @@ paths: /v1/accounts/{accountId}/follow-status/{userId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getInstagramFollowStatus tags: [Accounts] x-platforms: ["instagram"] @@ -50005,8 +50002,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/accounts/{accountId}/tiktok/commercial-music: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listTikTokCommercialMusic tags: [Accounts] summary: List trending commercial music @@ -50067,8 +50064,8 @@ paths: /v1/accounts/{accountId}/tiktok/locations: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: searchTikTokLocations tags: [Accounts] summary: Search TikTok location tags @@ -50112,8 +50109,8 @@ paths: /v1/accounts/{accountId}/tiktok/creator-info: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getTikTokCreatorInfo tags: [Accounts] summary: Get TikTok creator info @@ -50299,8 +50296,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/feedback: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: submitFeedback tags: [Feedback] summary: Submit feedback @@ -50936,8 +50933,8 @@ paths: /v1/content-retention: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getContentRetention tags: [Content Retention] summary: Get content retention mode @@ -50953,8 +50950,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { $ref: '#/components/responses/ResourceGroupForbidden' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateContentRetention tags: [Content Retention] summary: Turn zero content retention on or off @@ -51175,8 +51172,8 @@ paths: /v1/platform-invites: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createPlatformInvite tags: [Connect] summary: Create a connect link @@ -51246,8 +51243,8 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } /v1/connect/{platform}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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] @@ -51658,8 +51655,8 @@ paths: '404': description: Profile not found post: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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] @@ -51702,8 +51699,8 @@ paths: /v1/connect/{platform}/ads: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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] @@ -52155,8 +52152,8 @@ paths: /v1/connect/shopify: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getShopifyConnectUrl tags: [Connect] summary: Get Shopify OAuth connect URL @@ -52224,8 +52221,8 @@ paths: /v1/connect/shopify/token: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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 @@ -52283,8 +52280,8 @@ paths: /v1/connect/googleanalytics: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleAnalyticsConnectUrl tags: - Connect @@ -52392,8 +52389,8 @@ paths: description: Google Analytics OAuth is not configured. /v1/connect/googleanalytics/properties: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleAnalyticsProperties tags: - Connect @@ -52450,8 +52447,8 @@ paths: description: The pending sign-in expired or was already used. Start the connect again. /v1/connect/googleanalytics/select-property: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectGoogleAnalyticsProperty tags: - Connect @@ -52506,8 +52503,8 @@ paths: description: Google or Zernio failed while saving. The pendingDataToken stays usable; retry. /v1/connect/googlesearchconsole: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleSearchConsoleConnectUrl tags: - Connect @@ -52617,8 +52614,8 @@ paths: description: Google Search Console OAuth is not configured. /v1/connect/googlesearchconsole/sites: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleSearchConsoleSites tags: - Connect @@ -52674,8 +52671,8 @@ paths: description: The pending sign-in expired or was already used. Start the connect again. /v1/connect/googlesearchconsole/select-site: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectGoogleSearchConsoleSite tags: - Connect @@ -52732,8 +52729,8 @@ paths: /v1/connect/campaignmanager360: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getCampaignManagerConnectUrl tags: - Connect @@ -52822,8 +52819,8 @@ paths: description: Campaign Manager 360 OAuth is not configured. /v1/connect/campaignmanager360/profiles: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listCampaignManagerProfiles tags: - Connect @@ -52872,8 +52869,8 @@ paths: description: The pending sign-in expired or was already used. Start the connect again. /v1/connect/campaignmanager360/select-profile: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectCampaignManagerProfile tags: - Connect @@ -52924,8 +52921,8 @@ paths: description: Google or Zernio failed while saving. The pendingDataToken stays usable; retry. /v1/connect/amazonads: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getAmazonAdsConnectUrl tags: - Connect @@ -52992,8 +52989,8 @@ paths: /v1/connect/hubspot: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getHubSpotConnectUrl tags: - Connect @@ -53069,8 +53066,8 @@ paths: description: HubSpot OAuth is not configured. /v1/connect/gohighlevel: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGohighlevelConnectUrl tags: - Connect @@ -53140,8 +53137,8 @@ paths: description: HighLevel OAuth is not configured. /v1/connect/salesforce: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getSalesforceConnectUrl tags: - Connect @@ -53226,8 +53223,8 @@ paths: description: Salesforce OAuth is not configured. /v1/connect/stripe: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getStripeConnectUrl tags: - Connect @@ -53300,8 +53297,8 @@ paths: description: Stripe Connect is not configured. /v1/connect/wordpress: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWordPressAuthUrl tags: [Connect] summary: Get WordPress.com OAuth connect URL @@ -53361,8 +53358,8 @@ paths: /v1/connect/wix: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWixConnectUrl tags: [Connect] summary: Get Wix site install URL @@ -53418,8 +53415,8 @@ paths: /v1/connect/webflow: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWebflowConnectUrl tags: [Connect] summary: Get Webflow OAuth URL @@ -53476,8 +53473,8 @@ paths: '503': { description: 'The Webflow app or state signing is not configured.' } /v1/connect/webflow/token: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWebflowWithSiteToken tags: [Connect] summary: Connect Webflow with a site API token @@ -53560,8 +53557,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/connect/wordpress/token: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWordPressWithApplicationPassword tags: [Connect] summary: Connect self-hosted WordPress with an application password @@ -53619,8 +53616,8 @@ paths: /v1/connect/tiktok-ads: patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: configureTikTokAdsBrandIdentity tags: [Connect] summary: Set TikTok brand identity @@ -53691,8 +53688,8 @@ paths: /v1/connect/facebook/select-page: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listFacebookPages tags: [Connect] x-platforms: [facebook, meta] @@ -53780,8 +53777,8 @@ paths: properties: error: { type: string } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectFacebookPage tags: [Connect] x-platforms: [facebook, meta] @@ -53957,8 +53954,8 @@ paths: /v1/connect/instagram/select-account: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listInstagramPages tags: [Connect] summary: List Pages with a linked Instagram account @@ -54036,8 +54033,8 @@ paths: '429': { x-summary: "Meta is rate limiting Page reads for this Facebook account: wait the seconds in `Retry-After` and retry.", description: 'Meta is rate limiting Page reads for this Facebook account (code `rate_limited`). Retry after `Retry-After` seconds; the listing stops at the first throttle instead of retrying.', headers: { Retry-After: { schema: { type: integer } } } } '403': { description: User does not have access to the specified profile } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectInstagramAccount tags: [Connect] summary: Select the Page whose Instagram account to connect @@ -54166,8 +54163,8 @@ paths: /v1/connect/googlebusiness/locations: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleBusinessLocations tags: [Connect] summary: List Google Business Profile locations @@ -54262,8 +54259,8 @@ paths: /v1/connect/googlebusiness/select-location: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectGoogleBusinessLocation tags: [Connect] summary: Select Google Business Profile location @@ -54395,8 +54392,8 @@ paths: /v1/accounts/{accountId}/gmb-reviews: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getGoogleBusinessReviews tags: [GMB Reviews] summary: Get reviews @@ -54509,8 +54506,8 @@ paths: /v1/accounts/{accountId}/gmb-verifications: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessVerifications tags: [GMB Verifications] summary: Get verification state @@ -54590,8 +54587,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: startGoogleBusinessVerification tags: [GMB Verifications] summary: Start a verification @@ -54663,8 +54660,8 @@ paths: /v1/accounts/{accountId}/gmb-verifications/options: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: fetchGoogleBusinessVerificationOptions tags: [GMB Verifications] summary: Fetch verification options @@ -54729,8 +54726,8 @@ paths: /v1/accounts/{accountId}/gmb-verifications/{verificationId}/complete: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: completeGoogleBusinessVerification tags: [GMB Verifications] summary: Complete a verification @@ -54798,8 +54795,8 @@ paths: /v1/accounts/{accountId}/gmb-food-menus: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessFoodMenus tags: [GMB Food Menus] summary: Get food menus @@ -54883,8 +54880,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessFoodMenus tags: [GMB Food Menus] summary: Update food menus @@ -54977,8 +54974,8 @@ paths: /v1/accounts/{accountId}/gmb-location-details: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessLocationDetails tags: [GMB Location Details] summary: Get location details @@ -55162,8 +55159,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } '404': { $ref: '#/components/responses/NotFound' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessLocationDetails tags: [GMB Location Details] summary: Update location details @@ -55435,8 +55432,8 @@ paths: /v1/accounts/{accountId}/gmb-media: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleBusinessMedia tags: [GMB Media] summary: List media @@ -55502,8 +55499,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createGoogleBusinessMedia tags: [GMB Media] summary: Upload photo @@ -55564,8 +55561,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteGoogleBusinessMedia tags: [GMB Media] summary: Delete photo @@ -55610,8 +55607,8 @@ paths: /v1/accounts/{accountId}/gmb-attribute-metadata: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGmbAttributeMetadata tags: [GMB Attributes] summary: Get attribute metadata @@ -55752,8 +55749,8 @@ paths: /v1/accounts/{accountId}/gmb-categories: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleBusinessCategories tags: [Connect] summary: List Google Business Profile categories @@ -55829,8 +55826,8 @@ paths: /v1/accounts/{accountId}/gmb-attributes: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessAttributes tags: [GMB Attributes] summary: Get attributes @@ -55897,8 +55894,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessAttributes tags: [GMB Attributes] summary: Update attributes @@ -55986,8 +55983,8 @@ paths: /v1/accounts/{accountId}/gmb-place-actions: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listGoogleBusinessPlaceActions tags: [GMB Place Actions] summary: List action links @@ -56054,8 +56051,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createGoogleBusinessPlaceAction tags: [GMB Place Actions] summary: Create action link @@ -56113,8 +56110,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteGoogleBusinessPlaceAction tags: [GMB Place Actions] summary: Delete action link @@ -56157,8 +56154,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessPlaceAction tags: [GMB Place Actions] summary: Update action link @@ -56223,8 +56220,8 @@ paths: /v1/accounts/{accountId}/gmb-services: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGoogleBusinessServices tags: [GMB Services] summary: Get services @@ -56289,8 +56286,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGoogleBusinessServices tags: [GMB Services] summary: Replace services @@ -56376,8 +56373,8 @@ paths: /v1/accounts/{accountId}/gmb-reviews/batch: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: batchGetGoogleBusinessReviews tags: [GMB Reviews] summary: Batch get reviews @@ -56468,8 +56465,8 @@ paths: /v1/accounts/{accountId}/gmb-reviews/{reviewId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getGoogleBusinessReview tags: [GMB Reviews] summary: Get a review @@ -56551,8 +56548,8 @@ paths: /v1/accounts/{accountId}/gmb-reviews/{reviewId}/reply: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: replyToGoogleBusinessReview tags: [GMB Reviews] summary: Reply to a review @@ -56630,8 +56627,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteGoogleBusinessReviewReply tags: [GMB Reviews] summary: Delete a review reply @@ -56686,8 +56683,8 @@ paths: /v1/connect/handoffs/{handoffId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getConnectHandoff tags: [Connect] summary: Get a phone handoff @@ -56735,8 +56732,8 @@ paths: description: The handoff expired, does not exist, or belongs to another workspace (code RESOURCE_NOT_FOUND). /v1/connect/welcome-screen: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getConnectWelcomeScreen tags: [Connect] summary: Get the saved welcome screen @@ -56753,8 +56750,8 @@ paths: '401': $ref: '#/components/responses/Unauthorized' put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateConnectWelcomeScreen tags: [Connect] summary: Save the welcome screen @@ -56793,8 +56790,8 @@ paths: description: The caller cannot change workspace settings (code INSUFFICIENT_PERMISSIONS). /v1/connect/oauth-apps: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listOAuthApps tags: [Connect] summary: List your OAuth apps @@ -56839,8 +56836,8 @@ paths: '401': $ref: '#/components/responses/Unauthorized' post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createOAuthApp tags: [Connect] summary: Add an OAuth app @@ -56908,8 +56905,8 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getOAuthApp tags: [Connect] summary: Get an OAuth app @@ -56932,8 +56929,8 @@ paths: '404': $ref: '#/components/responses/NotFound' patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateOAuthApp tags: [Connect] summary: Update an OAuth app @@ -56981,8 +56978,8 @@ paths: '404': $ref: '#/components/responses/NotFound' delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteOAuthApp tags: [Connect] summary: Remove an OAuth app @@ -57015,8 +57012,8 @@ paths: description: Accounts are still connected through the app (OAUTH_APP_IN_USE); resend with confirm=true. /v1/connect/oauth-apps/{appId}/test: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: testOAuthApp tags: [Connect] summary: Check an OAuth app's keys @@ -57223,8 +57220,8 @@ paths: /v1/connect/linkedin/select-organization: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectLinkedInOrganization tags: [Connect] summary: Select LinkedIn org @@ -57385,8 +57382,8 @@ paths: /v1/connect/pinterest/select-board: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listPinterestBoardsForSelection tags: [Connect] summary: List Pinterest boards @@ -57439,8 +57436,8 @@ paths: '403': { description: No access to profile } '500': { description: Failed to fetch boards } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectPinterestBoard tags: [Connect] summary: Select Pinterest board @@ -57549,8 +57546,8 @@ paths: /v1/connect/snapchat/select-profile: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listSnapchatProfiles tags: [Connect] summary: List Snapchat profiles @@ -57606,8 +57603,8 @@ paths: '403': { description: No access to profile } '500': { description: Failed to fetch public profiles } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: selectSnapchatProfile tags: [Connect] summary: Select Snapchat profile @@ -57743,8 +57740,8 @@ paths: /v1/connect/bluesky/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectBlueskyCredentials tags: [Connect] summary: Connect Bluesky account @@ -57808,8 +57805,8 @@ paths: /v1/connect/openai-ads/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectOpenAIAdsCredentials tags: [Connect] summary: Connect an OpenAI Ads account @@ -57877,8 +57874,8 @@ paths: /v1/connect/applovin-ads/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectAppLovinAdsCredentials tags: [Connect] summary: Connect an AppLovin account @@ -57971,8 +57968,8 @@ paths: /v1/connect/snapchat-ads/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectSnapchatAdsCredentials tags: [Connect] summary: Connect a Snapchat Ads pixel @@ -58040,8 +58037,8 @@ paths: /v1/connect/klaviyo/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectKlaviyoCredentials tags: [Connect] summary: Connect a Klaviyo account @@ -58102,8 +58099,8 @@ paths: /v1/connect/attentive/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectAttentiveCredentials tags: [Connect] summary: Connect an Attentive company @@ -58163,8 +58160,8 @@ paths: /v1/connect/impact/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectImpactCredentials tags: [Connect] summary: Connect an Impact program @@ -58236,8 +58233,8 @@ paths: /v1/connect/awin/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectAwinCredentials tags: [Connect] summary: Connect an Awin advertiser @@ -58301,8 +58298,8 @@ paths: /v1/connect/tradedesk-ads/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectTradeDeskAdsCredentials x-platforms: [tradedeskads] tags: [Connect] @@ -58370,8 +58367,8 @@ paths: /v1/connect/tradedesk-ads/partner: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectTradeDeskAdsPartner x-platforms: - tradedeskdsp @@ -58473,8 +58470,8 @@ paths: /v1/connect/taboola-ads/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectTaboolaAdsCredentials tags: [Connect] summary: Connect a Taboola account @@ -58539,8 +58536,8 @@ paths: /v1/connect/whop-ads/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWhopAdsCredentials tags: [Connect] summary: Connect a Whop account @@ -58604,8 +58601,8 @@ paths: /v1/connect/whatsapp/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWhatsAppCredentials tags: [Connect] summary: Connect WhatsApp via credentials @@ -58725,8 +58722,8 @@ paths: /v1/connect/whatsapp/select-phone-number: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWhatsAppPhoneNumbers tags: [Connect] summary: List numbers for selection @@ -58810,8 +58807,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: completeWhatsAppPhoneSelection tags: [Connect] summary: Complete number selection @@ -58913,8 +58910,8 @@ paths: /v1/connect/whatsapp/embedded-signup: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWhatsAppEmbeddedSignup tags: [Connect] summary: Connect WhatsApp from Embedded Signup @@ -58979,8 +58976,8 @@ paths: /v1/connect/whatsapp/sdk-config: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppSdkConfig tags: [Connect] summary: Get Embedded Signup SDK config @@ -59020,8 +59017,8 @@ paths: /v1/connect/discord: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectDiscordChannel tags: [Connect] summary: Connect a Discord channel @@ -59060,8 +59057,8 @@ paths: /v1/connect/slack: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listSlackChannels tags: [Connect] summary: List Slack channels for the channel picker @@ -59169,8 +59166,8 @@ paths: '403': { x-summary: "The key has no access to the profile, Slack is temporarily unavailable, or the connect token is for another profile: check both.", description: 'No access to the profile, or Slack connections are temporarily unavailable (code: feature_not_available), or the connect token was issued for a different profile or platform (INSUFFICIENT_PERMISSIONS)' } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectSlackChannel tags: [Connect] summary: Connect a Slack channel @@ -59210,8 +59207,8 @@ paths: /v1/connect/line/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectLineCredentials tags: - Connect @@ -59342,8 +59339,8 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/connect/wechat/credentials: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: connectWechatCredentials tags: - Connect @@ -59477,8 +59474,8 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/connect/wechat/ip-whitelist: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWechatIpWhitelist tags: - Connect @@ -59511,8 +59508,8 @@ paths: $ref: '#/components/responses/ResourceGroupForbidden' /v1/connect/telegram: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getTelegramConnectStatus tags: [Connect] summary: Generate Telegram code @@ -59575,8 +59572,8 @@ paths: '404': { description: Profile not found } '500': { description: Internal error } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: initiateTelegramConnect tags: [Connect] summary: Connect Telegram directly @@ -59635,8 +59632,8 @@ paths: '404': { description: Profile not found } '500': { description: Internal error } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: completeTelegramConnect tags: [Connect] summary: Check Telegram status @@ -59714,8 +59711,8 @@ paths: /v1/accounts/{accountId}/webhook-subscription: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getPageWebhookSubscription tags: [Connect] x-platforms: ["facebook", "instagram"] @@ -59754,8 +59751,8 @@ paths: '409': 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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: resyncPageWebhookSubscription tags: [Connect] x-platforms: ["facebook", "instagram"] @@ -59804,8 +59801,8 @@ paths: description: Meta rejected the subscription, or (Instagram) the account has no webhook subscription right now /v1/accounts/{accountId}/business-partners: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listBusinessPartners tags: [Accounts] x-platforms: ["facebook", "instagram"] @@ -59838,8 +59835,8 @@ paths: '422': { description: "No Facebook Page is linked (Instagram Login account, or no Page selected)." } '429': { $ref: '#/components/responses/RateLimited' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: grantBusinessPartner tags: [Accounts] x-platforms: ["facebook", "instagram"] @@ -59918,8 +59915,8 @@ paths: '422': { description: "The Page is not owned by a business portfolio, or no Page is linked to the account." } '429': { $ref: '#/components/responses/RateLimited' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: revokeBusinessPartner tags: [Accounts] x-platforms: ["facebook", "instagram"] @@ -59950,8 +59947,8 @@ paths: /v1/accounts/{accountId}/facebook-page: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getFacebookPages tags: [Connect] summary: List Facebook pages @@ -60023,8 +60020,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: 'Account not found, or not a facebook or metaads account' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateFacebookPage tags: [Connect] summary: Update Facebook page @@ -60083,8 +60080,8 @@ paths: /v1/accounts/{accountId}/facebook-page-info: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getFacebookPageInfo tags: [Account Settings] summary: Get a Facebook Page's public info @@ -60129,8 +60126,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateFacebookPageInfo tags: [Account Settings] summary: Update a Facebook Page's public info @@ -60208,8 +60205,8 @@ paths: /v1/accounts/{accountId}/linkedin-organizations: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getLinkedInOrganizations tags: [Connect] summary: List LinkedIn orgs @@ -60251,8 +60248,8 @@ paths: /v1/accounts/{accountId}/linkedin-aggregate-analytics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInAggregateAnalytics tags: [Analytics] summary: Get LinkedIn aggregate stats @@ -60473,8 +60470,8 @@ paths: /v1/accounts/{accountId}/linkedin-post-analytics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInPostAnalytics tags: [Analytics] summary: Get LinkedIn post stats @@ -60594,8 +60591,8 @@ paths: /v1/accounts/{accountId}/linkedin-post-reactions: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getLinkedInPostReactions tags: [Analytics] summary: Get LinkedIn post reactions @@ -60699,8 +60696,8 @@ paths: /v1/accounts/{accountId}/linkedin-organization: put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateLinkedInOrganization tags: [Connect] summary: Switch LinkedIn account type @@ -60753,8 +60750,8 @@ paths: /v1/accounts/{accountId}/linkedin-mentions: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getLinkedInMentions tags: [LinkedIn Mentions] summary: Resolve LinkedIn mention @@ -60933,8 +60930,8 @@ paths: /v1/accounts/{accountId}/instagram/stories: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listInstagramStories tags: [Instagram] summary: List active Instagram stories @@ -61013,8 +61010,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/accounts/{accountId}/instagram/publishing-limit: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getInstagramPublishingLimit tags: [Instagram] summary: Get Instagram publishing limit @@ -61056,8 +61053,8 @@ paths: /v1/accounts/{accountId}/instagram/audio: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: searchInstagramAudio tags: [Instagram] summary: Search Instagram audio @@ -61111,8 +61108,8 @@ paths: /v1/accounts/{accountId}/instagram/audio/{audioId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getInstagramAudio tags: [Instagram] summary: Get Instagram audio metadata @@ -61152,8 +61149,8 @@ paths: /v1/accounts/{accountId}/instagram/business-discovery: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramBusinessDiscovery tags: [Instagram] summary: Look up a public Instagram Business account @@ -61207,8 +61204,8 @@ paths: /v1/accounts/{accountId}/instagram/media/{mediaId}/collaborators: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: publishing + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listInstagramMediaCollaborators tags: - Instagram @@ -61273,8 +61270,8 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/live-media: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: listInstagramLiveMedia tags: [Instagram] summary: List the live broadcasts of an Instagram account @@ -61332,8 +61329,8 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/tags: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: analytics + x-oauth-scopes: ["analytics:read"] operationId: listInstagramTaggedMedia tags: [Instagram] summary: List the posts an Instagram account is tagged in @@ -61406,8 +61403,8 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/mentions/media/{mediaId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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 @@ -61462,8 +61459,8 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/mentions/comments/{commentId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInstagramMentionedComment tags: [Instagram] summary: Get a comment that mentions an Instagram account @@ -61517,8 +61514,8 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/accounts/{accountId}/instagram/stories/{storyId}/insights: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getInstagramStoryInsights tags: [Instagram] summary: Get Instagram story insights @@ -61597,8 +61594,8 @@ paths: /v1/accounts/{accountId}/pinterest-boards: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getPinterestBoards tags: [Connect] summary: List Pinterest boards @@ -61641,8 +61638,8 @@ paths: '409': { x-summary: "The account has no stored access token: reconnect it.", description: 'The account has no stored access token (ads_connection_required). Reconnect it.' } '502': { description: 'Pinterest rejected or failed the request.' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updatePinterestBoards tags: [Connect] summary: Set default Pinterest board @@ -61687,8 +61684,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Account not found } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createPinterestBoard tags: [Connect] summary: Create Pinterest board @@ -61750,8 +61747,8 @@ paths: /v1/accounts/{accountId}/youtube-captions: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getYoutubeCaptions tags: [Connect] summary: Get a YouTube video transcript @@ -61874,8 +61871,8 @@ paths: /v1/accounts/{accountId}/youtube-playlists: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getYoutubePlaylists tags: [Connect] summary: List YouTube playlists @@ -61925,8 +61922,8 @@ paths: '401': { x-summary: "The API key is missing or invalid, or the YouTube token was revoked or expired: send a valid key or reconnect.", description: 'Missing or invalid API key (missing_credentials / invalid_credentials), or the stored YouTube token was revoked or expired (reconnect_required): reconnect the account.' } '404': { description: Account not found } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createYoutubePlaylist tags: [Connect] summary: Create YouTube playlist @@ -62001,8 +61998,8 @@ paths: '429': { description: "YouTube rate limit exceeded." } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateYoutubeDefaultPlaylist tags: [Connect] summary: Set default YouTube playlist @@ -62042,8 +62039,8 @@ paths: /v1/accounts/{accountId}/gmb-locations: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGmbLocations tags: [Connect] summary: List Google Business Profile locations @@ -62115,8 +62112,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Account not found } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGmbLocation tags: [Connect] summary: Update Google Business Profile location @@ -62176,8 +62173,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createGoogleBusinessLocation tags: [Connect] summary: Create Google Business Profile location @@ -62312,8 +62309,8 @@ paths: /v1/accounts/{accountId}/gmb-locations/search: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: searchGoogleBusinessLocations tags: [Connect] summary: Search existing Google listings @@ -62397,8 +62394,8 @@ paths: /v1/accounts/{accountId}/gmb-locations/assign: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: assignGoogleBusinessLocation tags: [Connect] summary: Assign Google Business Profile location to another profile @@ -62484,8 +62481,8 @@ paths: /v1/accounts/{accountId}/facebook-post-reactions: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getFacebookPostReactions tags: [Analytics] summary: Get Facebook post reactions @@ -62548,8 +62545,8 @@ paths: /v1/accounts/{accountId}/facebook-visitor-posts: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listFacebookVisitorPosts x-platforms: ["facebook"] tags: [Analytics] @@ -62655,8 +62652,8 @@ paths: /v1/accounts/{accountId}/facebook-tagged-posts: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: listFacebookTaggedPosts tags: [Analytics] summary: List the posts a Facebook Page is tagged in @@ -62748,8 +62745,8 @@ paths: /v1/accounts/{accountId}/reddit-subreddits: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getRedditSubreddits tags: [Connect] summary: List Reddit subreddits @@ -62802,8 +62799,8 @@ paths: '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateRedditSubreddits tags: [Connect] summary: Set default subreddit @@ -62845,8 +62842,8 @@ paths: /v1/accounts/{accountId}/reddit-subreddits/{subreddit}/rules: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getSubredditRules tags: [Connect] summary: Get subreddit rules @@ -62912,8 +62909,8 @@ paths: /v1/accounts/{accountId}/reddit-vote: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: voteRedditThing tags: [Connect] summary: Vote on a Reddit post or comment @@ -62972,8 +62969,8 @@ paths: /v1/accounts/{accountId}/reddit-flairs: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getRedditFlairs tags: [Connect] summary: List subreddit flairs @@ -63023,8 +63020,8 @@ paths: '404': { description: Account not found } '503': { description: "Organic Reddit is temporarily unavailable while Reddit blocks third-party API access (`PLATFORM_DISABLED`)." } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setRedditPostFlair tags: [Connect] summary: Set Reddit post flair @@ -63079,8 +63076,8 @@ paths: /v1/accounts/{accountId}/hubspot-settings: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getHubSpotSettings tags: - Accounts @@ -63110,8 +63107,8 @@ paths: '404': description: Account not found patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateHubSpotSettings tags: - Accounts @@ -63213,8 +63210,8 @@ paths: description: Account not found /v1/accounts/{accountId}/hubspot-settings/contact-properties: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listHubSpotContactProperties tags: - Accounts @@ -63249,8 +63246,8 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-settings: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getGohighlevelSettings tags: - Accounts @@ -63280,8 +63277,8 @@ paths: '404': description: Account not found patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateGohighlevelSettings tags: - Accounts @@ -63348,8 +63345,8 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-audiences: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listGohighlevelAudienceSyncs tags: - Accounts @@ -63380,8 +63377,8 @@ paths: '404': description: Account not found post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: startGohighlevelAudienceSync tags: - Accounts @@ -63463,8 +63460,8 @@ paths: description: The tag is being set up or synced right now, or is already synced. Retry later, or stop the existing sync first. /v1/accounts/{accountId}/gohighlevel-audiences/{syncId}: delete: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: stopGohighlevelAudienceSync tags: - Accounts @@ -63508,8 +63505,8 @@ paths: description: The tag is being set up or synced right now, or is already synced. Retry later, or stop the existing sync first. /v1/accounts/{accountId}/gohighlevel-funnel-tracking: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getGohighlevelFunnelTracking tags: - Accounts @@ -63541,8 +63538,8 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-funnel-tracking/verify: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: verifyGohighlevelFunnelTracking tags: - Accounts @@ -63591,8 +63588,8 @@ paths: description: Account not found /v1/accounts/{accountId}/gohighlevel-won-deals-backfill: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: sendGohighlevelPastWonDeals tags: - Accounts @@ -63644,8 +63641,8 @@ paths: description: Another call is sending this sub-account's past won deals. Retry when it ends. /v1/accounts/{accountId}/salesforce-settings: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getSalesforceSettings tags: - Accounts @@ -63675,8 +63672,8 @@ paths: '404': description: Account not found patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateSalesforceSettings tags: - Accounts @@ -63748,8 +63745,8 @@ paths: description: Account not found /v1/crm/{accountId}/contacts/search: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: searchCrmContacts tags: - CRM @@ -63827,8 +63824,8 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/contacts: post: - x-oauth-scopes: ["automations:write"] x-resource-group: contacts + x-oauth-scopes: ["automations:write"] operationId: createCrmContact tags: - CRM @@ -63893,8 +63890,8 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/contacts/{contactId}: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getCrmContact tags: - CRM @@ -63931,8 +63928,8 @@ paths: '502': $ref: '#/components/responses/UpstreamFailure' patch: - x-oauth-scopes: ["automations:write"] x-resource-group: contacts + x-oauth-scopes: ["automations:write"] operationId: updateCrmContact tags: - CRM @@ -63982,8 +63979,8 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/contacts/{contactId}/activities: post: - x-oauth-scopes: ["automations:write"] x-resource-group: contacts + x-oauth-scopes: ["automations:write"] operationId: createCrmActivity tags: - CRM @@ -64061,8 +64058,8 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/deals: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listCrmDeals tags: - CRM @@ -64117,8 +64114,8 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/deals/{dealId}: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getCrmDeal tags: - CRM @@ -64155,8 +64152,8 @@ paths: '502': $ref: '#/components/responses/UpstreamFailure' patch: - x-oauth-scopes: ["automations:write"] x-resource-group: contacts + x-oauth-scopes: ["automations:write"] operationId: updateCrmDeal tags: - CRM @@ -64231,8 +64228,8 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/crm/{accountId}/owners: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: contacts + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listCrmOwners tags: - CRM @@ -64278,8 +64275,8 @@ paths: $ref: '#/components/responses/UpstreamFailure' /v1/accounts/{accountId}/stripe-settings: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getStripeSettings tags: - Accounts @@ -64308,8 +64305,8 @@ paths: '404': description: Account not found patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateStripeSettings tags: - Accounts @@ -64358,8 +64355,8 @@ paths: description: Account not found /v1/accounts/{accountId}/slack-settings: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getSlackSettings tags: [Accounts] summary: Get Slack account settings @@ -64394,8 +64391,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Account not found } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateSlackSettings tags: [Accounts] summary: Update Slack account settings @@ -64424,8 +64421,8 @@ paths: /v1/accounts/{accountId}/bluesky-settings: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getBlueskySettings tags: [Accounts] summary: Get Bluesky account settings @@ -64451,8 +64448,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Account not found } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateBlueskySettings tags: [Accounts] summary: Update Bluesky account settings @@ -64485,8 +64482,8 @@ paths: /v1/accounts/{accountId}/discord-settings: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getDiscordSettings tags: [Discord] summary: Get Discord account settings @@ -64536,8 +64533,8 @@ paths: '404': { description: Account not found } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateDiscordSettings tags: [Discord] summary: Update Discord settings @@ -64607,8 +64604,8 @@ paths: /v1/accounts/{accountId}/discord-channels: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getDiscordChannels tags: [Discord] summary: List Discord guild channels @@ -64651,8 +64648,8 @@ paths: /v1/accounts/{accountId}/slack-members: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listSlackMembers tags: [Slack] summary: List Slack workspace members @@ -64700,8 +64697,8 @@ paths: /v1/discord/dms: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendDiscordDirectMessage tags: [Discord] summary: Send a Discord Direct Message @@ -64809,8 +64806,8 @@ paths: /v1/discord/guilds/{guildId}/roles: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listDiscordGuildRoles tags: [Discord] summary: List Discord guild roles @@ -64854,8 +64851,8 @@ paths: '403': { description: Discord refused the request (bot lacks View Channels permission in the guild). } '502': { description: Discord was unreachable or returned an unclassified error. } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: createDiscordGuildRole tags: [Discord] summary: Create a Discord guild role @@ -64907,8 +64904,8 @@ paths: /v1/discord/guilds/{guildId}/roles/{roleId}: patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: editDiscordGuildRole tags: [Discord] summary: Edit a Discord guild role @@ -64953,8 +64950,8 @@ paths: '403': { description: "Discord refused the action (bot lacks Manage Roles, or the target role sits at or above the bot's highest role)." } '502': { description: Discord was unreachable or returned an unclassified error. } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteDiscordGuildRole tags: [Discord] summary: Delete a Discord guild role @@ -64986,8 +64983,8 @@ paths: /v1/discord/guilds/{guildId}/members: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listDiscordGuildMembers tags: [Discord] summary: List Discord guild members @@ -65027,8 +65024,8 @@ paths: /v1/discord/guilds/{guildId}/members/search: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: searchDiscordGuildMembers tags: [Discord] summary: Search Discord guild members @@ -65060,8 +65057,8 @@ paths: /v1/discord/guilds/{guildId}/members/{userId}: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getDiscordGuildMember tags: [Discord] summary: Get a Discord guild member @@ -65089,8 +65086,8 @@ paths: /v1/discord/guilds/{guildId}/members/{userId}/roles/{roleId}: put: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: addDiscordMemberRole tags: [Discord] summary: Assign a role to a guild member @@ -65129,8 +65126,8 @@ paths: '502': { description: Discord was unreachable or returned an unclassified error. } delete: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: removeDiscordMemberRole tags: [Discord] summary: Remove a role from a guild member @@ -65165,8 +65162,8 @@ paths: /v1/discord/channels/{channelId}/messages/{messageId}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteDiscordMessage tags: [Discord] summary: Delete a Discord channel message @@ -65201,8 +65198,8 @@ paths: /v1/discord/channels/{channelId}/messages/{messageId}/crosspost: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: crosspostDiscordMessage tags: [Discord] summary: Crosspost Discord message @@ -65236,8 +65233,8 @@ paths: /v1/discord/channels/{channelId}/threads: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: createDiscordThread tags: [Discord] summary: Create a Discord public thread @@ -65292,8 +65289,8 @@ paths: /v1/discord/channels/{channelId}/pins: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listDiscordPinnedMessages tags: [Discord] summary: List pinned messages @@ -65335,8 +65332,8 @@ paths: /v1/discord/channels/{channelId}/pins/{messageId}: put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: pinDiscordMessage tags: [Discord] summary: Pin a Discord message @@ -65372,8 +65369,8 @@ paths: '502': { description: Bot lacks MANAGE_MESSAGES in the channel. } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: unpinDiscordMessage tags: [Discord] summary: Unpin a Discord message @@ -65403,8 +65400,8 @@ paths: /v1/discord/guilds/{guildId}/events: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listDiscordScheduledEvents tags: [Discord] summary: List Discord scheduled events @@ -65437,8 +65434,8 @@ paths: '502': { description: Bot lacks access to the guild's events. } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: createDiscordScheduledEvent tags: [Discord] summary: Create a Discord scheduled event @@ -65523,8 +65520,8 @@ paths: /v1/discord/guilds/{guildId}/events/{eventId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getDiscordScheduledEvent tags: [Discord] summary: Get a Discord scheduled event @@ -65545,8 +65542,8 @@ paths: '404': { description: Event or Discord account not found. } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: updateDiscordScheduledEvent tags: [Discord] summary: Update a Discord scheduled event @@ -65595,8 +65592,8 @@ paths: '502': { description: Discord was unreachable or returned an unclassified error. } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteDiscordScheduledEvent tags: [Discord] summary: Delete a Discord scheduled event @@ -65623,8 +65620,8 @@ paths: /v1/queue/slots: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listQueueSlots tags: [Queue] summary: List schedules @@ -65704,8 +65701,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Profile not found } post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: createQueueSlot tags: [Queue] summary: Create schedule @@ -65758,8 +65755,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Profile not found } put: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: updateQueueSlot tags: [Queue] summary: Update schedule @@ -65832,8 +65829,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Profile not found } delete: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: deleteQueueSlot tags: [Queue] summary: Delete schedule @@ -65866,8 +65863,8 @@ paths: '404': { description: Profile or queue not found } /v1/queue/preview: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: previewQueue tags: [Queue] summary: Preview upcoming slots @@ -65910,8 +65907,8 @@ paths: '404': { description: Profile or queue schedule not found } /v1/queue/next-slot: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getNextQueueSlot tags: [Queue] summary: Get next available slot @@ -65949,8 +65946,8 @@ paths: # ============================================ /v1/webhooks/settings: get: - x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: getWebhookSettings tags: [Webhooks] summary: List webhooks @@ -65992,8 +65989,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { $ref: '#/components/responses/ResourceGroupForbidden' } post: - x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: createWebhookSettings tags: [Webhooks] summary: Create webhook @@ -66143,8 +66140,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } '404': { description: 'A profile in `profileIds` (`profile_not_found`) or an account in `accountIds` (`account_not_found`) is not in your team' } put: - x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: updateWebhookSettings tags: [Webhooks] summary: Update webhook @@ -66301,8 +66298,8 @@ paths: '403': { $ref: '#/components/responses/ResourceGroupForbidden' } '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-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: deleteWebhookSettings tags: [Webhooks] summary: Delete webhook @@ -66343,8 +66340,8 @@ paths: /v1/webhooks/logs: get: - x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: getWebhookLogs tags: [Webhooks] summary: List webhook delivery logs @@ -66449,8 +66446,8 @@ paths: /v1/webhooks/logs/redeliver: post: - x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: redeliverWebhookEvent tags: [Webhooks] summary: Redeliver a webhook event @@ -66526,8 +66523,8 @@ paths: /v1/webhooks/test: post: - x-oauth-scopes: ["automations:write"] x-resource-group: "webhooks" + x-oauth-scopes: ["automations:write"] operationId: testWebhook tags: [Webhooks] summary: Send test webhook @@ -66779,8 +66776,8 @@ paths: /v1/logs: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listLogs tags: [Logs] summary: List activity logs @@ -66987,8 +66984,8 @@ paths: # Unified Inbox Endpoints /v1/email/threads: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailThreads tags: [Email] summary: List email threads @@ -67034,8 +67031,8 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } /v1/email/threads/{threadId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getEmailThread tags: [Email] summary: Get an email thread with its messages @@ -67063,8 +67060,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateEmailThread tags: [Email] summary: Update every message in a thread @@ -67092,8 +67089,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/messages: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailMessages tags: [Email] summary: List email messages @@ -67140,8 +67137,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } '429': { $ref: '#/components/responses/RateLimited' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendEmailMessage tags: [Email] summary: Send an email @@ -67214,8 +67211,8 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/messages/scheduled: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listScheduledEmails tags: [Email] summary: List scheduled emails @@ -67240,8 +67237,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/email/messages/scheduled/{scheduleId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getScheduledEmail tags: [Email] summary: Get a scheduled email @@ -67262,8 +67259,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: cancelScheduledEmail tags: [Email] summary: Cancel a scheduled email @@ -67287,8 +67284,8 @@ paths: '409': { description: 'The send already left, failed or was cancelled; the message names its status.' } /v1/email/messages/{messageId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getEmailMessage tags: [Email] summary: Get an email message @@ -67313,8 +67310,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateEmailMessage tags: [Email] summary: Mark read or starred, label, or move a message @@ -67342,8 +67339,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: trashEmailMessage tags: [Email] summary: Move a message to trash @@ -67370,8 +67367,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/messages/{messageId}/reply: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: replyEmailMessage tags: [Email] summary: Reply to a message @@ -67420,8 +67417,8 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/messages/{messageId}/forward: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: forwardEmailMessage tags: [Email] summary: Forward a message @@ -67458,8 +67455,8 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/drafts: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailDrafts tags: [Email] summary: List drafts @@ -67485,8 +67482,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createEmailDraft tags: [Email] summary: Create a draft @@ -67517,8 +67514,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/drafts/{draftId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getEmailDraft tags: [Email] summary: Get a draft @@ -67541,8 +67538,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateEmailDraft tags: [Email] summary: Update a draft @@ -67571,8 +67568,8 @@ paths: '409': { description: 'draft_sending: a send of this draft is in flight', content: { application/json: { schema: { $ref: '#/components/schemas/ErrorResponse' } } } } '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-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteEmailDraft tags: [Email] summary: Delete a draft @@ -67599,8 +67596,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/drafts/{draftId}/send: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendEmailDraft tags: [Email] summary: Send a draft @@ -67651,8 +67648,8 @@ paths: '429': { $ref: '#/components/responses/EmailSendRefused' } /v1/email/folders: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailFolders tags: [Email] summary: List mailbox folders @@ -67681,8 +67678,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/imap/discover: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: discoverImapSettings tags: [Email] summary: Find the mail settings for an address @@ -67710,8 +67707,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/email/imap/accounts: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createImapAccount tags: [Email] summary: Connect an IMAP mailbox @@ -67787,8 +67784,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/email/labels: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailLabels tags: [Email] summary: List labels @@ -67809,8 +67806,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createEmailLabel tags: [Email] summary: Create a label @@ -67855,8 +67852,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/send-as: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailSendAs tags: [Email] summary: List send-as addresses @@ -67882,8 +67879,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: declareEmailSendAs tags: [Email] summary: Declare a send-as address @@ -67922,8 +67919,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/send-as/{email}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteEmailSendAs tags: [Email] summary: Remove a declared send-as address @@ -67951,8 +67948,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/shared-mailboxes: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailSharedMailboxes tags: [Email] summary: List shared mailboxes @@ -67973,8 +67970,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addEmailSharedMailbox tags: [Email] summary: Add a shared mailbox @@ -68025,8 +68022,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/signatures: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listEmailSignatures tags: [Email] summary: List signatures @@ -68046,8 +68043,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createEmailSignature tags: [Email] summary: Create a signature @@ -68079,8 +68076,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/email/signatures/import: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: importEmailSignatures tags: [Email] summary: Import Gmail signatures @@ -68102,8 +68099,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/signatures/{signatureId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getEmailSignature tags: [Email] summary: Get a signature @@ -68122,8 +68119,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateEmailSignature tags: [Email] summary: Update a signature @@ -68155,8 +68152,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteEmailSignature tags: [Email] summary: Delete a signature @@ -68180,8 +68177,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/email/labels/{labelId}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteEmailLabel tags: [Email] summary: Delete a label @@ -68209,8 +68206,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/email/attachments/{attachmentId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: downloadEmailAttachment tags: [Email] summary: Download an attachment @@ -68232,8 +68229,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/calendars: get: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: listCalendars tags: [Calendar] summary: List calendars @@ -68255,8 +68252,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/events: get: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: listCalendarEvents tags: [Calendar] summary: List events in a window @@ -68309,8 +68306,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } '429': { $ref: '#/components/responses/RateLimited' } post: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: createCalendarEvent tags: [Calendar] summary: Create an event @@ -68371,8 +68368,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/events/{eventId}: get: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: getCalendarEvent tags: [Calendar] summary: Get an event @@ -68396,8 +68393,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } patch: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: updateCalendarEvent tags: [Calendar] summary: Update an event @@ -68430,8 +68427,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } delete: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: deleteCalendarEvent tags: [Calendar] summary: Delete an event @@ -68460,8 +68457,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/events/{eventId}/instances: get: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: listCalendarEventInstances tags: [Calendar] summary: List the occurrences of a recurring event @@ -68496,8 +68493,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/events/{eventId}/rsvp: post: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: rsvpCalendarEvent tags: [Calendar] summary: Respond to an invitation @@ -68533,8 +68530,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/free-busy: post: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: calendarFreeBusy tags: [Calendar] summary: Busy blocks for one or more accounts @@ -68609,8 +68606,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/calendar/availability: post: - x-oauth-scopes: ["calendar:write"] x-resource-group: "calendar" + x-oauth-scopes: ["calendar:write"] operationId: calendarAvailability tags: [Calendar] summary: Find meeting slots across accounts @@ -68670,8 +68667,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/files: get: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: listFiles tags: [Files] summary: List files in a folder or search the drive @@ -68708,8 +68705,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } post: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: uploadFile tags: [Files] summary: Upload a file @@ -68753,8 +68750,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/files/folders: post: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: createFolder tags: [Files] summary: Create a folder @@ -68784,8 +68781,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/files/picker-sessions: post: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: createFilePickerSession tags: [Files] summary: Create a hosted Google Picker session @@ -68845,8 +68842,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } /v1/files/{fileId}: get: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: getFile tags: [Files] summary: Get a file or folder @@ -68869,8 +68866,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: updateFile tags: [Files] summary: Rename or move a file @@ -68903,8 +68900,8 @@ paths: '412': { $ref: '#/components/responses/MailboxPreconditionFailed' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: trashFile tags: [Files] summary: Move a file to the trash @@ -68932,8 +68929,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/files/{fileId}/download: get: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: downloadFile tags: [Files] summary: Download a file @@ -68954,8 +68951,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/files/{fileId}/share-link: get: - x-oauth-scopes: ["files:write"] x-resource-group: "files" + x-oauth-scopes: ["files:write"] operationId: getFileShareLink tags: [Files] summary: Get an anyone-with-the-link share link @@ -68979,8 +68976,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/connect/microsoft/admin-consent: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: startMicrosoftAdminConsent tags: [Connect] summary: Admin-consent link for a Microsoft tenant @@ -69017,8 +69014,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/connect/google/org: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createGoogleOrgConnection tags: [Connect] summary: Start a Google Workspace organization connection @@ -69065,8 +69062,8 @@ paths: '403': { $ref: '#/components/responses/OrgConnectionForbidden' } /v1/connect/microsoft/org: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createMicrosoftOrgConnection tags: [Connect] summary: Start a Microsoft 365 organization connection @@ -69108,8 +69105,8 @@ paths: '403': { $ref: '#/components/responses/OrgConnectionForbidden' } /v1/org-connections: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: listOrgConnections tags: [Connect] @@ -69133,8 +69130,8 @@ paths: parameters: - { name: orgConnectionId, in: path, required: true, schema: { type: string } } get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: getOrgConnection tags: [Connect] @@ -69153,8 +69150,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: updateOrgConnection tags: [Connect] @@ -69186,8 +69183,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: deleteOrgConnection tags: [Connect] @@ -69214,8 +69211,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/org-connections/{orgConnectionId}/verify: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: verifyOrgConnection tags: [Connect] @@ -69251,8 +69248,8 @@ paths: '409': { $ref: '#/components/responses/OrgGrantIncomplete' } /v1/org-connections/{orgConnectionId}/users: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: listOrgConnectionUsers tags: [Connect] @@ -69289,8 +69286,8 @@ paths: '409': { $ref: '#/components/responses/OrgGrantIncomplete' } /v1/org-connections/{orgConnectionId}/mailboxes: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] x-platforms: [google, microsoft] operationId: addOrgConnectionMailbox tags: [Connect] @@ -69322,8 +69319,8 @@ paths: '409': { $ref: '#/components/responses/OrgGrantIncomplete' } /v1/inbox/conversations: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxConversations summary: List conversations description: | @@ -69540,8 +69537,8 @@ paths: '403': description: Inbox addon required post: - x-oauth-scopes: ["messaging:write"] 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 @@ -70010,8 +70007,8 @@ paths: schema: { $ref: '#/components/schemas/WhatsAppTemplateLookupError' } /v1/inbox/conversations/search: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchInboxConversations summary: Search conversations description: | @@ -70148,8 +70145,8 @@ paths: description: Inbox addon required /v1/inbox/conversations/{conversationId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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. @@ -70238,8 +70235,8 @@ paths: '404': description: Conversation not found put: - x-oauth-scopes: ["messaging:write"] 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. @@ -70284,8 +70281,8 @@ paths: '404': description: Conversation not found (WhatsApp only; other platforms upsert) delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteInboxConversation summary: Delete conversation description: | @@ -70342,8 +70339,8 @@ paths: /v1/inbox/conversations/{conversationId}/messages: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInboxConversationMessages summary: List messages description: | @@ -70620,8 +70617,8 @@ paths: '502': { $ref: '#/components/responses/UpstreamFailure' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendInboxMessage summary: Send message description: | @@ -71411,8 +71408,8 @@ paths: /v1/whatsapp/media/{mediaId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppMedia tags: [WhatsApp] summary: Download WhatsApp media @@ -71452,8 +71449,8 @@ paths: /v1/inbox/conversations/{conversationId}/messages/{messageId}: patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [telegram, imessage] operationId: editInboxMessage summary: Edit message @@ -71519,8 +71516,8 @@ paths: '403': description: Inbox addon required delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [telegram, twitter, bluesky, reddit, imessage] operationId: deleteInboxMessage summary: Delete message @@ -71570,8 +71567,8 @@ paths: /v1/inbox/conversations/{conversationId}/typing: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, instagram, telegram, whatsapp, imessage] operationId: sendTypingIndicator summary: Send typing indicator @@ -71627,8 +71624,8 @@ paths: /v1/inbox/conversations/{conversationId}/thread-control: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [whatsapp, facebook, instagram] operationId: setConversationThreadControl summary: Change who answers a conversation (handover) @@ -71725,8 +71722,8 @@ paths: /v1/inbox/conversations/{conversationId}/accept: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, instagram] operationId: acceptConversationRequest summary: Accept a message request @@ -71791,8 +71788,8 @@ paths: /v1/inbox/labels: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: messages + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [facebook] operationId: listInboxLabels summary: List the Page's conversation labels @@ -71836,8 +71833,8 @@ paths: '422': description: No Facebook Page is selected on this account (linked_account_required); reconnect it and select the Page post: - x-oauth-scopes: ["messaging:write"] x-resource-group: messages + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook] operationId: createInboxLabel summary: Create a conversation label @@ -71888,8 +71885,8 @@ paths: /v1/inbox/labels/{labelId}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: messages + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook] operationId: deleteInboxLabel summary: Delete a conversation label @@ -71935,8 +71932,8 @@ paths: /v1/inbox/conversations/{conversationId}/labels: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: messages + x-oauth-scopes: ["messaging:write", "messaging:read"] x-platforms: [facebook] operationId: listConversationLabels summary: List the labels on a conversation @@ -71985,8 +71982,8 @@ paths: '422': description: No Facebook Page is selected on this account (linked_account_required); reconnect it and select the Page post: - x-oauth-scopes: ["messaging:write"] x-resource-group: messages + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook] operationId: addConversationLabel summary: Add a label to a conversation @@ -72040,8 +72037,8 @@ paths: /v1/inbox/conversations/{conversationId}/labels/{labelId}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: messages + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook] operationId: removeConversationLabel summary: Remove a label from a conversation @@ -72092,8 +72089,8 @@ paths: /v1/inbox/conversations/{conversationId}/read: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: markConversationRead summary: Mark a conversation as read description: | @@ -72150,8 +72147,8 @@ paths: /v1/inbox/conversations/{conversationId}/messages/{messageId}/reactions: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [telegram, whatsapp, instagram, facebook, slack, imessage] operationId: addMessageReaction summary: Add reaction @@ -72209,8 +72206,8 @@ paths: '404': description: 'Account, conversation or message not found (message_not_found when messageId does not resolve to a message in this conversation)' delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [telegram, whatsapp, instagram, facebook, slack, imessage] operationId: removeMessageReaction summary: Remove reaction @@ -72265,8 +72262,8 @@ paths: /v1/media/upload-direct: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: uploadMediaDirect summary: Upload media file description: | @@ -72318,8 +72315,8 @@ paths: /v1/accounts/{accountId}/messenger-menu: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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.' @@ -72343,8 +72340,8 @@ paths: description: Not a Facebook or Instagram account '401': { $ref: '#/components/responses/Unauthorized' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setMessengerMenu summary: Set persistent menu description: | @@ -72381,8 +72378,8 @@ paths: x-summary: "The page has no Get Started button: set one with the messenger-get-started endpoint, then retry." description: 'The page has no Get Started button. Set one with PUT /v1/accounts/{accountId}/messenger-get-started and retry.' delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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 @@ -72401,8 +72398,8 @@ paths: /v1/accounts/{accountId}/messenger-get-started: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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.' @@ -72429,8 +72426,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setMessengerGetStarted summary: Set FB Get Started button description: | @@ -72474,8 +72471,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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.' @@ -72504,8 +72501,8 @@ paths: /v1/accounts/{accountId}/messenger-greeting: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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.' @@ -72531,8 +72528,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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.' @@ -72573,8 +72570,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -72600,8 +72597,8 @@ paths: /v1/accounts/{accountId}/messenger-ice-breakers: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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.' @@ -72627,8 +72624,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setMessengerIceBreakers summary: Set FB ice breakers description: | @@ -72676,8 +72673,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -72703,8 +72700,8 @@ paths: /v1/accounts/{accountId}/instagram-ice-breakers: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -72728,8 +72725,8 @@ paths: description: Not an Instagram account '401': { $ref: '#/components/responses/Unauthorized' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -72765,8 +72762,8 @@ paths: description: Invalid request '401': { $ref: '#/components/responses/Unauthorized' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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 @@ -72785,8 +72782,8 @@ paths: /v1/accounts/{accountId}/telegram-commands: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -72816,8 +72813,8 @@ paths: description: Not a Telegram account '401': { $ref: '#/components/responses/Unauthorized' } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -72852,8 +72849,8 @@ paths: description: Invalid request '401': { $ref: '#/components/responses/Unauthorized' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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 @@ -72872,8 +72869,8 @@ paths: /v1/accounts/{accountId}/wechat-server-config: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWechatServerConfig summary: Get WeChat server config description: | @@ -72918,8 +72915,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/inbox/conversations/{conversationId}/messages/{messageId}/attachments/{index}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getMessageAttachment summary: Resolve message attachment description: | @@ -73002,8 +72999,8 @@ paths: /v1/inbox/comments: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxComments summary: List commented posts description: | @@ -73161,8 +73158,8 @@ paths: /v1/inbox/comments/{postId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getInboxPostComments summary: Get post comments description: | @@ -73396,8 +73393,8 @@ paths: '502': description: 'Upstream platform error (code platform_api_error, type platform_error)' post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: replyToInboxPost summary: Reply to comment description: | @@ -73515,8 +73512,8 @@ paths: description: 'Upstream platform error (code platform_api_error, type platform_error)' '503': { $ref: '#/components/responses/TemporarilyUnavailable' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteInboxComment summary: Delete comment description: | @@ -73576,8 +73573,8 @@ paths: /v1/inbox/comments/{postId}/{commentId}: patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [reddit] operationId: editInboxComment summary: Edit comment @@ -73638,8 +73635,8 @@ paths: /v1/inbox/comments/{postId}/{commentId}/moderation: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [youtube] operationId: setCommentModeration summary: Set comment moderation status @@ -73709,8 +73706,8 @@ paths: /v1/inbox/comments/{postId}/{commentId}/hide: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, instagram, threads, twitter, tiktok] operationId: hideInboxComment summary: Hide comment @@ -73761,8 +73758,8 @@ paths: '403': description: Inbox addon required delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, instagram, threads, twitter, tiktok] operationId: unhideInboxComment summary: Unhide comment @@ -73805,8 +73802,8 @@ paths: /v1/inbox/comments/{postId}/{commentId}/pin: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [tiktok] operationId: pinInboxComment summary: Pin comment @@ -73850,8 +73847,8 @@ paths: '403': description: Inbox addon required delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [tiktok] operationId: unpinInboxComment summary: Unpin comment @@ -73892,8 +73889,8 @@ paths: /v1/inbox/comments/{postId}/{commentId}/like: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, twitter, bluesky, reddit, linkedin, instagram, tiktok] operationId: likeInboxComment summary: Like comment @@ -73969,8 +73966,8 @@ paths: x-summary: "The LinkedIn account already holds a reaction on this target: remove it before creating another." 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-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [facebook, twitter, bluesky, reddit, linkedin, instagram, tiktok] operationId: unlikeInboxComment summary: Unlike comment @@ -74020,8 +74017,8 @@ paths: /v1/inbox/posts/{postId}/like: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [linkedin, twitter, facebook, youtube, bluesky, instagram] operationId: likePost summary: Like post @@ -74103,8 +74100,8 @@ paths: x-summary: "The LinkedIn account already holds a reaction on this target: remove it before creating another." 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-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [linkedin, twitter, facebook, youtube, bluesky, instagram] operationId: unlikePost summary: Unlike post @@ -74154,8 +74151,8 @@ paths: /v1/inbox/comments/{postId}/{commentId}/private-reply: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram, facebook] operationId: sendPrivateReplyToComment summary: Send private reply @@ -74426,8 +74423,8 @@ paths: /v1/twitter/retweet: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: retweetPost summary: Retweet a post description: | @@ -74463,8 +74460,8 @@ paths: '403': { description: 'X rejected the request (e.g. suspended account, missing OAuth scope)' } '404': { description: Account not found } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: undoRetweet summary: Undo retweet description: | @@ -74500,8 +74497,8 @@ paths: /v1/twitter/bookmark: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: bookmarkPost summary: Bookmark a tweet description: | @@ -74538,8 +74535,8 @@ paths: '403': { description: 'X rejected the request (e.g. suspended account, missing OAuth scope)' } '404': { description: Account not found } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: removeBookmark summary: Remove bookmark description: | @@ -74575,8 +74572,8 @@ paths: /v1/twitter/follow: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: followUser summary: Follow a user description: | @@ -74614,8 +74611,8 @@ paths: '403': { description: 'X rejected the request (e.g. suspended account, missing OAuth scope)' } '404': { description: Account not found } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: unfollowUser summary: Unfollow a user description: | @@ -74651,8 +74648,8 @@ paths: /v1/twitter/search: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchTweets summary: Search recent tweets description: | @@ -74765,8 +74762,8 @@ paths: /v1/twitter/tweet: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getTweet summary: Look up a tweet description: | @@ -74837,8 +74834,8 @@ paths: /v1/inbox/mentions: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxMentions summary: List mentions description: | @@ -74969,8 +74966,8 @@ paths: /v1/inbox/mentions/reply: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [instagram] operationId: replyToMention summary: Reply to a mention @@ -75032,8 +75029,8 @@ paths: /v1/inbox/reviews: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listInboxReviews summary: List reviews description: | @@ -75171,8 +75168,8 @@ paths: /v1/inbox/reviews/{reviewId}/reply: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: replyToInboxReview summary: Reply to review description: | @@ -75253,8 +75250,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] x-platforms: [googlebusiness] operationId: deleteInboxReviewReply summary: Delete review reply @@ -75312,8 +75309,8 @@ paths: /v1/whatsapp/templates: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppTemplates tags: [WhatsApp] summary: List templates @@ -75385,8 +75382,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createWhatsAppTemplate tags: [WhatsApp] summary: Create template @@ -75538,8 +75535,8 @@ paths: /v1/whatsapp/templates/{templateName}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppTemplate tags: [WhatsApp] summary: Get template @@ -75622,8 +75619,8 @@ paths: languages: { type: array, items: { type: string } } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppTemplate tags: [WhatsApp] summary: Update template @@ -75743,8 +75740,8 @@ paths: languages: { type: array, items: { type: string } } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsAppTemplate tags: [WhatsApp] summary: Delete template @@ -75811,8 +75808,8 @@ 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. } /v1/whatsapp/templates/id/{templateId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppTemplateById tags: [WhatsApp] summary: Get template by id @@ -75863,8 +75860,8 @@ paths: '404': { description: Account not found. } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppTemplateById tags: [WhatsApp] summary: Update template by id @@ -75948,8 +75945,8 @@ paths: '404': { description: Account not found. } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsAppTemplateById tags: [WhatsApp] summary: Delete template by id @@ -75990,8 +75987,8 @@ 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.' } /v1/whatsapp/calling: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppCallingConfig tags: [WhatsApp Calling] summary: Get calling config for an account @@ -76040,8 +76037,8 @@ paths: /v1/whatsapp/phone-numbers/{id}/calling: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: enableWhatsAppCallingLegacy deprecated: true tags: [WhatsApp Calling] @@ -76097,8 +76094,8 @@ paths: '404': { description: WhatsApp phone number not found } '422': { description: 'Not eligible to enable calling: not on usage-based billing.' } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: updateWhatsAppCallingLegacy deprecated: true tags: [WhatsApp Calling] @@ -76141,8 +76138,8 @@ paths: '404': { description: WhatsApp phone number not found } '422': { description: Calling must be enabled before settings can be updated } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: disableWhatsAppCallingLegacy deprecated: true tags: [WhatsApp Calling] @@ -76167,8 +76164,8 @@ paths: /v1/whatsapp/call-permissions: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getWhatsAppCallPermissions tags: [WhatsApp Calling] summary: Check call permission @@ -76207,8 +76204,8 @@ paths: /v1/whatsapp/calls: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: initiateWhatsAppCall tags: [WhatsApp Calling] summary: Initiate outbound call @@ -76290,8 +76287,8 @@ paths: '422': { description: "Calling not enabled, BIC country blocked, or missing Meta SIP credentials" } '502': { description: Telnyx-side originate failed; the Call doc has been marked failed. } get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppCalls tags: [WhatsApp Calling] summary: List call history for an account @@ -76350,8 +76347,8 @@ paths: /v1/whatsapp/calls/{id}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCall tags: [WhatsApp Calling] summary: Get a single call @@ -76375,8 +76372,8 @@ paths: /v1/whatsapp/calls/{id}/recording: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCallRecording tags: [WhatsApp Calling] summary: Get a call recording @@ -76410,8 +76407,8 @@ paths: /v1/whatsapp/calls/estimate: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCallEstimate tags: [WhatsApp Calling] summary: Estimate per-minute cost @@ -76449,8 +76446,8 @@ paths: /v1/calls: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listCalls tags: [Calls] summary: List all calls (unified history) @@ -76499,8 +76496,8 @@ paths: /v1/calls/{id}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getCall tags: [Calls] summary: Get a call (any channel) @@ -76534,8 +76531,8 @@ paths: /v1/calls/{id}/recording: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getCallRecording tags: [Calls] summary: Get a call recording @@ -76568,8 +76565,8 @@ paths: /v1/voice/calls: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createVoiceCall tags: [Voice] summary: Place an outbound phone call @@ -76644,8 +76641,8 @@ paths: '429': { description: 'A team or profile call limit was reached (`call_limit_reached`). `details.limit` names it: `team_concurrent_calls`, `team_daily_cost`, `profile_outbound_calls_per_hour`, `profile_daily_call_spend`, or `outbound_paused`.' } '502': { description: Carrier-side originate failed; the call has been marked failed. } get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listVoiceCalls tags: [Voice] summary: List phone calls @@ -76690,8 +76687,8 @@ paths: /v1/voice/calls/{id}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getVoiceCall tags: [Voice] summary: Get a phone call @@ -76715,8 +76712,8 @@ paths: /v1/voice/calls/{id}/end: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: endVoiceCall tags: [Voice] summary: Hang up a live call @@ -76756,8 +76753,8 @@ paths: /v1/voice/calls/{id}/recording: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getVoiceCallRecording tags: [Voice] summary: Get a call recording @@ -76788,8 +76785,8 @@ paths: /v1/voice/calls/{id}/transfer: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: transferVoiceCall tags: [Voice] summary: Blind-transfer a live call @@ -76830,8 +76827,8 @@ paths: /v1/voice/calls/estimate: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getVoiceCallEstimate tags: [Voice] summary: Estimate call cost @@ -76922,8 +76919,8 @@ paths: /v1/voice/calls/web: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createVoiceWebSession tags: [Voice] summary: Mint a browser softphone session @@ -76954,8 +76951,8 @@ paths: /v1/voice/calls/web/inbound: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createVoiceWebInboundSession tags: [Voice] summary: Register a browser to receive calls @@ -76984,8 +76981,8 @@ paths: /v1/voice/calls/web/dial: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: dialVoiceWebCall tags: [Voice] summary: Dial from the browser softphone @@ -77732,8 +77729,8 @@ paths: /v1/sms/messages: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendSms tags: [SMS] summary: Send an SMS/MMS @@ -77804,8 +77801,8 @@ paths: /v1/rcs/brands: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listRcsBrands tags: [RCS] summary: List RCS brands @@ -77826,8 +77823,8 @@ paths: /v1/rcs/agents: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listRcsAgents tags: [RCS] summary: List RCS agents @@ -77848,8 +77845,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { description: 'Your plan does not include the inbox, which RCS requires.' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createRcsAgent tags: [RCS] summary: Request an RCS agent @@ -77899,8 +77896,8 @@ paths: /v1/rcs/agents/{agentId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getRcsAgent tags: [RCS] summary: Get an RCS agent @@ -77922,8 +77919,8 @@ paths: '403': { description: 'Your plan does not include the inbox, which RCS requires.' } '404': { description: Agent not found } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateRcsAgent tags: [RCS] summary: Update an RCS agent @@ -77963,8 +77960,8 @@ paths: '404': { description: Agent not found } '409': { description: 'The filing is locked because it is already with the carriers' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deactivateRcsAgent tags: [RCS] summary: Deactivate an RCS agent @@ -77990,8 +77987,8 @@ paths: /v1/rcs/agents/{agentId}/launch-request: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: requestRcsAgentLaunch tags: [RCS] summary: Send the launch filing @@ -78028,8 +78025,8 @@ paths: /v1/rcs/agents/{agentId}/test-devices: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listRcsTestDevices tags: [RCS] summary: List RCS test phones @@ -78051,8 +78048,8 @@ paths: '403': { description: 'Your plan does not include the inbox, which RCS requires.' } '404': { description: Agent not found } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addRcsTestDevice tags: [RCS] summary: Invite an RCS test phone @@ -78090,8 +78087,8 @@ paths: /v1/rcs/agents/{agentId}/test-devices/{testDeviceId}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: removeRcsTestDevice tags: [RCS] summary: Remove an RCS test phone @@ -78116,8 +78113,8 @@ paths: /v1/rcs/assets: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: uploadRcsAsset tags: [RCS] summary: Upload an RCS logo or banner @@ -78153,8 +78150,8 @@ paths: /v1/rcs/messages: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendRcsMessage tags: [RCS] summary: Send an RCS message @@ -78215,8 +78212,8 @@ paths: /v1/rcs/capabilities: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getRcsCapabilities tags: [RCS] summary: Check RCS capability @@ -78243,8 +78240,8 @@ paths: /v1/sms/lookup: get: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: lookupSmsNumber tags: [SMS] summary: Look up carrier + line type @@ -78276,8 +78273,8 @@ paths: /v1/sms/opt-outs: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listSmsOptOuts tags: [SMS] summary: List SMS opt-outs @@ -78318,8 +78315,8 @@ paths: schema: { type: string, description: "`format=csv` download. Columns: phone_number, opted_out_at, keyword, our_number, source" } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: createSmsOptOut tags: [SMS] summary: Record an SMS opt-out @@ -78355,8 +78352,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: deleteSmsOptOut tags: [SMS] summary: Remove an SMS opt-out @@ -78396,8 +78393,8 @@ paths: /v1/sms/sender-ids: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createSmsSenderId tags: [SMS] summary: Create an alphanumeric sender ID @@ -78449,8 +78446,8 @@ paths: '409': { description: 'Billing setup is incomplete for this team (code `billing_setup_incomplete`); contact support.' } '422': { description: 'Sender ID rejected: it appears to impersonate a protected brand or institution.' } get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listSmsSenderIds tags: [SMS] summary: List alphanumeric sender IDs @@ -78491,8 +78488,8 @@ paths: /v1/sms/sender-ids/limit-request: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: requestSmsSenderIdLimitIncrease tags: [SMS] summary: Request a higher sender ID daily limit @@ -78529,8 +78526,8 @@ paths: /v1/sms/sender-ids/{id}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deleteSmsSenderId tags: [SMS] summary: Delete an alphanumeric sender ID @@ -78556,8 +78553,8 @@ paths: /v1/branded-calling/enterprises: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createBrandedCallingEnterprise tags: [Branded Calling] summary: Register a business for Branded Calling @@ -78604,8 +78601,8 @@ paths: '409': { $ref: '#/components/responses/IdempotencyKeyInFlight' } '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-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBrandedCallingEnterprises tags: [Branded Calling] summary: List registered businesses @@ -78625,8 +78622,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/branded-calling/enterprises/{id}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBrandedCallingEnterprise tags: [Branded Calling] summary: Get a registered business @@ -78644,8 +78641,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Business not found } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deleteBrandedCallingEnterprise tags: [Branded Calling] summary: Delete a registered business @@ -78669,8 +78666,8 @@ paths: '409': { description: 'The business still has caller identities (code invalid_resource_state).' } /v1/branded-calling/share: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: shareBrandedCallingIdentityForm tags: [Branded Calling] summary: Create a caller identity share link @@ -78715,8 +78712,8 @@ paths: '404': { description: 'Business or identity not found, or the identity is not in review' } /v1/branded-calling/call-reasons: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBrandedCallingCallReasons tags: [Branded Calling] summary: List pre-approved call reasons @@ -78735,8 +78732,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/branded-calling/identities: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createBrandedCallingIdentity tags: [Branded Calling] summary: Create a caller identity @@ -78802,8 +78799,8 @@ paths: '409': { $ref: '#/components/responses/IdempotencyKeyInFlight' } '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-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBrandedCallingIdentities tags: [Branded Calling] summary: List caller identities @@ -78823,8 +78820,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/branded-calling/identities/preflight: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: preflightBrandedCallingIdentity tags: [Branded Calling] summary: Dry-run a caller identity before creating it @@ -78882,8 +78879,8 @@ paths: '404': { description: Business not found } /v1/branded-calling/identities/{id}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBrandedCallingIdentity tags: [Branded Calling] summary: Get a caller identity @@ -78902,8 +78899,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Identity not found } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: updateBrandedCallingIdentity tags: [Branded Calling] summary: Edit or resubmit a caller identity @@ -78954,8 +78951,8 @@ paths: '409': { description: 'The identity cannot be edited in its current status (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deleteBrandedCallingIdentity tags: [Branded Calling] summary: Delete a caller identity @@ -78979,8 +78976,8 @@ paths: '409': { description: 'An infringement claim is open on this identity (code invalid_resource_state).' } /v1/branded-calling/identities/{id}/verify-email: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: resendBrandedCallingAuthorizerCode tags: [Branded Calling] summary: Resend the authorizer's code @@ -79004,8 +79001,8 @@ paths: '409': { description: 'The identity is not waiting for a code (code invalid_resource_state).' } /v1/branded-calling/identities/{id}/verify-email/confirm: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: confirmBrandedCallingAuthorizerEmail tags: [Branded Calling] summary: Confirm the authorizer's code @@ -79039,8 +79036,8 @@ paths: '409': { description: 'The identity is not waiting for a code (code invalid_resource_state).' } /v1/branded-calling/identities/{id}/numbers: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBrandedCallingIdentityNumbers tags: [Branded Calling] summary: List the numbers on a caller identity @@ -79063,8 +79060,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Identity not found } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: attachBrandedCallingNumbers tags: [Branded Calling] summary: Attach numbers to a verified identity @@ -79110,8 +79107,8 @@ paths: '409': { description: 'The identity is not verified yet, or a number already belongs to an identity (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: detachBrandedCallingNumbers tags: [Branded Calling] summary: Detach numbers from an identity @@ -79143,8 +79140,8 @@ paths: '404': { description: 'Identity not found, or none of the numbers is attached to it' } /v1/sms/registrations: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: startSmsRegistration tags: [SMS] summary: Start a carrier registration @@ -79291,8 +79288,8 @@ paths: '422': { description: Carrier registry rejected a field; `param` names it when known. } '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-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listSmsRegistrations tags: [SMS] summary: List carrier registrations @@ -79354,8 +79351,8 @@ paths: /v1/sms/registrations/preflight: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: preflightSmsRegistration tags: [SMS] summary: Pre-check a carrier registration @@ -79413,8 +79410,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/sms/registrations/{id}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deactivateSmsRegistration tags: [SMS] summary: Deactivate a brand/campaign registration @@ -79441,8 +79438,8 @@ paths: '403': { description: 'The caller is a team member limited to specific profiles; registrations cover the whole account.' } '404': { description: Registration not found } get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getSmsRegistration tags: [SMS] summary: Get a carrier registration @@ -79490,8 +79487,8 @@ paths: /v1/sms/registrations/{id}/verify-otp: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: verifySmsRegistrationOtp tags: [SMS] summary: Submit the sole-prop OTP @@ -79528,8 +79525,8 @@ paths: /v1/sms/registrations/{id}/resend-otp: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: resendSmsRegistrationOtp tags: [SMS] summary: Re-send the sole-prop OTP @@ -79559,8 +79556,8 @@ paths: /v1/sms/registrations/{id}/appeal: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: appealSmsRegistration tags: [SMS] summary: Appeal a rejected campaign @@ -79608,8 +79605,8 @@ paths: /v1/sms/registrations/{id}/respond: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: respondToSmsRegistrationReview tags: [SMS] summary: Reply to a change request @@ -79675,8 +79672,8 @@ paths: /v1/sms/opt-in-proof: post: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: uploadSmsOptInProofFile tags: [SMS] summary: Upload opt-in form proof @@ -79711,8 +79708,8 @@ paths: /v1/sms/registrations/{id}/opt-in-proof: post: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: uploadSmsOptInProof tags: [SMS] summary: Upload opt-in form proof for an appeal @@ -79750,8 +79747,8 @@ paths: /v1/sms/registrations/share: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: shareSmsRegistration tags: [SMS] summary: Create a registration share link @@ -79787,8 +79784,8 @@ paths: /v1/whatsapp/template-library: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppLibraryTemplate tags: [WhatsApp Templates] summary: Look up a library template @@ -79836,8 +79833,8 @@ paths: /v1/whatsapp/catalogs: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppCatalogs tags: [WhatsApp] summary: List the catalogs linked to a WhatsApp number @@ -79871,8 +79868,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/AccountUnavailable' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: linkWhatsAppCatalog tags: [WhatsApp] summary: Link a catalog to a WhatsApp number @@ -79907,8 +79904,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/AccountUnavailable' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: unlinkWhatsAppCatalog tags: [WhatsApp] summary: Unlink a catalog from a WhatsApp number @@ -79930,8 +79927,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/whatsapp/commerce-settings: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCommerceSettings tags: [WhatsApp] summary: Get a number's commerce settings @@ -79955,8 +79952,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/AccountUnavailable' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateWhatsAppCommerceSettings tags: [WhatsApp] summary: Update a number's commerce settings @@ -79989,8 +79986,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/whatsapp/conversational-automation: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppConversationalAutomation tags: [WhatsApp] summary: Get ice breakers and commands @@ -80015,8 +80012,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setWhatsAppConversationalAutomation tags: [WhatsApp] summary: Set ice breakers and commands @@ -80052,8 +80049,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsAppConversationalAutomation tags: [WhatsApp] summary: Clear ice breakers and commands @@ -80080,8 +80077,8 @@ paths: /v1/whatsapp/business-profile: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppBusinessProfile tags: [WhatsApp] summary: Get business profile @@ -80122,8 +80119,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppBusinessProfile tags: [WhatsApp] summary: Update business profile @@ -80195,8 +80192,8 @@ paths: /v1/whatsapp/business-profile/photo: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: uploadWhatsAppProfilePhoto tags: [WhatsApp] summary: Upload profile picture @@ -80255,8 +80252,8 @@ paths: /v1/whatsapp/business-profile/display-name: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppDisplayName tags: [WhatsApp] summary: Get display name status @@ -80294,8 +80291,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found or accountId is not a valid ObjectId } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppDisplayName tags: [WhatsApp] summary: Request display name change @@ -80345,8 +80342,8 @@ paths: /v1/whatsapp/business-profile/username: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsappBusinessUsername tags: [WhatsApp] summary: Get business username @@ -80384,8 +80381,8 @@ paths: '403': { description: "Meta has not granted username management for this WhatsApp Business Account (code insufficient_permissions)" } '404': { description: WhatsApp account not found } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setWhatsappBusinessUsername tags: [WhatsApp] summary: Set business username @@ -80466,8 +80463,8 @@ paths: '403': { description: "Meta has not granted username management for this WhatsApp Business Account (code insufficient_permissions)" } '404': { description: WhatsApp account not found } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsappBusinessUsername tags: [WhatsApp] summary: Delete business username @@ -80506,8 +80503,8 @@ paths: /v1/whatsapp/business-profile/username/suggestions: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsappBusinessUsernameSuggestions tags: [WhatsApp] summary: Get username suggestions @@ -80544,8 +80541,8 @@ paths: /v1/whatsapp/number-info: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getWhatsAppNumberInfo tags: [WhatsApp Phone Numbers] summary: Get number status @@ -80611,8 +80608,8 @@ paths: /v1/whatsapp/pricing-analytics: get: - x-oauth-scopes: ["analytics:read"] x-resource-group: "analytics" + x-oauth-scopes: ["analytics:read"] operationId: getWhatsAppPricingAnalytics tags: [WhatsApp Phone Numbers] summary: Get pricing analytics @@ -80718,8 +80715,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/whatsapp/block-users/status: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getWhatsAppBlockStatus tags: [WhatsApp] summary: Check if a user is blocked @@ -80748,8 +80745,8 @@ paths: /v1/whatsapp/block-users: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: getWhatsAppBlockedUsers tags: [WhatsApp] summary: List blocked users @@ -80781,8 +80778,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: blockWhatsAppUsers tags: [WhatsApp] summary: Block users @@ -80840,8 +80837,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } delete: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: unblockWhatsAppUsers tags: [WhatsApp] summary: Unblock users @@ -80895,8 +80892,8 @@ paths: /v1/whatsapp/account-events: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppAccountEvents tags: [WhatsApp] summary: List account notifications @@ -80939,8 +80936,8 @@ paths: '404': { description: WhatsApp account not found } /v1/whatsapp/dataset: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppDataset tags: [WhatsApp] summary: Get CTWA conversions dataset @@ -80968,8 +80965,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createWhatsAppDataset tags: [WhatsApp] summary: Provision CTWA dataset @@ -81031,8 +81028,8 @@ paths: /v1/phone-numbers: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listPhoneNumbers tags: [Phone Numbers] summary: List phone numbers @@ -81121,8 +81118,8 @@ paths: /v1/phone-numbers/{id}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumber tags: [Phone Numbers] summary: Get phone number @@ -81171,8 +81168,8 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: releasePhoneNumber tags: [Phone Numbers] summary: Release phone number @@ -81215,8 +81212,8 @@ paths: /v1/phone-numbers/purchase: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: purchasePhoneNumber tags: [Phone Numbers] summary: Purchase phone number @@ -81445,8 +81442,8 @@ paths: /v1/phone-numbers/claims/{claimId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberClaim tags: [Phone Numbers] summary: Resolve a number claim @@ -81489,8 +81486,8 @@ paths: /v1/phone-numbers/countries: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listPhoneNumberCountries tags: [Phone Numbers] summary: List offerable number countries @@ -81555,8 +81552,8 @@ paths: /v1/phone-numbers/available: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchAvailablePhoneNumbers tags: [Phone Numbers] summary: Search available numbers @@ -81623,8 +81620,8 @@ paths: /v1/phone-numbers/availability: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: checkPhoneNumberAvailability tags: [Phone Numbers] summary: Check country availability @@ -81741,8 +81738,8 @@ paths: /v1/whatsapp/phone-numbers: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppPhoneNumbers deprecated: true tags: [WhatsApp Phone Numbers] @@ -81836,8 +81833,8 @@ paths: /v1/whatsapp/phone-numbers/purchase: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: purchaseWhatsAppPhoneNumber deprecated: true tags: [WhatsApp Phone Numbers] @@ -81994,8 +81991,8 @@ paths: /v1/whatsapp/phone-numbers/countries: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppNumberCountries deprecated: true tags: [WhatsApp Phone Numbers] @@ -82032,8 +82029,8 @@ paths: /v1/whatsapp/phone-numbers/available: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: searchAvailableWhatsAppNumbers deprecated: true tags: [WhatsApp Phone Numbers] @@ -82079,8 +82076,8 @@ paths: /v1/whatsapp/phone-numbers/availability: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: checkWhatsAppNumberAvailability deprecated: true tags: [WhatsApp Phone Numbers] @@ -82193,8 +82190,8 @@ paths: /v1/phone-numbers/kyc: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberKycForm tags: [Phone Numbers] summary: Get KYC form spec @@ -82271,8 +82268,8 @@ paths: '403': { description: API key does not have access to this profile. } '404': { description: Profile not found or access denied. } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: submitPhoneNumberKyc tags: [Phone Numbers] summary: Submit KYC @@ -82383,8 +82380,8 @@ paths: /v1/phone-numbers/kyc/document/{documentId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: viewPhoneNumberKycDocument tags: [Phone Numbers] summary: View a KYC document on file @@ -82412,8 +82409,8 @@ paths: /v1/phone-numbers/kyc/upload-document: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: uploadPhoneNumberKycDocument tags: [Phone Numbers] summary: Upload a KYC document @@ -82448,8 +82445,8 @@ paths: /v1/phone-numbers/kyc/validate-address: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: validatePhoneNumberKycAddress tags: [Phone Numbers] summary: Pre-validate KYC address @@ -82520,8 +82517,8 @@ paths: /v1/phone-numbers/kyc/share: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createPhoneNumberKycLink tags: [Phone Numbers] summary: Create a hosted KYC link @@ -82593,8 +82590,8 @@ paths: /v1/phone-numbers/port-in: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createPhoneNumberPortIn tags: [Phone Numbers] summary: Port numbers in @@ -82708,8 +82705,8 @@ paths: '409': { description: "A number is already provisioned, or already in an in-flight port" } '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-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listPhoneNumberPortIns tags: [Phone Numbers] summary: List port-in orders @@ -82746,8 +82743,8 @@ paths: /v1/phone-numbers/port-in/check: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: checkPhoneNumberPortability tags: [Phone Numbers] summary: Check portability @@ -82825,8 +82822,8 @@ paths: /v1/phone-numbers/port-in/claims/{claimId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberPortClaim tags: [Phone Numbers] summary: Resolve a port claim @@ -82855,8 +82852,8 @@ paths: /v1/phone-numbers/port-in/documents: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: uploadPhoneNumberPortInDocument tags: [Phone Numbers] summary: Upload a porting document @@ -82898,8 +82895,8 @@ paths: /v1/phone-numbers/port-in/requirements: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberPortInRequirements tags: [Phone Numbers] summary: Country porting requirements @@ -82946,8 +82943,8 @@ paths: /v1/phone-numbers/port-in/{id}/requirements: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberPortInOrderRequirements tags: [Phone Numbers] summary: A port-in order's pending requirements @@ -82989,8 +82986,8 @@ paths: /v1/phone-numbers/port-in/{id}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: cancelPhoneNumberPortIn tags: [Phone Numbers] summary: Cancel a port-in @@ -83020,8 +83017,8 @@ paths: /v1/phone-numbers/kyc/review-packet: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: reviewPhoneNumberKycPacket tags: [Phone Numbers] summary: Pre-review a KYC packet @@ -83075,8 +83072,8 @@ paths: /v1/phone-numbers/{id}/remediate: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getPhoneNumberRemediation tags: [Phone Numbers] summary: Get declined requirements @@ -83107,8 +83104,8 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { description: Number not found } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: remediatePhoneNumber tags: [Phone Numbers] summary: Resubmit a declined number @@ -83154,8 +83151,8 @@ paths: /v1/phone-numbers/{id}/remediate/reply: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: replyToPhoneNumberReviewer tags: [Phone Numbers] summary: Reply to the regulatory reviewer @@ -83209,8 +83206,8 @@ paths: /v1/phone-numbers/{id}/remediate/respond: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: respondToPhoneNumberReviewer tags: [Phone Numbers] summary: Respond to the regulatory reviewer (message + corrections) @@ -83293,8 +83290,8 @@ paths: /v1/whatsapp/phone-numbers/kyc: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppNumberKycForm deprecated: true tags: [WhatsApp Phone Numbers] @@ -83375,8 +83372,8 @@ paths: '403': { description: API key does not have access to this profile. } '404': { description: Profile not found or access denied. } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: submitWhatsAppNumberKyc deprecated: true tags: [WhatsApp Phone Numbers] @@ -83491,8 +83488,8 @@ paths: /v1/whatsapp/phone-numbers/kyc/upload-document: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: uploadWhatsAppNumberKycDocument deprecated: true tags: [WhatsApp Phone Numbers] @@ -83532,8 +83529,8 @@ paths: /v1/whatsapp/phone-numbers/kyc/validate-address: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: validateWhatsAppNumberKycAddress deprecated: true tags: [WhatsApp Phone Numbers] @@ -83606,8 +83603,8 @@ paths: /v1/whatsapp/phone-numbers/kyc/share: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createWhatsAppNumberKycLink deprecated: true tags: [WhatsApp Phone Numbers] @@ -83677,8 +83674,8 @@ paths: /v1/whatsapp/phone-numbers/{id}/profile: patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: moveWhatsAppNumberToProfile tags: [WhatsApp Phone Numbers] summary: Move a number to another profile @@ -83736,8 +83733,8 @@ paths: /v1/whatsapp/phone-numbers/{id}/remediate: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppNumberRemediation deprecated: true tags: [WhatsApp Phone Numbers] @@ -83771,8 +83768,8 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { description: Number not found } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: remediateWhatsAppNumber deprecated: true tags: [WhatsApp Phone Numbers] @@ -83823,8 +83820,8 @@ paths: /v1/phone-numbers/{id}/voice: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: enableVoiceOnNumber tags: [Voice] summary: Enable phone calling on a number @@ -83920,8 +83917,8 @@ paths: '409': { description: 'This number is attached to a SIP trunk (detach it first), or it is a Zernio number that is not active yet or was released (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: disableVoiceOnNumber tags: [Voice] summary: Disable phone calling on a number @@ -83948,8 +83945,8 @@ paths: /v1/phone-numbers/stock-watches: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createPhoneNumberStockWatch tags: [Phone Numbers] summary: Watch an out-of-stock country @@ -84007,8 +84004,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '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-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listPhoneNumberStockWatches tags: [Phone Numbers] summary: List stock watches @@ -84029,8 +84026,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/phone-numbers/stock-watches/{id}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deletePhoneNumberStockWatch tags: [Phone Numbers] summary: Stop watching a country @@ -84052,8 +84049,8 @@ paths: '404': { description: 'Stock watch not found (code stock_watch_not_found).' } /v1/phone-numbers/sip-trunks: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createSipTrunk tags: [Voice] summary: Create a SIP trunk @@ -84113,8 +84110,8 @@ paths: '409': { description: 'The team trunk limit was reached (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listSipTrunks tags: [Voice] summary: List SIP trunks @@ -84151,8 +84148,8 @@ paths: /v1/phone-numbers/sip-trunks/{id}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getSipTrunk tags: [Voice] summary: Get a SIP trunk @@ -84191,8 +84188,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: SIP trunk not found } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: deleteSipTrunk tags: [Voice] summary: Delete a SIP trunk @@ -84223,8 +84220,8 @@ paths: /v1/phone-numbers/sip-trunks/{id}/rotate-credentials: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: rotateSipTrunkCredentials tags: [Voice] summary: Rotate a SIP trunk's password @@ -84256,8 +84253,8 @@ paths: /v1/phone-numbers/{id}/sip-trunk: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: attachNumberToSipTrunk tags: [Voice] summary: Attach a number to a SIP trunk @@ -84299,8 +84296,8 @@ paths: '409': { x-summary: "The number is not in a state that allows trunk attachment: resolve its calling, WhatsApp, status or trunk conflict first.", description: 'The number still has Calls or WhatsApp calling enabled, is mid WhatsApp verification, is not active, or is attached to another trunk (code invalid_resource_state).' } '422': { description: 'This number is hosted by your own carrier (brought via WhatsApp embedded signup), so it cannot be trunked.' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: detachNumberFromSipTrunk tags: [Voice] summary: Detach a number from its SIP trunk @@ -84328,8 +84325,8 @@ paths: /v1/phone-numbers/{id}/sms: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: enableSmsOnNumber tags: [SMS] summary: Enable SMS on a number @@ -84388,8 +84385,8 @@ paths: '409': { description: 'This is a Zernio number that is not active yet or was released, so SMS cannot be enabled on it yet (code invalid_resource_state).' } '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-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: disableSmsOnNumber tags: [SMS] summary: Disable SMS on a number @@ -84418,8 +84415,8 @@ paths: /v1/phone-numbers/{id}/sms/reuse-registration: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: reuseSmsRegistrationForNumber tags: [SMS] summary: Add number to SMS registration @@ -84450,8 +84447,8 @@ paths: /v1/phone-numbers/{id}/whatsapp/request-code: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: requestPhoneNumberWhatsAppCode tags: [Phone Numbers] summary: Request the WhatsApp verification code for a number @@ -84512,8 +84509,8 @@ paths: /v1/phone-numbers/{id}/whatsapp/calling: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppCalling tags: [WhatsApp Calling] summary: Get calling config for a number @@ -84558,8 +84555,8 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { description: Number not found } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: enableWhatsAppCalling tags: [WhatsApp Calling] summary: Enable calling on a number @@ -84612,8 +84609,8 @@ paths: '409': { description: 'This number is attached to a SIP trunk; detach it first (code invalid_resource_state).' } '422': { description: 'Not eligible to enable calling: not on usage-based billing.' } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: updateWhatsAppCalling tags: [WhatsApp Calling] summary: Update calling config @@ -84652,8 +84649,8 @@ paths: '404': { description: Phone number not found } '422': { description: Calling must be enabled before settings can be updated } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: disableWhatsAppCalling tags: [WhatsApp Calling] summary: Disable calling on a number @@ -84674,8 +84671,8 @@ paths: /v1/phone-numbers/{id}/whatsapp/caller-id-verification: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: startWhatsAppCallerIdVerification tags: [WhatsApp Calling] summary: Start caller-ID verification for a customer-brought number @@ -84716,8 +84713,8 @@ paths: /v1/phone-numbers/{id}/whatsapp/caller-id-verification/verify: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: verifyWhatsAppCallerId tags: [WhatsApp Calling] summary: Confirm the caller-ID verification code @@ -84755,8 +84752,8 @@ paths: /v1/whatsapp/phone-numbers/{phoneNumberId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppPhoneNumber deprecated: true tags: [WhatsApp Phone Numbers] @@ -84808,8 +84805,8 @@ paths: '403': { description: 'The API key is scoped to profiles that do not include this number.' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: releaseWhatsAppPhoneNumber deprecated: true tags: [WhatsApp Phone Numbers] @@ -84870,8 +84867,8 @@ paths: /v1/whatsapp/sandbox/sessions: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppSandboxSessions tags: [WhatsApp Sandbox] summary: List your sandbox sessions @@ -84900,8 +84897,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { description: Inbox addon required } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createWhatsAppSandboxSession tags: [WhatsApp Sandbox] summary: Start a sandbox activation @@ -84956,8 +84953,8 @@ paths: /v1/whatsapp/sandbox/sessions/{sessionId}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteWhatsAppSandboxSession tags: [WhatsApp Sandbox] summary: Revoke a sandbox session @@ -84994,8 +84991,8 @@ paths: /v1/whatsapp/wa-groups: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppGroupChats tags: [WhatsApp] summary: List active groups @@ -85037,8 +85034,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createWhatsAppGroupChat tags: [WhatsApp] summary: Create group @@ -85082,8 +85079,8 @@ paths: /v1/whatsapp/wa-groups/{groupId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getWhatsAppGroupChat tags: [WhatsApp] summary: Get group info @@ -85127,8 +85124,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateWhatsAppGroupChat tags: [WhatsApp] summary: Update group settings @@ -85165,8 +85162,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteWhatsAppGroupChat tags: [WhatsApp] summary: Delete group @@ -85195,8 +85192,8 @@ paths: /v1/whatsapp/wa-groups/{groupId}/participants: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addWhatsAppGroupParticipants tags: [WhatsApp] summary: Add participants @@ -85235,8 +85232,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: removeWhatsAppGroupParticipants tags: [WhatsApp] summary: Remove participants @@ -85276,8 +85273,8 @@ paths: /v1/whatsapp/wa-groups/{groupId}/invite-link: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createWhatsAppGroupInviteLink tags: [WhatsApp] summary: Create invite link @@ -85305,8 +85302,8 @@ paths: /v1/whatsapp/wa-groups/{groupId}/join-requests: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppGroupJoinRequests tags: [WhatsApp] summary: List join requests @@ -85338,8 +85335,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: approveWhatsAppGroupJoinRequests tags: [WhatsApp] summary: Approve join requests @@ -85377,8 +85374,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: rejectWhatsAppGroupJoinRequests tags: [WhatsApp] summary: Reject join requests @@ -85420,8 +85417,8 @@ paths: /v1/whatsapp/flows: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWhatsAppFlows tags: [WhatsApp Flows] summary: List flows @@ -85464,8 +85461,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createWhatsAppFlow tags: [WhatsApp Flows] summary: Create flow @@ -85527,8 +85524,8 @@ paths: /v1/whatsapp/flows/{flowId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppFlow tags: [WhatsApp Flows] summary: Get flow @@ -85570,8 +85567,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: Flow or account not found } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWhatsAppFlow tags: [WhatsApp Flows] summary: Update flow @@ -85611,8 +85608,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account or flow not found } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteWhatsAppFlow tags: [WhatsApp Flows] summary: Delete flow @@ -85638,8 +85635,8 @@ paths: /v1/whatsapp/flows/{flowId}/json: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppFlowJson tags: [WhatsApp Flows] summary: Get flow JSON asset @@ -85670,8 +85667,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } put: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: uploadWhatsAppFlowJson tags: [WhatsApp Flows] summary: Upload flow JSON @@ -85759,8 +85756,8 @@ paths: /v1/whatsapp/flows/{flowId}/preview: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppFlowPreview tags: [WhatsApp Flows] summary: Get flow preview URL @@ -85789,8 +85786,8 @@ paths: /v1/whatsapp/flows/{flowId}/versions: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWhatsAppFlowVersions tags: [WhatsApp Flows] summary: List flow versions @@ -85827,8 +85824,8 @@ paths: /v1/whatsapp/flows/{flowId}/publish: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: publishWhatsAppFlow tags: [WhatsApp Flows] summary: Publish flow @@ -85864,8 +85861,8 @@ paths: /v1/whatsapp/flows/{flowId}/deprecate: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deprecateWhatsAppFlow tags: [WhatsApp Flows] summary: Deprecate flow @@ -85900,8 +85897,8 @@ paths: /v1/whatsapp/flows/encryption-key: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: getWhatsAppFlowsEncryptionKey tags: [WhatsApp Flows] summary: Get Flows encryption key status @@ -85944,8 +85941,8 @@ paths: '404': { description: WhatsApp account not found } '502': { description: Meta rejected the request } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: setWhatsAppFlowsEncryptionKey tags: [WhatsApp Flows] summary: Register a Flows encryption key @@ -85983,8 +85980,8 @@ paths: /v1/whatsapp/flows/send: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendWhatsAppFlowMessage tags: [WhatsApp Flows] summary: Send flow message @@ -86055,8 +86052,8 @@ paths: /v1/whatsapp/flow-responses: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWhatsAppFlowResponses tags: [WhatsApp Flows] summary: List flow responses @@ -86101,8 +86098,8 @@ paths: /v1/contacts: get: - x-oauth-scopes: ["automations:write", "contacts:read"] 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. @@ -86164,8 +86161,8 @@ paths: '400': { description: Invalid request } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["automations:write"] 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. @@ -86226,8 +86223,8 @@ paths: /v1/contacts/groups: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listContactGroups summary: List contact groups description: |- @@ -86270,8 +86267,8 @@ paths: '412': { description: The account was connected without the contacts area } /v1/contacts/autocomplete: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: autocompleteContacts summary: Search people description: |- @@ -86327,8 +86324,8 @@ paths: '412': { description: 'The account was connected without the contacts or directory area' } /v1/contacts/{contactId}: get: - x-oauth-scopes: ["automations:write", "contacts:read"] 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. @@ -86382,8 +86379,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["automations:write"] 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. @@ -86430,8 +86427,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: deleteContact summary: Delete contact description: Permanently deletes a contact and all associated channels. @@ -86446,8 +86443,8 @@ paths: /v1/contacts/{contactId}/channels: get: - x-oauth-scopes: ["automations:write", "contacts:read"] 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). @@ -86483,8 +86480,8 @@ paths: /v1/contacts/bulk: post: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: bulkCreateContacts summary: Bulk create contacts description: | @@ -86542,8 +86539,8 @@ paths: /v1/contacts/{contactId}/fields/{slug}: put: - x-oauth-scopes: ["automations:write"] 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. @@ -86565,8 +86562,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["automations:write"] 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. @@ -86583,8 +86580,8 @@ paths: /v1/custom-fields: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -86614,8 +86611,8 @@ paths: '400': { description: Invalid profileId format } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -86657,8 +86654,8 @@ paths: /v1/custom-fields/{fieldId}: patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -86695,8 +86692,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -86713,8 +86710,8 @@ paths: /v1/broadcasts: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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 @@ -86767,8 +86764,8 @@ paths: '400': { description: Invalid request } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["messaging:write"] 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 @@ -86848,8 +86845,8 @@ paths: /v1/broadcasts/{broadcastId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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 @@ -86891,8 +86888,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["messaging:write"] 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 @@ -86952,8 +86949,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["messaging:write"] 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 @@ -86968,8 +86965,8 @@ paths: /v1/broadcasts/{broadcastId}/send: post: - x-oauth-scopes: ["messaging:write"] 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 @@ -86997,8 +86994,8 @@ paths: /v1/broadcasts/{broadcastId}/schedule: post: - x-oauth-scopes: ["messaging:write"] 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 @@ -87036,8 +87033,8 @@ paths: /v1/broadcasts/{broadcastId}/cancel: post: - x-oauth-scopes: ["messaging:write"] 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 @@ -87065,8 +87062,8 @@ paths: /v1/broadcasts/{broadcastId}/recipients: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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 @@ -87126,8 +87123,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["messaging:write"] 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 @@ -87325,8 +87322,8 @@ paths: '404': { description: 'Code `support_run_not_found`: no such run, or it was not started by your team.', content: { application/json: { schema: { $ref: '#/components/schemas/ErrorResponse' } } } } /v1/workflows: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -87371,8 +87368,8 @@ paths: hasMore: { type: boolean } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createWorkflow x-platforms: [hubspot, salesforce, gohighlevel] summary: Create workflow @@ -87422,8 +87419,8 @@ paths: /v1/workflows/{workflowId}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -87460,8 +87457,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: updateWorkflow x-platforms: [hubspot, salesforce, gohighlevel] summary: Update workflow @@ -87525,8 +87522,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -87540,8 +87537,8 @@ paths: /v1/workflows/{workflowId}/activate: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -87569,8 +87566,8 @@ paths: /v1/workflows/{workflowId}/pause: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -87597,8 +87594,8 @@ paths: /v1/workflows/{workflowId}/take-over: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: takeOverWorkflow summary: Take over a workflow description: | @@ -87629,8 +87626,8 @@ paths: /v1/workflows/{workflowId}/executions: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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. @@ -87684,8 +87681,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: triggerWorkflow summary: Manually start a workflow run description: > @@ -87731,8 +87728,8 @@ paths: /v1/workflows/{workflowId}/trigger: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: triggerApiCallWorkflow summary: Start an API-triggered workflow description: | @@ -87777,8 +87774,8 @@ paths: /v1/workflows/{workflowId}/executions/{executionId}/events: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listWorkflowExecutionEvents summary: Get an execution's timeline description: > @@ -87815,8 +87812,8 @@ paths: /v1/workflows/{workflowId}/duplicate: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: duplicateWorkflow summary: Duplicate a workflow description: > @@ -87855,8 +87852,8 @@ paths: /v1/workflows/{workflowId}/versions: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listWorkflowVersions summary: List a workflow's version history description: > @@ -87894,8 +87891,8 @@ paths: /v1/workflows/{workflowId}/versions/{version}: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] 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. @@ -87934,8 +87931,8 @@ paths: /v1/workflows/{workflowId}/versions/{version}/restore: post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: restoreWorkflowVersion summary: Restore a workflow version description: | @@ -87974,8 +87971,8 @@ paths: /v1/sequences: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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 @@ -88025,8 +88022,8 @@ paths: '400': { description: Invalid request } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["messaging:write"] 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 @@ -88093,8 +88090,8 @@ paths: /v1/sequences/{sequenceId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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 @@ -88140,8 +88137,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["messaging:write"] 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 @@ -88208,8 +88205,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["messaging:write"] 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 @@ -88225,8 +88222,8 @@ paths: /v1/sequences/{sequenceId}/activate: post: - x-oauth-scopes: ["messaging:write"] 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 @@ -88254,8 +88251,8 @@ paths: /v1/sequences/{sequenceId}/pause: post: - x-oauth-scopes: ["messaging:write"] 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 @@ -88283,8 +88280,8 @@ paths: /v1/sequences/{sequenceId}/enroll: post: - x-oauth-scopes: ["messaging:write"] 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 @@ -88329,8 +88326,8 @@ paths: /v1/sequences/{sequenceId}/enroll/{contactId}: delete: - x-oauth-scopes: ["messaging:write"] 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 @@ -88347,8 +88344,8 @@ paths: /v1/sequences/{sequenceId}/enrollments: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] 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 @@ -88402,8 +88399,8 @@ paths: /v1/comment-automations: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listCommentAutomations tags: [Comment Automations] summary: List comment-to-DM automations @@ -88469,8 +88466,8 @@ paths: '503': { $ref: '#/components/responses/TemporarilyUnavailable' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createCommentAutomation tags: [Comment Automations] summary: Create comment-to-DM automation @@ -88691,8 +88688,8 @@ paths: /v1/comment-automations/{automationId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getCommentAutomation tags: [Comment Automations] summary: Get automation details @@ -88759,8 +88756,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateCommentAutomation tags: [Comment Automations] summary: Update automation settings @@ -88878,8 +88875,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '409': { description: An active automation already exists for the post this request re-binds to } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteCommentAutomation tags: [Comment Automations] summary: Delete automation @@ -88895,8 +88892,8 @@ paths: /v1/comment-automations/{automationId}/logs: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listCommentAutomationLogs tags: [Comment Automations] summary: List automation logs @@ -88951,8 +88948,8 @@ paths: /v1/ads: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -89028,8 +89025,8 @@ paths: /v1/ads/search-terms: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdsSearchTerms tags: ["Ad Insights"] x-platforms: ["google"] @@ -89100,8 +89097,8 @@ paths: /v1/ads/recommendations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listGoogleRecommendations summary: List Google Ads recommendations tags: ["Ad Campaigns"] @@ -89149,8 +89146,8 @@ paths: '501': { description: "accountId is not a Google Ads connection." } /v1/ads/recommendations/apply: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: applyGoogleRecommendations summary: Apply Google Ads recommendations tags: ["Ad Campaigns"] @@ -89223,8 +89220,8 @@ paths: '501': { description: "accountId is not a Google Ads connection." } /v1/ads/recommendations/dismiss: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: dismissGoogleRecommendations summary: Dismiss Google Ads recommendations tags: ["Ad Campaigns"] @@ -89267,8 +89264,8 @@ paths: '501': { description: "accountId is not a Google Ads connection." } /v1/ads/bid-strategies: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listBidStrategies tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -89315,8 +89312,8 @@ paths: '429': { description: "Google Ads operations budget exhausted; retry later." } '501': { description: Only available on Google Ads accounts } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createBidStrategy tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -89371,8 +89368,8 @@ paths: /v1/ads/bid-strategies/{strategyId}: patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateBidStrategy tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -89435,8 +89432,8 @@ paths: /v1/ads/shared-budgets: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listSharedBudgets tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -89480,8 +89477,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createSharedBudget tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -89532,8 +89529,8 @@ paths: /v1/ads/local-services/leads: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listLocalServicesLeads tags: ["Ad Insights"] x-platforms: ["google"] @@ -89604,8 +89601,8 @@ paths: /v1/ads/local-services/leads/{leadId}/conversations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listLocalServicesLeadConversations tags: ["Ad Insights"] x-platforms: ["google"] @@ -89670,8 +89667,8 @@ paths: /v1/ads/keywords: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -89725,8 +89722,8 @@ paths: x-summary: "Ads access is required: legacy plans need the Ads add-on, and usage-based plans include it by default." description: Ads access required. Legacy plans need the Ads add-on; included by default on usage-based plans. post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAdKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -89792,8 +89789,8 @@ paths: /v1/ads/keywords/{keywordId}: patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdKeyword tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -89842,8 +89839,8 @@ paths: '422': { description: 'Negative keywords have no status or bid on Google; they cannot be paused, enabled or given a bid.' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdKeyword tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -89882,8 +89879,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/automations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomations tags: [Automations] summary: List automations @@ -89938,8 +89935,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createAutomation tags: [Automations] summary: Create an automation @@ -90014,8 +90011,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/automations/catalog: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationCatalog tags: [Automations] summary: Get the automations catalog @@ -90085,8 +90082,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/automations/actions: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationActions tags: [Automations] summary: List automation actions @@ -90134,8 +90131,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/automations/{automationId}/checks: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationChecks tags: [Automations] summary: List an automation's checks @@ -90172,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 @@ -90215,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 @@ -90246,8 +90245,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/preview: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: previewAutomationDraft tags: [Automations] summary: Preview an unsaved automation @@ -90288,8 +90287,8 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomation tags: [Automations] summary: Get an automation @@ -90310,8 +90309,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAutomation tags: [Automations] summary: Edit an automation @@ -90384,8 +90383,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteAutomation tags: [Automations] summary: Delete an automation @@ -90405,8 +90404,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/{automationId}/activate: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: activateAutomation tags: [Automations] summary: Turn an automation on @@ -90434,8 +90433,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/{automationId}/pause: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: pauseAutomation tags: [Automations] summary: Turn an automation off @@ -90462,8 +90461,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/{automationId}/take-over: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: takeOverAutomation tags: [Automations] summary: Take over an automation @@ -90498,8 +90497,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/automations/{automationId}/preview: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: previewAutomation tags: [Automations] summary: Preview a saved automation @@ -90533,8 +90532,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/templates: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationTemplates tags: - Automations @@ -90567,8 +90566,8 @@ paths: '401': $ref: '#/components/responses/Unauthorized' post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createAutomationTemplate tags: - Automations @@ -90651,8 +90650,8 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/{templateId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationTemplate tags: - Automations @@ -90689,8 +90688,8 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' patch: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAutomationTemplate tags: - Automations @@ -90750,8 +90749,8 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' delete: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteAutomationTemplate tags: - Automations @@ -90788,8 +90787,8 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/automations/templates/{templateId}/install: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: installAutomationTemplate tags: - Automations @@ -90885,8 +90884,8 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/shared/{shareToken}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getSharedAutomationTemplate tags: - Automations @@ -90925,8 +90924,8 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/automations/templates/shared/{shareToken}/install: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: installSharedAutomationTemplate tags: - Automations @@ -91021,8 +91020,8 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/templates/zernio/{templateId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getZernioAutomationTemplate tags: - Automations @@ -91062,8 +91061,8 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/automations/templates/zernio/{templateId}/install: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: installZernioAutomationTemplate tags: - Automations @@ -91159,8 +91158,8 @@ paths: $ref: '#/components/responses/IdempotencyKeyReused' /v1/automations/controls: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationControls tags: - Automations @@ -91186,8 +91185,8 @@ paths: '403': $ref: '#/components/responses/AutomationsAdsRequired' patch: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAutomationControls tags: - Automations @@ -91235,8 +91234,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/controls/ad-accounts: patch: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAutomationAdAccountControls tags: - Automations @@ -91307,8 +91306,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/{automationId}/approvals: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAutomationApprovals tags: - Automations @@ -91364,8 +91363,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/{automationId}/approvals/{approvalId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAutomationApproval tags: - Automations @@ -91407,8 +91406,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/automations/{automationId}/approvals/{approvalId}/approve: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: approveAutomationApproval tags: - Automations @@ -91463,8 +91462,8 @@ paths: $ref: '#/components/responses/AutomationApprovalRefused' /v1/automations/{automationId}/approvals/{approvalId}/reject: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: rejectAutomationApproval tags: - Automations @@ -91517,8 +91516,8 @@ paths: $ref: '#/components/responses/AutomationApprovalRefused' /v1/automations/backtest: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: backtestAutomationDraft tags: - Automations @@ -91554,8 +91553,8 @@ paths: $ref: '#/components/responses/AutomationsAdsRequired' /v1/automations/{automationId}/backtest: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: backtestAutomation tags: - Automations @@ -91592,8 +91591,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/ads/rules: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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] @@ -91641,8 +91640,8 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91741,8 +91740,8 @@ paths: $ref: '#/components/responses/AccountConnectionRequired' /v1/ads/rules/templates: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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] @@ -91781,8 +91780,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/rules/hourly-windows: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdRuleHourlyWindows tags: [Ad Rules] x-platforms: [meta, google] @@ -91819,8 +91818,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/rules/activity: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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] @@ -91885,8 +91884,8 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/ads/rules/activity/{activityId}/undo: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: undoAdRuleActivity tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -91956,8 +91955,8 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["ads:write", "ads:read"] 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] @@ -91990,8 +91989,8 @@ paths: '404': $ref: '#/components/responses/NotFound' patch: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -92051,8 +92050,8 @@ paths: '404': $ref: '#/components/responses/NotFound' delete: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -92085,8 +92084,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/ads/rules/{ruleId}/preview: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: previewAdRule tags: [Ad Rules] x-platforms: [meta, google, tiktok, linkedin, pinterest, x, reddit] @@ -92127,8 +92126,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/ads/rules/alerts: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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] @@ -92189,8 +92188,8 @@ paths: $ref: '#/components/responses/Unauthorized' /v1/ads/rules/{ruleId}/alerts: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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] @@ -92252,8 +92251,8 @@ paths: $ref: '#/components/schemas/ErrorResponse' /v1/ads/rules/{ruleId}/runs: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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] @@ -92302,8 +92301,8 @@ paths: $ref: '#/components/responses/NotFound' /v1/ads/campaign-results: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: uploadCampaignResults tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -92367,8 +92366,8 @@ paths: '422': { description: 'The `Idempotency-Key` was used with a different body.' } '429': { $ref: '#/components/responses/RateLimited' } get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -92417,8 +92416,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/uploads/{uploadId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -92466,8 +92465,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/campaign-results/totals: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -92504,8 +92503,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/events: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -92526,8 +92525,8 @@ paths: eventNames: { type: array, items: { type: string }, example: [Purchase, Lead, CompleteRegistration] } '401': { $ref: '#/components/responses/Unauthorized' } put: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: setCampaignResultEvents tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -92567,8 +92566,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/tag-new-ads: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTagNewAds tags: ["Ad Campaign Results"] x-platforms: ["meta", "google"] @@ -92589,8 +92588,8 @@ paths: enabled: { type: boolean, example: false } '401': { $ref: '#/components/responses/Unauthorized' } put: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: setTagNewAds tags: ["Ad Campaign Results"] x-platforms: ["meta", "google"] @@ -92624,8 +92623,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/profit: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -92642,8 +92641,8 @@ paths: schema: { $ref: '#/components/schemas/CampaignResultProfit' } '401': { $ref: '#/components/responses/Unauthorized' } put: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: setCampaignResultProfit tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -92678,8 +92677,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/metrics: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -92705,8 +92704,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaign-results/metrics/{key}: put: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: setCampaignResultMetric tags: ["Ad Campaign Results"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -92747,8 +92746,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/ads/campaigns: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -92841,8 +92840,8 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } post: - x-oauth-scopes: ["ads:write"] 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"] @@ -93026,8 +93025,8 @@ paths: /v1/ads/campaigns/{campaignId}/status: put: - x-oauth-scopes: ["ads:write"] 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"] @@ -93120,8 +93119,8 @@ paths: /v1/ads/campaigns/{campaignId}/ad-schedule: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignAdSchedule tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -93202,8 +93201,8 @@ paths: '501': description: "Not a Google Ads campaign: ad schedules are a Google criterion." put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCampaignAdSchedule tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -93301,8 +93300,8 @@ paths: /v1/ads/campaigns/{campaignId}/bidding: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignBidding tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -93366,8 +93365,8 @@ paths: /v1/ads/campaigns/{campaignId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCampaignDetails tags: ["Ad Campaigns"] x-platforms: ["meta"] @@ -93405,8 +93404,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } put: - x-oauth-scopes: ["ads:write"] 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"] @@ -93577,8 +93576,8 @@ paths: '501': { description: Operation not supported on this platform } delete: - x-oauth-scopes: ["ads:write"] 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"] @@ -93706,8 +93705,8 @@ paths: /v1/ads/campaigns/{campaignId}/negative-keywords: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listCampaignNegativeKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -93759,8 +93758,8 @@ paths: '429': { description: Google Ads operations budget exhausted; retry later } '501': { description: Only available on Google Ads campaigns } put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: replaceCampaignNegativeKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -93828,8 +93827,8 @@ paths: '429': { description: Google Ads operations budget exhausted; retry later } '501': { description: Only available on Google Ads campaigns } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: editCampaignNegativeKeywords tags: ["Ad Campaigns"] x-platforms: ["google", "amazon"] @@ -93899,8 +93898,8 @@ paths: /v1/ads/campaigns/bulk-status: post: - x-oauth-scopes: ["ads:write"] 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"] @@ -93975,8 +93974,8 @@ paths: description: 'Returned with code `ads_allowance_exceeded` when the team has no payment method on file and has reached the 500 free live ads: add a card to resume.' /v1/ads/campaigns/{campaignId}/duplicate: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: duplicateAdCampaign tags: ["Ad Campaigns"] x-platforms: ["meta", "tiktok", "linkedin", "google"] @@ -94137,8 +94136,8 @@ paths: /v1/ads/campaigns/{campaignId}/targeting: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignTargeting tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -94233,8 +94232,8 @@ paths: '404': { description: Campaign not found } '501': { description: Only available on Google Ads campaigns } put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCampaignTargeting tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -94420,8 +94419,8 @@ paths: /v1/ads/ad-sets: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -94560,8 +94559,8 @@ paths: description: Ads access required (Ads add-on on legacy plans, included on usage-based plans). post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdSet tags: ["Ad Campaigns"] x-platforms: ["google", "reddit", "snapchat"] @@ -94675,8 +94674,8 @@ paths: /v1/ads/ad-sets/{adSetId}/duplicate: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: duplicateAdSet tags: ["Ad Campaigns"] x-platforms: ["meta", "tiktok"] @@ -94793,8 +94792,8 @@ paths: /v1/ads/{adId}/duplicate: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: duplicateAd tags: ["Ad Campaigns"] x-platforms: ["meta"] @@ -94896,8 +94895,8 @@ paths: /v1/ads/ad-sets/{adSetId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdSetDetails tags: ["Ad Campaigns"] x-platforms: ["meta"] @@ -94935,8 +94934,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } put: - x-oauth-scopes: ["ads:write"] 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"] @@ -95320,8 +95319,8 @@ paths: '502': { description: "Meta: the ad set's live targeting could not be read, so the placements or targeting update was not written" } '501': { description: "bidStrategy not supported on the platform (Meta, TikTok, OpenAI and Reddit only)" } delete: - x-oauth-scopes: ["ads:write"] 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"] @@ -95357,8 +95356,8 @@ paths: /v1/ads/ad-sets/{adSetId}/targeting: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdSetTargeting tags: ["Ad Campaigns"] x-platforms: ["reddit", "amazon", "snapchat"] @@ -95403,8 +95402,8 @@ paths: '501': { description: "The platform has no ad set targeting read (every platform but Reddit and Amazon)" } /v1/ads/ad-sets/{adSetId}/status: put: - x-oauth-scopes: ["ads:write"] 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"] @@ -95488,8 +95487,8 @@ paths: /v1/ads/tree: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -95579,8 +95578,8 @@ paths: /v1/ads/performance: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -95634,8 +95633,8 @@ paths: '429': { $ref: '#/components/responses/AnalyticsRateLimited' } /v1/ads/timeline: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -95703,8 +95702,8 @@ paths: /v1/ads/{adId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -95826,8 +95825,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } '501': { description: "`accountId` names a connection that is not Meta (unsynced ad reads are Meta only)." } put: - x-oauth-scopes: ["ads:write"] 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"] @@ -96260,8 +96259,8 @@ paths: '501': { description: "targeting or creative not supported on the platform (supported on Meta, TikTok, and LinkedIn)" } '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-oauth-scopes: ["ads:write"] 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"] @@ -96330,8 +96329,8 @@ paths: /v1/ads/{adId}/status: put: - x-oauth-scopes: ["ads:write"] 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"] @@ -96425,8 +96424,8 @@ paths: /v1/ads/campaigns/{campaignId}/assets: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listCampaignAssets summary: List campaign assets tags: @@ -96568,8 +96567,8 @@ paths: '501': description: "Only supported on Google Ads." post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: attachCampaignAssets summary: Attach campaign assets tags: @@ -96705,8 +96704,8 @@ paths: '501': description: "Only supported on Google Ads." put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCampaignAssets summary: Update campaign assets tags: @@ -96793,8 +96792,8 @@ paths: '501': description: "Only supported on Google Ads." delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeCampaignAssets summary: Remove campaign assets tags: @@ -96852,8 +96851,8 @@ paths: /v1/ads/ad-sets/{adSetId}/assets: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdGroupAssets summary: List ad-group assets tags: @@ -96994,8 +96993,8 @@ paths: '501': description: "Only supported on Google Ads." post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: attachAdGroupAssets summary: Attach ad-group assets tags: @@ -97131,8 +97130,8 @@ paths: '501': description: "Only supported on Google Ads." put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdGroupAssets summary: Update ad-group assets tags: @@ -97220,8 +97219,8 @@ paths: '501': description: "Only supported on Google Ads." delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdGroupAssets summary: Remove ad-group assets tags: @@ -97279,8 +97278,8 @@ paths: /v1/ads/campaigns/{campaignId}/analytics: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -97395,8 +97394,8 @@ paths: /v1/ads/preview: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: generateAdPreviews tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -97455,8 +97454,8 @@ paths: /v1/ads/{adId}/preview: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdPreviews tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -97502,8 +97501,8 @@ paths: /v1/ads/{adId}/review: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdReview tags: ["Ad Campaigns"] x-platforms: ["tiktok", "google", "meta"] @@ -97661,8 +97660,8 @@ paths: /v1/ads/{adId}/tiktok-smart-plus-review: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTikTokSmartPlusAdReview tags: ["Ad Campaigns"] x-platforms: ["tiktok"] @@ -97734,8 +97733,8 @@ paths: /v1/ads/{adId}/media: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdMedia tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -97802,8 +97801,8 @@ paths: /v1/ads/keywords/ideas: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: generateKeywordIdeas tags: ["Ad Insights"] x-platforms: ["google"] @@ -97863,8 +97862,8 @@ paths: /v1/ads/keywords/historical-metrics: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: generateKeywordHistoricalMetrics tags: ["Ad Insights"] x-platforms: ["google"] @@ -97918,8 +97917,8 @@ paths: /v1/ads/insights: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: queryAdInsights tags: ["Ad Insights"] x-platforms: ["meta", "google", "tiktok"] @@ -98054,8 +98053,8 @@ paths: /v1/ads/insights/reports: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdInsightsReport tags: ["Ad Insights"] x-platforms: ["meta"] @@ -98123,8 +98122,8 @@ paths: /v1/ads/insights/reports/{reportRunId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdInsightsReport tags: ["Ad Insights"] x-platforms: ["meta"] @@ -98172,8 +98171,8 @@ paths: /v1/ads/{adId}/analytics: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -98254,8 +98253,8 @@ paths: /v1/ads/{adId}/tracking-tags: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdTrackingTags tags: ["Tracking Tags"] x-platforms: ["meta", "google", "linkedin"] @@ -98298,8 +98297,8 @@ paths: '404': { description: "Ad not found" } '405': { description: "Platform has no click-URL tracking surface" } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdTrackingTags tags: ["Tracking Tags"] x-platforms: ["meta", "google", "linkedin"] @@ -98396,8 +98395,8 @@ paths: '502': { x-summary: "Meta accepted the request but failed to produce the image, for example from an upload or processing timeout.", 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`." } /v1/ads/{adId}/comments: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getAdComments tags: ["Ad Accounts"] x-platforms: ["meta", "tiktok"] @@ -98578,8 +98577,8 @@ paths: /v1/ads/{adId}/comments/{commentId}/reply: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: replyToAdComment summary: Reply to an ad comment tags: ["Ad Accounts"] @@ -98661,8 +98660,8 @@ paths: /v1/ads/{adId}/comments/{commentId}/hide: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: hideAdComment summary: Hide or unhide an ad comment tags: ["Ad Accounts"] @@ -98732,8 +98731,8 @@ paths: /v1/ads/{adId}/comments/{commentId}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "engagement" + x-oauth-scopes: ["messaging:write"] operationId: deleteAdComment summary: Delete an ad comment tags: ["Ad Accounts"] @@ -98799,8 +98798,8 @@ paths: /v1/ads/business-centers: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsBusinessCenters tags: ["Ad Accounts"] x-platforms: ["tiktok"] @@ -98835,8 +98834,8 @@ paths: /v1/ads/alerts: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -98888,8 +98887,8 @@ paths: /v1/ads/alerts/{alertId}/dismiss: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: dismissAdsAlert tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -98922,8 +98921,8 @@ paths: /v1/ads/activity: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdsActivityLog tags: ["Ad Accounts"] x-platforms: ["meta", "google"] @@ -98994,8 +98993,8 @@ paths: /v1/ads/rf-predictions: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createRfPrediction tags: ["Reach and Frequency"] x-platforms: ["meta"] @@ -99066,8 +99065,8 @@ paths: /v1/ads/rf-predictions/{predictionId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getRfPrediction tags: ["Reach and Frequency"] x-platforms: ["meta"] @@ -99098,8 +99097,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: cancelRfReservation tags: ["Reach and Frequency"] x-platforms: ["meta"] @@ -99126,8 +99125,8 @@ paths: /v1/ads/rf-predictions/{predictionId}/reserve: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: reserveRfPrediction tags: ["Reach and Frequency"] x-platforms: ["meta"] @@ -99171,8 +99170,8 @@ paths: /v1/ads/studies: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdStudies tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99216,8 +99215,8 @@ paths: /v1/ads/tiktok-identities: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsTikTokIdentities tags: ["Ad Creatives"] x-platforms: ["tiktok"] @@ -99261,8 +99260,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } /v1/ads/tiktok-smart-plus-materials: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTikTokSmartPlusMaterialReport tags: ["Ad Insights"] x-platforms: ["tiktok"] @@ -99364,8 +99363,8 @@ paths: '502': { x-summary: "TikTok returned incomplete Smart+ data: retry later, and pass smartPlusAdIds or adGroupIds for advertisers with over 2,000 Smart+ ads.", description: "Retry later. Returned when:\n\n- more rows than the tolerance (2, or 1% of the rows) were missing from TikTok's material report after a retry (`details` carries `totalNumber`, `distinctRows` and `missingRows`); or\n- TikTok's Smart+ ad listing returned fewer ads than it declared (`details` carries `declaredAds`, `listedAds` and `listingTruncated`).\n\nWith `listingTruncated`, the advertiser has more than 2,000 Smart+ ads, so pass `smartPlusAdIds` or `adGroupIds`." } /v1/ads/tiktok-smart-plus-reviews: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTikTokSmartPlusReviews tags: ["Ad Campaigns"] x-platforms: ["tiktok"] @@ -99560,8 +99559,8 @@ paths: '429': { description: "TikTok's general rate limit hit while listing the Smart+ ads (`Retry-After: 10`).", $ref: '#/components/responses/RateLimited' } /v1/ads/instagram-accounts: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsInstagramAccounts summary: List Instagram ad identities description: | @@ -99631,8 +99630,8 @@ paths: /v1/ads/instagram-posts: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdsInstagramPosts summary: List Instagram posts to boost description: | @@ -99708,8 +99707,8 @@ paths: /v1/ads/advertisable-applications: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdvertisableApplications summary: List advertisable apps description: | @@ -99764,8 +99763,8 @@ paths: /v1/ads/ios-fourteen-campaign-limits: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getIosFourteenCampaignLimits summary: Get iOS 14 campaign limits description: | @@ -99810,8 +99809,8 @@ paths: /v1/ads/businesses: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listMetaBusinesses tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99852,8 +99851,8 @@ paths: /v1/ads/businesses/users: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listMetaBusinessUsers tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99894,8 +99893,8 @@ paths: /v1/ads/page-users: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listPageUsers tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99932,8 +99931,8 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } '501': { description: Only supported on Meta (facebook/instagram) } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: assignPageUser tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -99992,8 +99991,8 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } '501': { description: Only supported on Meta (facebook/instagram) } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removePageUser tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100027,8 +100026,8 @@ paths: /v1/ads/labels: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdLabels tags: ["Ad Accounts"] x-platforms: ["meta", "google"] @@ -100083,8 +100082,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta and Google Ads accounts } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -100132,8 +100131,8 @@ paths: /v1/ads/labels/{labelId}: patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -100179,8 +100178,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -100216,8 +100215,8 @@ paths: /v1/ads/labels/{labelId}/assignments: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: attachAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -100263,8 +100262,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: detachAdLabel tags: ["Ad Accounts"] x-platforms: ["google"] @@ -100305,8 +100304,8 @@ paths: /v1/ads/high-demand-periods: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listHighDemandPeriods tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100349,8 +100348,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createHighDemandPeriod tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100403,8 +100402,8 @@ paths: /v1/ads/creatives: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCreatives tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -100448,8 +100447,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCreative tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -100580,8 +100579,8 @@ paths: /v1/ads/creatives/{creativeId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCreative tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -100615,8 +100614,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdCreative tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -100659,8 +100658,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCreative tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -100694,8 +100693,8 @@ paths: /v1/ads/value-rule-sets: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listValueRuleSets tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100751,8 +100750,8 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createValueRuleSet tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100834,8 +100833,8 @@ paths: /v1/ads/value-rule-sets/{valueRuleSetId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getValueRuleSet tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100871,8 +100870,8 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateValueRuleSet tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100937,8 +100936,8 @@ paths: '501': { description: Only supported on Meta (facebook/instagram) } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteValueRuleSet tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -100973,8 +100972,8 @@ paths: /v1/ads/accounts/negative-keyword-lists: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: "listAdNegativeKeywordLists" tags: - "Ad Accounts" @@ -101085,8 +101084,8 @@ paths: "501": description: "Available only on Google Ads." post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "createAdNegativeKeywordList" tags: - "Ad Accounts" @@ -101209,8 +101208,8 @@ paths: description: "Available only on Google Ads." /v1/ads/accounts/negative-keyword-lists/{listId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: "getAdNegativeKeywordList" tags: - "Ad Accounts" @@ -101340,8 +101339,8 @@ paths: "501": description: "Available only on Google Ads." put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "updateAdNegativeKeywordList" tags: - "Ad Accounts" @@ -101450,8 +101449,8 @@ paths: "501": description: "Available only on Google Ads." delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "deleteAdNegativeKeywordList" tags: - "Ad Accounts" @@ -101554,8 +101553,8 @@ paths: description: "Available only on Google Ads." /v1/ads/accounts/negative-keyword-lists/{listId}/keywords: put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "replaceAdNegativeKeywordListKeywords" tags: - "Ad Accounts" @@ -101680,8 +101679,8 @@ paths: "501": description: "Available only on Google Ads." patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "editAdNegativeKeywordListKeywords" tags: - "Ad Accounts" @@ -101812,8 +101811,8 @@ paths: description: "Available only on Google Ads." /v1/ads/campaigns/{campaignId}/negative-keyword-lists: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: "listCampaignNegativeKeywordLists" tags: - "Ad Campaigns" @@ -101908,8 +101907,8 @@ paths: "501": description: "Available only on Google Ads." put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "replaceCampaignNegativeKeywordLists" tags: - "Ad Campaigns" @@ -102011,8 +102010,8 @@ paths: "501": description: "Available only on Google Ads." patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: "editCampaignNegativeKeywordLists" tags: - "Ad Campaigns" @@ -102123,8 +102122,8 @@ paths: /v1/ads/accounts/callouts: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAccountCallouts summary: List account callouts tags: @@ -102202,8 +102201,8 @@ paths: '501': description: "Only supported on Google Ads." post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAccountCallouts summary: Add account callouts tags: @@ -102291,8 +102290,8 @@ paths: '501': description: "Only supported on Google Ads." put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAccountCallouts summary: Update account callouts tags: @@ -102391,8 +102390,8 @@ paths: '501': description: "Only supported on Google Ads." delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAccountCallout summary: Remove account callout tags: @@ -102444,8 +102443,8 @@ paths: /v1/ads/accounts/sitelinks: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAccountSitelinks summary: List account sitelinks tags: @@ -102534,8 +102533,8 @@ paths: '501': description: "Only supported on Google Ads." post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAccountSitelinks summary: Add account sitelinks tags: @@ -102635,8 +102634,8 @@ paths: '501': description: "Only supported on Google Ads." put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAccountSitelinks summary: Update account sitelinks tags: @@ -102753,8 +102752,8 @@ paths: '501': description: "Only supported on Google Ads." delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAccountSitelink summary: Remove account sitelink tags: @@ -102806,8 +102805,8 @@ paths: /v1/ads/accounts/structured-snippets: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAccountStructuredSnippets summary: List account snippets tags: @@ -102893,8 +102892,8 @@ paths: '501': description: "Only supported on Google Ads." post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAccountStructuredSnippets summary: Add account snippets tags: @@ -103006,8 +103005,8 @@ paths: '501': description: "Only supported on Google Ads." put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAccountStructuredSnippets summary: Update account snippets tags: @@ -103103,8 +103102,8 @@ paths: '501': description: "Only supported on Google Ads." delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAccountStructuredSnippet summary: Remove account snippet tags: @@ -103156,8 +103155,8 @@ paths: /v1/ads/accounts/hierarchy: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountHierarchy tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103256,8 +103255,8 @@ paths: /v1/ads/accounts/manager-links: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: inviteAdAccountToManager tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103307,8 +103306,8 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdAccountManagerLink tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103358,8 +103357,8 @@ paths: /v1/ads/accounts/billing: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountBilling tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103439,8 +103438,8 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: setUpAdAccountBilling tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103554,8 +103553,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/ads/accounts/user-invitations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAccountUserInvitations tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103602,8 +103601,8 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: inviteAdAccountUser tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103663,8 +103662,8 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: revokeAdAccountUserInvitation tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103702,8 +103701,8 @@ paths: /v1/ads/accounts/user-invitations/pending-approvals: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAccountUserInvitationApprovals tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103745,8 +103744,8 @@ paths: '429': { description: "Google Ads operations budget or quota exhausted; retry later." } '501': { description: Only available on Google Ads accounts } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: withdrawAdAccountUserInvitationApproval tags: ["Ad Accounts"] x-platforms: ["google"] @@ -103786,8 +103785,8 @@ paths: /v1/ads/accounts/users: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdAccountUsers tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -103823,8 +103822,8 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } '501': { description: Only supported on Meta (facebook/instagram) } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: assignAdAccountUser tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -103879,8 +103878,8 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } '501': { description: Only supported on Meta (facebook/instagram) } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdAccountUser tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -103914,8 +103913,8 @@ paths: /v1/ads/accounts/finance: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountFinance tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -103958,8 +103957,8 @@ paths: /v1/ads/accounts/health: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountHealth tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -104060,8 +104059,8 @@ paths: /v1/ads/accounts/live: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdAccountLiveEntities tags: ["Ad Accounts"] x-platforms: ["meta", "tiktok"] @@ -104227,8 +104226,8 @@ paths: /v1/ads/accounts: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdAccount summary: Create ad account tags: ["Ad Accounts"] @@ -104420,8 +104419,8 @@ paths: platform: "meta" details: { creationStatus: "unknown" } get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -104545,8 +104544,8 @@ paths: description: 'Platform ads connection required (TikTok Ads, X Ads, code `ads_connection_required`), or Instagram missing linked Facebook account. Code `ads_no_ad_accounts`: the TikTok Ads connection is in place but its login has no advertiser accounts; create one in TikTok Ads Manager or grant access to it, then reconnect.' '429': { $ref: '#/components/responses/RateLimited' } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdAccount tags: ["Ad Accounts"] x-platforms: ["meta", "google"] @@ -104652,8 +104651,8 @@ paths: '429': { $ref: '#/components/responses/RateLimited' } /v1/ads/dsa-defaults: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getDsaDefaults tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -104690,8 +104689,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/dsa-recommendations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getDsaRecommendations tags: ["Ad Accounts"] x-platforms: ["meta"] @@ -104731,8 +104730,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/boost: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: boostPost tags: ["Ad Campaigns"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit"] @@ -105412,8 +105411,8 @@ paths: /v1/ads/campaigns/{campaignId}/asset-groups: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listGoogleAssetGroups summary: List Performance Max asset groups tags: ["Ad Campaigns"] @@ -105480,8 +105479,8 @@ paths: '501': description: "Campaign is not on Google Ads." post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createGoogleAssetGroup summary: Create a Performance Max asset group tags: ["Ad Campaigns"] @@ -105554,8 +105553,8 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getGoogleAssetGroup summary: Get a Performance Max asset group tags: ["Ad Campaigns"] @@ -105589,8 +105588,8 @@ paths: '429': { description: "Google quota or the Zernio Google operations burst limit is exhausted." } '501': { description: "Campaign is not on Google Ads." } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateGoogleAssetGroup summary: Update a Performance Max asset group tags: ["Ad Campaigns"] @@ -105638,8 +105637,8 @@ paths: '429': { description: "Google quota or the Zernio Google operations burst limit is exhausted." } '501': { description: "Campaign is not on Google Ads." } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeGoogleAssetGroup summary: Remove a Performance Max asset group tags: ["Ad Campaigns"] @@ -105674,8 +105673,8 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}/assets: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: editGoogleAssetGroupAssets summary: Link or unlink asset group assets tags: ["Ad Campaigns"] @@ -105727,8 +105726,8 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/campaigns/{campaignId}/asset-groups/{assetGroupId}/listing-group-filters: put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: replaceGoogleListingGroupFilters summary: Replace an asset group's listing-group tree tags: ["Ad Campaigns"] @@ -105776,8 +105775,8 @@ paths: '501': { description: "Campaign is not on Google Ads." } /v1/ads/create: post: - x-oauth-scopes: ["ads:write"] 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"] @@ -107503,8 +107502,8 @@ paths: /v1/ads/leads: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listLeads tags: ["Lead Gen"] x-platforms: ["meta", "google", "linkedin"] @@ -107577,8 +107576,8 @@ paths: /v1/ads/leads/counts: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: countLeads tags: ["Lead Gen"] x-platforms: ["meta"] @@ -107615,8 +107614,8 @@ paths: /v1/ads/leads/{id}: patch: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: updateLead tags: ["Lead Gen"] x-platforms: ["meta", "google", "linkedin", "tiktok"] @@ -107662,8 +107661,8 @@ paths: /v1/leads: post: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: createLead tags: ["Lead Gen"] summary: Create a lead from your own form @@ -107732,8 +107731,8 @@ paths: /v1/ads/lead-forms: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listLeadForms tags: ["Lead Gen"] x-platforms: ["meta", "linkedin"] @@ -107763,8 +107762,8 @@ paths: '409': { $ref: '#/components/responses/AccountDisconnected' } '403': { description: Ads add-on required. } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createLeadForm tags: ["Lead Gen"] x-platforms: ["meta", "linkedin"] @@ -107953,8 +107952,8 @@ paths: /v1/ads/lead-forms/{formId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getLeadForm tags: ["Lead Gen"] x-platforms: ["meta", "linkedin"] @@ -107998,8 +107997,8 @@ paths: '409': { $ref: '#/components/responses/AccountDisconnected' } '404': { description: "No lead form with that id on the Page this account manages." } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: archiveLeadForm tags: ["Lead Gen"] x-platforms: ["meta", "linkedin"] @@ -108025,8 +108024,8 @@ paths: /v1/ads/lead-forms/{formId}/leads: get: - x-oauth-scopes: ["automations:write", "contacts:read"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write", "contacts:read"] operationId: listFormLeads tags: ["Lead Gen"] x-platforms: ["meta"] @@ -108096,8 +108095,8 @@ paths: /v1/ads/lead-forms/{formId}/test-leads: post: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: createTestLead tags: ["Lead Gen"] x-platforms: ["meta"] @@ -108139,8 +108138,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '409': { $ref: '#/components/responses/AccountDisconnected' } delete: - x-oauth-scopes: ["automations:write"] x-resource-group: "contacts" + x-oauth-scopes: ["automations:write"] operationId: deleteTestLead tags: ["Lead Gen"] x-platforms: ["meta"] @@ -108169,8 +108168,8 @@ paths: /v1/ads/images: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: uploadAdImage tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -108218,8 +108217,8 @@ paths: '502': { x-summary: "Meta accepted the request but failed to produce the image, for example from an upload or processing timeout.", 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`." } get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdImages tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -108264,8 +108263,8 @@ paths: /v1/ads/videos: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: uploadAdVideo tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -108353,8 +108352,8 @@ paths: '502': { x-summary: "Meta accepted the upload but failed to produce the video, such as from a chunk transfer or processing timeout.", description: "Meta accepted the request then failed to produce the media (upload session, chunk transfer, processing timeout, or a response with no video id). Inspect `platformError.reason`." } get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdVideos tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -108414,8 +108413,8 @@ paths: /v1/ads/videos/{videoId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdVideoStatus tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -108463,8 +108462,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '501': { description: Only supported on Meta (facebook/instagram) } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdVideo tags: ["Ad Creatives"] x-platforms: ["meta"] @@ -108503,8 +108502,8 @@ paths: /v1/ads/interests: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: searchAdInterests deprecated: true tags: ["Ad Targeting"] @@ -108546,8 +108545,8 @@ paths: /v1/ads/targeting/search: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -108765,8 +108764,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/targeting/browse: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: browseAdTargeting tags: ["Ad Targeting"] x-platforms: ["meta"] @@ -108861,8 +108860,8 @@ paths: '501': { description: "accountId is not a Meta connection (platform_not_supported)." } /v1/ads/library: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: searchAdLibrary tags: ["Ad Library"] x-platforms: ["meta", "linkedin"] @@ -109015,8 +109014,8 @@ paths: /v1/ads/targeting/reach-estimate: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: estimateAdReach tags: ["Ad Targeting"] x-platforms: ["meta", "linkedin", "pinterest", "x", "snapchat"] @@ -109094,8 +109093,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/targeting/bid-pricing: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: getLinkedInBidPricing tags: ["Ad Targeting"] x-platforms: ["linkedin"] @@ -109167,8 +109166,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/targeting/supply-forecast: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: getLinkedInSupplyForecast tags: ["Ad Targeting"] x-platforms: ["linkedin"] @@ -109252,8 +109251,8 @@ paths: '404': { $ref: '#/components/responses/AccountUnavailable' } /v1/ads/catalogs: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogs tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109302,8 +109301,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { $ref: '#/components/responses/CatalogPermissionDenied' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalog tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109348,8 +109347,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } /v1/ads/catalogs/{catalogId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCatalog tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109376,8 +109375,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCatalog tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109404,8 +109403,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/products: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogProducts tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109440,8 +109439,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalogProduct tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109483,8 +109482,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/products/batch: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: batchAdCatalogProducts tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109536,8 +109535,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/batches/{handle}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCatalogBatch tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109578,8 +109577,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/products/{productId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdCatalogProduct tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109607,8 +109606,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdCatalogProduct tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109647,8 +109646,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCatalogProduct tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109674,8 +109673,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/feeds: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogFeeds tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109704,8 +109703,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalogFeed tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109752,8 +109751,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/feeds/{feedId}/uploads: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogFeedUploads tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109783,8 +109782,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalogFeedUpload tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109824,8 +109823,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/product-sets: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCatalogProductSets tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109861,8 +109860,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCatalogProductSet tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109902,8 +109901,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/catalogs/{catalogId}/product-sets/{productSetId}: put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdCatalogProductSet tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109941,8 +109940,8 @@ paths: '403': { $ref: '#/components/responses/CatalogPermissionDenied' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdCatalogProductSet tags: ["Product Catalogs"] x-platforms: ["meta"] @@ -109968,8 +109967,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/audiences: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -110025,8 +110024,8 @@ paths: x-summary: "Ads access is required: legacy plans need the Ads add-on, and usage-based plans include it by default." description: Ads access required. Legacy plans need the Ads add-on; included by default on usage-based plans. post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -110277,8 +110276,8 @@ paths: /v1/ads/audiences/{audienceId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -110313,8 +110312,8 @@ paths: To fix `ad_account_not_selected`, 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. '404': { $ref: '#/components/responses/NotFound' } put: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x"] @@ -110377,8 +110376,8 @@ paths: '501': description: Platform audience updates are only supported on Meta delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -110427,8 +110426,8 @@ paths: /v1/ads/audiences/{audienceId}/users: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addUsersToAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -110512,8 +110511,8 @@ paths: '422': description: Audience is not a customer_list type or has no platform ID yet delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeUsersFromAdAudience tags: ["Ad Audiences"] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "x", "reddit", "snapchat"] @@ -110577,8 +110576,8 @@ paths: /v1/ads/audiences/{audienceId}/companies: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: replaceAdAudienceCompanies tags: ["Ad Audiences"] x-platforms: ["linkedin"] @@ -110652,8 +110651,8 @@ paths: /v1/ads/conversions/quality: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getConversionsQuality tags: [Conversions] x-platforms: ["meta", "pinterest"] @@ -110705,8 +110704,8 @@ paths: '405': { description: "Platform does not expose Event Match Quality (neither Meta nor Pinterest)." } /v1/ads/conversions: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: sendConversions tags: [Conversions] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "reddit"] @@ -110984,8 +110983,8 @@ paths: /v1/ads/conversions/adjustments: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: adjustConversions tags: [Conversions] x-platforms: ["google", "impact", "microsoft"] @@ -111145,8 +111144,8 @@ paths: /v1/ads/conversions/actions: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listConversionActions tags: [Conversions] x-platforms: ["google"] @@ -111211,8 +111210,8 @@ paths: '501': description: Conversion actions are only available for Google Ads (the account's platform is not `googleads`). post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createConversionAction tags: [Conversions] x-platforms: ["google"] @@ -111302,8 +111301,8 @@ paths: /v1/ads/conversions/goals: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdConversionGoals tags: [Conversions] x-platforms: ["google"] @@ -111344,8 +111343,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdConversionGoals tags: [Conversions] x-platforms: ["google"] @@ -111390,8 +111389,8 @@ paths: /v1/ads/conversions/actions/{actionId}: patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateConversionAction tags: [Conversions] x-platforms: ["google"] @@ -111472,8 +111471,8 @@ paths: /v1/ads/conversions/custom-goals: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listCustomConversionGoals tags: [Conversions] x-platforms: ["google"] @@ -111507,8 +111506,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createCustomConversionGoal tags: [Conversions] x-platforms: ["google"] @@ -111553,8 +111552,8 @@ paths: /v1/ads/conversions/custom-goals/{goalId}: patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCustomConversionGoal tags: [Conversions] x-platforms: ["google"] @@ -111599,8 +111598,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: Only available on Google Ads accounts } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeCustomConversionGoal tags: [Conversions] x-platforms: ["google"] @@ -111636,8 +111635,8 @@ paths: /v1/events: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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] @@ -111737,8 +111736,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["ads:write"] 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] @@ -111881,8 +111880,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/events/paths: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getConversionPaths tags: [Conversions] summary: List the touch paths that lead to conversions @@ -111922,8 +111921,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/survey: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getSurveyAnswers tags: [Conversions] summary: Get post-purchase survey answers @@ -111973,8 +111972,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/ltv: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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 @@ -112021,8 +112020,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } /v1/events/accuracy: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getEventsAccuracy tags: [Conversions] summary: Get delivery accuracy per destination @@ -112105,8 +112104,8 @@ paths: '403': { description: 'No ads access on the account (`ads_addon_required`).' } /v1/events/overview: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getEventsOverview tags: [Conversions] summary: Get today's tracking overview @@ -112229,8 +112228,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/overview/daily: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getEventsOverviewDaily tags: [Conversions] summary: Get daily tracking figures @@ -112382,8 +112381,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/names: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listEventNames tags: [Conversions] summary: List stored event names @@ -112420,8 +112419,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/{eventId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getEvent tags: [Conversions] summary: Get one stored event and its deliveries @@ -112501,8 +112500,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: restateEvent tags: [Conversions] summary: Change a stored event's value @@ -112547,8 +112546,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: retractEvent tags: [Conversions] summary: Retract a stored event @@ -112587,8 +112586,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/destinations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listEventDestinations tags: [Conversions] deprecated: true @@ -112616,8 +112615,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createEventDestination tags: [Conversions] deprecated: true @@ -112661,8 +112660,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/events/destinations/{destinationId}: delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteEventDestination tags: [Conversions] deprecated: true @@ -112689,8 +112688,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/events/forwarding-rules: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listForwardingRules tags: [Conversions] summary: List forwarding rules @@ -112717,8 +112716,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["ads:write"] 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] @@ -112780,8 +112779,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/events/forwarding-rules/{ruleId}: patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateForwardingRule tags: [Conversions] summary: Update a forwarding rule @@ -112830,8 +112829,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteForwardingRule tags: [Conversions] summary: Remove a forwarding rule @@ -112858,8 +112857,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-sites: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingSites tags: [Conversions] summary: List tracking sites @@ -112895,8 +112894,8 @@ paths: '400': { $ref: '#/components/responses/BadRequest' } '401': { $ref: '#/components/responses/Unauthorized' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createTrackingSite tags: [Conversions] summary: Turn on server-side tracking for a website @@ -112965,8 +112964,8 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingSite tags: [Conversions] summary: Get a tracking site @@ -112990,8 +112989,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateTrackingSite tags: [Conversions] summary: Update a tracking site @@ -113081,8 +113080,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteTrackingSite tags: [Conversions] summary: Delete a tracking site @@ -113097,8 +113096,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-sites/{siteId}/rotate-key: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: rotateTrackingSiteKey tags: [Conversions] summary: Rotate a tracking site's key @@ -113129,8 +113128,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-sites/{siteId}/proxy-check: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: checkTrackingSiteProxy tags: [Conversions] summary: Check a tracking site's own-domain path @@ -113156,8 +113155,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-links: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingLinks tags: [Tracking links] summary: List tracking links @@ -113197,8 +113196,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: createTrackingLink tags: [Tracking links] summary: Create a tracking link @@ -113254,8 +113253,8 @@ paths: required: true schema: { type: string } get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingLink tags: [Tracking links] summary: Get a tracking link @@ -113279,8 +113278,8 @@ paths: application/json: schema: { $ref: '#/components/schemas/ErrorResponse' } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: updateTrackingLink tags: [Tracking links] summary: Update a tracking link @@ -113323,8 +113322,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { $ref: '#/components/responses/NotFound' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: deleteTrackingLink tags: [Tracking links] summary: Delete a tracking link @@ -113339,8 +113338,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-links/{linkId}/rotate-postback-token: post: - x-oauth-scopes: ["ads:write"] x-resource-group: ads + x-oauth-scopes: ["ads:write"] operationId: rotateTrackingLinkPostbackToken tags: [Tracking links] summary: Rotate a tracking link's postback URL @@ -113371,8 +113370,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/tracking-links/{linkId}/stats: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: ads + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingLinkStats tags: [Tracking links] summary: Get a tracking link's results @@ -113408,8 +113407,8 @@ paths: '404': { $ref: '#/components/responses/NotFound' } /v1/ads/campaigns/{campaignId}/conversion-goals: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getCampaignConversionGoals tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -113445,8 +113444,8 @@ paths: '409': { description: 'Campaign matches multiple accessible accounts, or the connection needs reconnecting' } '501': { description: Only available on Google Ads campaigns } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateCampaignConversionGoals tags: ["Ad Campaigns"] x-platforms: ["google"] @@ -113499,8 +113498,8 @@ paths: /v1/ads/conversions/destinations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdConversionDestinations tags: [Conversions] x-platforms: ["meta", "google", "tiktok", "linkedin", "pinterest", "reddit"] @@ -113609,8 +113608,8 @@ paths: description: LinkedIn rate limit hit. Retry with backoff. post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdConversionDestination tags: [Conversions] x-platforms: ["google", "linkedin"] @@ -113778,8 +113777,8 @@ paths: /v1/ads/conversions/destinations/{destinationId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdConversionDestination tags: [Conversions] x-platforms: ["linkedin"] @@ -113820,8 +113819,8 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateAdConversionDestination tags: [Conversions] x-platforms: ["linkedin"] @@ -113901,8 +113900,8 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteAdConversionDestination tags: [Conversions] x-platforms: ["linkedin"] @@ -113940,8 +113939,8 @@ paths: /v1/ads/conversions/destinations/{destinationId}/associations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdConversionAssociations tags: [Conversions] x-platforms: ["linkedin"] @@ -113989,8 +113988,8 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addAdConversionAssociations tags: [Conversions] x-platforms: ["linkedin"] @@ -114057,8 +114056,8 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeAdConversionAssociations tags: [Conversions] x-platforms: ["linkedin"] @@ -114115,8 +114114,8 @@ paths: /v1/ads/conversions/destinations/{destinationId}/metrics: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getAdConversionMetrics tags: [Conversions] x-platforms: ["linkedin"] @@ -114182,8 +114181,8 @@ paths: /v1/ads/conversions/custom-conversions: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listAdCustomConversions tags: [Conversions] x-platforms: ["meta"] @@ -114215,8 +114214,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '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-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createAdCustomConversion tags: [Conversions] x-platforms: ["meta"] @@ -114270,8 +114269,8 @@ paths: /v1/accounts/{accountId}/conversion-destinations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listConversionDestinations deprecated: true tags: [Conversions] @@ -114363,8 +114362,8 @@ paths: description: LinkedIn rate limit hit. Retry with backoff. post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createConversionDestination deprecated: true tags: [Conversions] @@ -114508,8 +114507,8 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getConversionDestination deprecated: true tags: [Conversions] @@ -114548,8 +114547,8 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateConversionDestination deprecated: true tags: [Conversions] @@ -114625,8 +114624,8 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteConversionDestination deprecated: true tags: [Conversions] @@ -114657,8 +114656,8 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listConversionAssociations deprecated: true tags: [Conversions] @@ -114703,8 +114702,8 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addConversionAssociations deprecated: true tags: [Conversions] @@ -114769,8 +114768,8 @@ paths: '429': { x-summary: "The LinkedIn rate limit was reached: retry later with backoff.", description: LinkedIn rate limit hit. Retry with backoff. } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeConversionAssociations deprecated: true tags: [Conversions] @@ -114825,8 +114824,8 @@ paths: /v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getConversionMetrics deprecated: true tags: [Conversions] @@ -114880,8 +114879,8 @@ paths: /v1/whatsapp/conversions: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listWhatsAppConversions tags: [WhatsApp] summary: List conversion events @@ -114950,8 +114949,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: WhatsApp account not found } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: sendWhatsAppConversion tags: [WhatsApp] summary: Send WhatsApp conversion event @@ -115159,8 +115158,8 @@ paths: /v1/ads/messaging: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createMessagingAd tags: ["Messaging Ads"] x-platforms: ["meta"] @@ -115389,8 +115388,8 @@ paths: /v1/ads/call: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createCallAd tags: ["Messaging Ads"] x-platforms: ["meta"] @@ -115474,8 +115473,8 @@ paths: /v1/ads/ctwa: post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createCtwaAd tags: ["Messaging Ads"] x-platforms: ["meta"] @@ -115610,8 +115609,8 @@ paths: /v1/accounts/{accountId}/custom-conversions: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listCustomConversions deprecated: true tags: ["Ad Accounts"] @@ -115643,8 +115642,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '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-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: "accounts" + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createCustomConversion deprecated: true tags: ["Ad Accounts"] @@ -115689,8 +115688,8 @@ paths: /v1/accounts/{accountId}/business-agent: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentStatus tags: [Business Agent] summary: Get agent setup status @@ -115724,8 +115723,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/onboard: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: onboardBusinessAgent tags: [Business Agent] summary: Create the agent @@ -115762,8 +115761,8 @@ paths: '409': { description: 'Meta rejected the state change (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/settings: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentSettings tags: [Business Agent] summary: List agent settings @@ -115789,8 +115788,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } patch: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentSettings tags: [Business Agent] summary: Update agent settings @@ -115848,8 +115847,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/allowlist: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentAllowlist tags: [Business Agent] summary: List allowlisted consumers @@ -115874,8 +115873,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addBusinessAgentAllowlistEntry tags: [Business Agent] summary: Allowlist a consumer @@ -115904,8 +115903,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/allowlist/{entryId}: delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: removeBusinessAgentAllowlistEntry tags: [Business Agent] summary: Remove an allowlisted consumer @@ -115921,8 +115920,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/business-information: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentBusinessInformation tags: [Business Agent] summary: Get business information @@ -115941,8 +115940,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: replaceBusinessAgentBusinessInformation tags: [Business Agent] summary: Replace business information @@ -115966,8 +115965,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: resetBusinessAgentBusinessInformation tags: [Business Agent] summary: Reset business information @@ -115982,8 +115981,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/faqs: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentFaqs tags: [Business Agent] summary: List FAQs @@ -116007,8 +116006,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentFaq tags: [Business Agent] summary: Create a FAQ @@ -116034,8 +116033,8 @@ paths: '409': { description: 'Meta rejected the entry (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/faqs/{faqId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentFaq tags: [Business Agent] summary: Get a FAQ @@ -116054,8 +116053,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentFaq tags: [Business Agent] summary: Update a FAQ @@ -116079,8 +116078,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentFaq tags: [Business Agent] summary: Delete a FAQ @@ -116096,8 +116095,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/websites: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentWebsites tags: [Business Agent] summary: List crawled websites @@ -116121,8 +116120,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: addBusinessAgentWebsite tags: [Business Agent] summary: Add a website to crawl @@ -116147,8 +116146,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/websites/{websiteId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentWebsite tags: [Business Agent] summary: Get a crawled website @@ -116167,8 +116166,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentWebsite tags: [Business Agent] summary: Update a crawled website @@ -116192,8 +116191,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentWebsite tags: [Business Agent] summary: Remove a crawled website @@ -116209,8 +116208,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/files: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentFiles tags: [Business Agent] summary: List knowledge files @@ -116234,8 +116233,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: uploadBusinessAgentFile tags: [Business Agent] summary: Upload a knowledge file @@ -116281,8 +116280,8 @@ paths: '413': { x-summary: "The file is larger than 100 MB: upload a smaller file.", description: 'File larger than 100 MB (code payload_too_large). A multipart body above the request limit is rejected by the host before the route runs.' } /v1/accounts/{accountId}/business-agent/files/{fileId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentFile tags: [Business Agent] summary: Get a knowledge file @@ -116301,8 +116300,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentFile tags: [Business Agent] summary: Delete a knowledge file @@ -116318,8 +116317,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/skills: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentSkills tags: [Business Agent] summary: List skills @@ -116343,8 +116342,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentSkill tags: [Business Agent] summary: Create a skill @@ -116369,8 +116368,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/skills/{skillId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentSkill tags: [Business Agent] summary: Get a skill @@ -116389,8 +116388,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentSkill tags: [Business Agent] summary: Update a skill @@ -116414,8 +116413,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentSkill tags: [Business Agent] summary: Delete a skill @@ -116431,8 +116430,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/ui-skills: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentUiSkills tags: [Business Agent] summary: List UI skills @@ -116461,8 +116460,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentUiSkill tags: [Business Agent] summary: Create a UI skill @@ -116487,8 +116486,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/ui-skills/{uiSkillId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentUiSkill tags: [Business Agent] summary: Get a UI skill @@ -116507,8 +116506,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentUiSkill tags: [Business Agent] summary: Update a UI skill @@ -116532,8 +116531,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentUiSkill tags: [Business Agent] summary: Delete a UI skill @@ -116549,8 +116548,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentConnectors tags: [Business Agent] summary: List connectors @@ -116575,8 +116574,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentConnector tags: [Business Agent] summary: Create a connector @@ -116602,8 +116601,8 @@ paths: '409': { description: 'A connector with that name already exists (code business_agent_conflict).' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentConnector tags: [Business Agent] summary: Get a connector @@ -116622,8 +116621,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentConnector tags: [Business Agent] summary: Update a connector @@ -116647,8 +116646,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentConnector tags: [Business Agent] summary: Delete a connector @@ -116664,8 +116663,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/credentials: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: setBusinessAgentConnectorCredentials tags: [Business Agent] summary: Set connector credentials @@ -116712,8 +116711,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/refresh-tools: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: refreshBusinessAgentConnectorTools tags: [Business Agent] summary: Refresh MCP connector tools @@ -116734,8 +116733,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/logs: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentConnectorLogs tags: [Business Agent] summary: Get connector failure logs @@ -116767,8 +116766,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: listBusinessAgentConnectorTools tags: [Business Agent] summary: List connector tools @@ -116793,8 +116792,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: createBusinessAgentConnectorTool tags: [Business Agent] summary: Create a connector tool @@ -116820,8 +116819,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools/{toolId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentConnectorTool tags: [Business Agent] summary: Get a connector tool @@ -116841,8 +116840,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: updateBusinessAgentConnectorTool tags: [Business Agent] summary: Update a connector tool @@ -116867,8 +116866,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } delete: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: deleteBusinessAgentConnectorTool tags: [Business Agent] summary: Delete a connector tool @@ -116885,8 +116884,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/connectors/{connectorId}/tools/{toolId}/run: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: runBusinessAgentConnectorTool tags: [Business Agent] summary: Run a connector tool once @@ -116921,8 +116920,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/budget: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentBudget tags: [Business Agent] summary: Get usage budgets @@ -116947,8 +116946,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } put: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: replaceBusinessAgentBudget tags: [Business Agent] summary: Replace usage budgets @@ -116985,8 +116984,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/test-messages: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendBusinessAgentTestMessage tags: [Business Agent] summary: Send a test message @@ -117017,8 +117016,8 @@ paths: '429': { description: 'Meta hourly test-message limit reached (code rate_limited, Retry-After when known).' } /v1/accounts/{accountId}/business-agent/events: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: sendBusinessAgentEvent tags: [Business Agent] summary: Send a business event @@ -117055,8 +117054,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/events/{eventId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getBusinessAgentEvent tags: [Business Agent] summary: Get a business event status @@ -117076,8 +117075,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/business-agent/evals: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: readBusinessAgentEvals tags: [Business Agent] summary: Read evaluation data @@ -117102,8 +117101,8 @@ paths: '403': { $ref: '#/components/responses/BusinessAgentForbidden' } '404': { $ref: '#/components/responses/BusinessAgentNotFound' } post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "messages" + x-oauth-scopes: ["messaging:write"] operationId: startBusinessAgentEvalRun tags: [Business Agent] summary: Start an evaluation run @@ -117137,8 +117136,8 @@ paths: '404': { $ref: '#/components/responses/BusinessAgentNotFound' } /v1/accounts/{accountId}/tracking-tags: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -117217,8 +117216,8 @@ paths: '502': { x-summary: "Meta was unreachable or returned an unclassified error: retry the request.", description: 'Meta was unreachable or returned an unclassified error (type: platform_error; the raw Meta payload is in platformError). Retryable.' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createTrackingTag tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest"] @@ -117340,8 +117339,8 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -117414,8 +117413,8 @@ paths: '502': { x-summary: "Meta was unreachable or returned an unclassified error: retry the request.", description: 'Meta was unreachable or returned an unclassified error (type: platform_error; the raw Meta payload is in platformError). Retryable.' } patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateTrackingTag tags: ["Tracking Tags"] x-platforms: ["meta", "tiktok", "google", "x", "openai", "linkedin", "pinterest"] @@ -117528,8 +117527,8 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/shared-accounts: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingTagSharedAccounts tags: ["Tracking Tags"] x-platforms: ["meta", "linkedin", "tiktok"] @@ -117572,8 +117571,8 @@ paths: '502': { x-summary: "Meta was unreachable or returned an unclassified error: retry the request.", description: 'Meta was unreachable or returned an unclassified error (type: platform_error; the raw Meta payload is in platformError). Retryable.' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: addTrackingTagSharedAccount tags: ["Tracking Tags"] x-platforms: ["meta", "linkedin", "tiktok"] @@ -117631,8 +117630,8 @@ paths: '502': { x-summary: "Meta was unreachable or returned an unclassified error: retry the request.", description: 'Meta was unreachable or returned an unclassified error (type: platform_error; the raw Meta payload is in platformError). Retryable.' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeTrackingTagSharedAccount tags: ["Tracking Tags"] x-platforms: ["meta", "linkedin", "tiktok"] @@ -117668,8 +117667,8 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/install: post: - x-oauth-scopes: ["ads:write"] 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"] @@ -117862,8 +117861,8 @@ paths: reason: { $ref: '#/components/schemas/TrackingTagInstallBlockedReason' } '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-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -117929,8 +117928,8 @@ paths: '501': { description: 'The platform does not offer this operation (code `platform_not_supported`); the message names the reason and the alternative.' } '409': { $ref: '#/components/responses/StoreReconnectRequired' } delete: - x-oauth-scopes: ["ads:write"] 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"] @@ -117980,8 +117979,8 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/events: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -118069,8 +118068,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: 'The platform has no conversion-event objects (code `platform_not_supported`); the message names the alternative.' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: createTrackingTagEvent tags: ["Tracking Tags"] x-platforms: ["meta", "google", "tiktok", "linkedin", "x", "openai", "pinterest"] @@ -118189,8 +118188,8 @@ paths: '501': { description: 'The platform cannot create conversion events through its API (code `platform_not_supported`).' } /v1/accounts/{accountId}/tracking-tags/{tagId}/events/{eventId}: patch: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: updateTrackingTagEvent tags: ["Tracking Tags"] x-platforms: ["meta", "google", "tiktok", "linkedin", "x", "openai", "pinterest"] @@ -118253,8 +118252,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: 'The platform cannot update conversion events through its API (code `platform_not_supported`).' } delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: deleteTrackingTagEvent tags: ["Tracking Tags"] x-platforms: ["meta", "google", "tiktok", "linkedin", "x", "openai", "pinterest"] @@ -118317,8 +118316,8 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/users: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingTagUsers tags: ["Tracking Tags"] x-platforms: ["meta"] @@ -118357,8 +118356,8 @@ paths: '409': { $ref: '#/components/responses/AccountConnectionRequired' } '501': { description: 'The platform has no tag user assignment (code `platform_not_supported`).' } post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: assignTrackingTagUser tags: ["Tracking Tags"] x-platforms: ["meta"] @@ -118407,8 +118406,8 @@ paths: '501': { description: 'The platform has no tag user assignment (code `platform_not_supported`).' } /v1/accounts/{accountId}/tracking-tags/{tagId}/users/{userId}: delete: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: removeTrackingTagUser tags: ["Tracking Tags"] x-platforms: [] @@ -118444,8 +118443,8 @@ paths: '501': { description: 'The platform cannot remove tag users through its API (code `platform_not_supported`); the message says where to do it.' } /v1/accounts/{accountId}/tracking-tags/{tagId}/partners: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: listTrackingTagPartners tags: ["Tracking Tags"] x-platforms: ["meta"] @@ -118484,8 +118483,8 @@ paths: '501': { description: 'The platform has no partner sharing (code `platform_not_supported`).' } /v1/accounts/{accountId}/tracking-tags/{tagId}/diagnostics: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getTrackingTagDiagnostics tags: ["Tracking Tags"] x-platforms: ["meta"] @@ -118524,8 +118523,8 @@ paths: /v1/accounts/{accountId}/tracking-tags/{tagId}/stats: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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"] @@ -118647,8 +118646,8 @@ paths: /v1/accounts/{accountId}/blogs: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listBlogs tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -118693,8 +118692,8 @@ paths: '502': { description: 'The connected platform returned an unclassified upstream error.' } post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: createBlog tags: ["Blogs"] x-platforms: ["shopify"] @@ -118738,8 +118737,8 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getBlog tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -118773,8 +118772,8 @@ paths: '502': { description: 'The connected platform returned an unclassified upstream error.' } patch: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: updateBlog tags: ["Blogs"] x-platforms: ["shopify"] @@ -118818,8 +118817,8 @@ paths: '429': { x-summary: "Zernio or Shopify rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by Shopify. Retry later.' } delete: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: deleteBlog tags: ["Blogs"] x-platforms: ["shopify"] @@ -118846,8 +118845,8 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}/articles: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: listBlogArticles tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -118900,8 +118899,8 @@ paths: '502': { description: 'The connected platform returned an unclassified upstream error.' } post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: createBlogArticle tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -119006,8 +119005,8 @@ paths: /v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}: get: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: getBlogArticle tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -119044,8 +119043,8 @@ paths: '502': { description: 'The connected platform returned an unclassified upstream error.' } patch: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: updateBlogArticle tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -119124,8 +119123,8 @@ paths: '502': { x-summary: "The connected platform returned an unclassified upstream error: check the article state before repeating the request.", description: 'The connected platform returned an unclassified upstream error. Article mutations are not blindly retried.' } delete: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: deleteBlogArticle tags: ["Blogs"] x-platforms: ["shopify", "wordpress", "wix", "webflow"] @@ -119157,8 +119156,8 @@ paths: /v1/accounts/{accountId}/products: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listProducts deprecated: true tags: ["Products"] @@ -119206,8 +119205,8 @@ paths: /v1/accounts/{accountId}/products/{productId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getProduct deprecated: true tags: ["Products"] @@ -119242,8 +119241,8 @@ paths: '429': { x-summary: "Zernio or Shopify rate limited the request: retry later.", description: 'Rate limited, either by Zernio or by Shopify. Retry later.' } patch: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateProduct deprecated: true tags: ["Products"] @@ -119336,8 +119335,8 @@ paths: /v1/commerce/store: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceStore tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -119372,8 +119371,8 @@ paths: /v1/commerce/orders: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: listCommerceOrders tags: - Commerce @@ -119494,8 +119493,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/orders/{orderId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: getCommerceOrder tags: - Commerce @@ -119545,8 +119544,8 @@ paths: 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-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceOrder tags: - Commerce @@ -119616,8 +119615,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/orders/{orderId}/refunds: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: createCommerceRefund tags: - Commerce @@ -119694,8 +119693,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/orders/{orderId}/edits: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: createCommerceOrderEdit tags: - Commerce @@ -119783,8 +119782,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/orders/{orderId}/cancel: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: cancelCommerceOrder tags: - Commerce @@ -119851,8 +119850,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/draft-orders: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: createCommerceDraftOrder tags: - Commerce @@ -119954,8 +119953,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/draft-orders/{draftOrderId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: getCommerceDraftOrder tags: - Commerce @@ -120002,8 +120001,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/draft-orders/{draftOrderId}/invoice: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: sendCommerceDraftOrderInvoice tags: - Commerce @@ -120056,8 +120055,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/customers: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: listCommerceCustomers tags: - Commerce @@ -120134,8 +120133,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/customers/{customerId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: commerce + x-oauth-scopes: ["commerce:write"] operationId: getCommerceCustomer tags: - Commerce @@ -120182,8 +120181,8 @@ paths: description: Rate limited, either by Zernio or by the platform. Retry later. /v1/commerce/products: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceProducts tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120221,8 +120220,8 @@ paths: '404': { description: 'Account not found or not accessible (code account_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceProduct tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120319,8 +120318,8 @@ paths: /v1/commerce/products/state: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceProductState tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120366,8 +120365,8 @@ paths: /v1/commerce/products/{productId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceProduct tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120392,8 +120391,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or product not found (code product_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceProduct tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120443,8 +120442,8 @@ paths: /v1/commerce/products/{productId}/price: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceProductPrices tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120501,8 +120500,8 @@ paths: /v1/commerce/collections: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceCollections tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120535,8 +120534,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or collection not found (code resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceCollection tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120589,8 +120588,8 @@ paths: /v1/commerce/collections/{collectionId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceCollection tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120616,8 +120615,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or collection not found (code resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceCollection tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120666,8 +120665,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or collection not found (code resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceCollection tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120696,8 +120695,8 @@ paths: /v1/commerce/collections/{collectionId}/products: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceCollectionProducts tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120741,8 +120740,8 @@ paths: /v1/commerce/products/{productId}/variants: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceProductVariants tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120802,8 +120801,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceProductVariants tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120832,8 +120831,8 @@ paths: /v1/commerce/products/{productId}/options: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceProductOptions tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120879,8 +120878,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceProductOptions tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120910,8 +120909,8 @@ paths: /v1/commerce/products/{productId}/images: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: addCommerceProductImages tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120956,8 +120955,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: removeCommerceProductImages tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -120987,8 +120986,8 @@ paths: /v1/commerce/products/{productId}/images/reorder: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: reorderCommerceProductImages tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121026,8 +121025,8 @@ paths: /v1/commerce/products/{productId}/duplicate: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: duplicateCommerceProduct tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121067,8 +121066,8 @@ paths: /v1/commerce/products/{productId}/metafields: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceProductMetafields tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121094,8 +121093,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: setCommerceProductMetafields tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121135,8 +121134,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceProductMetafields tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121165,8 +121164,8 @@ paths: /v1/commerce/products/{productId}/channels: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceProductChannels tags: ["Commerce"] x-platforms: ["shopify"] @@ -121207,8 +121206,8 @@ paths: /v1/commerce/collections/{collectionId}/metafields: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceCollectionMetafields tags: ["Commerce"] x-platforms: ["shopify"] @@ -121234,8 +121233,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: setCommerceCollectionMetafields tags: ["Commerce"] x-platforms: ["shopify"] @@ -121275,8 +121274,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceCollectionMetafields tags: ["Commerce"] x-platforms: ["shopify"] @@ -121305,8 +121304,8 @@ paths: /v1/commerce/collections/{collectionId}/channels: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceCollectionChannels tags: ["Commerce"] x-platforms: ["shopify"] @@ -121347,8 +121346,8 @@ paths: /v1/commerce/products/tags: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceProductTags tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121393,8 +121392,8 @@ paths: /v1/commerce/collections/{collectionId}/reorder: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: reorderCommerceCollectionProducts tags: ["Commerce"] x-platforms: ["shopify"] @@ -121441,8 +121440,8 @@ paths: /v1/commerce/pages: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommercePages tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121471,8 +121470,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommercePage tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121510,8 +121509,8 @@ paths: /v1/commerce/pages/{pageId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommercePage tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121537,8 +121536,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommercePage tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121576,8 +121575,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommercePage tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121606,8 +121605,8 @@ paths: /v1/commerce/locations: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceLocations tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121635,8 +121634,8 @@ paths: /v1/commerce/inventory: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceInventory tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121665,8 +121664,8 @@ paths: /v1/commerce/products/{productId}/inventory: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: changeCommerceInventory tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121715,8 +121714,8 @@ paths: /v1/commerce/channels: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceChannels tags: ["Commerce"] x-platforms: ["shopify"] @@ -121744,8 +121743,8 @@ paths: /v1/commerce/discounts: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceDiscounts tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121774,8 +121773,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceDiscount tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121828,8 +121827,8 @@ paths: /v1/commerce/discounts/{discountId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceDiscount tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121855,8 +121854,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceDiscount tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121902,8 +121901,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceDiscount tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121932,8 +121931,8 @@ paths: /v1/commerce/discounts/{discountId}/state: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: setCommerceDiscountActive tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -121971,8 +121970,8 @@ paths: /v1/commerce/discounts/{discountId}/codes: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: addCommerceDiscountCodes tags: ["Commerce"] x-platforms: ["shopify"] @@ -122010,8 +122009,8 @@ paths: /v1/commerce/redirects: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceRedirects tags: ["Commerce"] x-platforms: ["shopify"] @@ -122040,8 +122039,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceRedirect tags: ["Commerce"] x-platforms: ["shopify"] @@ -122077,8 +122076,8 @@ paths: /v1/commerce/redirects/{redirectId}: patch: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceRedirect tags: ["Commerce"] x-platforms: ["shopify"] @@ -122114,8 +122113,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceRedirect tags: ["Commerce"] x-platforms: ["shopify"] @@ -122144,8 +122143,8 @@ paths: /v1/commerce/menus: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceMenus tags: ["Commerce"] x-platforms: ["shopify"] @@ -122170,8 +122169,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceMenu tags: ["Commerce"] x-platforms: ["shopify"] @@ -122211,8 +122210,8 @@ paths: /v1/commerce/menus/{menuId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceMenu tags: ["Commerce"] x-platforms: ["shopify"] @@ -122238,8 +122237,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceMenu tags: ["Commerce"] x-platforms: ["shopify"] @@ -122280,8 +122279,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceMenu tags: ["Commerce"] x-platforms: ["shopify"] @@ -122310,8 +122309,8 @@ paths: /v1/commerce/metaobject-definitions: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceMetaobjectDefinitions tags: ["Commerce"] x-platforms: ["shopify"] @@ -122339,8 +122338,8 @@ paths: /v1/commerce/metaobjects: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceMetaobjects tags: ["Commerce"] x-platforms: ["shopify"] @@ -122369,8 +122368,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceMetaobject tags: ["Commerce"] x-platforms: ["shopify"] @@ -122416,8 +122415,8 @@ paths: /v1/commerce/metaobjects/{metaobjectId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceMetaobject tags: ["Commerce"] x-platforms: ["shopify"] @@ -122443,8 +122442,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: updateCommerceMetaobject tags: ["Commerce"] x-platforms: ["shopify"] @@ -122490,8 +122489,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceMetaobject tags: ["Commerce"] x-platforms: ["shopify"] @@ -122520,8 +122519,8 @@ paths: /v1/commerce/markets: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceMarkets tags: ["Commerce"] x-platforms: ["shopify"] @@ -122549,8 +122548,8 @@ paths: /v1/commerce/price-lists: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommercePriceLists tags: ["Commerce"] x-platforms: ["shopify"] @@ -122578,8 +122577,8 @@ paths: /v1/commerce/price-lists/{priceListId}/prices: put: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: setCommercePriceListPrices tags: ["Commerce"] x-platforms: ["shopify"] @@ -122626,8 +122625,8 @@ paths: '404': { description: 'Account not found (code account_not_found) or the resource was not found (code product_not_found or resource_not_found).' } '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-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommercePriceListPrices tags: ["Commerce"] x-platforms: ["shopify"] @@ -122658,8 +122657,8 @@ paths: /v1/commerce/marketing-activities: put: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: upsertCommerceMarketingActivity tags: ["Commerce"] x-platforms: ["shopify"] @@ -122721,8 +122720,8 @@ paths: /v1/commerce/marketing-activities/{remoteId}: delete: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceMarketingActivity tags: ["Commerce"] x-platforms: ["shopify"] @@ -122751,8 +122750,8 @@ paths: /v1/commerce/marketing-activities/{remoteId}/engagements: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: addCommerceMarketingEngagement tags: ["Commerce"] x-platforms: ["shopify"] @@ -122798,8 +122797,8 @@ paths: /v1/commerce/catalog-syncs: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: listCommerceCatalogSyncs tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -122824,8 +122823,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: 'Account not found or not accessible (code account_not_found).' } post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: createCommerceCatalogSync tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -122876,8 +122875,8 @@ paths: /v1/commerce/catalog-syncs/{syncId}: get: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: getCommerceCatalogSync tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -122900,8 +122899,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '404': { description: 'Catalog sync not found (code resource_not_found).' } delete: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: deleteCommerceCatalogSync tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -122927,8 +122926,8 @@ paths: /v1/commerce/catalog-syncs/{syncId}/run: post: - x-oauth-scopes: ["commerce:write"] x-resource-group: "commerce" + x-oauth-scopes: ["commerce:write"] operationId: runCommerceCatalogSync tags: ["Commerce"] x-platforms: ["shopify", "woocommerce"] @@ -122954,8 +122953,8 @@ paths: /v1/verify/verifications: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: createVerification tags: [Verify] summary: Send a verification code @@ -123020,8 +123019,8 @@ paths: /v1/verify/verifications/{verificationId}: get: - x-oauth-scopes: ["messaging:write", "messaging:read"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write", "messaging:read"] operationId: getVerification tags: [Verify] summary: Get a verification @@ -123046,8 +123045,8 @@ paths: /v1/verify/verifications/{verificationId}/check: post: - x-oauth-scopes: ["messaging:write"] x-resource-group: "telephony" + x-oauth-scopes: ["messaging:write"] operationId: checkVerification tags: [Verify] summary: Check a verification code @@ -123088,8 +123087,8 @@ paths: /v1/ads/pixels: get: - x-oauth-scopes: ["ads:write", "ads:read"] 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.' @@ -123180,8 +123179,8 @@ paths: description: 'Pixel Management permission is missing (code reconnect_required). Reconnect TikTok Ads to grant it.' /v1/ads/partnership-content: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: 'listPartnershipAdContent' summary: 'List partnership ad content' description: | @@ -123256,8 +123255,8 @@ paths: description: 'The advertiser Instagram Business Account could not be resolved.' /v1/ads/partnership-permissions: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: 'listPartnershipAdPermissions' summary: 'List partnership permissions' description: | @@ -123306,8 +123305,8 @@ paths: "422": description: 'The advertiser Instagram Business Account could not be resolved.' post: - x-oauth-scopes: ["ads:write"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write"] operationId: 'setPartnershipAdPermission' summary: 'Set partnership permission' description: | @@ -123364,8 +123363,8 @@ paths: description: 'The advertiser Instagram Business Account could not be resolved.' /v1/media/prepare: post: - x-oauth-scopes: ["posts:read", "posts:write"] x-resource-group: "publishing" + x-oauth-scopes: ["posts:read", "posts:write"] operationId: prepareMedia tags: [Media] summary: Prepare media for a platform @@ -123558,8 +123557,8 @@ paths: /v1/conversion-audit/meta-audit: get: - x-oauth-scopes: ["ads:write", "ads:read"] x-resource-group: "ads" + x-oauth-scopes: ["ads:write", "ads:read"] operationId: getMetaConversionAudit tags: [Conversion Audit] x-platforms: [meta] @@ -123643,8 +123642,8 @@ paths: /v1/conversion-audit/monitors: get: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: listConversionAuditMonitors tags: - Conversion Audit @@ -123671,8 +123670,8 @@ paths: '401': { $ref: '#/components/responses/Unauthorized' } '403': { $ref: '#/components/responses/ResourceGroupForbidden' } post: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: createConversionAuditMonitor tags: - Conversion Audit @@ -123730,8 +123729,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/conversion-audit/monitors/{monitorId}: delete: - x-oauth-scopes: ["accounts:read", "accounts:write"] x-resource-group: accounts + x-oauth-scopes: ["accounts:read", "accounts:write"] operationId: deleteConversionAuditMonitor tags: - Conversion Audit @@ -123837,8 +123836,8 @@ paths: $ref: '#/components/responses/RateLimited' /v1/creator-campaigns: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCreatorCampaign tags: [Creator Campaigns] summary: Create creator campaign @@ -123875,8 +123874,8 @@ paths: '409': { $ref: '#/components/responses/IdempotencyKeyInFlight' } '422': { $ref: '#/components/responses/IdempotencyKeyReused' } get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCreatorCampaigns tags: [Creator Campaigns] summary: List creator campaigns @@ -123920,8 +123919,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCreatorCampaign tags: [Creator Campaigns] summary: Get creator campaign @@ -123949,8 +123948,8 @@ paths: '403': { $ref: '#/components/responses/CreatorCampaignForbidden' } '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } patch: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: updateCreatorCampaign tags: [Creator Campaigns] summary: Update creator campaign @@ -123989,8 +123988,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/budget: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: raiseCreatorCampaignBudget tags: [Creator Campaigns] summary: Raise creator campaign budget @@ -124037,8 +124036,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/activate: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: activateCreatorCampaign tags: [Creator Campaigns] summary: Activate creator campaign @@ -124070,8 +124069,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/pause: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: pauseCreatorCampaign tags: [Creator Campaigns] summary: Pause creator campaign @@ -124102,8 +124101,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/close: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: closeCreatorCampaign tags: [Creator Campaigns] summary: Close creator campaign @@ -124137,8 +124136,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCampaignParticipant tags: [Creator Campaigns] summary: Invite campaign participant @@ -124192,8 +124191,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } '422': { $ref: '#/components/responses/IdempotencyKeyReused' } get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignParticipants tags: [Creator Campaigns] summary: List campaign participants @@ -124234,8 +124233,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/participants/{participantId}: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignParticipant tags: [Creator Campaigns] summary: Get campaign participant @@ -124269,8 +124268,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/approve: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: approveCampaignParticipant tags: [Creator Campaigns] summary: Approve pending campaign participant @@ -124317,8 +124316,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/deny: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: denyCampaignParticipant tags: [Creator Campaigns] summary: Deny pending campaign participant @@ -124354,8 +124353,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/suspend: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: suspendCampaignParticipant tags: [Creator Campaigns] summary: Suspend campaign participant @@ -124390,8 +124389,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/reinstate: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: reinstateCampaignParticipant tags: [Creator Campaigns] summary: Reinstate campaign participant @@ -124426,8 +124425,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/remove: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: removeCampaignParticipant tags: [Creator Campaigns] summary: Remove campaign participant @@ -124463,8 +124462,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/move: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: moveCampaignParticipant tags: [Creator Campaigns] summary: Move participant to another campaign @@ -124525,8 +124524,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/resend-invite: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: resendCampaignParticipantInvite tags: [Creator Campaigns] summary: Resend campaign participant invite @@ -124567,8 +124566,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/participants/{participantId}/settle: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: settleCampaignParticipant tags: [Creator Campaigns] summary: Settle campaign participant @@ -124629,8 +124628,8 @@ paths: schema: { type: string } description: Campaign ID. post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCampaignPayoutBatch tags: [Creator Campaigns] summary: Pay creators with one card payment @@ -124711,8 +124710,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } '429': { $ref: '#/components/responses/PaymentAttemptsLimited' } get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignPayoutBatches tags: [Creator Campaigns] summary: List payout batches @@ -124743,8 +124742,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/payout-batches/preview: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: previewCampaignPayoutBatch tags: [Creator Campaigns] summary: Preview a payout batch @@ -124792,8 +124791,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/invite-link: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCampaignInviteLink tags: [Creator Campaigns] summary: Create campaign invite link @@ -124825,8 +124824,8 @@ paths: '409': { $ref: '#/components/responses/CreatorCampaignConflict' } /v1/creator-campaigns/{campaignId}/submissions: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignSubmissions tags: [Creator Campaigns] summary: List campaign submissions @@ -124895,8 +124894,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/submissions/{submissionId}: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignSubmission tags: [Creator Campaigns] summary: Get campaign submission @@ -124930,8 +124929,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/approve: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: approveCampaignSubmission tags: [Creator Campaigns] summary: Approve campaign submission @@ -124986,8 +124985,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reject: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: rejectCampaignSubmission tags: [Creator Campaigns] summary: Reject campaign submission @@ -125035,8 +125034,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reopen: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: reopenCampaignSubmission tags: [Creator Campaigns] summary: Reopen campaign submission @@ -125084,8 +125083,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/drafts: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignDrafts tags: [Creator Campaigns] summary: List campaign drafts @@ -125133,8 +125132,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/drafts/{draftId}: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignDraft tags: [Creator Campaigns] summary: Get campaign draft @@ -125172,8 +125171,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/drafts/{draftId}/approve: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: approveCampaignDraft tags: [Creator Campaigns] summary: Approve campaign draft @@ -125212,8 +125211,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/drafts/{draftId}/request-revision: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: requestCampaignDraftRevision tags: [Creator Campaigns] summary: Request changes on a campaign draft @@ -125272,8 +125271,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/drafts/{draftId}/reject: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: rejectCampaignDraft tags: [Creator Campaigns] summary: Reject campaign draft @@ -125321,8 +125320,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/samples: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignSamples tags: [Creator Campaigns] summary: List campaign sample requests @@ -125368,8 +125367,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/samples/{sampleId}/approve: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: approveCampaignSample tags: [Creator Campaigns] summary: Approve campaign sample request @@ -125421,8 +125420,8 @@ paths: schema: { $ref: '#/components/schemas/ErrorResponse' } /v1/creator-campaigns/{campaignId}/samples/{sampleId}/decline: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: declineCampaignSample tags: [Creator Campaigns] summary: Decline campaign sample request @@ -125468,8 +125467,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/samples/{sampleId}/ship: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: shipCampaignSample tags: [Creator Campaigns] summary: Mark campaign sample shipped @@ -125515,8 +125514,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/payables: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignPayables tags: [Creator Campaigns] summary: List campaign payables @@ -125548,8 +125547,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/adjustments: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: createCampaignAdjustment tags: [Creator Campaigns] summary: Create campaign adjustment @@ -125594,8 +125593,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/ledger: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignLedger tags: [Creator Campaigns] summary: List campaign ledger @@ -125654,8 +125653,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/orders: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: listCampaignOrders tags: [Creator Campaigns] summary: List campaign orders @@ -125736,8 +125735,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/report: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignReport tags: [Creator Campaigns] summary: Get campaign report @@ -125767,8 +125766,8 @@ paths: '404': { $ref: '#/components/responses/CreatorCampaignNotFound' } /v1/creator-campaigns/{campaignId}/ads/launch: post: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: launchCampaignAds tags: [Creator Campaigns] summary: Launch campaign posts as ads @@ -125849,8 +125848,8 @@ paths: '422': { $ref: '#/components/responses/IdempotencyKeyReused' } /v1/creator-campaigns/{campaignId}/ad-results: get: - x-oauth-scopes: ["campaigns:write"] x-resource-group: "creator_campaigns" + x-oauth-scopes: ["campaigns:write"] operationId: getCampaignAdResults tags: [Creator Campaigns] summary: Get campaign ad results diff --git a/src/late/mcp/generated_tools.py b/src/late/mcp/generated_tools.py index f3f123af..173736b5 100644 --- a/src/late/mcp/generated_tools.py +++ b/src/late/mcp/generated_tools.py @@ -61301,6 +61301,10 @@ def workspaces_create_workspace_api_key( "ads:read", "ads:write", ), + "automations_get_automation_run": ( + "ads:read", + "ads:write", + ), "automations_get_automation_template": ( "ads:read", "ads:write", @@ -61328,6 +61332,10 @@ def workspaces_create_workspace_api_key( "ads:read", "ads:write", ), + "automations_list_automation_runs": ( + "ads:read", + "ads:write", + ), "automations_list_automation_templates": ( "ads:read", "ads:write", @@ -62356,9 +62364,6 @@ def workspaces_create_workspace_api_key( "creator_campaigns_ship_campaign_sample": ("campaigns:write",), "creator_campaigns_suspend_campaign_participant": ("campaigns:write",), "creator_campaigns_update_creator_campaign": ("campaigns:write",), - "creator_portal_get_creator_payout_statement": ("money:write",), - "creator_portal_get_creator_payouts": ("money:write",), - "creator_portal_get_creator_portal": ("money:write",), "crm_create_crm_activity": ("automations:write",), "crm_create_crm_contact": ("automations:write",), "crm_get_crm_contact": (