Coda · Capability

Coda API — Account

Coda API — Account. 1 operations. Lead operation: Get user info. Self-contained Naftiko capability covering one Coda business surface.

Run with Naftiko CodaAccount

What You Can Do

GET
Whoami — Get user info
/v1/whoami

MCP Tools

get-user-info

Get user info

read-only idempotent

Capability Spec

coda-account.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Coda API — Account
  description: 'Coda API — Account. 1 operations. Lead operation: Get user info. Self-contained Naftiko capability covering
    one Coda business surface.'
  tags:
  - Coda
  - Account
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CODA_API_KEY: CODA_API_KEY
capability:
  consumes:
  - type: http
    namespace: coda-account
    baseUri: https://coda.io/apis/v1
    description: Coda API — Account business capability. Self-contained, no shared references.
    resources:
    - name: whoami
      path: /whoami
      operations:
      - name: whoami
        method: GET
        description: Get user info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CODA_API_KEY}}'
  exposes:
  - type: rest
    namespace: coda-account-rest
    port: 8080
    description: REST adapter for Coda API — Account. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/whoami
      name: whoami
      description: REST surface for whoami.
      operations:
      - method: GET
        name: whoami
        description: Get user info
        call: coda-account.whoami
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: coda-account-mcp
    port: 9090
    transport: http
    description: MCP adapter for Coda API — Account. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-user-info
      description: Get user info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: coda-account.whoami
      outputParameters:
      - type: object
        mapping: $.