> ## Documentation Index
> Fetch the complete documentation index at: https://hastekit.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Save a summary



## OpenAPI

````yaml post /api/agent-server/summary
openapi: 3.0.3
info:
  title: HasteKit Gateway API
  description: API specification for the HasteKit Gateway
  version: 1.0.0
servers:
  - url: http://localhost:6060
    description: Local development server
  - url: https://app.hastekit.ai
    description: Production server
security: []
tags:
  - name: Health
    description: Health check endpoints
  - name: Projects
    description: Project management endpoints
  - name: Agents
    description: Agent configuration endpoints
  - name: Models
    description: Model configuration endpoints
  - name: Prompts
    description: Prompt management endpoints
  - name: Providers
    description: Provider and API key management endpoints
  - name: VirtualKeys
    description: Virtual key management endpoints
  - name: MCPServers
    description: MCP server management endpoints
  - name: Schemas
    description: Schema management endpoints
  - name: Conversations
    description: Conversation, thread, and message management endpoints
  - name: Gateway
    description: LLM Gateway endpoints
  - name: Converse
    description: Agent conversation endpoints
  - name: Traces
    description: Tracing and observability endpoints
paths:
  /api/agent-server/summary:
    post:
      tags:
        - Conversations
      summary: Save a summary
      operationId: saveSummary
      parameters:
        - name: project_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
        - name: namespace
          in: query
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SummaryRequest'
      responses:
        '200':
          description: Summary saved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    SummaryRequest:
      type: object
      required:
        - conversation_id
        - thread_id
        - summary
      properties:
        conversation_id:
          type: string
        thread_id:
          type: string
        summary:
          type: string
    SuccessResponse:
      allOf:
        - $ref: '#/components/schemas/StandardResponse'
        - type: object
          properties:
            data:
              type: object
              nullable: true
    StandardResponse:
      type: object
      properties:
        error:
          type: boolean
        message:
          type: string
        data:
          type: object
        status:
          type: integer
        errorDetails:
          type: object
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StandardResponse'
          example:
            error: true
            message: Invalid request
            status: 400
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StandardResponse'
          example:
            error: true
            message: Internal server error
            status: 500

````