naftiko: 1.0.0-alpha2 info: label: Reddit Ads API — Targeting description: 'Reddit Ads API — Targeting. 3 operations. Lead operation: List Community Targeting Options. Self-contained Naftiko capability covering one Reddit business surface.' tags: - Reddit - Targeting created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: REDDIT_API_KEY: REDDIT_API_KEY capability: consumes: - type: http namespace: ads-targeting baseUri: https://ads-api.reddit.com/api/v3 description: Reddit Ads API — Targeting business capability. Self-contained, no shared references. resources: - name: targeting-communities path: /targeting/communities operations: - name: listtargetingcommunities method: GET description: List Community Targeting Options outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: Search query for filtering communities. - name: targeting-interests path: /targeting/interests operations: - name: listinterests method: GET description: List Interest Targeting Options outputRawFormat: json outputParameters: - name: result type: object value: $. - name: targeting-locations path: /targeting/locations operations: - name: listlocations method: GET description: List Location Targeting Options outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: Search query for filtering locations. authentication: type: bearer token: '{{env.REDDIT_API_KEY}}' exposes: - type: rest namespace: ads-targeting-rest port: 8080 description: REST adapter for Reddit Ads API — Targeting. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/targeting/communities name: targeting-communities description: REST surface for targeting-communities. operations: - method: GET name: listtargetingcommunities description: List Community Targeting Options call: ads-targeting.listtargetingcommunities with: q: rest.q outputParameters: - type: object mapping: $. - path: /v1/targeting/interests name: targeting-interests description: REST surface for targeting-interests. operations: - method: GET name: listinterests description: List Interest Targeting Options call: ads-targeting.listinterests outputParameters: - type: object mapping: $. - path: /v1/targeting/locations name: targeting-locations description: REST surface for targeting-locations. operations: - method: GET name: listlocations description: List Location Targeting Options call: ads-targeting.listlocations with: q: rest.q outputParameters: - type: object mapping: $. - type: mcp namespace: ads-targeting-mcp port: 9090 transport: http description: MCP adapter for Reddit Ads API — Targeting. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-community-targeting-options description: List Community Targeting Options hints: readOnly: true destructive: false idempotent: true call: ads-targeting.listtargetingcommunities with: q: tools.q outputParameters: - type: object mapping: $. - name: list-interest-targeting-options description: List Interest Targeting Options hints: readOnly: true destructive: false idempotent: true call: ads-targeting.listinterests outputParameters: - type: object mapping: $. - name: list-location-targeting-options description: List Location Targeting Options hints: readOnly: true destructive: false idempotent: true call: ads-targeting.listlocations with: q: tools.q outputParameters: - type: object mapping: $.