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

# API Reference Overview

> MathFi.ai REST API reference covering Bearer token auth, base URL, and endpoint structure for datasets, training, and inference.

The MathFi.ai API is organized around REST principles and uses JSON for all responses.

### Authentication

Each request must be authenticated by including a short-lived `Bearer` token provided via HTTP header:

```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```

As of now, this token can only be obtained by calling the *login* endpoint with the `email` and `password` received when signing up to the platform (same credentials used in the Dashboard). See [Authentication](/developers/authentication) for full details.

### Base URL

```
https://api.mathfi.ai
```

### API reference and recipes

* Follow common workflows with [API recipes](/developers/api-recipes)
* Authenticate and obtain a Bearer token via [Authentication](/developers/authentication)
* Use the [Python SDK](/developers/python-sdk) for a programmatic interface

<Note>MathFi.ai API is actively maintained. We version endpoints and communicate changes via the changelog. Review the changelog before production upgrades. Current version: v1. Breaking changes will be communicated with 30 days notice.</Note>
