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

# Run detail

> Detail for one of your runs: state, name, timestamps, whether each input CSV has been uploaded (the "ready to start" gate), and how far refinement has progressed.



## OpenAPI

````yaml api-reference/openapi.yaml GET /api/v1/feature-refinery/{featureRefinementKey}
openapi: 3.0.1
info:
  title: MathFi.ai API
  description: >
    The MathFi.ai REST API runs the two products end to end.


    **Feature Refinery** takes your labelled data and works out which columns

    actually carry the signal. It returns a reduced train and test pair, a

    per-column keep/remove decision, and the performance target the refined data

    reached.


    **Model Crucible** takes a dataset, trains every algorithm family against it

    at once, ranks the results on held-out data by fewest wrong decisions, and

    keeps the best three as versions of one model. You pick which one
    predictions

    run against.


    Everything is asynchronous: you create a thing, upload to a signed URL,
    start

    it, then poll until the state is terminal. Nothing streams and nothing
    blocks.
  contact:
    name: MathFi.ai
    url: https://mathfi.ai
    email: support@mathfi.ai
  license:
    name: MathFi.ai
    url: https://mathfi.ai
  version: 1.0.0
servers:
  - url: https://{tenant}-api.mathfi.ai
    description: >-
      Your tenant's API. Each customer has their own, so the host varies.
      Replace {tenant} with the name issued when your tenant was created.
    variables:
      tenant:
        default: your-tenant
        description: The tenant name issued to you.
security:
  - BearerAuth: []
tags:
  - name: Authentication
    description: Exchange credentials for a bearer token
  - name: Feature Refinery
    description: Reduce a dataset to the columns that earn their place
  - name: Datasets
    description: >-
      Prepare labelled data for training, from uploads or from a finished
      refinement
  - name: Training
    description: Run the Crucible against a dataset and choose the champion model
  - name: Models
    description: Trained models and their versions
  - name: Predictions
    description: Score unlabelled data against a champion model
paths:
  /api/v1/feature-refinery/{featureRefinementKey}:
    get:
      tags:
        - Feature Refinery
      summary: Run detail
      description: >-
        Detail for one of your runs: state, name, timestamps, whether each input
        CSV has been uploaded (the "ready to start" gate), and how far
        refinement has progressed.
      operationId: getFeatureRefinement
      parameters:
        - name: featureRefinementKey
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Run detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeatureRefineryDetailOutput'
        '404':
          description: Unknown feature refinement key
        '500':
          description: Internal server error
components:
  schemas:
    FeatureRefineryDetailOutput:
      description: >-
        Detail for one run: metadata, the per-input upload gate, and coarse
        refinement progress.
      required:
        - featureRefinementKey
        - state
        - inputs
      type: object
      properties:
        featureRefinementKey:
          type: string
          format: uuid
        name:
          type: string
        trainFileName:
          type: string
          nullable: true
          description: Original filename of the training CSV, if supplied at create.
        testFileName:
          type: string
          nullable: true
          description: Original filename of the labelled-test CSV, if supplied at create.
        state:
          type: string
        numberOfBuckets:
          type: integer
        createdOn:
          type: string
          description: ISO-8601 UTC instant the run was created.
        startedOn:
          type: string
          nullable: true
          description: ISO-8601 UTC instant the run started, or null while still pending.
        elapsedSeconds:
          type: integer
          format: int64
          description: >-
            Seconds the run has been processing (0 while pending; frozen once
            terminal).
        inputs:
          description: >-
            Upload status per expected input — all uploaded means the run is
            ready to start.
          type: array
          items:
            $ref: '#/components/schemas/FeatureRefineryInputStatus'
        totalColumns:
          type: integer
          description: >-
            Number of columns in the input, known once the baseline is computed
            (0 before then).
        columnsRemoved:
          type: integer
          description: >-
            Coarse progress counter, paired with totalColumns, while a run is in
            flight. Read it as progress only. The run's outcome is on /result,
            which is the only place that reports what the refinement actually
            decided.
        cancelRequested:
          type: boolean
          nullable: true
          description: >-
            True once a cancel has been requested for this run, and it stays set
            — it is NOT cleared when the run reaches its terminal CANCELLED
            state, so a cancelled run keeps cancelRequested=true. It is
            therefore safe to rely on after a restart, rather than remembering
            the request locally. Treat it as meaningful only while the state is
            non-terminal; once terminal, state is authoritative. Omitted (null)
            when no cancel was ever requested.
    FeatureRefineryInputStatus:
      description: Whether one expected input CSV has been uploaded yet.
      required:
        - kind
        - uploaded
      type: object
      properties:
        kind:
          type: string
          enum:
            - TRAIN
            - TEST
        uploaded:
          type: boolean
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````