Retrieves list of branches for a given owner and repository

GET /api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/branches/

Retrieves branch data for a given owner and repository.

Path Parameters

organization_id_or_slug (string)
REQUIRED

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

owner (string)
REQUIRED

The owner of the repository.

repository (string)
REQUIRED

The name of the repository.

Query Parameters:

limit (integer)

The number of results to return. If not specified, defaults to 20.

navigation (string)

Whether to get the previous or next page from paginated results. Use next for forward pagination after the cursor or prev for backward pagination before the cursor. If not specified, defaults to next. If no cursor is provided, the cursor is the beginning of the result set.

cursor (string)

The cursor pointing to a specific position in the result set to start the query from. Results after the cursor will be returned if used with next or before the cursor if used with prev for navigation.

term (string)

The term substring to filter name strings by using the contains operator.

Scopes

<auth_token> requires one of the following scopes:
  • org:admin
  • org:read
  • org:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/branches/ \
 -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied
.
Was this helpful?