Letta Groups API

Coordinate multi-agent groups (supervisor/worker, round-robin, sleep-time).

Operations 11

GET /v1/groups/ List Groups #
POST /v1/groups/ Create Group #
GET /v1/groups/count Count Groups #
GET /v1/groups/{group_id} Retrieve Group #
PATCH /v1/groups/{group_id} Modify Group #
DELETE /v1/groups/{group_id} Delete Group #
PATCH /v1/groups/{group_id}/messages/{message_id} Modify Group Message #
GET /v1/groups/{group_id}/messages List Group Messages #
PATCH /v1/groups/{group_id}/reset-messages Reset Group Messages #
PATCH /v1/groups/{group_id}/blocks/attach/{block_id} Attach Block to Group #
PATCH /v1/groups/{group_id}/blocks/detach/{block_id} Detach Block from Group #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-agent-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-block-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-tool-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-source-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-run-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-group-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-identity-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-message-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-passage-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-archive-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-job-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-llm-config-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-embedding-config-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/json-schema/letta-provider-schema.json

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/letta-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

letta-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Letta Admin Groups API
  version: 1.0.0
  description: REST API for Letta, the stateful agents platform. Manage agents, memory blocks, archival passages, sources, custom tools, MCP servers, multi-agent groups, runs, and streaming responses. Available as Letta Cloud (managed) at https://api.letta.com/v1 and as the self-hosted open-source server (Apache-2.0) typically run at http://localhost:8283.
  contact:
    name: Letta
    url: https://www.letta.com/
    email: support@letta.com
  license:
    name: Apache-2.0
    url: https://github.com/letta-ai/letta/blob/main/LICENSE
  x-logo:
    url: https://www.letta.com/favicon.ico
servers:
- url: https://api.letta.com
  description: Letta Cloud (managed)
- url: https://app.letta.com
  description: Letta Cloud (app)
- url: http://localhost:8283
  description: Self-hosted Letta server
security:
- bearerAuth: []
tags:
- name: Groups
  description: Coordinate multi-agent groups (supervisor/worker, round-robin, sleep-time).
paths:
  /v1/groups/:
    get:
      tags:
      - Groups
      summary: List Groups
      description: Fetch all multi-agent groups matching query.
      operationId: list_groups
      deprecated: true
      parameters:
      - name: manager_type
        in: query
        required: false
        schema:
          anyOf:
          - $ref: '#/components/schemas/ManagerType'
          - type: 'null'
          description: Search groups by manager type
          title: Manager Type
        description: Search groups by manager type
      - name: before
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Group ID cursor for pagination. Returns groups that come before this group ID in the specified sort order
          title: Before
        description: Group ID cursor for pagination. Returns groups that come before this group ID in the specified sort order
      - name: after
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Group ID cursor for pagination. Returns groups that come after this group ID in the specified sort order
          title: After
        description: Group ID cursor for pagination. Returns groups that come after this group ID in the specified sort order
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Maximum number of groups to return
          default: 50
          title: Limit
        description: Maximum number of groups to return
      - name: order
        in: query
        required: false
        schema:
          enum:
          - asc
          - desc
          type: string
          description: Sort order for groups by creation time. 'asc' for oldest first, 'desc' for newest first
          default: asc
          title: Order
        description: Sort order for groups by creation time. 'asc' for oldest first, 'desc' for newest first
      - name: order_by
        in: query
        required: false
        schema:
          const: created_at
          type: string
          description: Field to sort by
          default: created_at
          title: Order By
        description: Field to sort by
      - name: project_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Search groups by project id
          title: Project Id
        description: Search groups by project id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Group'
                title: Response List Groups
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Groups
      summary: Create Group
      description: Create a new multi-agent group with the specified configuration.
      operationId: create_group
      deprecated: true
      parameters:
      - name: X-Project
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: The project slug to associate with the group (cloud only).
          title: X-Project
        description: The project slug to associate with the group (cloud only).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/groups/count:
    get:
      tags:
      - Groups
      summary: Count Groups
      description: Get the count of all groups associated with a given user.
      operationId: count_groups
      deprecated: true
      parameters: []
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: integer
                title: Response Count Groups
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/groups/{group_id}:
    get:
      tags:
      - Groups
      summary: Retrieve Group
      description: Retrieve the group by id.
      operationId: retrieve_group
      deprecated: true
      parameters:
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          minLength: 42
          maxLength: 42
          pattern: ^group-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the group in the format 'group-<uuid4>'
          examples:
          - group-123e4567-e89b-42d3-8456-426614174000
          title: Group Id
        description: The ID of the group in the format 'group-<uuid4>'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Groups
      summary: Modify Group
      description: Create a new multi-agent group with the specified configuration.
      operationId: modify_group
      deprecated: true
      parameters:
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          minLength: 42
          maxLength: 42
          pattern: ^group-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the group in the format 'group-<uuid4>'
          examples:
          - group-123e4567-e89b-42d3-8456-426614174000
          title: Group Id
        description: The ID of the group in the format 'group-<uuid4>'
      - name: X-Project
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: The project slug to associate with the group (cloud only).
          title: X-Project
        description: The project slug to associate with the group (cloud only).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Groups
      summary: Delete Group
      description: Delete a multi-agent group.
      operationId: delete_group
      deprecated: true
      parameters:
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          minLength: 42
          maxLength: 42
          pattern: ^group-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the group in the format 'group-<uuid4>'
          examples:
          - group-123e4567-e89b-42d3-8456-426614174000
          title: Group Id
        description: The ID of the group in the format 'group-<uuid4>'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/groups/{group_id}/messages/{message_id}:
    patch:
      tags:
      - Groups
      summary: Modify Group Message
      description: Update the details of a message associated with an agent.
      operationId: modify_group_message
      deprecated: true
      parameters:
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          minLength: 42
          maxLength: 42
          pattern: ^group-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the group in the format 'group-<uuid4>'
          examples:
          - group-123e4567-e89b-42d3-8456-426614174000
          title: Group Id
        description: The ID of the group in the format 'group-<uuid4>'
      - name: message_id
        in: path
        required: true
        schema:
          type: string
          minLength: 44
          maxLength: 44
          pattern: ^message-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the message in the format 'message-<uuid4>'
          examples:
          - message-123e4567-e89b-42d3-8456-426614174000
          title: Message Id
        description: The ID of the message in the format 'message-<uuid4>'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/UpdateSystemMessage'
              - $ref: '#/components/schemas/UpdateUserMessage'
              - $ref: '#/components/schemas/UpdateReasoningMessage'
              - $ref: '#/components/schemas/UpdateAssistantMessage'
              title: Request
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/SystemMessage'
                - $ref: '#/components/schemas/UserMessage'
                - $ref: '#/components/schemas/ReasoningMessage'
                - $ref: '#/components/schemas/HiddenReasoningMessage'
                - $ref: '#/components/schemas/ToolCallMessage'
                - $ref: '#/components/schemas/ToolReturnMessage'
                - $ref: '#/components/schemas/AssistantMessage'
                - $ref: '#/components/schemas/ApprovalRequestMessage'
                - $ref: '#/components/schemas/ApprovalResponseMessage'
                - $ref: '#/components/schemas/SummaryMessage'
                - $ref: '#/components/schemas/EventMessage'
                discriminator:
                  propertyName: message_type
                  mapping:
                    system_message: '#/components/schemas/SystemMessage'
                    user_message: '#/components/schemas/UserMessage'
                    reasoning_message: '#/components/schemas/ReasoningMessage'
                    hidden_reasoning_message: '#/components/schemas/HiddenReasoningMessage'
                    tool_call_message: '#/components/schemas/ToolCallMessage'
                    tool_return_message: '#/components/schemas/ToolReturnMessage'
                    assistant_message: '#/components/schemas/AssistantMessage'
                    approval_request_message: '#/components/schemas/ApprovalRequestMessage'
                    approval_response_message: '#/components/schemas/ApprovalResponseMessage'
                    summary_message: '#/components/schemas/SummaryMessage'
                    event_message: '#/components/schemas/EventMessage'
                title: Response Modify Group Message
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/groups/{group_id}/messages:
    get:
      tags:
      - Groups
      summary: List Group Messages
      description: Retrieve message history for an agent.
      operationId: list_group_messages
      deprecated: true
      parameters:
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          minLength: 42
          maxLength: 42
          pattern: ^group-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the group in the format 'group-<uuid4>'
          examples:
          - group-123e4567-e89b-42d3-8456-426614174000
          title: Group Id
        description: The ID of the group in the format 'group-<uuid4>'
      - name: before
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
          title: Before
        description: Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
      - name: after
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order
          title: After
        description: Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Maximum number of messages to retrieve
          default: 10
          title: Limit
        description: Maximum number of messages to retrieve
      - name: order
        in: query
        required: false
        schema:
          enum:
          - asc
          - desc
          type: string
          description: Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
          default: desc
          title: Order
        description: Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
      - name: order_by
        in: query
        required: false
        schema:
          const: created_at
          type: string
          description: Field to sort by
          default: created_at
          title: Order By
        description: Field to sort by
      - name: use_assistant_message
        in: query
        required: false
        schema:
          type: boolean
          description: Whether to use assistant messages
          deprecated: true
          default: true
          title: Use Assistant Message
        description: Whether to use assistant messages
        deprecated: true
      - name: assistant_message_tool_name
        in: query
        required: false
        schema:
          type: string
          description: The name of the designated message tool.
          deprecated: true
          default: send_message
          title: Assistant Message Tool Name
        description: The name of the designated message tool.
        deprecated: true
      - name: assistant_message_tool_kwarg
        in: query
        required: false
        schema:
          type: string
          description: The name of the message argument.
          deprecated: true
          default: message
          title: Assistant Message Tool Kwarg
        description: The name of the message argument.
        deprecated: true
      - name: include_return_message_types
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              $ref: '#/components/schemas/MessageType'
          - type: 'null'
          description: Message types to include in response. When null, all message types are returned.
          title: Include Return Message Types
        description: Message types to include in response. When null, all message types are returned.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LettaMessageUnion'
                title: Response List Group Messages
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/groups/{group_id}/reset-messages:
    patch:
      tags:
      - Groups
      summary: Reset Group Messages
      description: Delete the group messages for all agents that are part of the multi-agent group.
      operationId: reset_group_messages
      deprecated: true
      parameters:
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          minLength: 42
          maxLength: 42
          pattern: ^group-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the group in the format 'group-<uuid4>'
          examples:
          - group-123e4567-e89b-42d3-8456-426614174000
          title: Group Id
        description: The ID of the group in the format 'group-<uuid4>'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/groups/{group_id}/blocks/attach/{block_id}:
    patch:
      tags:
      - Groups
      summary: Attach Block to Group
      description: 'Attach a block to a group.

        This will add the block to the group and all agents within the group.'
      operationId: attach_block_to_group
      deprecated: true
      parameters:
      - name: block_id
        in: path
        required: true
        schema:
          type: string
          title: Block Id
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          minLength: 42
          maxLength: 42
          pattern: ^group-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the group in the format 'group-<uuid4>'
          examples:
          - group-123e4567-e89b-42d3-8456-426614174000
          title: Group Id
        description: The ID of the group in the format 'group-<uuid4>'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/groups/{group_id}/blocks/detach/{block_id}:
    patch:
      tags:
      - Groups
      summary: Detach Block from Group
      description: 'Detach a block from a group.

        This will remove the block from the group and all agents within the group.'
      operationId: detach_block_from_group
      deprecated: true
      parameters:
      - name: block_id
        in: path
        required: true
        schema:
          type: string
          title: Block Id
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          minLength: 42
          maxLength: 42
          pattern: ^group-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          description: The ID of the group in the format 'group-<uuid4>'
          examples:
          - group-123e4567-e89b-42d3-8456-426614174000
          title: Group Id
        description: The ID of the group in the format 'group-<uuid4>'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LettaUserMessageContentUnion:
      oneOf:
      - $ref: '#/components/schemas/TextContent'
      - $ref: '#/components/schemas/ImageContent'
      discriminator:
        propertyName: type
        mapping:
          text: '#/components/schemas/TextContent'
          image: '#/components/schemas/ImageContent'
    EventMessage:
      properties:
        id:
          type: string
          title: Id
        date:
          type: string
          format: date-time
          title: Date
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        message_type:
          type: string
          const: event_message
          title: Message Type
          default: event_message
        otid:
          anyOf:
          - type: string
          - type: 'null'
          title: Otid
          description: The offline threading id (OTID). Set by the client to deduplicate requests. Used for idempotency in background streaming mode — each message in a request must have a unique OTID. Retries of the same request should reuse the same OTIDs.
        sender_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Sender Id
        step_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Step Id
        is_err:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Err
        seq_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Seq Id
        run_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Run Id
        event_type:
          type: string
          const: compaction
          title: Event Type
        event_data:
          additionalProperties: true
          type: object
          title: Event Data
      type: object
      required:
      - id
      - date
      - event_type
      - event_data
      title: EventMessage
      description: A message for notifying the developer that an event that has occured (e.g. a compaction). Events are NOT part of the context window.
    SummaryMessage:
      properties:
        id:
          type: string
          title: Id
        date:
          type: string
          format: date-time
          title: Date
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        message_type:
          type: string
          const: summary_message
          title: Message Type
          default: summary_message
        otid:
          anyOf:
          - type: string
          - type: 'null'
          title: Otid
          description: The offline threading id (OTID). Set by the client to deduplicate requests. Used for idempotency in background streaming mode — each message in a request must have a unique OTID. Retries of the same request should reuse the same OTIDs.
        sender_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Sender Id
        step_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Step Id
        is_err:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Err
        seq_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Seq Id
        run_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Run Id
        summary:
          type: string
          title: Summary
        compaction_stats:
          anyOf:
          - $ref: '#/components/schemas/CompactionStats'
          - type: 'null'
      type: object
      required:
      - id
      - date
      - summary
      title: SummaryMessage
      description: A message representing a summary of the conversation. Sent to the LLM as a user or system message depending on the provider.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SleeptimeManagerUpdate:
      properties:
        manager_type:
          type: string
          const: sleeptime
          title: Manager Type
          description: ''
          default: sleeptime
        manager_agent_id:
          anyOf:
          - type: string
            maxLength: 42
            minLength: 42
            pattern: ^agent-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
            description: The ID of the agent in the format 'agent-<uuid4>'
            examples:
            - agent-123e4567-e89b-42d3-8456-426614174000
          - type: 'null'
          title: Manager Agent Id
          description: ''
        sleeptime_agent_frequency:
          anyOf:
          - type: integer
          - type: 'null'
          title: Sleeptime Agent Frequency
          description: ''
      type: object
      title: SleeptimeManagerUpdate
    UrlImage:
      properties:
        type:
          type: string
          const: url
          title: Type
          description: The source type for the image.
          default: url
        url:
          type: string
          title: Url
          description: The URL of the image.
      type: object
      required:
      - url
      title: UrlImage
    ToolCallDelta:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        arguments:
          anyOf:
          - type: string
          - type: 'null'
          title: Arguments
        tool_call_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Tool Call Id
      type: object
      title: ToolCallDelta
    LettaToolReturnContentUnion:
      oneOf:
      - $ref: '#/components/schemas/TextContent'
      - $ref: '#/components/schemas/ImageContent'
      discriminator:
        propertyName: type
        mapping:
          text: '#/components/schemas/TextContent'
          image: '#/components/schemas/ImageContent'
    letta__schemas__letta_message__ToolReturn:
      properties:
        type:
          type: string
          const: tool
          title: Type
          description: The message type to be created.
          default: tool
        tool_return:
          anyOf:
          - items:
              $ref: '#/components/schemas/LettaToolReturnContentUnion'
            type: array
          - type: string
          title: Tool Return
          description: The tool return value - either a string or list of content parts (text/image)
        status:
          type: string
          enum:
          - success
          - error
          title: Status
        tool_call_id:
          type: string
          title: Tool Call Id
        stdout:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Stdout
        stderr:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Stderr
      type: object
      required:
      - tool_return
      - status
      - tool_call_id
      title: ToolReturn
    LettaMessageUnion:
      oneOf:
      - $ref: '#/components/schemas/SystemMessage'
      - $ref: '#/components/schemas/UserMessage'
      - $ref: '#/components/schemas/ReasoningMessage'
      - $ref: '#/components/schemas/HiddenReasoningMessage'
      - $ref: '#/components/schemas/ToolCallMessage'
      - $ref: '#/components/schemas/ToolReturnMessage'
      - $ref: '#/components/schemas/AssistantMessage'
      - $ref: '#/components/schemas/ApprovalRequestMessage'
      - $ref: '#/components/schemas/ApprovalResponseMessage'
      - $ref: '#/components/schemas/SummaryMessage'
      - $ref: '#/components/schemas/EventMessage'
      discriminator:
        propertyName: message_type
        mapping:
          system_message: '#/components/schemas/SystemMessage'
          user_message: '#/components/schemas/UserMessage'
          reasoning_message: '#/components/schemas/ReasoningMessage'
          hidden_reasoning_message: '#/components/schemas/HiddenReasoningMessage'
          tool_call_message: '#/components/schemas/ToolCallMessage'
          tool_return_message: '#/components/schemas/ToolReturnMessage'
          assistant_message: '#/components/schemas/AssistantMessage'
          approval_request_message: '#/components/schemas/ApprovalRequestMessage'
          approval_response_message: '#/components/schemas/ApprovalResponseMessage'
          summary_message: '#/components/schemas/SummaryMessage'
          event_message: '#/components/schemas/EventMessage'
    SupervisorManager:
      properties:
        manager_type:
          type: string
          const: supervisor
          title: Manager Type
          description: ''
          default: supervisor
        manager_agent_id:
          type: string
          maxLength: 42
          minLength: 42
          pattern: ^agent-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
          title: Manager Agent Id
          description: ''
          examples:
          - agent-123e4567-e89b-42d3-8456-426614174000
      type: object
      required:
      - manager_agent_id
      title: SupervisorManager
    GroupCreate:
      properties:
        agent_ids:
          items:
            type: string
            maxLength: 42
            minLength: 42
            pattern: ^agent-[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
            description: The ID of the agent in the format 'agent-<uuid4>'
            examples:
            - agent-123e4567-e89b-42d3-8456-426614174000
          type: array
          title: Agent Ids
          description: ''
        description:
          type: string
          title: Description
          description: ''
        manager_config:
          oneOf:
          - $ref: '#/components/schemas/RoundRobinManager'
          - $ref: '#/components/schemas/SupervisorManager'
          - $ref: '#/components/schemas/DynamicManager'
          - $ref: '#/components/schemas/SleeptimeManager'
          - $ref: '#/components/schemas/VoiceSleeptimeManager'
          title: Manager Config
          description: ''
          default:
            manager_type: round_robin
          discriminator:
            propertyName: manager_type
            mapping:
              dynamic: '#/components/schemas/DynamicManager'
              round_robin: '#/components/schemas/RoundRobinManager'
              sleeptime: '#/components/schemas/SleeptimeManager'
              supervisor: '#/components/schemas/SupervisorManager'
              voice_sleeptime: '#/components/schemas/VoiceSleeptimeManager'
        project_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Project Id
          des

# --- truncated at 32 KB (75 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/letta/refs/heads/main/openapi/letta-groups-api-openapi.yml