naftiko: 1.0.0-alpha2 info: label: Tray.io Platform API — Authentications description: 'Tray.io Platform API — Authentications. 4 operations. Lead operation: List Authentications. Self-contained Naftiko capability covering one Tray Io business surface.' tags: - Tray Io - Authentications created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TRAY_IO_API_KEY: TRAY_IO_API_KEY capability: consumes: - type: http namespace: platform-authentications baseUri: https://api.tray.io/core/v1 description: Tray.io Platform API — Authentications business capability. Self-contained, no shared references. resources: - name: authentications path: /authentications operations: - name: listauthentications method: GET description: List Authentications outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createauthentication method: POST description: 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: 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: 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_IO_API_KEY}}' exposes: - type: rest namespace: platform-authentications-rest port: 8080 description: REST adapter for Tray.io 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: List Authentications call: platform-authentications.listauthentications outputParameters: - type: object mapping: $. - method: POST name: createauthentication description: 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: Get Authentication call: platform-authentications.getauthentication with: authenticationId: rest.authenticationId outputParameters: - type: object mapping: $. - method: DELETE name: deleteauthentication description: 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.io Platform API — Authentications. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-authentications description: List Authentications hints: readOnly: true destructive: false idempotent: true call: platform-authentications.listauthentications outputParameters: - type: object mapping: $. - name: create-authentication description: Create Authentication hints: readOnly: false destructive: false idempotent: false call: platform-authentications.createauthentication with: body: tools.body outputParameters: - type: object mapping: $. - name: get-authentication description: Get Authentication hints: readOnly: true destructive: false idempotent: true call: platform-authentications.getauthentication with: authenticationId: tools.authenticationId outputParameters: - type: object mapping: $. - name: delete-authentication description: Delete Authentication hints: readOnly: false destructive: true idempotent: true call: platform-authentications.deleteauthentication with: authenticationId: tools.authenticationId outputParameters: - type: object mapping: $.