naftiko: 1.0.0-alpha2 info: label: Barndoor Platform API — Connections description: 'Barndoor Platform API — Connections. 3 operations. Lead operation: Initiate OAuth Connection. Self-contained Naftiko capability covering one Barndoor business surface.' tags: - Barndoor - Connections created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BARNDOOR_API_KEY: BARNDOOR_API_KEY capability: consumes: - type: http namespace: barndoor-connections baseUri: https://{organization_id}.platform.barndoor.ai description: Barndoor Platform API — Connections business capability. Self-contained, no shared references. resources: - name: api-servers-server_id-connect path: /api/servers/{server_id}/connect operations: - name: initiateconnection method: POST description: Initiate OAuth Connection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: server_id in: path type: string description: Server UUID required: true - name: return_url in: query type: string description: Optional return URL after OAuth completion - name: body in: body type: object description: Request body (JSON). required: true - name: api-servers-server_id-connection path: /api/servers/{server_id}/connection operations: - name: deleteconnection method: DELETE description: Delete Connection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: server_id in: path type: string description: Server UUID required: true - name: getconnectionstatus method: GET description: Get Connection Status outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: server_id in: path type: string description: Server UUID required: true authentication: type: bearer token: '{{env.BARNDOOR_API_KEY}}' exposes: - type: rest namespace: barndoor-connections-rest port: 8080 description: REST adapter for Barndoor Platform API — Connections. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/servers/{server-id}/connect name: api-servers-server-id-connect description: REST surface for api-servers-server_id-connect. operations: - method: POST name: initiateconnection description: Initiate OAuth Connection call: barndoor-connections.initiateconnection with: server_id: rest.server_id return_url: rest.return_url body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/servers/{server-id}/connection name: api-servers-server-id-connection description: REST surface for api-servers-server_id-connection. operations: - method: DELETE name: deleteconnection description: Delete Connection call: barndoor-connections.deleteconnection with: server_id: rest.server_id outputParameters: - type: object mapping: $. - method: GET name: getconnectionstatus description: Get Connection Status call: barndoor-connections.getconnectionstatus with: server_id: rest.server_id outputParameters: - type: object mapping: $. - type: mcp namespace: barndoor-connections-mcp port: 9090 transport: http description: MCP adapter for Barndoor Platform API — Connections. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: initiate-oauth-connection description: Initiate OAuth Connection hints: readOnly: false destructive: false idempotent: false call: barndoor-connections.initiateconnection with: server_id: tools.server_id return_url: tools.return_url body: tools.body outputParameters: - type: object mapping: $. - name: delete-connection description: Delete Connection hints: readOnly: false destructive: true idempotent: true call: barndoor-connections.deleteconnection with: server_id: tools.server_id outputParameters: - type: object mapping: $. - name: get-connection-status description: Get Connection Status hints: readOnly: true destructive: false idempotent: true call: barndoor-connections.getconnectionstatus with: server_id: tools.server_id outputParameters: - type: object mapping: $.