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

# Overview

> How the HTTP API is organised.

The API is served at `https://api.tabsutra.com`. It takes JSON bodies, or CSV and Parquet files on the endpoints whose names end in `-file` or `-files`. Every request needs an API key in the `Authorization` header. See [Access and API keys](https://docs.tabsutra.com/authentication.md).

## Two-step and one-step calls

Most work follows two steps. You send the rows with known answers once, and you get back an id. You then send rows to predict against that id, as often as you need.

| Data | Step 1 | Step 2 |
| - | - | - |
| A table or a sequence | `POST /v1/fit` returns a `context_id` | `POST /v1/predict` |
| Time series | none: the history comes with the request | `POST /v1/forecast` |
| A database | `POST /v1/databases` returns a `database_id` | `POST /v1/databases/{database_id}/predict`, `/recommend` or `/tasks/predict` |

For one-off jobs, `POST /v1/fill` does both steps in one call. It predicts the rows whose answer is empty from the rows whose answer is known.

Every kind of prediction has a matching `evaluate` endpoint. It holds out part of your data, predicts it, and scores the result against simple baselines.

## Ids

The same rows and settings always give the same `context_id`, and the same tables always give the same `database_id`. Each is kept for a limited time. If an id is no longer there, the call returns `unknown_context` or `unknown_database`. Send the rows again, and you get the same id back.

## Rows in JSON

A table is sent as a list of objects, one object per row, with the column names as keys.

```json theme={null}
{"rows": [{"customer_id": "C0012", "date": "2026-05-01", "region": "north"},
          {"customer_id": "C0013", "date": "2026-05-01", "region": "south"}]}
```

Dates can be written as ISO strings, such as `2026-05-01` or `2026-05-01T10:30:00`. A missing value is `null`.

## Outputs

Prediction endpoints take `outputs`, `quantiles` and `coverage` to choose what comes back, and `explain` to add explanations. See [Outputs](https://docs.tabsutra.com/concepts/outputs.md) and [Explanations](https://docs.tabsutra.com/concepts/explainability.md). File endpoints also take `format`, which is `json`, `csv` or `parquet`.

## Errors

Every error comes back as `{"error": {"code", "message", "trace_id"}}`. See [Errors](https://docs.tabsutra.com/reference/errors.md).


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