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

# Background a reply

> Let a long reply keep running without holding your connection open.

Only the live stream (if any) is closed; the agent keeps working. Check back later with `GET /messages/{id}` or `.../chunk`.


## OpenAPI

````yaml api-reference/openapi.json POST /messages/{message_id}/background
openapi: 3.1.0
info:
  title: Biomni Public API — V0
  description: >-
    The public API for **Biomni** — the AI agent platform for clinical genomics
    (variant annotation, ClinVar lookups, PMID-cited literature, and project
    file drives). Create projects and Tasks, send messages to the agent, stream
    its replies, manage files, and check your usage — all from your own code.


    **Authentication**: send `Authorization: Bearer <your-api-key>`. The adapter
    forwards your key straight to Biomni; it never stores it.


    **Safe retries**: send `Idempotency-Key: <token>` on POST endpoints
    (`/projects`, `/tasks`, `/messages`, `/files/uploads`) so a retried request
    won't create a duplicate.
  version: 0.1.0
servers:
  - url: https://api.phylo.bio/api/v1
security: []
paths:
  /messages/{message_id}/background:
    post:
      tags:
        - messages
      summary: Background a reply
      description: Let a long reply keep running without holding your connection open.
      operationId: background_message_messages__message_id__background_post
      parameters:
        - name: message_id
          in: path
          required: true
          schema:
            type: string
            title: Message Id
      responses:
        '200':
          description: Detached — agent keeps running upstream.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusAck'
              example:
                id: msg_1a0ef0fa8e26
                status: backgrounded
      security:
        - bearerAuth: []
components:
  schemas:
    StatusAck:
      properties:
        id:
          type: string
          title: Id
        status:
          type: string
          title: Status
      type: object
      required:
        - id
        - status
      title: StatusAck
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Requires an API key. See the Authentication guide.

````