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

# Machines API overview

> Base URL, Bearer token auth, and OpenAPI spec for the Fly.io Machines API, with links to Apps, Machines, Volumes, Secrets, and Certificates endpoints.

This site hosts the API reference generated from the Fly.io Machines API OpenAPI
specification. For how to get started, deeper explanations of each endpoint, and
examples, visit the complete [Machines API docs](https://docs.fly.io/machines/api/).

Download the [OpenAPI spec](https://docs.fly.io/api/machines/openapi.json) to generate a client or explore the API in another tool.

## Base URL

All requests are made against:

```
https://api.machines.dev
```

## Authentication

Authenticate every request with a Fly.io access token using the
`Authorization: Bearer <token>` header. Generate one with
[`fly tokens create`](https://docs.fly.io/flyctl/cmd/fly_tokens_create) or the
[Tokens](https://fly.io/tokens) page on the dashboard.

```bash theme={null}
curl https://api.machines.dev/v1/apps?org_slug=personal \
  -H "Authorization: Bearer $FLY_API_TOKEN"
```

## Resources

> [card] [Apps](https://docs.fly.io/api/machines/apps/list-apps.md)
>
> Group your Machines into apps.

> [card] [Machines](https://docs.fly.io/api/machines/machines/list-machines.md)
>
> Launch and control fast-booting VMs.

> [card] [Volumes](https://docs.fly.io/api/machines/volumes/list-volumes.md)
>
> Persistent storage for your Machines.

> [card] [Postgres Clusters](https://docs.fly.io/api/machines/postgres-clusters/list-postgres-clusters.md)
>
> Create and manage Postgres clusters.

> [card] [Secrets](https://docs.fly.io/api/machines/secrets/list-secret-keys-belonging-to-an-app.md)
>
> App secrets and encryption keys.

> [card] [TLS Certificates](https://docs.fly.io/api/machines/tls-certificates/list-certificates-for-app.md)
>
> Certificates for custom hostnames.

> [card] [Tokens](https://docs.fly.io/api/machines/tokens/authenticate-token-header.md)
>
> Authenticate and mint access tokens.
