naftiko: 1.0.0-alpha2 info: label: Snapchat Ads API — Campaigns description: 'Snapchat Ads API — Campaigns. 5 operations. Lead operation: List All Campaigns for an Ad Account. Self-contained Naftiko capability covering one Snapchat business surface.' tags: - Snapchat - Campaigns created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SNAPCHAT_API_KEY: SNAPCHAT_API_KEY capability: consumes: - type: http namespace: ads-campaigns baseUri: https://adsapi.snapchat.com/v1 description: Snapchat Ads API — Campaigns business capability. Self-contained, no shared references. resources: - name: adaccounts-ad_account_id-campaigns path: /adaccounts/{ad_account_id}/campaigns operations: - name: listcampaigns method: GET description: List All Campaigns for an Ad Account outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcampaign method: POST description: Create a Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: campaigns-campaign_id path: /campaigns/{campaign_id} operations: - name: getcampaign method: GET description: Get a Specific Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecampaign method: PUT description: Update a Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletecampaign method: DELETE description: Delete a Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SNAPCHAT_API_KEY}}' exposes: - type: rest namespace: ads-campaigns-rest port: 8080 description: REST adapter for Snapchat Ads API — Campaigns. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/adaccounts/{ad-account-id}/campaigns name: adaccounts-ad-account-id-campaigns description: REST surface for adaccounts-ad_account_id-campaigns. operations: - method: GET name: listcampaigns description: List All Campaigns for an Ad Account call: ads-campaigns.listcampaigns outputParameters: - type: object mapping: $. - method: POST name: createcampaign description: Create a Campaign call: ads-campaigns.createcampaign with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/campaigns/{campaign-id} name: campaigns-campaign-id description: REST surface for campaigns-campaign_id. operations: - method: GET name: getcampaign description: Get a Specific Campaign call: ads-campaigns.getcampaign outputParameters: - type: object mapping: $. - method: PUT name: updatecampaign description: Update a Campaign call: ads-campaigns.updatecampaign with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecampaign description: Delete a Campaign call: ads-campaigns.deletecampaign outputParameters: - type: object mapping: $. - type: mcp namespace: ads-campaigns-mcp port: 9090 transport: http description: MCP adapter for Snapchat Ads API — Campaigns. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-campaigns-ad-account description: List All Campaigns for an Ad Account hints: readOnly: true destructive: false idempotent: true call: ads-campaigns.listcampaigns outputParameters: - type: object mapping: $. - name: create-campaign description: Create a Campaign hints: readOnly: false destructive: false idempotent: false call: ads-campaigns.createcampaign with: body: tools.body outputParameters: - type: object mapping: $. - name: get-specific-campaign description: Get a Specific Campaign hints: readOnly: true destructive: false idempotent: true call: ads-campaigns.getcampaign outputParameters: - type: object mapping: $. - name: update-campaign description: Update a Campaign hints: readOnly: false destructive: false idempotent: true call: ads-campaigns.updatecampaign with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-campaign description: Delete a Campaign hints: readOnly: false destructive: true idempotent: true call: ads-campaigns.deletecampaign outputParameters: - type: object mapping: $.