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

# Send agent message



## OpenAPI

````yaml /spec.json post /agent/threads/{threadId}/messages
openapi: 3.1.1
info:
  title: Reactive Resume
  version: 6.0.0
  description: >-
    Reactive Resume API. Mutations do not support Idempotency-Key. Do not
    automatically retry POST, PUT, PATCH or DELETE requests after a timeout:
    first read the resource to determine whether the operation succeeded.
    Existing enum values and response shapes are retained for compatibility.
  license:
    name: MIT
    url: https://github.com/reactive-resume/reactive-resume/blob/main/LICENSE
  contact:
    name: Amruth Pillai
    email: hello@amruthpillai.com
    url: https://amruthpillai.com
servers:
  - url: https://rxresu.me/api/openapi
security:
  - apiKey: []
  - bearerAuth: []
  - cookieAuth: []
externalDocs:
  url: https://docs.rxresu.me
  description: Reactive Resume Documentation
paths:
  /agent/threads/{threadId}/messages:
    post:
      tags:
        - Agent
      summary: Send agent message
      operationId: createAgentMessage
      parameters:
        - name: threadId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                message:
                  type: object
                  properties:
                    id:
                      type: string
                    role:
                      enum:
                        - system
                        - user
                        - assistant
                      type: string
                    parts:
                      type: array
                      items:
                        type: object
                        properties:
                          type:
                            type: string
                        required:
                          - type
                        additionalProperties: {}
                    metadata: {}
                  required:
                    - id
                    - role
                    - parts
                attachmentIds:
                  type: array
                  maxItems: 10
                  items:
                    type: string
                    minLength: 1
                context:
                  type: object
                  properties:
                    document:
                      type: boolean
                      description: Share the open document (on by default).
                    posting:
                      type: boolean
                      description: Share the job posting it's for (on by default).
                    applicationId:
                      type: string
                      minLength: 1
                      maxLength: 255
              required:
                - message
      responses:
        '200':
          description: OK
          content:
            text/event-stream:
              schema:
                oneOf:
                  - type: object
                    properties:
                      event:
                        const: message
                      data:
                        type: string
                      id:
                        type: string
                      retry:
                        type: number
                    required:
                      - event
                      - data
                  - type: object
                    properties:
                      event:
                        const: done
                      data: {}
                      id:
                        type: string
                      retry:
                        type: number
                    required:
                      - event
                  - type: object
                    properties:
                      event:
                        const: error
                      data: {}
                      id:
                        type: string
                      retry:
                        type: number
                    required:
                      - event
        default:
          description: >-
            Structured API error. See status and code; do not branch on message
            text.
          content:
            application/json:
              schema:
                type: object
                required:
                  - defined
                  - code
                  - status
                  - message
                properties:
                  defined:
                    type: boolean
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data: {}
      security:
        - apiKey: []
        - bearerAuth: []
        - cookieAuth: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-api-key
      in: header
      description: The API key to authenticate requests.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: An OAuth access token issued by this instance for its API/MCP resource.
    cookieAuth:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: >-
        Browser session (secure deployments use the __Secure- prefix). Cookie
        requests must originate from this instance.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.