Krobar.ai Conversations API

Endpoints for managing conversations and messages

GitHub OpenAPI

Operations 11

GET /conversations Get Conversations For User #
POST /conversations Create Conversation Endpoint #
GET /conversations/{conversation_id} Get Conversation With Messages Endpoint #
DELETE /conversations/{conversation_id} Delete Conversation Endpoint #
PATCH /conversations/{conversation_id} Update Conversation Endpoint #
POST /conversations/{conversation_id}/messages Add Message To Conversation Endpoint #
GET /conversations/{conversation_id}/messages List Messages In Conversation Endpoint #
POST /conversations/messages/{message_id}/attachments/db-object Attach Db Object To Message Endpoint #
POST /conversations/messages/{message_id}/attachments/url Attach Url To Message Endpoint #
PATCH /conversations/{conversation_id}/messages/{message_id} Update Message In Conversation Endpoint #
DELETE /conversations/{conversation_id}/messages/{message_id} Delete Message In Conversation Endpoint #

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/krobar-ai:krobar-ai-conversations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

krobar-ai-conversations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Krobar AI Conversations API
  description: '# API Krobar AI


    Welcome to the Krobar AI API! A FastAPI-based service that is the backend for Krobar.ai


    ## Authentication

    **IMPORTANT**: This API requires an API key for all endpoints except for /health. The API key must be provided in the `X-API-Key` header.


    ```bash

    curl -H "X-API-Key: your-api-key" https://api.krobar.ai/endpoint

    ```'
  contact:
    name: API Support
    email: tristan@kromatic.com
  version: 1.0.0
tags:
- name: Conversations
  description: Endpoints for managing conversations and messages
paths:
  /conversations:
    get:
      tags:
      - Conversations
      summary: Get Conversations For User
      description: 'List all conversations for the current user.


        This endpoint returns a paginated list of conversations owned by the authenticated user.

        If the user doesn''t have any conversations, a default conversation will be created automatically.


        **Ordering**: Conversations are ordered by `last_message_at` (most recent first),

        with conversations that have no messages ordered by `created_at` (newest first).


        Args:

        skip: Number of conversations to skip (for pagination)

        limit: Maximum number of conversations to return (1-1000)


        Returns:

        Paginated list of conversations with metadata, including `last_message_at` timestamp


        Example:

        - Get first 10 conversations: `GET /conversations?skip=0&limit=10`

        - Get next 10 conversations: `GET /conversations?skip=10&limit=10`'
      operationId: get_conversations_for_user_conversations_get
      parameters:
      - name: skip
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: Number of conversations to skip
          default: 0
          title: Skip
        description: Number of conversations to skip
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          description: Maximum number of conversations to return
          default: 100
          title: Limit
        description: Maximum number of conversations to return
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationsListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Conversations
      summary: Create Conversation Endpoint
      description: 'Create a new conversation.


        This endpoint creates a new conversation for the authenticated user.


        Args:

        title: Optional title for the conversation

        conversation_metadata: Optional metadata dictionary


        Returns:

        The newly created conversation


        Example request body:

        ```json

        {

        "title": "My New Conversation",

        "conversation_metadata": {

        "topic": "Business Analysis",

        "priority": "high"

        }

        }

        ```'
      operationId: create_conversation_endpoint_conversations_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Data
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /conversations/{conversation_id}:
    get:
      tags:
      - Conversations
      summary: Get Conversation With Messages Endpoint
      description: 'Retrieve a specific conversation with all its messages.


        This endpoint fetches a conversation by ID along with all associated messages.

        The user must own the conversation to access it.


        Args:

        conversation_id: UUID of the conversation to retrieve

        order: Message ordering (''asc'' for oldest first, ''desc'' for newest first)


        Returns:

        Conversation details with all messages and attachments


        Example:

        - Get conversation with ascending message order: `GET /conversations/{id}?order=asc`

        - Get conversation with descending message order: `GET /conversations/{id}?order=desc`'
      operationId: get_conversation_with_messages_endpoint_conversations__conversation_id__get
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      - name: order
        in: query
        required: false
        schema:
          enum:
          - asc
          - desc
          type: string
          description: 'Order of messages by created_at: ''asc'' (oldest first) or ''desc'' (newest first)'
          default: asc
          title: Order
        description: 'Order of messages by created_at: ''asc'' (oldest first) or ''desc'' (newest first)'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationWithMessagesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Conversations
      summary: Delete Conversation Endpoint
      description: 'Delete a conversation and all its messages.


        This endpoint permanently removes a conversation and all associated messages.

        The user must own the conversation to delete it.


        Args:

        conversation_id: UUID of the conversation to delete


        Returns:

        204 No Content on successful deletion'
      operationId: delete_conversation_endpoint_conversations__conversation_id__delete
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Conversations
      summary: Update Conversation Endpoint
      description: 'Update a conversation''s title and/or metadata.


        This endpoint updates the conversation''s title and/or metadata fields.

        The `updated_at` timestamp will be updated automatically when any field changes.


        Args:

        conversation_id: UUID of the conversation to update

        title: New title (optional)

        conversation_metadata: New metadata (optional)


        Returns:

        The updated conversation


        Example request body:

        ```json

        {

        "title": "Updated Title"

        }

        ```


        Or update metadata:

        ```json

        {

        "conversation_metadata": {

        "topic": "Updated Topic",

        "priority": "medium"

        }

        }

        ```'
      operationId: update_conversation_endpoint_conversations__conversation_id__patch
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /conversations/{conversation_id}/messages:
    post:
      tags:
      - Conversations
      summary: Add Message To Conversation Endpoint
      description: 'Add a new message to a conversation.


        This endpoint adds a message to an existing conversation.

        The user must own the conversation to add messages.


        Args:

        conversation_id: UUID of the conversation

        role: Message role (''USER'', ''ASSISTANT'', or ''SYSTEM'')

        content: Message content text

        model: Optional model identifier

        system_prompt: Optional system prompt

        message_metadata: Optional message metadata


        Returns:

        The newly created message


        Example request body:

        ```json

        {

        "role": "USER",

        "content": "Hello, I need help with my business model analysis.",

        "model": "gpt-4",

        "message_metadata": {

        "intent": "business_analysis"

        }

        }

        ```'
      operationId: add_message_to_conversation_endpoint_conversations__conversation_id__messages_post
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationMessageCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationMessageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Conversations
      summary: List Messages In Conversation Endpoint
      description: 'List all messages in a conversation.


        This endpoint returns all messages for a specific conversation.

        The user must own the conversation to access messages.


        Args:

        conversation_id: UUID of the conversation

        order: Message ordering (''asc'' for oldest first, ''desc'' for newest first)


        Returns:

        List of messages with attachments


        Example:

        - Get messages oldest first: `GET /conversations/{id}/messages?order=asc`

        - Get messages newest first: `GET /conversations/{id}/messages?order=desc`'
      operationId: list_messages_in_conversation_endpoint_conversations__conversation_id__messages_get
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      - name: order
        in: query
        required: false
        schema:
          enum:
          - asc
          - desc
          type: string
          description: 'Order of messages by created_at: ''asc'' (oldest first) or ''desc'' (newest first)'
          default: asc
          title: Order
        description: 'Order of messages by created_at: ''asc'' (oldest first) or ''desc'' (newest first)'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ConversationMessageResponse'
                title: Response List Messages In Conversation Endpoint Conversations  Conversation Id  Messages Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /conversations/messages/{message_id}/attachments/db-object:
    post:
      tags:
      - Conversations
      summary: Attach Db Object To Message Endpoint
      description: 'Attach a database object to a message.


        This endpoint links a database object (project, graph, simulation run, etc.) to a message.

        The user must own the conversation to attach objects.


        Args:

        message_id: UUID of the message

        related_object_type: Type of object (''project'', ''graph'', ''simulation_run'', ''sensitivity_analysis'')

        related_object_id: UUID of the object to attach

        metadata: Optional attachment metadata


        Returns:

        The created attachment


        Example request body:

        ```json

        {

        "related_object_type": "graph",

        "related_object_id": "123e4567-e89b-12d3-a456-426614174000",

        "metadata": {

        "purpose": "reference"

        }

        }

        ```'
      operationId: attach_db_object_to_message_endpoint_conversations_messages__message_id__attachments_db_object_post
      parameters:
      - name: message_id
        in: path
        required: true
        schema:
          type: string
          title: Message Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttachDBObjectToMessageRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /conversations/messages/{message_id}/attachments/url:
    post:
      tags:
      - Conversations
      summary: Attach Url To Message Endpoint
      description: 'Attach a URL to a message.


        This endpoint links an external URL to a message.

        The user must own the conversation to attach URLs.


        Args:

        message_id: UUID of the message

        url: The URL to attach

        metadata: Optional attachment metadata


        Returns:

        The created attachment


        Example request body:

        ```json

        {

        "url": "https://example.com/reference-document",

        "metadata": {

        "title": "Reference Document",

        "description": "External documentation"

        }

        }

        ```'
      operationId: attach_url_to_message_endpoint_conversations_messages__message_id__attachments_url_post
      parameters:
      - name: message_id
        in: path
        required: true
        schema:
          type: string
          title: Message Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttachURLToMessageRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /conversations/{conversation_id}/messages/{message_id}:
    patch:
      tags:
      - Conversations
      summary: Update Message In Conversation Endpoint
      description: 'Update an existing message in a conversation.


        This endpoint allows updating various fields of a message.

        The user must own the conversation to update messages.


        Args:

        conversation_id: UUID of the conversation

        message_id: UUID of the message to update

        role: New role (optional)

        content: New content (optional)

        model: New model (optional)

        system_prompt: New system prompt (optional)

        attachments: New attachment list (optional)

        message_metadata: New metadata (optional)


        Returns:

        The updated message


        Example request body:

        ```json

        {

        "content": "Updated message content",

        "message_metadata": {

        "edited": true,

        "edit_reason": "Clarification"

        }

        }

        ```'
      operationId: update_message_in_conversation_endpoint_conversations__conversation_id__messages__message_id__patch
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      - name: message_id
        in: path
        required: true
        schema:
          type: string
          title: Message Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationMessageUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationMessageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Conversations
      summary: Delete Message In Conversation Endpoint
      description: 'Delete a message from a conversation.


        This endpoint permanently removes a message from a conversation.

        The user must own the conversation to delete messages.


        Args:

        conversation_id: UUID of the conversation

        message_id: UUID of the message to delete


        Returns:

        204 No Content on successful deletion'
      operationId: delete_message_in_conversation_endpoint_conversations__conversation_id__messages__message_id__delete
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      - name: message_id
        in: path
        required: true
        schema:
          type: string
          title: Message Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    src__db__models__task__RelatedObjectType:
      type: string
      enum:
      - project
      - graph
      title: RelatedObjectType
    UrlAttachmentResponse:
      properties:
        type:
          type: string
          const: url
          title: Type
          default: url
        id:
          type: string
          format: uuid
          title: Id
        url:
          type: string
          title: Url
        uploaded_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Uploaded By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        attachment_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attachment Metadata
      type: object
      required:
      - id
      - url
      - uploaded_by
      - created_at
      - updated_at
      title: UrlAttachmentResponse
    ConversationMessageUpdate:
      properties:
        role:
          anyOf:
          - $ref: '#/components/schemas/MessageRole'
          - type: 'null'
          description: 'Role of the message sender. Allowed values: ''USER'', ''ASSISTANT'', ''SYSTEM''.'
        content:
          anyOf:
          - type: string
          - type: 'null'
          title: Content
        model:
          anyOf:
          - type: string
          - type: 'null'
          title: Model
        system_prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: System Prompt
        attachments:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Attachments
        message_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Message Metadata
      type: object
      title: ConversationMessageUpdate
      description: 'Schema for updating a message in a conversation. All fields are optional.

        Allowed values for role: ''USER'', ''ASSISTANT'', ''SYSTEM''.'
    ConversationMessageResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        conversation_id:
          type: string
          format: uuid
          title: Conversation Id
        role:
          type: string
          title: Role
        content:
          type: string
          title: Content
        model:
          anyOf:
          - type: string
          - type: 'null'
          title: Model
        system_prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: System Prompt
        message_metadata:
          additionalProperties: true
          type: object
          title: Message Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        attachments:
          anyOf:
          - items:
              anyOf:
              - $ref: '#/components/schemas/FileAttachmentResponse'
              - $ref: '#/components/schemas/DbObjectAttachmentResponse'
              - $ref: '#/components/schemas/UrlAttachmentResponse'
            type: array
          - type: 'null'
          title: Attachments
      type: object
      required:
      - id
      - conversation_id
      - role
      - content
      - message_metadata
      - created_at
      - updated_at
      title: ConversationMessageResponse
      description: Schema for a single message in a conversation, including resolved attachments.
    FileAttachmentResponse:
      properties:
        type:
          type: string
          const: file
          title: Type
          default: file
        id:
          type: string
          format: uuid
          title: Id
        original_filename:
          type: string
          title: Original Filename
        url:
          anyOf:
          - type: string
          - type: 'null'
          title: Url
        content_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Content Type
        file_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: File Size
        uploaded_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Uploaded By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        attachment_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attachment Metadata
      type: object
      required:
      - id
      - original_filename
      - url
      - content_type
      - file_size
      - uploaded_by
      - created_at
      - updated_at
      title: FileAttachmentResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ConversationWithMessagesResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        user_id:
          type: string
          format: uuid
          title: User Id
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        conversation_metadata:
          additionalProperties: true
          type: object
          title: Conversation Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        last_message_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Message At
        messages:
          items:
            $ref: '#/components/schemas/ConversationMessageResponse'
          type: array
          title: Messages
      type: object
      required:
      - id
      - user_id
      - conversation_metadata
      - created_at
      - updated_at
      - messages
      title: ConversationWithMessagesResponse
      description: Schema for a conversation with all messages, each including resolved attachments.
    DbObjectAttachmentResponse:
      properties:
        type:
          type: string
          const: db_object
          title: Type
          default: db_object
        id:
          type: string
          format: uuid
          title: Id
        object_type:
          type: string
          title: Object Type
        object_id:
          type: string
          title: Object Id
        project_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Project Name
        graph_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Graph Name
        simulation_run_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Simulation Run Name
        sensitivity_analysis_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Sensitivity Analysis Name
        uploaded_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Uploaded By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        attachment_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attachment Metadata
      type: object
      required:
      - id
      - object_type
      - object_id
      - uploaded_by
      - created_at
      - updated_at
      title: DbObjectAttachmentResponse
    AttachDBObjectToMessageRequest:
      properties:
        related_object_type:
          $ref: '#/components/schemas/src__db__models__task__RelatedObjectType'
          description: Type of the related object (project, graph, etc.)
        related_object_id:
          type: string
          format: uuid
          title: Related Object Id
          description: ID of the related object
        attachment_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attachment Metadata
          description: Optional metadata for the attachment
      type: object
      required:
      - related_object_type
      - related_object_id
      title: AttachDBObjectToMessageRequest
    ConversationsListResponse:
      properties:
        conversations:
          items:
            $ref: '#/components/schemas/ConversationResponse'
          type: array
          title: Conversations
        total:
          type: integer
          title: Total
        skip:
          type: integer
          title: Skip
        limit:
          type: integer
          title: Limit
      type: object
      required:
      - conversations
      - total
      - skip
      - limit
      title: ConversationsListResponse
      description: Schema for paginated conversations list response.
    AttachURLToMessageRequest:
      properties:
        url:
          type: string
          title: Url
          description: The external URL to attach
        attachment_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attachment Metadata
          description: Optional metadata for the attachment
      type: object
      required:
      - url
      title: AttachURLToMessageRequest
    MessageRole:
      type: string
      enum:
      - USER
      - ASSISTANT
      - SYSTEM
      title: MessageRole
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ConversationResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        user_id:
          type: string
          format: uuid
          title: User Id
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        conversation_metadata:
          additionalProperties: true
          type: object
          title: Conversation Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        last_message_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Message At
      type: object
      required:
      - id
      - user_id
      - conversation_metadata
      - created_at
      - updated_at
      title: ConversationResponse
    ConversationMessageCreate:
      properties:
        role:
          $ref: '#/components/schemas/MessageRole'
          description: 'Role of the message sender. Allowed values: ''USER'', ''ASSISTANT'', ''SYSTEM''.'
        content:
          type: string
          title: Content
        model:
          anyOf:
          - type: string
          - type: 'null'
          title: Model
        system_prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: System Prompt
        attachments:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Attachments
        message_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Message Metadata
      type: object
      required:
      - role
      - content
      title: ConversationMessageCreate
      description: 'Schema for creating a message in a conversation.

        Allowed values for role: ''USER'', ''ASSISTANT'', ''SYSTEM''.'
    ConversationUpdate:
      properties:
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        conversation_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Conversation Metadata
      type: object
      title: ConversationUpdate
      description: Schema for updating a conversation's title or metadata.
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: access_token
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key