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

# Review an authoritative existing-subscription upgrade before confirming it



## OpenAPI

````yaml /openapi.json post /api/v1/billing/checkout/quote
openapi: 3.1.0
info:
  title: DecimalAI Platform
  description: Agent Dataset Lifecycle Platform — Backend API
  version: 0.1.0
servers:
  - url: https://api.decimal.ai
    description: Production
security:
  - BearerAuth: []
tags:
  - name: traces
    description: >-
      Ingest, search, and inspect agent execution traces. A trace is the atomic
      unit of the platform — every other feature (evaluation, compatibility
      scoring, dataset building) operates on traces. Each trace is auto-tagged
      with the manifest hash of the agent that produced it.
  - name: eval-scores
    description: >-
      Push, fetch, and aggregate per-trace evaluation scores. Scores carry
      source provenance (built-in, DeepEval, LangSmith, custom) and feed the
      unified decision engine, which produces a keep / repair / replay / drop
      verdict per trace.
  - name: skills
    description: >-
      Manage reusable instruction blocks (SKILL.md files) that modify agent
      behavior. Skills are first-class manifest components — changes to a skill
      appear in your regression-check impact reports. Use these endpoints to
      create, version, fork, and sync skills with your local SKILL.md files.
  - name: manifests
    description: >-
      Register and inspect manifest versions. A manifest is a snapshot of your
      agent's structural identity (tools, prompts, models, skills) at a point in
      time. The SDK registers manifests automatically; these endpoints expose
      the underlying records.
  - name: datasets
    description: >-
      Build versioned SFT/DPO training datasets from manifest-classified,
      eval-scored traces. Datasets are reproducible — each version locks the
      manifest and filter set used to build it. Export as JSONL, Parquet, or
      push to HuggingFace Hub.
  - name: replay
    description: >-
      Re-execute historical traces against a new manifest version. Replay is the
      deferred-future capability for behavioral verification of agent changes.
      The SDK creates a replay batch, your worker executes each task, then
      submits results back here for eval scoring.
  - name: registry
    description: >-
      Browse and install published skills from the public skills registry. Each
      registry skill carries a SkillScore — an evidence-tiered quality composite
      computed from real-world evals, benchmarks, and ratings across
      organizations. Installing creates a fork in your org — edits don't affect
      the public version.
  - name: agents
    description: >-
      List and inspect agents, plus their multi-agent topology (orchestrator →
      sub-agent edges discovered from traces). Agents are identified by a stable
      agent_name string set in your SDK init() call.
  - name: import
    description: >-
      Bulk-import historical traces from another observability platform or a
      JSONL backup. Useful for migrating from LangSmith / Braintrust / Langfuse.
      Duplicate trace IDs are silently skipped — re-running an import is safe.
paths:
  /api/v1/billing/checkout/quote:
    post:
      tags:
        - billing
      summary: >-
        Review an authoritative existing-subscription upgrade before confirming
        it
      operationId: create_upgrade_quote_api_v1_billing_checkout_quote_post
      parameters:
        - name: Authorization
          in: header
          required: false
          schema:
            type: string
            title: Authorization
        - name: decimal_session
          in: cookie
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Decimal Session
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpgradeQuoteRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/HostedCheckoutReview'
                  - $ref: '#/components/schemas/SubscriptionChangeReview'
                title: >-
                  Response Create Upgrade Quote Api V1 Billing Checkout Quote
                  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpgradeQuoteRequest:
      properties:
        plan:
          type: string
          maxLength: 32
          minLength: 1
          title: Plan
      type: object
      required:
        - plan
      title: UpgradeQuoteRequest
    HostedCheckoutReview:
      properties:
        kind:
          type: string
          const: hosted_checkout
          title: Kind
        status:
          type: string
          const: checkout_required
          title: Status
        org_id:
          type: string
          title: Org Id
        quote_id:
          type: 'null'
          title: Quote Id
        current_plan:
          type: string
          title: Current Plan
        target_plan:
          type: string
          title: Target Plan
        currency:
          type: string
          title: Currency
        list_price_monthly_cents:
          type: integer
          title: List Price Monthly Cents
        due_now_cents:
          type: 'null'
          title: Due Now Cents
        amount_due_cents:
          type: 'null'
          title: Amount Due Cents
        next_invoice_amount_due_cents:
          type: 'null'
          title: Next Invoice Amount Due Cents
        charge_timing:
          type: string
          const: hosted_checkout
          title: Charge Timing
        lines:
          items:
            $ref: '#/components/schemas/QuoteLine'
          type: array
          title: Lines
        expires_at:
          type: 'null'
          title: Expires At
      type: object
      required:
        - kind
        - status
        - org_id
        - current_plan
        - target_plan
        - currency
        - list_price_monthly_cents
        - charge_timing
        - lines
      title: HostedCheckoutReview
    SubscriptionChangeReview:
      properties:
        kind:
          type: string
          const: subscription_change
          title: Kind
        status:
          type: string
          enum:
            - review_ready
            - pending
            - applied
          title: Status
        org_id:
          type: string
          title: Org Id
        quote_id:
          type: string
          title: Quote Id
        current_plan:
          type: string
          title: Current Plan
        target_plan:
          type: string
          title: Target Plan
        currency:
          type: string
          title: Currency
        list_price_monthly_cents:
          type: integer
          title: List Price Monthly Cents
        due_now_cents:
          type: integer
          title: Due Now Cents
        amount_due_cents:
          type: integer
          title: Amount Due Cents
        next_invoice_amount_due_cents:
          type: integer
          title: Next Invoice Amount Due Cents
        proration_adjustment_cents:
          type: integer
          title: Proration Adjustment Cents
        subtotal_cents:
          type: integer
          title: Subtotal Cents
        total_cents:
          type: integer
          title: Total Cents
        proration_behavior:
          type: string
          enum:
            - create_prorations
            - none
          title: Proration Behavior
        proration_date:
          type: integer
          title: Proration Date
        charge_timing:
          type: string
          const: next_invoice
          title: Charge Timing
        current_period_end:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Period End
        expires_at:
          type: string
          title: Expires At
        lines:
          items:
            $ref: '#/components/schemas/QuoteLine'
          type: array
          title: Lines
        cancellation_will_be_cleared:
          type: boolean
          title: Cancellation Will Be Cleared
      additionalProperties: true
      type: object
      required:
        - kind
        - status
        - org_id
        - quote_id
        - current_plan
        - target_plan
        - currency
        - list_price_monthly_cents
        - due_now_cents
        - amount_due_cents
        - next_invoice_amount_due_cents
        - proration_adjustment_cents
        - subtotal_cents
        - total_cents
        - proration_behavior
        - proration_date
        - charge_timing
        - current_period_end
        - expires_at
        - lines
        - cancellation_will_be_cleared
      title: SubscriptionChangeReview
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    QuoteLine:
      properties:
        description:
          type: string
          title: Description
        amount_cents:
          type: integer
          title: Amount Cents
        currency:
          type: string
          title: Currency
        period_start:
          anyOf:
            - type: string
            - type: 'null'
          title: Period Start
        period_end:
          anyOf:
            - type: string
            - type: 'null'
          title: Period End
        is_proration:
          type: boolean
          title: Is Proration
      type: object
      required:
        - description
        - amount_cents
        - currency
        - period_start
        - period_end
        - is_proration
      title: QuoteLine
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your API key (e.g. dai_sk_test_key_001)

````

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