Vessel · Capability

Vessel CRM API — Authentication

Vessel CRM API — Authentication. 2 operations. Lead operation: Exchange Public Token. Self-contained Naftiko capability covering one Vessel business surface.

Run with Naftiko VesselAuthentication

What You Can Do

POST
Exchangepublictoken — Exchange Public Token
/v1/link/exchange
POST
Createlinktoken — Create Link Token
/v1/link/token

MCP Tools

exchange-public-token

Exchange Public Token

create-link-token

Create Link Token

Capability Spec

crm-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Vessel CRM API — Authentication
  description: 'Vessel CRM API — Authentication. 2 operations. Lead operation: Exchange Public 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: crm-authentication
    baseUri: https://api.vessel.land
    description: Vessel CRM API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: link-exchange
      path: /link/exchange
      operations:
      - name: exchangepublictoken
        method: POST
        description: Exchange Public Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: link-token
      path: /link/token
      operations:
      - name: createlinktoken
        method: POST
        description: Create Link Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: vessel-api-token
      value: '{{env.VESSEL_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: crm-authentication-rest
    port: 8080
    description: REST adapter for Vessel CRM API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/link/exchange
      name: link-exchange
      description: REST surface for link-exchange.
      operations:
      - method: POST
        name: exchangepublictoken
        description: Exchange Public Token
        call: crm-authentication.exchangepublictoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/link/token
      name: link-token
      description: REST surface for link-token.
      operations:
      - method: POST
        name: createlinktoken
        description: Create Link Token
        call: crm-authentication.createlinktoken
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: crm-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Vessel CRM API — Authentication. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: exchange-public-token
      description: Exchange Public Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-authentication.exchangepublictoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-link-token
      description: Create Link Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-authentication.createlinktoken
      outputParameters:
      - type: object
        mapping: $.