---
title: "List an Organization's Repositories"
url: https://docs.sentry.io/api/organizations/list-an-organizations-repositories/
---

# List an Organization's Repositories | Sentry Docs

GET /api/0/organizations/{organization\_id\_or\_slug}/repos/

Return a list of version control repositories for a given organization.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

### Query Parameters:

* `query` *(string)*

  Filter repositories by name.

* `status` *(string)*

  **choices**:

  * `active
    deleted`

  Filter repositories by status. Defaults to `active`.

* `integration_id` *(string)*

  Filter repositories by integration ID.

* `expand` *(array(string))*

  Optional repository fields to expand, such as `settings`.

* `cursor` *(string)*

  A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.

* `per_page` *(integer)*

  The maximum number of repositories to return per page (1–100).

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:admin`
* `org:ci`
* `org:integrations`
* `org:read`
* `org:write`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/repos/ \
 -H 'Authorization: Bearer <auth_token>'
```

RESPONSESCHEMA

```
Copied
[
  {
    "dateCreated": "2018-11-06T21:19:58.536Z",
    "id": "3",
    "name": "sentry/sentry"
  }
]
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
