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

> ## Agent Instructions
> TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.
> For large datasets, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.
> Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.

# Get fit status

> Poll with the fitted training set ID. While the fit is pending, wait retry_in_secs before polling again. A completed or failed fit returns HTTP 200. An unknown ID returns HTTP 404.



## OpenAPI

````yaml /api-reference/openapi.json post /tabpfn/get_fit_status
openapi: 3.1.0
info:
  title: TabPFN API
  description: >-
    TabPFN REST API. For Python applications, use
    [tabpfn-client](/api-reference/overview). See the [REST
    quickstart](/api/rest-quickstart) for authentication and the upload, fit,
    and predict flow.
  version: 2.0.0
  contact:
    name: Prior Labs
    email: hello@priorlabs.ai
servers:
  - url: https://api.priorlabs.ai
    description: Production TabPFN API
security:
  - BearerAuth: []
paths:
  /tabpfn/get_fit_status:
    post:
      tags:
        - Training
      summary: Get fit status
      description: >-
        Poll with the fitted training set ID. While the fit is pending, wait
        retry_in_secs before polling again. A completed or failed fit returns
        HTTP 200. An unknown ID returns HTTP 404.
      operationId: tabpfn_get_fit_status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetFitStatusRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetFitStatusResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundErrorResponse'
          description: Not Found
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Default Response
components:
  schemas:
    GetFitStatusRequest:
      properties:
        fitted_train_set_id:
          format: uuid
          title: Fitted Train Set Id
          type: string
      additionalProperties: false
      type: object
      required:
        - fitted_train_set_id
      title: GetFitStatusRequest
    GetFitStatusResponse:
      properties:
        fitted_train_set_id:
          format: uuid
          title: Fitted Train Set Id
          type: string
        status:
          $ref: '#/components/schemas/FitStatus'
        retry_in_secs:
          anyOf:
            - type: number
            - type: 'null'
          title: Retry In Secs
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
        timings:
          anyOf:
            - $ref: '#/components/schemas/FitTimings'
            - type: 'null'
        notice:
          anyOf:
            - type: string
            - type: 'null'
          title: Notice
      additionalProperties: false
      type: object
      required:
        - fitted_train_set_id
        - status
      title: GetFitStatusResponse
    NotFoundErrorResponse:
      additionalProperties: false
      properties:
        message:
          description: What went wrong.
          title: Message
          type: string
        error_code:
          default: NOT_FOUND
          title: Error Code
          type: string
          x-sdk-keep-default: true
        trace_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          description: Id to quote when reporting the error.
          title: Trace Id
      required:
        - message
      title: NotFoundErrorResponse
      type: object
    ErrorResponse:
      additionalProperties: false
      properties:
        message:
          description: What went wrong.
          title: Message
          type: string
        error_code:
          default: GENERAL_ERROR
          description: Machine-readable error category, such as `BUSY`.
          title: Error Code
          type: string
          x-sdk-keep-default: true
        trace_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          description: Id to quote when reporting the error.
          title: Trace Id
      required:
        - message
      title: ErrorResponse
      type: object
    FitStatus:
      enum:
        - pending
        - completed
        - failed
      title: FitStatus
      type: string
    FitTimings:
      additionalProperties: false
      description: |-
        Where a fit's time went. Queue wait covers everything outside worker
        processing: waiting for a free worker and transport.
      properties:
        elapsed_s:
          description: >-
            Seconds from submission until the fit completed, or until now while
            it is pending.
          title: Elapsed S
          type: number
        queue_wait_s:
          anyOf:
            - type: number
            - type: 'null'
          description: Seconds the fit waited for a worker. Set once the fit completed.
          title: Queue Wait S
        train_set_transform_s:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            Seconds a worker spent loading, validating and preprocessing the
            train set. Set once the fit completed.
          title: Train Set Transform S
        fit_s:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            Seconds a worker spent fitting the model; 0 when the model is fitted
            at predict time. Set once the fit completed.
          title: Fit S
      required:
        - elapsed_s
      title: FitTimings
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer token for authentication, obtained after signing up and
        generating an API key.

````

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