> For the complete documentation index, see [llms.txt](https://docs.biodock.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.biodock.ai/public-api/resources/pipelines.md). Agents can also search and read this documentation through its [MCP server](https://docs.biodock.ai/~gitbook/mcp).

# Pipelines

*What you'll get: the list of models you can run through the API, and their IDs.*

A pipeline is an active model version in one of your projects. In the app you see it as a project's model version: `projectName` is the project, and `version` is the version number, as in **Version 2** on the project's **Active models** tab. `description` is the version's description, if it has one.

The list has the active model versions in projects you own, newest first. In a workspace, it has those in every workspace project you can see. Use a pipeline's `id` as the `pipelineId` when you [submit an analysis job](https://docs.biodock.ai/public-api/resources/analysis-jobs.md). Pipeline IDs aren't shown in the app.

## List pipelines

To view active pipelines, use the following endpoint:

## List pipelines

<mark style="color:blue;">`GET`</mark> `https://app.biodock.ai/api/external/pipelines`

#### Query Parameters

| Name          | Type   | Description                                                            |
| ------------- | ------ | ---------------------------------------------------------------------- |
| limit         | Number | Maximum number of results to return, from 1 to 100. Defaults to 10.    |
| startingAfter | String | Pagination cursor: the `id` of the last pipeline on the previous page. |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| X-API-KEY<mark style="color:red;">\*</mark> | String | API key.    |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    results: [{
        id: "0123456789",
        description: "My first pipeline",
        createdAt: "2000-01-01T00:00:00.001Z",
        version: 2,
        projectName: "Nuclei segmentation"
    }],
    count: 1
}
```

{% endtab %}
{% endtabs %}

## Sample usage

View all your active pipelines

```python
import requests

API_KEY = "" # Replace with your api key

URL = "https://app.biodock.ai/api/external/pipelines"
headers = {"X-API-KEY": API_KEY, "Content-Type": "application/json"}

response = requests.get(URL, headers=headers)
print(response.text)
```


---

# 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.biodock.ai/public-api/resources/pipelines.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.
