Letta · Capability

Letta API — Chat

Chat — chat completions wrapper for agents. 1 operations. Lead operation: Create Chat Completion. Self-contained Naftiko capability covering one Letta business surface.

Letta API — Chat is a Naftiko capability published by Letta, one of 36 capabilities the APIs.io network indexes for this provider. It bundles 1 operation across the POST method rooted at /v1/chat/completions.

The capability includes 1 state-changing operation. Lead operation: Create Chat Completion. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Letta, Stateful Agents, and Chat.

Run with Naftiko LettaStateful AgentsChat

What You Can Do

POST
Create_chat_completion — Create Chat Completion
/v1/chat/completions

MCP Tools

create-chat-completion

Create Chat Completion

Capability Spec

letta-chat.yaml Raw ↑
naftiko: "1.0.0-alpha2"

info:
  label: "Letta API — Chat"
  description: >-
    Chat — chat completions wrapper for agents. 1 operations. Lead operation: Create Chat Completion. Self-contained Naftiko capability covering one Letta business surface.
  tags:
    - Letta
    - Stateful Agents
    - Chat
  created: "2026-05-08"
  modified: "2026-05-22"

binds:
  - namespace: env
    keys:
      LETTA_API_KEY: LETTA_API_KEY

capability:

  consumes:
    - type: http
      namespace: "letta-chat"
      baseUri: "https://api.letta.com"
      description: "Letta API — Chat business capability. Self-contained, no shared references."
      authentication:
        type: bearer
        token: "{{env.LETTA_API_KEY}}"
      resources:
        - name: "chat-completions"
          path: "/v1/chat/completions"
          operations:
            - name: "create_chat_completion"
              method: POST
              description: "Create Chat Completion"
              inputParameters:
                - name: "body"
                  in: body
                  type: object
                  required: true
                  description: "Request payload"
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: "$."

  exposes:
    - type: rest
      namespace: "letta-chat-rest"
      port: 8080
      description: "REST adapter for Letta API — Chat. One Spectral-compliant resource per consumed operation."
      resources:
        - path: "/v1/chat/completions"
          name: "chat-completions"
          description: "REST surface for chat-completions."
          operations:
            - method: POST
              name: "create_chat_completion"
              description: "Create Chat Completion"
              call: "letta-chat.create_chat_completion"
              with:
                "body": "rest.body"
              outputParameters:
                - type: object
                  mapping: "$."
    - type: mcp
      namespace: "letta-chat-mcp"
      port: 9090
      transport: http
      description: "MCP adapter for Letta API — Chat. One verb-noun tool per consumed operation."
      tools:
        - name: "create-chat-completion"
          description: "Create Chat Completion"
          hints:
            readOnly: false
            destructive: false
            idempotent: false
          call: "letta-chat.create_chat_completion"
          with:
            "body": "tools.body"
          outputParameters:
            - type: object
              mapping: "$."