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

# Message

> Send a follow-up to the deployment agent. JSON is returned by default; clients requesting text/event-stream receive incremental status and text events. Read-only tools may run immediately. Every mutation is persisted as a pending action and cannot execute in this call.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/deploys/{deployId}/agent/messages
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/deploys/{deployId}/agent/messages:
    post:
      tags:
        - deploymentAgent
      summary: Message
      description: >-
        Send a follow-up to the deployment agent. JSON is returned by default;
        clients requesting text/event-stream receive incremental status and text
        events. Read-only tools may run immediately. Every mutation is persisted
        as a pending action and cannot execute in this call.
      operationId: deploymentAgent.message
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
        - name: deployId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                message:
                  type: string
                  minLength: 1
                  maxLength: 8000
              required:
                - message
      responses:
        '200':
          description: The updated conversation, or a text/event-stream when requested.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  deploymentId:
                    type: string
                    format: uuid
                  projectThreadId:
                    type: string
                    format: uuid
                  messages:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        role:
                          type: string
                          enum:
                            - user
                            - assistant
                            - system
                        content:
                          type: string
                        createdAt:
                          type: string
                          format: date-time
                      required:
                        - id
                        - role
                        - content
                        - createdAt
                  actions:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        operationId:
                          type: string
                        method:
                          type: string
                          enum:
                            - GET
                            - POST
                            - PUT
                            - PATCH
                            - DELETE
                        path:
                          type: string
                        risk:
                          type: string
                          enum:
                            - write
                            - dangerous
                            - destructive
                        status:
                          type: string
                          enum:
                            - pending
                            - rejected
                            - running
                            - succeeded
                            - failed
                        query:
                          type:
                            - object
                            - 'null'
                          additionalProperties: true
                        body: {}
                        result: {}
                        error:
                          type:
                            - string
                            - 'null'
                        createdAt:
                          type: string
                          format: date-time
                        decidedAt:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        executedAt:
                          type:
                            - string
                            - 'null'
                          format: date-time
                      required:
                        - id
                        - operationId
                        - method
                        - path
                        - risk
                        - status
                        - query
                        - body
                        - result
                        - error
                        - createdAt
                        - decidedAt
                        - executedAt
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - deploymentId
                  - projectThreadId
                  - messages
                  - actions
                  - createdAt
                  - updatedAt
        '404':
          description: No such failed deployment in this project.
        '422':
          description: The message was invalid.
        '502':
          description: The platform agent could not answer.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````