> For the complete documentation index, see [llms.txt](https://doc.flow.swiss/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.flow.swiss/developer-center/api.md).

# API

The Flow API allows you to manage resources within the Flow cloud in a simple, programmatic way using conventional HTTP requests. The endpoints are intuitive and powerful, allowing you to easily make calls to retrieve information or to execute actions.

All of the functionality that you are familiar with in the Flow control panel is also available through the API, allowing you to script the complex actions that your situation requires. Our API has predictable resource-oriented URLs, accepts and returns JSON-encoded content and uses standard HTTP response codes.

### Documentation

The latest API documentation is available here:[ https://my.flow.swiss/#/doc/](https://my.flow.swiss/#/doc/)

### Authentication

Most of our requests are protected tough a user role management system and therefore require identification of the current user. This authentication system works by requesting an authentication token using username and password and sending the generated token with each request in the X-Auth-Token header.

To generate such a token you have to make the following request:

```
POST https://api.flow.swiss/v3/auth
{
	"username": "…",
	"password": "…"
}
```

```
{
	"token": "…",
	"id": 1,
	"username": "my@flow.swiss"
}
```

Please find here more details about the authentication endpoints and models:\
<https://my.flow.swiss/#/doc/authentication>


---

# 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://doc.flow.swiss/developer-center/api.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.
