Vessel · Capability

Vessel Platform API — Authentication

Vessel Platform API — Authentication. 2 operations. Lead operation: Exchange Session Token for Access Token. Self-contained Naftiko capability covering one Vessel business surface.

Run with Naftiko VesselAuthentication

What You Can Do

POST
Exchangeaccesstoken — Exchange Session Token for Access Token
/v1/auth/access-token
POST
Createsessiontoken — Create Session Token
/v1/auth/session-token

MCP Tools

exchange-session-token-access-token

Exchange Session Token for Access Token

create-session-token

Create Session Token

Capability Spec

platform-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Vessel Platform API — Authentication
  description: 'Vessel Platform API — Authentication. 2 operations. Lead operation: Exchange Session Token for Access Token.
    Self-contained Naftiko capability covering one Vessel business surface.'
  tags:
  - Vessel
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VESSEL_API_KEY: VESSEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-authentication
    baseUri: https://api.vessel.dev
    description: Vessel Platform API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: auth-access-token
      path: /auth/access-token
      operations:
      - name: exchangeaccesstoken
        method: POST
        description: Exchange Session Token for Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: auth-session-token
      path: /auth/session-token
      operations:
      - name: createsessiontoken
        method: POST
        description: Create Session Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: x-vessel-api-token
      value: '{{env.VESSEL_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: platform-authentication-rest
    port: 8080
    description: REST adapter for Vessel Platform API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/auth/access-token
      name: auth-access-token
      description: REST surface for auth-access-token.
      operations:
      - method: POST
        name: exchangeaccesstoken
        description: Exchange Session Token for Access Token
        call: platform-authentication.exchangeaccesstoken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/auth/session-token
      name: auth-session-token
      description: REST surface for auth-session-token.
      operations:
      - method: POST
        name: createsessiontoken
        description: Create Session Token
        call: platform-authentication.createsessiontoken
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Vessel Platform API — Authentication. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: exchange-session-token-access-token
      description: Exchange Session Token for Access Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-authentication.exchangeaccesstoken
      outputParameters:
      - type: object
        mapping: $.
    - name: create-session-token
      description: Create Session Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-authentication.createsessiontoken
      outputParameters:
      - type: object
        mapping: $.