List Repositories Linked to a Project
GET /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/repo/
List all repositories linked to a project.
Pass ?includeMappingCount=1 to include the number of code path mappings
per repository. Omitting it keeps the query cheaper for callers that
only need the list of connections.
Path Parameters
organization_id_or_slug(string)REQUIREDThe ID or slug of the organization the resource belongs to.
project_id_or_slug(string)REQUIREDThe ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
Query Parameters:
includeMappingCount(string)When set to
1, each row includes amappingCountfield with the number of code path mappings for that repository. Omitted by default to keep the response lightweight.
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:project:adminproject:readproject:write
Copied
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/repo/ \ -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied.
Was this helpful?