Tray.ai · Capability

Tray.ai Platform API — Users

Tray.ai Platform API — Users. 2 operations. Lead operation: Tray.ai List Users. Self-contained Naftiko capability covering one Tray Ai business surface.

Run with Naftiko Tray AiUsers

What You Can Do

GET
Listusers — Tray.ai List Users
/v1/users
POST
Inviteuser — Tray.ai Invite User
/v1/users/invite

MCP Tools

tray-ai-list-users

Tray.ai List Users

read-only idempotent
tray-ai-invite-user

Tray.ai Invite User

Capability Spec

platform-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Tray.ai Platform API — Users
  description: 'Tray.ai Platform API — Users. 2 operations. Lead operation: Tray.ai List Users. Self-contained Naftiko capability
    covering one Tray Ai business surface.'
  tags:
  - Tray Ai
  - Users
  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-users
    baseUri: https://api.tray.io/core/v1
    description: Tray.ai Platform API — Users business capability. Self-contained, no shared references.
    resources:
    - name: users
      path: /users
      operations:
      - name: listusers
        method: GET
        description: Tray.ai List Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-invite
      path: /users/invite
      operations:
      - name: inviteuser
        method: POST
        description: Tray.ai Invite User
        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: platform-users-rest
    port: 8080
    description: REST adapter for Tray.ai Platform API — Users. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/users
      name: users
      description: REST surface for users.
      operations:
      - method: GET
        name: listusers
        description: Tray.ai List Users
        call: platform-users.listusers
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/invite
      name: users-invite
      description: REST surface for users-invite.
      operations:
      - method: POST
        name: inviteuser
        description: Tray.ai Invite User
        call: platform-users.inviteuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for Tray.ai Platform API — Users. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: tray-ai-list-users
      description: Tray.ai List Users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-users.listusers
      outputParameters:
      - type: object
        mapping: $.
    - name: tray-ai-invite-user
      description: Tray.ai Invite User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-users.inviteuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.