Repositories

List repositories (paginated)

Get a paginated list of repositories for an organization with cursor-based pagination. This is a more efficient endpoint for organizations with many repositories.

post/api/v2/repositories/list

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring

Unique identifier of the organization

appIdstring

Filter by GitHub App ID

externalGithubAppInstallationIdstring

Filter by GitHub App installation ID

getCountsboolean

Include issue counts in the response (may impact performance)

sortBy'name' | 'issues'

Field to sort by

sortDirection'asc' | 'desc'

Sort direction

cursorstring

Cursor for pagination (obtained from nextCursor in previous response)

limitinteger

Maximum number of repositories to return per page

searchstring

Search term to filter repositories by name or URL (case-insensitive)

Response

Paginated list of repositories

nextCursorstring nullable required

Cursor to use for fetching the next page. Null if no more pages exist.

hasMoreboolean required

Whether there are more repositories available beyond this page

totalCountinteger

Total number of repositories matching the query

Changes

No recorded changes to this operation across all 1 revision of this API.