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

# Introduction

> Base URL, authentication and versioning for the Empirical API, with a project API key or your CLI sign-in

The Empirical API lets you trigger and inspect test runs, manage snoozes, browse test cases and environments, and pull analytics.

## Base URL

All endpoints are served from:

```text theme={null}
https://api.empirical.run
```

## Authentication

Generate a project API key under [Settings → API keys](https://empirical.run/settings/api-keys), then send it as a Bearer token:

```bash theme={null}
curl https://api.empirical.run/api/test-runs \
  -H "Authorization: Bearer $EMPIRICALRUN_KEY"
```

Project API keys are scoped to their project. Keep them secret and use a separate key for each automation context so it can be rotated independently.

If you are signed in with the [Empirical CLI](https://empirical.run/docs/cli.md), you can call the same endpoints without handling a key locally:

```sh theme={null}
empirical api api/test-runs --project <project-slug>
```

## Versioning

Endpoint paths may be unversioned or include a version such as `/api/v2/`. Use the path shown in this reference rather than adding a version yourself.

Deprecated endpoints are described in [openapi.deprecated.json](https://api.empirical.run/openapi.deprecated.json), including their replacements where available.

The current public API is available as an [OpenAPI specification](https://api.empirical.run/openapi.json).


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