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

# Improve draft

> Rewrites the current reviewable reply using the supplied direction. It replaces the current effective text and does not send. Success has no payload; use Get conversation when the resulting text is needed.



## OpenAPI

````yaml https://api.goextrovert.com/client/v2/docs-json post /client/v2/dm-replies/{dmId}/improve
openapi: 3.0.0
info:
  title: Extrovert Client API
  description: >-
    Public API for Extrovert platform integration. Use your API key for
    authentication.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.goextrovert.com/
    description: API Server
security: []
tags: []
paths:
  /client/v2/dm-replies/{dmId}/improve:
    post:
      tags:
        - Direct Messages
      summary: Improve draft
      description: >-
        Rewrites the current reviewable reply using the supplied direction. It
        replaces the current effective text and does not send. Success has no
        payload; use Get conversation when the resulting text is needed.
      operationId: DmRepliesClientApiController_improveReply
      parameters:
        - name: dmId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImproveReplyRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImproveReplyResponseDto'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientApiErrorResponseDto'
      security:
        - api-key: []
components:
  schemas:
    ImproveReplyRequestDto:
      type: object
      properties:
        dmId:
          type: string
          format: uuid
          description: Exact reply ID obtained from Prepare reply or Get conversation.
        instructions:
          type: string
          minLength: 1
          maxLength: 1250
          description: Plain-text description of what to change.
      required:
        - dmId
        - instructions
    ImproveReplyResponseDto:
      type: object
      properties:
        status:
          type: string
          description: Response status
          enum:
            - success
        data:
          description: No response payload
          nullable: true
          enum:
            - null
          example: null
          type: object
        message:
          type: string
          description: Success message
          example: Operation completed successfully
      required:
        - status
        - data
        - message
    ClientApiErrorResponseDto:
      type: object
      properties:
        status:
          type: string
          description: Response status
          example: error
          enum:
            - error
        data:
          type: object
          description: Response data
          example: null
          nullable: true
        message:
          type: string
          description: Error message
          example: An error occurred while processing the request
      required:
        - status
        - data
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key for authentication

````