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

# Forward messages to other conversations

> Sends the picked messages of this conversation to each target conversation as new messages;
the customer is not told they were forwarded, the panel shows them with `is_forwarded`.
Media goes out from the stored file. Every target is checked and queued on its own: one that
cannot receive the messages (inactive or unsupported channel, quota, unsupported file type,
text too long for the channel) is reported as `failed` with an `error_code`, and the others
are still sent. Stickers, locations, contact cards, system and deleted messages and media
that has not finished downloading cannot be forwarded.



## OpenAPI

````yaml /api-referansi/openapi.json post /v1/conversations/{id}/messages/forward
openapi: 3.1.0
info:
  title: Flextell API
  version: 0.0.1
  description: >-
    Flextell REST API referansı. Kimlik doğrulama, scope ve istek kuralları için
    API sekmesindeki rehberlere bakın.
servers:
  - url: https://app.flextell.ai/api
    description: Üretim
security:
  - oauth2: []
  - bearer: []
paths:
  /v1/conversations/{id}/messages/forward:
    post:
      tags:
        - Conversation
      summary: Forward messages to other conversations
      description: >-
        Sends the picked messages of this conversation to each target
        conversation as new messages;

        the customer is not told they were forwarded, the panel shows them with
        `is_forwarded`.

        Media goes out from the stored file. Every target is checked and queued
        on its own: one that

        cannot receive the messages (inactive or unsupported channel, quota,
        unsupported file type,

        text too long for the channel) is reported as `failed` with an
        `error_code`, and the others

        are still sent. Stickers, locations, contact cards, system and deleted
        messages and media

        that has not finished downloading cannot be forwarded.
      operationId: conversation.forwardMessages
      parameters:
        - name: id
          in: path
          required: true
          description: The conversation identifier
          schema:
            type: integer
        - name: X-Tenant
          in: header
          required: true
          description: >-
            Tenant identifier. Send the Tenant ID in the `X-Tenant` header to
            scope API requests to a specific tenant.
          schema:
            type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversationForwardMessagesRequest'
      responses:
        '202':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: string
                  data:
                    type: object
                    properties:
                      results:
                        type: array
                        items: {}
                    required:
                      - results
                required:
                  - success
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error_code:
                    type: string
                    const: RESOURCE_NOT_FOUND
                  message:
                    type: string
                  errors:
                    type: 'null'
                  data:
                    type: 'null'
                required:
                  - success
                  - error_code
                  - message
                  - errors
                  - data
        '409':
          $ref: '#/components/responses/CustomerErasedException'
        '422':
          $ref: '#/components/responses/ValidationException'
        '428':
          description: >-
            Mandatory setup is incomplete. Finish the setup wizard first;
            `data.next_step` names the step to continue with.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    examples:
                      - false
                  error_code:
                    type: string
                    enum:
                      - SETUP_REQUIRED
                    examples:
                      - SETUP_REQUIRED
                  message:
                    type: string
                    examples:
                      - Complete the required setup steps to continue.
                  data:
                    type: object
                    properties:
                      next_step:
                        type:
                          - string
                          - 'null'
                        examples:
                          - clinic_info
                    required:
                      - next_step
                required:
                  - success
                  - error_code
                  - message
                  - data
components:
  schemas:
    ConversationForwardMessagesRequest:
      type: object
      properties:
        message_ids:
          type: array
          description: >-
            The messages of this conversation to forward. Picking one item of an
            album forwards the whole album; they are sent in the order they were
            written.
          items:
            type: integer
            description: A message identifier from this conversation.
            minimum: 1
          minItems: 1
          maxItems: 50
        target_conversation_ids:
          type: array
          description: >-
            The conversations to forward the messages to. Each one must be
            visible to the user.
          items:
            type: integer
            description: A target conversation identifier.
            minimum: 1
          minItems: 1
          maxItems: 20
        forward_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Client-generated UUID of this forward action. A retry with the same
            value returns the original `message_ids` for each target instead of
            sending again.
      required:
        - message_ids
        - target_conversation_ids
      title: ConversationForwardMessagesRequest
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    CustomerErasedException:
      description: The patient record has been erased and is read-only
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: Always false for an error.
                examples:
                  - false
              error_code:
                type: string
                description: Machine-readable error code.
                examples:
                  - CUSTOMER_ERASED
              message:
                type: string
                description: Localized error message.
            required:
              - success
              - error_code
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.flextell.ai/oauth/authorize
          tokenUrl: https://app.flextell.ai/oauth/token
          scopes:
            '*': all
    bearer:
      type: http
      scheme: bearer

````

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