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

# Read conversation messages

> Returns the app's AI chat, both the messages sent to the AI and the replies it produced, oldest first.

An assistant message can have empty `content` when the whole turn is carried by tool calls, so treat an empty message as work the AI did rather than an error. Messages with `hidden` set to `true` are internal and do not appear in the app editor, so skip them to reconstruct the transcript shown there.

A tool call whose `status` is `waiting_for_user_input` means the AI has paused and cannot continue until that call is answered. Read its `arguments_string` to see what it is asking to do, then answer it with [Submit tool-call input](/api-reference/submit-tool-call-input) to let the turn continue. A waiting call carries its arguments in full, while a call that is not waiting can carry them cut short. The browser-typing tools are redacted either way, so a call from one of those cannot be reviewed before approving it.

Set `branch_id` to read a [branch](/developers/references/app-management/get-started/concepts#branches)'s conversation. It holds the branch's own messages, not main's.

For a pull-request branch, the displayed history also includes informational PR activity. Those entries are not messages sent to the AI and do not affect chat recovery.

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/chat/full-conversation
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/chat/full-conversation:
    get:
      summary: Read conversation messages
      description: >-
        Returns the app's AI chat, both the messages sent to the AI and the
        replies it produced, oldest first.


        An assistant message can have empty `content` when the whole turn is
        carried by tool calls, so treat an empty message as work the AI did
        rather than an error. Messages with `hidden` set to `true` are internal
        and do not appear in the app editor, so skip them to reconstruct the
        transcript shown there.


        A tool call whose `status` is `waiting_for_user_input` means the AI has
        paused and cannot continue until that call is answered. Read its
        `arguments_string` to see what it is asking to do, then answer it with
        [Submit tool-call input](/api-reference/submit-tool-call-input) to let
        the turn continue. A waiting call carries its arguments in full, while a
        call that is not waiting can carry them cut short. The browser-typing
        tools are redacted either way, so a call from one of those cannot be
        reviewed before approving it.


        Set `branch_id` to read a
        [branch](/developers/references/app-management/get-started/concepts#branches)'s
        conversation. It holds the branch's own messages, not main's.


        For a pull-request branch, the displayed history also includes
        informational PR activity. Those entries are not messages sent to the AI
        and do not affect chat recovery.


        <Warning>The response includes fields beyond the ones documented here.
        Don't rely on undocumented response fields, as they can change at any
        time.</Warning>
      operationId: get_full_conversation_api_api_apps__app_id__chat_full_conversation_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose conversation to read.
            title: App Id
          description: ID of the app whose conversation to read.
          example: 6820f3a4e7b91d003c45a1f2
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            description: >-
              Maximum number of messages to return, counted back from the
              newest. Omit to return the whole conversation.
            title: Limit
          description: >-
            Maximum number of messages to return, counted back from the newest.
            Omit to return the whole conversation.
          example: 20
        - name: skip
          in: query
          required: false
          schema:
            type: integer
            description: >-
              Number of messages to skip, counted back from the newest. Combine
              with `limit` to page back through the conversation. For example,
              `skip=20` with `limit=20` returns the 20 messages before the 20
              most recent. Prefer `cursor`.
            default: 0
            title: Skip
          description: >-
            Number of messages to skip, counted back from the newest. Combine
            with `limit` to page back through the conversation. For example,
            `skip=20` with `limit=20` returns the 20 messages before the 20 most
            recent. Prefer `cursor`.
          example: 0
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            description: >-
              `next_cursor` from the previous page, which returns the older
              messages before it. Send it without `skip`. It carries the page
              size, so `limit` is ignored. Pages are counted back from the
              newest message, so a message added while you page shifts the next
              page by one and repeats a message you already have.
            title: Cursor
          description: >-
            `next_cursor` from the previous page, which returns the older
            messages before it. Send it without `skip`. It carries the page
            size, so `limit` is ignored. Pages are counted back from the newest
            message, so a message added while you page shifts the next page by
            one and repeats a message you already have.
          example: gAAAAABn7vJ...
        - name: branch_id
          in: query
          required: false
          schema:
            type: string
            description: >-
              ID of the branch to work on, as returned by [List
              branches](/api-reference/list-branches). Omit it to work on the
              app's main branch.
            title: Branch Id
          description: >-
            ID of the branch to work on, as returned by [List
            branches](/api-reference/list-branches). Omit it to work on the
            app's main branch.
          example: 68f1a2b3c4d5e6f708192a3b
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationDetail'
        '400':
          description: >-
            `invalid_cursor`: the `cursor` is invalid or expired, belongs to
            another app or conversation, or was sent with `skip`.
        '401':
          description: Missing or invalid credentials.
        '403':
          description: You don't have access to this app.
        '404':
          description: App not found, or no branch you can see has this `branch_id`.
        '422':
          description: The `limit` or `skip` is not an integer.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - read_only
        - WorkspaceApiKeyAuth:
            - read_only
        - WorkspaceApiKeyBearerAuth:
            - read_only
components:
  schemas:
    ConversationDetail:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: ID of the conversation.
          example: 1f0c2b7a-9d51-4c3e-8a62-7b4d5e6f8a90
        messages:
          anyOf:
            - items:
                $ref: '#/components/schemas/ConversationMessageSummary'
              type: array
            - type: 'null'
          title: Messages
          description: The requested window of messages, oldest first.
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: >-
            Cursor for fetching the next page. The value is `null` if there are
            no more pages, or if `limit` wasn't set.
          example: gAAAAABn7vJ...
      type: object
      title: ConversationDetail
      description: A window of messages from an app's AI chat.
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    ConversationMessageSummary:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: ID of the message.
          example: 7f3a1c88-52d4-4a0e-9b31-2c6f0d8e4a19
        role:
          anyOf:
            - type: string
              enum:
                - user
                - assistant
                - system
            - type: 'null'
          title: Role
          description: >-
            Who produced the message. A `user` message is a prompt sent to the
            AI, an `assistant` message is the AI's reply, and a `system` message
            is a platform-generated note.
          example: assistant
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
          description: >-
            Text of the message. Empty on assistant turns whose work is carried
            entirely by tool calls, and on internal diff messages.
          example: I added a contact form to the home page.
        file_urls:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: File Urls
          description: URLs of the files attached to the message, or `null` if it has none.
          example:
            - https://example.com/mockup.png
        hidden:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Hidden
          description: >-
            Whether the message is internal and hidden from the chat in the app
            editor.
          example: false
        checkpoint_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Checkpoint Id
          description: >-
            ID of the
            [checkpoint](/developers/references/app-management/get-started/concepts#checkpoints)
            this message produced, or `null` if it produced none. Pass it as
            `checkpoint_id` to [Deploy an app](/api-reference/deploy-an-app) to
            deploy that version.
          example: 6886b8d390dc7e2f4a2c91b3
        tool_calls:
          anyOf:
            - items:
                $ref: '#/components/schemas/ConversationToolCallSummary'
              type: array
            - type: 'null'
          title: Tool Calls
          description: >-
            Tool calls the AI made on this message, or `null` on messages that
            made none. A call with `status` set to `waiting_for_user_input` is
            holding the turn open until it is answered.
        usage:
          anyOf:
            - $ref: '#/components/schemas/MessageUsageSummary'
            - type: 'null'
          description: >-
            Tokens and credits this message consumed, or `null` on messages that
            consumed none.
        metadata:
          anyOf:
            - $ref: '#/components/schemas/MessageMetadataSummary'
            - type: 'null'
          description: Who created the message and when.
      type: object
      title: ConversationMessageSummary
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
    ConversationToolCallSummary:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: >-
            ID of the tool call. Pass it as `tool_call_id` to [Submit tool-call
            input](/api-reference/submit-tool-call-input) when `status` is
            `waiting_for_user_input`.
          example: toolu_01A9FJd3kP2mNqRs7VwXyZ4b
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Name of the tool the AI is calling.
          example: create_file
        status:
          anyOf:
            - type: string
              enum:
                - running
                - success
                - error
                - stopped
                - waiting_for_user_input
            - type: 'null'
          title: Status
          description: >-
            Where the tool call is. Either `running`, `success`, `error`,
            `stopped`, or `waiting_for_user_input`. The last one means the turn
            is paused until the call is answered.
          example: waiting_for_user_input
        requires_user_input:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Requires User Input
          description: >-
            Whether this tool call has to be approved or rejected before the
            turn can continue.
          example: true
        arguments_string:
          anyOf:
            - type: string
            - type: 'null'
          title: Arguments String
          description: >-
            What the AI asked the tool to do, as a JSON object encoded in a
            string. Parse it to see the arguments before answering a call that
            is waiting. On a call whose `requires_user_input` is `true` the
            value is complete rather than shortened, which is the case that
            matters, because approving without reading it is approving blind. On
            any other call it can be cut to the first 500 characters. The one
            exception either way is the browser-typing tools,
            `local_browser_type` and `local_browser_press_key`, which always
            replace what was typed with `[redacted]` so a password or one-time
            code is never returned, waiting or not. Approving one of those means
            approving a value you cannot see. It is an empty string on a tool
            call that takes no arguments.
          example: >-
            {"file_path": "src/pages/Home.jsx", "content": "export default
            function Home() {}"}
      type: object
      title: ConversationToolCallSummary
      description: A tool call on an assistant message.
    MessageUsageSummary:
      properties:
        prompt_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Prompt Tokens
          description: >-
            Tokens the model read for this message, including the conversation
            history it was given.
          example: 18432
        completion_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Completion Tokens
          description: Tokens the model generated for this message.
          example: 742
        credits_charged:
          anyOf:
            - type: number
            - type: 'null'
          title: Credits Charged
          description: Credits charged for this message, or `null` if it was not billed.
          example: 1.5
      type: object
      title: MessageUsageSummary
    MessageMetadataSummary:
      properties:
        created_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created Date
          description: Time the message was created, as a UTC timestamp in ISO 8601 format.
          example: '2026-08-02T14:30:00'
        created_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Email
          description: >-
            Email of the user whose turn produced the message, or `anonymous` on
            a message Base44 created with no user in context.
          example: developer@example.com
      type: object
      title: MessageMetadataSummary
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

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