naftiko: 1.0.0-alpha2 info: label: Airbnb Homes API — Photos description: 'Airbnb Homes API — Photos. 3 operations. Lead operation: List Listing Photos. Self-contained Naftiko capability covering one Airbnb business surface.' tags: - Airbnb - Photos created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AIRBNB_API_KEY: AIRBNB_API_KEY capability: consumes: - type: http namespace: homes-photos baseUri: https://api.airbnb.com/v2 description: Airbnb Homes API — Photos business capability. Self-contained, no shared references. resources: - name: listings-listing_id-photos path: /listings/{listing_id}/photos operations: - name: listlistingphotos method: GET description: List Listing Photos outputRawFormat: json outputParameters: - name: result type: object value: $. - name: uploadlistingphoto method: POST description: Upload a Listing Photo outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listings-listing_id-photos-photo_id path: /listings/{listing_id}/photos/{photo_id} operations: - name: deletelistingphoto method: DELETE description: Delete a Listing Photo outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.AIRBNB_API_KEY}}' exposes: - type: rest namespace: homes-photos-rest port: 8080 description: REST adapter for Airbnb Homes API — Photos. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/listings/{listing-id}/photos name: listings-listing-id-photos description: REST surface for listings-listing_id-photos. operations: - method: GET name: listlistingphotos description: List Listing Photos call: homes-photos.listlistingphotos outputParameters: - type: object mapping: $. - method: POST name: uploadlistingphoto description: Upload a Listing Photo call: homes-photos.uploadlistingphoto with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/listings/{listing-id}/photos/{photo-id} name: listings-listing-id-photos-photo-id description: REST surface for listings-listing_id-photos-photo_id. operations: - method: DELETE name: deletelistingphoto description: Delete a Listing Photo call: homes-photos.deletelistingphoto outputParameters: - type: object mapping: $. - type: mcp namespace: homes-photos-mcp port: 9090 transport: http description: MCP adapter for Airbnb Homes API — Photos. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-listing-photos description: List Listing Photos hints: readOnly: true destructive: false idempotent: true call: homes-photos.listlistingphotos outputParameters: - type: object mapping: $. - name: upload-listing-photo description: Upload a Listing Photo hints: readOnly: false destructive: false idempotent: false call: homes-photos.uploadlistingphoto with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-listing-photo description: Delete a Listing Photo hints: readOnly: false destructive: true idempotent: true call: homes-photos.deletelistingphoto outputParameters: - type: object mapping: $.