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

# Re-run a stored analysis on its existing sources

> Re-run a stored analysis against its existing sources, producing a fresh analysis result and dashboard spec.



## OpenAPI

````yaml /openapi.json post /analyses/{id}/rerun
openapi: 3.1.0
info:
  title: ForeverBetter Wellness API
  version: 0.4.8
  description: >-
    ForeverBetter Wellness API and MCP-compatible service for genetics,
    biomarkers, wearables, lab locator handoffs, dashboard specs, and hosted
    billing.
  x-guidance: >-
    Use /openapi.json to discover the API. For a payable operation, make the
    exact request without credentials, select a compatible option from
    PAYMENT-REQUIRED, then retry unchanged with PAYMENT-SIGNATURE. x402 payments
    create a payer-scoped private workspace; do not send user_id or
    organization_id. Use GET /.well-known/x402.json for the live route and price
    catalog.
servers:
  - url: https://api.foreverbetter.xyz
security:
  - bearerAuth: []
paths:
  /analyses/{id}/rerun:
    post:
      summary: Re-run a stored analysis on its existing sources
      description: >-
        Re-run a stored analysis against its existing sources, producing a fresh
        analysis result and dashboard spec.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties: {}
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalysisResult'
        '400':
          description: Invalid request or source modality
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Source not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - bearerAuth: []
components:
  schemas:
    AnalysisResult:
      type: object
      additionalProperties: false
      required:
        - id
        - user_id
        - created_at
        - source_ids
        - raw_source_references
        - normalized_observations
        - derived_interpretations
        - dashboard_spec
      properties:
        id:
          type: string
        user_id:
          type: string
          minLength: 1
        organization_id:
          type: string
          minLength: 1
        modality:
          type: string
          enum:
            - genetics
            - biomarkers
            - wearables
            - behavioral
            - multimodal
        operation:
          type: string
          enum:
            - analyze
            - derive
        created_at:
          type: string
          format: date-time
        source_ids:
          type: array
          items:
            type: string
        raw_source_references:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - id
              - user_id
              - category
              - received_at
              - byte_length
              - storage_mode
            properties:
              id:
                type: string
              user_id:
                type: string
                minLength: 1
              organization_id:
                type: string
                minLength: 1
              category:
                type: string
                enum:
                  - genetics
                  - biomarkers
                  - wearables
                  - behavioral
              filename:
                type: string
              content_type:
                type: string
              provider:
                type: string
              received_at:
                type: string
                format: date-time
              byte_length:
                type: integer
                minimum: 0
              storage_mode:
                type: string
                enum:
                  - memory
                  - durable
              upload_status:
                type: string
                enum:
                  - pending
                  - complete
        normalized_observations:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - id
              - user_id
              - source_id
              - category
              - type
              - name
            properties:
              id:
                type: string
              user_id:
                type: string
                minLength: 1
              organization_id:
                type: string
                minLength: 1
              source_id:
                type: string
              category:
                type: string
                enum:
                  - genetics
                  - biomarkers
                  - wearables
                  - behavioral
              type:
                type: string
              name:
                type: string
              value:
                type: number
              unit:
                type: string
              observed_at:
                type: string
                format: date-time
              provider:
                type: string
              raw: {}
        derived_interpretations:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - id
              - user_id
              - analysis_id
              - category
              - type
              - title
              - provenance
            properties:
              id:
                type: string
              user_id:
                type: string
                minLength: 1
              organization_id:
                type: string
                minLength: 1
              analysis_id:
                type: string
              category:
                type: string
                enum:
                  - genetics
                  - biomarkers
                  - wearables
                  - behavioral
                  - multimodal
              type:
                type: string
              title:
                type: string
              status:
                type: string
              score:
                type: number
              summary:
                type: string
              action:
                type: string
              provenance:
                type: object
                additionalProperties: false
                required:
                  - source_ids
                  - source_categories
                  - source_type
                  - engine
                  - generated_at
                properties:
                  source_ids:
                    type: array
                    items:
                      type: string
                  source_categories:
                    type: array
                    items:
                      type: string
                      enum:
                        - genetics
                        - biomarkers
                        - wearables
                        - behavioral
                  source_type:
                    type: string
                    enum:
                      - direct
                      - derived
                      - combined
                      - queued
                      - setup_required
                      - failed
                  engine:
                    type: string
                  generated_at:
                    type: string
                    format: date-time
              raw: {}
        dashboard_spec:
          type: object
          additionalProperties: false
          required:
            - schema_version
            - id
            - user_id
            - analysis_id
            - generated_at
            - cards
            - coverage
            - quality
            - sections
            - provenance
          properties:
            schema_version:
              type: string
              const: '1.0'
            id:
              type: string
            user_id:
              type: string
              minLength: 1
            organization_id:
              type: string
              minLength: 1
            analysis_id:
              type: string
            generated_at:
              type: string
              format: date-time
            cards:
              type: array
              items:
                type: object
                additionalProperties: false
                required:
                  - id
                  - title
                  - category
                properties:
                  id:
                    type: string
                  title:
                    type: string
                  category:
                    type: string
                  score:
                    type: number
                  status:
                    type: string
                  summary:
                    type: string
                  action:
                    type: string
                  value:
                    type: number
                  unit:
                    type: string
                  target:
                    type: object
                    additionalProperties: false
                    properties:
                      min:
                        type: number
                      max:
                        type: number
                  visualization:
                    type: string
                    enum:
                      - range
                      - score
                      - status
                  confidence:
                    type: string
                    enum:
                      - high
                      - medium
                      - low
                  provenance:
                    type: object
                    additionalProperties: false
                    required:
                      - source_ids
                      - source_categories
                      - source_type
                      - engine
                      - generated_at
                    properties:
                      source_ids:
                        type: array
                        items:
                          type: string
                      source_categories:
                        type: array
                        items:
                          type: string
                          enum:
                            - genetics
                            - biomarkers
                            - wearables
                            - behavioral
                      source_type:
                        type: string
                        enum:
                          - direct
                          - derived
                          - combined
                          - queued
                          - setup_required
                          - failed
                      engine:
                        type: string
                      generated_at:
                        type: string
                        format: date-time
            coverage:
              type: array
              items:
                type: object
                additionalProperties: false
                required:
                  - modality
                  - present
                  - source_count
                  - finding_count
                properties:
                  modality:
                    type: string
                    enum:
                      - genetics
                      - biomarkers
                      - wearables
                      - behavioral
                  present:
                    type: boolean
                  source_count:
                    type: integer
                  finding_count:
                    type: integer
                  latest_received_at:
                    type: string
                    format: date-time
            quality:
              type: object
              additionalProperties: false
              required:
                - status
                - usable
                - warnings
                - freshness
              properties:
                status:
                  type: string
                  enum:
                    - complete
                    - partial
                    - empty
                usable:
                  type: boolean
                warnings:
                  type: array
                  items:
                    type: string
                freshness:
                  type: array
                  items:
                    type: object
                    additionalProperties: false
                    required:
                      - modality
                      - status
                      - threshold_days
                    properties:
                      modality:
                        type: string
                        enum:
                          - genetics
                          - biomarkers
                          - wearables
                          - behavioral
                      status:
                        type: string
                        enum:
                          - fresh
                          - stale
                          - missing
                          - unknown
                      threshold_days:
                        type: integer
                      latest_received_at:
                        type: string
                        format: date-time
                      age_days:
                        type: integer
            sections:
              type: array
              items:
                type: object
                additionalProperties: false
                required:
                  - id
                  - title
                  - category
                  - card_ids
                properties:
                  id:
                    type: string
                  title:
                    type: string
                  category:
                    type: string
                  card_ids:
                    type: array
                    items:
                      type: string
            provenance:
              type: object
              additionalProperties: false
              required:
                - source_ids
                - storage_mode
                - clinical_boundary
              properties:
                source_ids:
                  type: array
                  items:
                    type: string
                storage_mode:
                  type: string
                  enum:
                    - memory
                    - durable
                clinical_boundary:
                  type: string
        healthspan_score:
          type: number
        domain_scores:
          type: object
          additionalProperties:
            type: number
        job:
          type: object
          additionalProperties: true
    ProblemDetails:
      type: object
      additionalProperties: true
      required:
        - type
        - title
        - status
        - detail
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
        request_id:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````