> 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/tutorials/developer.md).

# Developer

This section is dedicated for developers embedding Fastn into their own product. Your customers use the embedded widget to connect their apps and configure integrations; your job is to render that widget inside your application and generate the tokens that scope it to each customer.

You don't run Fastn locally or build the integration infrastructure yourself. Fastn runs as a hosted platform. You embed its widget as an iframe, generate a short-lived token from your backend, and decide how connections are scoped to your customers.

### In this section

[**How Embedding Works**](/tutorials/developer/how-embedding-works.md) — The embedding model: how the iframe, the token, and your backend fit together.

[**Embedding Quickstart**](/tutorials/developer/embedding-quickstart.md) — Generate a token, render the iframe, and see a working connection.

[**Generating Embed Tokens**](/tutorials/developer/generating-embed-tokens.md) — The token endpoint, the server-side pattern, and token lifecycle.

[**Authentication & API Keys**](/tutorials/developer/authentication-and-api-keys.md) — Test vs live keys and the headers each requires.

[**Finding Your Org Identifier**](/tutorials/developer/finding-your-org-identifier.md) — Locating the `endOrgId` your token and iframe calls need.

[**Understanding Tenancy**](/tutorials/developer/understanding-tenancy.md) — The two ways connections can be scoped, and how to choose.

[**Deployment**](/tutorials/developer/deployment.md) — Environment variables and deploy-time considerations.

[**MCP Gateway Integration**](/tutorials/developer/mcp-gateway-integration.md) — Exposing integrations as tools for AI agents.

[**Troubleshooting**](/tutorials/developer/troubleshooting.md) — Common errors and their causes.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fastn.ai/tutorials/developer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
