GET /user/repos

Lists repositories that the authenticated user has explicit permission (:read, :write, or :admin) to access.

The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.

Servers

Query parameters

Name Type Required Description
affiliation String No

Comma-separated list of values. Can include:

  • owner: Repositories that are owned by the authenticated user.
  • collaborator: Repositories that the user has been added to as a collaborator.
  • organization_member: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on.

Default value: "owner,collaborator,organization_member"

page Integer No

The page number of the results to fetch. For more information, see "Using pagination in the REST API."

Default value: 1

visibility String No

Limit results to repositories with the specified visibility.

Possible values:

  • "public"
  • "private"
  • "all"

Default value: "all"

direction String No

The order to sort by. Default: asc when using full_name, otherwise desc.

Possible values:

  • "desc"
  • "asc"
sort String No

The property to sort the results by.

Possible values:

  • "updated"
  • "created"
  • "full_name"
  • "pushed"

Default value: "full_name"

per_page Integer No

The number of results per page (max 100). For more information, see "Using pagination in the REST API."

Default value: 30

type String No

Limit results to repositories of the specified type. Will cause a 422 error if used in the same request as visibility or affiliation.

Possible values:

  • "member"
  • "public"
  • "private"
  • "all"
  • "owner"

Default value: "all"

since String No

Only show repositories updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

before String No

Only show repositories updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.