> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/reference/api/rest.md).

# REST API reference

Every REST endpoint you can call, generated from fastn's OpenAPI spec.

This reference lists the REST endpoints you can call with an API key. It is generated from the platform's OpenAPI spec (release `v1.12.0`). To run workflows and mint embed tokens, start with the shorter [HTTP API](https://docs.fastn.ai/reference/api.md) guide.

* [Workflows](https://docs.fastn.ai/reference/api/rest/workflows.md): Create, publish, run and inspect workflows.
* [Installations and configs](https://docs.fastn.ai/reference/api/rest/installations.md): Each customer's setup of a widget, its triggers and its configuration values.
* [Widgets and embedding](https://docs.fastn.ai/reference/api/rest/widgets.md): Widgets, embed tokens, share links and setup links.
* [Triggers and events](https://docs.fastn.ai/reference/api/rest/triggers.md): Webhook, schedule and app event triggers, received events and the dead-letter queue.
* [Event subscriptions](https://docs.fastn.ai/reference/api/rest/event-subscriptions.md): Endpoints of yours that fastn delivers events to.
* [Connectors](https://docs.fastn.ai/reference/api/rest/connectors.md): Connectors, actions, auth methods, webhook configs and mock stubs.
* [Connections](https://docs.fastn.ai/reference/api/rest/connections.md): Connected accounts and how they are created.
* [Unified API](https://docs.fastn.ai/reference/api/rest/unified.md): Unified records, the catalog, and your own unified entities.
* [Alerts and observability](https://docs.fastn.ai/reference/api/rest/observability.md): Alert rules, traces and the audit log.
* [Environments and secrets](https://docs.fastn.ai/reference/api/rest/environments.md): Environments, their config values, and secrets.
* [Organization and access](https://docs.fastn.ai/reference/api/rest/organization.md): Customers, people, roles, teams and API keys.

## Base URL

```
https://api.fastn.dev
```

Paths here start with `/v1`. The same routes also answer under `/api/v1`, which is the form the [HTTP API](https://docs.fastn.ai/reference/api.md) guide uses.

## Authentication

Send an API key as a bearer token. Keys are created under [API keys and MCP](https://docs.fastn.ai/embed/api-keys.md).

```bash
curl https://api.fastn.dev/v1/installations \
  -H "Authorization: Bearer fsk_live_<your-key>"
```

A key can only do what its permissions allow, and a call can be limited further by your role, your plan or the customer it acts for. Some routes are meant for a person signed in to the dashboard or for an embed session, so they may refuse an API key with `401` or `403`.

To act for one of your customers, send `x-org-id` with fastn's id for that customer or your own id for it. A key that requires identity verification also needs `x-user-id` and `x-identity-hmac`. See [Authentication and API keys](https://docs.fastn.ai/embed/api-keys/authentication-and-api-keys.md).

## Responses and errors

Most routes wrap their result as `{ "data": ... }` and report a failure as `{ "error": "..." }` with an HTTP status code, often with a `code` you can match on. See [Errors and failure states](https://docs.fastn.ai/reference/errors.md). Rate limits are on the [HTTP API](https://docs.fastn.ai/reference/api.md#rate-limits) page.

## Operation names

Each endpoint lists its operation name. Where the endpoint is also a fastn MCP tool, the tool has the same name, so `listInstallations` here is `fastnPlatform__listInstallations` from your AI tool.

## Download the spec

The spec for everything on these pages, in OpenAPI 3.1 JSON, is at [openapi.json](https://raw.githubusercontent.com/fastn-ai/docs/main/reference/rest/openapi.json). Import it into Postman or a client generator.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/reference/api/rest.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
