naftiko: 1.0.0-alpha2 info: label: Tray.ai Platform API — Authentications description: 'Tray.ai Platform API — Authentications. 4 operations. Lead operation: Tray.ai List Authentications. Self-contained Naftiko capability covering one Tray Ai business surface.' tags: - Tray Ai - Authentications created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TRAY_AI_API_KEY: TRAY_AI_API_KEY capability: consumes: - type: http namespace: platform-authentications baseUri: https://api.tray.io/core/v1 description: Tray.ai Platform API — Authentications business capability. Self-contained, no shared references. resources: - name: authentications path: /authentications operations: - name: listauthentications method: GET description: Tray.ai List Authentications outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createauthentication method: POST description: Tray.ai Create Authentication outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: authentications-authenticationId path: /authentications/{authenticationId} operations: - name: getauthentication method: GET description: Tray.ai Get Authentication outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: authenticationId in: path type: string description: The unique identifier for the authentication required: true - name: deleteauthentication method: DELETE description: Tray.ai Delete Authentication outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: authenticationId in: path type: string description: The unique identifier for the authentication required: true authentication: type: bearer token: '{{env.TRAY_AI_API_KEY}}' exposes: - type: rest namespace: platform-authentications-rest port: 8080 description: REST adapter for Tray.ai Platform API — Authentications. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/authentications name: authentications description: REST surface for authentications. operations: - method: GET name: listauthentications description: Tray.ai List Authentications call: platform-authentications.listauthentications outputParameters: - type: object mapping: $. - method: POST name: createauthentication description: Tray.ai Create Authentication call: platform-authentications.createauthentication with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/authentications/{authenticationid} name: authentications-authenticationid description: REST surface for authentications-authenticationId. operations: - method: GET name: getauthentication description: Tray.ai Get Authentication call: platform-authentications.getauthentication with: authenticationId: rest.authenticationId outputParameters: - type: object mapping: $. - method: DELETE name: deleteauthentication description: Tray.ai Delete Authentication call: platform-authentications.deleteauthentication with: authenticationId: rest.authenticationId outputParameters: - type: object mapping: $. - type: mcp namespace: platform-authentications-mcp port: 9090 transport: http description: MCP adapter for Tray.ai Platform API — Authentications. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: tray-ai-list-authentications description: Tray.ai List Authentications hints: readOnly: true destructive: false idempotent: true call: platform-authentications.listauthentications outputParameters: - type: object mapping: $. - name: tray-ai-create-authentication description: Tray.ai Create Authentication hints: readOnly: false destructive: false idempotent: false call: platform-authentications.createauthentication with: body: tools.body outputParameters: - type: object mapping: $. - name: tray-ai-get-authentication description: Tray.ai Get Authentication hints: readOnly: true destructive: false idempotent: true call: platform-authentications.getauthentication with: authenticationId: tools.authenticationId outputParameters: - type: object mapping: $. - name: tray-ai-delete-authentication description: Tray.ai Delete Authentication hints: readOnly: false destructive: true idempotent: true call: platform-authentications.deleteauthentication with: authenticationId: tools.authenticationId outputParameters: - type: object mapping: $.