naftiko: 1.0.0-alpha2 info: label: Tray.ai Embedded API — Authentications description: 'Tray.ai Embedded API — Authentications. 3 operations. Lead operation: Tray.ai Create User Authentication. 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: embedded-authentications baseUri: https://tray.io description: Tray.ai Embedded API — Authentications business capability. Self-contained, no shared references. resources: - name: graphql#createUserAuthentication path: /graphql#createUserAuthentication operations: - name: createuserauthentication method: POST description: Tray.ai Create User Authentication outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: graphql#deleteAuthentication path: /graphql#deleteAuthentication operations: - name: deleteauthentication method: POST description: Tray.ai Delete Authentication outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: graphql#getAuthentications path: /graphql#getAuthentications operations: - name: getauthentications method: POST description: Tray.ai Get Authentications outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.TRAY_AI_API_KEY}}' exposes: - type: rest namespace: embedded-authentications-rest port: 8080 description: REST adapter for Tray.ai Embedded API — Authentications. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/graphql-createuserauthentication name: graphql-createuserauthentication description: REST surface for graphql#createUserAuthentication. operations: - method: POST name: createuserauthentication description: Tray.ai Create User Authentication call: embedded-authentications.createuserauthentication with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/graphql-deleteauthentication name: graphql-deleteauthentication description: REST surface for graphql#deleteAuthentication. operations: - method: POST name: deleteauthentication description: Tray.ai Delete Authentication call: embedded-authentications.deleteauthentication with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/graphql-getauthentications name: graphql-getauthentications description: REST surface for graphql#getAuthentications. operations: - method: POST name: getauthentications description: Tray.ai Get Authentications call: embedded-authentications.getauthentications with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: embedded-authentications-mcp port: 9090 transport: http description: MCP adapter for Tray.ai Embedded API — Authentications. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: tray-ai-create-user-authentication description: Tray.ai Create User Authentication hints: readOnly: false destructive: false idempotent: false call: embedded-authentications.createuserauthentication with: body: tools.body outputParameters: - type: object mapping: $. - name: tray-ai-delete-authentication description: Tray.ai Delete Authentication hints: readOnly: false destructive: false idempotent: false call: embedded-authentications.deleteauthentication with: body: tools.body outputParameters: - type: object mapping: $. - name: tray-ai-get-authentications description: Tray.ai Get Authentications hints: readOnly: true destructive: false idempotent: false call: embedded-authentications.getauthentications with: body: tools.body outputParameters: - type: object mapping: $.