---
title: "Find the project for a repository – Superbot API"
canonical_url: "https://superbot.gg/developers/runs#listRunProjects"
last_updated: "2026-10-01"
summary: "Your projects whose linked repository is `repo`, compared after normalising the URL (scheme, `git@host:` form, a trailing `.git` and case do not matter). Pass a returned `id` as `project` to createRun. Only `id` and `name` are returned. An empty list means no project is linked to that repository. Refusal: 400 `invalid_repo`."
---

> Markdown twin of https://superbot.gg/developers/runs#listRunProjects (the HTML page is canonical).
> The site index for agents is /llms.txt; every content page has a twin at its path plus `.md`.

# Find the project for a repository

`GET /v1/runs/projects`

Your projects whose linked repository is `repo`, compared after normalising the URL (scheme, `git@host:` form, a trailing `.git` and case do not matter). Pass a returned `id` as `project` to createRun. Only `id` and `name` are returned. An empty list means no project is linked to that repository. Refusal: 400 `invalid_repo`.

- Operation id: `listRunProjects`
- Group: [Runs](https://superbot.gg/developers/runs.md)
- Auth: A caller key holding `runs:read` (`Authorization: Bearer sbc_…` or `x-api-key: sbc_…`), or a signed-in session.
- Scopes: `runs:read`

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `repo` | string | required | The repository URL: `https://github.com/o/r`, `ssh://git@github.com/o/r.git` or `git@github.com:o/r.git` all match the same project. |

## Response 200

The matching projects, possibly none.

`application/json`: RunProjectList.

- `projects` (array of object, required)
  - `id` (string, required): The project id to pass as `project` to createRun.
  - `name` (string, required): The project’s name in the Superbot app.

## Errors

Every refusal carries `error`, `message`, `doc_url` and `request_id`; the gateway routes answer in the dialect you dialed.

| Status | Codes | When |
| --- | --- | --- |
| 400 | [`invalid_request`](https://superbot.gg/developers#errors-invalid_request) | The request is malformed or a parameter is invalid; `param` names the field. |
| 401 | [`unauthorized`](https://superbot.gg/developers#errors-unauthorized) | The bearer is missing, malformed or unknown. |
| 403 | [`insufficient_scope`](https://superbot.gg/developers#errors-insufficient_scope) | The key lacks a scope (insufficient_scope), is revoked, or may not call this route. |
| 429 | [`rate_limited`](https://superbot.gg/developers#errors-rate_limited) | Over the per-key request bucket; retry after x-ratelimit-reset. |

## Examples

```sh
curl -sS -X GET "https://superbot.gg/v1/runs/projects?repo=https%3A%2F%2Fgithub.com%2Facme%2Fapp" \
  -H "Authorization: Bearer $SUPERBOT_API_KEY"
```

```js
const res = await fetch(`https://superbot.gg/v1/runs/projects?repo=https%3A%2F%2Fgithub.com%2Facme%2Fapp`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.SUPERBOT_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

```python
import os
import requests

res = requests.request(
    "GET",
    "https://superbot.gg/v1/runs/projects?repo=https%3A%2F%2Fgithub.com%2Facme%2Fapp",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERBOT_API_KEY']}",
    },
)
print(res.status_code, res.json())
```
