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

# Get Completed Session Document

> Retrieve the rendered report attached to a completed launch session, as Markdown (default) or HTML. The document remains available on the completed session after the 48-hour session window.



## OpenAPI

````yaml /developer-docs/api/openapi.json get /v1/partner/launch-sessions/{session_id}/document
openapi: 3.1.0
info:
  title: Everbility Public API
  version: 1.0.0
  description: >-
    Pull reports from Everbility, upload notes and files, poll asynchronous
    jobs, and generate reports from saved templates. Partner endpoints let
    approved platforms connect practices with OAuth 2.0, launch report-writing
    sessions, receive signed lifecycle webhooks, and retrieve completed
    documents.
servers:
  - url: https://api.everbility.com
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/partner/launch-sessions/{session_id}/document:
    get:
      tags:
        - partner
      summary: Get Completed Session Document
      description: >-
        Retrieve the rendered report attached to a completed launch session, as
        Markdown (default) or HTML. The document remains available on the
        completed session after the 48-hour session window.
      operationId: >-
        get_partner_launch_session_document_v1_partner_launch_sessions__session_id__document_get
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
        - name: format
          in: query
          required: false
          schema:
            enum:
              - markdown
              - html
            type: string
            default: markdown
            title: Format
      responses:
        '200':
          description: Rendered document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerDocumentDetail'
        '401':
          description: Invalid or expired access token, or the connection was revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerErrorResponse'
              example:
                detail: Invalid bearer token
        '404':
          description: Unknown session, or the attached document is no longer accessible.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerErrorResponse'
              example:
                detail: Document not found
        '409':
          description: The session has not been completed yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerErrorResponse'
              example:
                detail: Session not completed
        '410':
          description: The session expired before completion.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerErrorResponse'
              example:
                detail: Session expired
      security:
        - partnerBearer: []
components:
  schemas:
    PartnerDocumentDetail:
      type: object
      title: PartnerDocumentDetail
      properties:
        session_id:
          type: string
          title: Session Id
        title:
          type: string
          title: Title
        everbility_client_id:
          type: integer
          title: Everbility Client Id
        format:
          type: string
          enum:
            - markdown
            - html
          title: Format
        content:
          type: string
          title: Content
          description: Rendered report content in the requested format.
      required:
        - session_id
        - title
        - everbility_client_id
        - format
        - content
      example:
        session_id: psess_Zl9nB1qFhOQe2kQ4rW8xJ3Ty
        title: Functional capacity report
        everbility_client_id: 864
        format: markdown
        content: |-
          # Functional capacity report

          ...
    PartnerErrorResponse:
      type: object
      title: PartnerErrorResponse
      properties:
        detail:
          type: string
          title: Detail
          description: Human-readable error code or message.
      required:
        - detail
      example:
        detail: Invalid authorization code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Use a Clerk-backed Everbility user or organisation API key directly as
        the bearer token.
    partnerBearer:
      type: http
      scheme: bearer
      bearerFormat: Partner access token
      description: >-
        Opaque partner access token (pat_...) issued by POST
        /v1/partner/oauth/token. Access tokens last 1 hour; refresh with the
        90-day refresh token.

````