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