> ## 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.

# Create an expiring private dashboard URL

> Create an expiring, private-by-possession hosted dashboard URL for an analysis and selected design system.



## OpenAPI

````yaml /openapi.json post /dashboard-links
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:
  /dashboard-links:
    post:
      summary: Create an expiring private dashboard URL
      description: >-
        Create an expiring, private-by-possession hosted dashboard URL for an
        analysis and selected design system.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - analysis_id
                - design_id
              additionalProperties: false
              properties:
                analysis_id:
                  type: string
                  description: Analysis whose dashboard snapshot will be rendered.
                design_id:
                  type: string
                  description: A design ID from GET /design/systems.
                expires_in_days:
                  type: integer
                  minimum: 1
                  maximum: 90
                  default: 30
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DashboardLinkResult'
        '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'
        '503':
          description: Private dashboard links are not configured
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - bearerAuth: []
components:
  schemas:
    DashboardLinkResult:
      type: object
      additionalProperties: false
      required:
        - dashboard_url
        - analysis_id
        - design
        - visibility
        - expires_at
        - sharing
      properties:
        dashboard_url:
          type: string
          format: uri
          description: >-
            Bearer URL for the exact dashboard snapshot. Keep it private unless
            the user chooses to share it.
        analysis_id:
          type: string
        design:
          type: object
          additionalProperties: false
          required:
            - id
            - name
            - layout
          properties:
            id:
              type: string
            name:
              type: string
            layout:
              type: object
              additionalProperties: true
        visibility:
          type: string
          const: private_by_possession
        expires_at:
          type: string
          format: date-time
        sharing:
          type: object
          additionalProperties: false
          required:
            - default
            - optional
            - note
          properties:
            default:
              type: string
              const: private
            optional:
              type: boolean
              const: true
            note:
              type: string
    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

````