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

# task.sendMessage

> Sends a follow-up message to a task for multi-turn conversation. Use this after [task.create](https://open.manus.ai/docs/v2/task.create) to continue talking, or to answer `messageAskUser` / `cascadeAskUser` questions with ordinary message.content. For supported action confirmations, review confirm_input_schema and the target tool event, then use [task.confirmAction](https://open.manus.ai/docs/v2/task.confirmAction). Do not automatically confirm unrecognized waiting types.

<sup>Questions or issues? Contact us at [api-support@manus.ai](mailto:api-support@manus.ai).</sup>

> [!TIP]
>
> **Auth:**
>
> * **API Key:** Full access.
> * **Standard OAuth client:** Requires `create_task` or `manage_all_tasks`. With `create_task`, only tasks created by the same client; see [Task visibility](https://open.manus.ai/docs/v2/open-app.md#task-visibility).
> * **Trusted client:** Full access.


## OpenAPI

````yaml POST /v2/task.sendMessage
openapi: 3.1.0
info:
  title: Manus OpenAPI v2
  description: >-
    API for integrating Manus into your workflow. All responses are wrapped with
    {"ok": true, "request_id": "...", ...} for success and {"ok": false,
    "request_id": "...", "error": {"code": "...", "message": "..."}} for errors.
  version: 2.0.0
servers:
  - url: https://api.manus.ai
security:
  - ApiKeyAuth: []
paths:
  /v2/task.sendMessage:
    post:
      summary: SendMessage
      description: >-
        Sends a follow-up message to a task for multi-turn conversation. Use
        this after [task.create](https://open.manus.ai/docs/v2/task.create) to
        continue talking, or to answer `messageAskUser` / `cascadeAskUser`
        questions with ordinary message.content. For supported action
        confirmations, review confirm_input_schema and the target tool event,
        then use
        [task.confirmAction](https://open.manus.ai/docs/v2/task.confirmAction).
        Do not automatically confirm unrecognized waiting types.
      operationId: openapi.v2.OpenapiV2Service.SendMessage
      parameters:
        - name: x-manus-api-key
          in: header
          required: false
          schema:
            type: string
          description: >-
            API key for direct authentication. Provide either this or
            `Authorization`, not both. See
            [Authentication](https://open.manus.ai/docs/v2/authentication).
        - name: Authorization
          in: header
          required: false
          schema:
            type: string
            example: Bearer {access_token}
          description: >-
            OAuth2 access token in `Bearer {token}` format. An OAuth client
            requires the `create_task` or `manage_all_tasks` scope unless it is
            a `Trusted team client` or `Trusted public client`. Provide either
            this or `x-manus-api-key`, not both. See the [Open
            App](https://open.manus.ai/docs/v2/open-app) guide.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                task_id:
                  type: string
                  description: >-
                    The unique identifier of the task to send the message to.
                    Supports the shortcut `agent-default-main_task` for the IM
                    agent's main task.
                message:
                  $ref: '#/components/schemas/Message'
                  description: >-
                    The follow-up message. Supports the same content formats as
                    task.create (plain text or multi-part with files). A
                    non-empty `message.connectors` replaces the task's connector
                    selection; omitting it or passing an empty array keeps the
                    task's current selection. To clear the selection, use the
                    top-level `clear_connectors` field.
                agent_profile:
                  type: string
                  anyOf:
                    - enum:
                        - standard
                        - lite
                        - max
                        - max-medium
                        - max-high
                        - max-extra
                        - max-ultra
                    - pattern: >-
                        ^(?:(?:manus-)?[0-9]+(?:\.[0-9]+)+(?:-(?:standard|lite|max(?:-(?:medium|high|extra|ultra))?))?)?$
                  description: >-
                    Agent profile override for this turn and subsequent turns.
                    Use the stable values `standard`, `lite`, or `max`, or a Max
                    thinking level: `max-medium`, `max-high`, `max-extra`, or
                    `max-ultra`. The thinking level also applies to subsequent
                    turns; plain `max` keeps the level the task already uses; a
                    task that has never selected a level uses the default,
                    currently equivalent to `max-extra`. Versioned aliases such
                    as `1.6-lite`, `2.0-max`, `2.0-max-ultra`, and the legacy
                    `manus-1.6-lite` form are also accepted; the version segment
                    is ignored because model versions are not selected
                    independently. A version without a suffix, such as `1.6` or
                    `manus-1.6`, means `standard`. Omit the field (or pass an
                    empty string) to keep the task's current profile and
                    thinking level; unlike
                    [task.create](https://open.manus.ai/docs/v2/task.create),
                    this endpoint does not default to `standard`. Free personal
                    accounts are downgraded to `lite` when an override is
                    provided.
                structured_output_schema:
                  type: object
                  description: >-
                    JSON Schema for structured output extraction, armed for the
                    next time this task finishes (`stop_reason: finish`).


                    - A new schema replaces any previous one.

                    - Omitted — the current schema state is unchanged; an armed
                    schema is not cleared.


                    See the [Structured
                    Output](https://open.manus.ai/docs/v2/structured-output)
                    guide.
                clear_connectors:
                  type: boolean
                  description: >-
                    Clears the task's connector selection for this and
                    subsequent turns. Cannot be combined with a non-empty
                    `message.connectors`. Other task features may still provide
                    tools. See the
                    [Connectors](https://open.manus.ai/docs/v2/connectors)
                    guide.
                  default: false
              required:
                - task_id
                - message
      responses:
        '200':
          description: Message sent successfully. The task will resume processing.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                    description: Whether the request was successful.
                  request_id:
                    type: string
                    description: Unique identifier for this API request.
                  task_id:
                    type: string
                    description: The ID of the task the message was sent to.
        4XX:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    Message:
      type: object
      description: A message to send to a task.
      properties:
        content:
          description: >-
            String (plain text) or array of ContentPart objects. User text is
            limited to approximately 5,000 estimated tokens per request; the
            exact character count varies by language and content. For an array,
            the limit applies to the combined text of all text parts; file parts
            do not count. Input over the limit returns InvalidArgument (HTTP
            400). Each message must contain at least one non-empty visible text
            part or valid visible file/voice part.
          oneOf:
            - type: array
              items:
                $ref: '#/components/schemas/ContentPart'
            - type: string
        connectors:
          type: array
          items:
            type: string
          description: >-
            Connector IDs for this task. A non-empty list replaces the task's
            connector selection. An empty array is treated the same as omitting
            the field. When omitted:


            - On `task.create` with `project_id`, the task uses the project's
            default connectors.

            - On `task.create` without `project_id`, the task uses the
            connectors you enabled by default in your account. Connectors that
            are installed but not enabled are not loaded.

            - On `task.sendMessage`, the task keeps its current selection.


            To start or continue without connectors, set the top-level
            `clear_connectors: true`. Use
            [connector.list](https://open.manus.ai/docs/v2/connector.list) to
            get connector IDs.
        enable_skills:
          type: array
          items:
            type: string
          description: >-
            Skill IDs to enable for this task. Use
            [skill.list](https://open.manus.ai/docs/v2/skill.list) to retrieve
            available skill IDs. An empty list is treated the same as omitting
            this field.


            - **API Key:** The user's enabled skills are loaded by default.

            - **Standard OAuth client:** All App-owned skills are loaded by
            default, and user skills are not loaded. When a non-empty list is
            supplied, every ID must be App-owned; the request is rejected
            otherwise.

            - **Trusted client:** The user's enabled skills are loaded by
            default. The client's App skills are always added. IDs of another
            App's skills are rejected.
        force_skills:
          type: array
          items:
            type: string
          description: >-
            Skill IDs the agent must invoke during this task. Forced skills are
            automatically available even if not listed in `enable_skills`.
            Standard OAuth clients can force only App-owned IDs, and Trusted
            clients cannot force another App's skills; the request is rejected
            otherwise.
        task_references:
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9]{22}$
          maxItems: 20
          description: >-
            IDs of existing tasks the agent can browse on demand.


            - Bare 22-character task IDs only; up to 20 per request.

            - On task.sendMessage, IDs are added to the task's existing
            references and cannot be cleared.


            See the [Task
            references](https://open.manus.ai/docs/v2/task-references) guide.
      required:
        - content
    ErrorResponse:
      type: object
      description: Standard error response format returned when a request fails.
      properties:
        ok:
          type: boolean
          example: false
          description: Always false for error responses.
        request_id:
          type: string
          description: >-
            Unique identifier for this API request, useful for debugging with
            support.
        error:
          type: object
          description: Error details.
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code (e.g., "invalid_argument",
                "not_found", "permission_denied", "rate_limited").
            message:
              type: string
              description: Human-readable error description explaining what went wrong.
    ContentPart:
      oneOf:
        - type: object
          title: Text
          properties:
            type:
              type: string
              enum:
                - text
              description: Must be "text".
            text:
              type: string
              description: >-
                The text content of the message. Across a ContentPart array, all
                text parts must contain no more than approximately 5,000
                estimated tokens in total.
            visibility:
              type: string
              enum:
                - visible
                - hidden
              default: visible
              description: >-
                Optional. Most integrations can omit this field. A `Trusted
                public client` can set it to `hidden` to pass additional
                application context without displaying it to users. See [Hidden
                application
                context](https://open.manus.ai/docs/v2/hidden-application-context).
          required:
            - type
            - text
        - type: object
          title: File
          description: '**Provide the file via one of: file_id, file_url, or file_data.**'
          properties:
            type:
              type: string
              enum:
                - file
              description: Must be "file".
            file_id:
              type: string
              description: >-
                ID of a file uploaded with
                [file.upload](https://open.manus.ai/docs/v2/file.upload). Up to
                512 MB per file; see
                [Limits](https://open.manus.ai/docs/v2/file.upload#limits).
            file_url:
              type: string
              description: >-
                Publicly accessible URL to the file. Manus downloads it
                directly. Up to 20 MB.
            file_data:
              type: string
              description: >-
                Base64 encoded file content in the form
                `data:<mime_type>;base64,<encoded_content>`. Up to 20 MB after
                decoding.
            filename:
              type: string
              description: >-
                Display name of the file including extension (e.g.,
                "report.pdf"). Required when using file_data; recommended for
                file_url.
            mime_type:
              type: string
              description: >-
                MIME type of the file (e.g., "application/pdf", "image/png").
                Optional; auto-detected from filename if omitted.
            visibility:
              type: string
              enum:
                - visible
              default: visible
              description: >-
                Optional. Most integrations can omit this field. Only `visible`
                is supported for this content type.
          required:
            - type
        - type: object
          title: Voice
          description: '**Provide the audio via one of: file_id, file_url, or file_data.**'
          properties:
            type:
              type: string
              enum:
                - voice
              description: Must be "voice".
            file_id:
              type: string
              description: >-
                ID of an audio file uploaded with
                [file.upload](https://open.manus.ai/docs/v2/file.upload). Up to
                512 MB per file; see
                [Limits](https://open.manus.ai/docs/v2/file.upload#limits).
            file_url:
              type: string
              description: >-
                Publicly accessible URL to the audio file. Manus downloads and
                transcribes it. Up to 20 MB.
            file_data:
              type: string
              description: >-
                Base64 encoded audio content in the form
                `data:<mime_type>;base64,<encoded_content>`. Up to 20 MB after
                decoding.
            filename:
              type: string
              description: >-
                Display name of the audio file including extension (e.g.,
                "recording.wav"). Required when using file_data.
            mime_type:
              type: string
              description: >-
                MIME type of the audio file (e.g., "audio/wav", "audio/mp3").
                Optional; auto-detected from filename if omitted.
            visibility:
              type: string
              enum:
                - visible
              default: visible
              description: >-
                Optional. Most integrations can omit this field. Only `visible`
                is supported for this content type.
          required:
            - type
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-manus-api-key

````

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