Skip to main content
List all repositories in your organization with pagination support.
GET /api/v1/repos?cursor=CURSOR&limit=20
Authorization: Bearer YOUR_JWT_TOKEN

Parameters

ParameterTypeDescription
cursorOptionalPagination cursor from previous response (base64 encoded)
limitOptionalMaximum number of repositories to return (default: 20, max: 100)

JWT Requirements

  • Requires org:read scope

Response

{
  "repos": [
    {
      "repo_id": "team/project-alpha",
      "url": "https://team.code.storage/team/project-alpha.git",
      "default_branch": "main",
      "created_at": "2024-01-15T10:30:00Z",
      "base_repo": {
        "provider": "github",
        "owner": "octocat",
        "name": "Hello-World"
      }
    },
    {
      "repo_id": "team/project-beta",
      "url": "https://team.code.storage/team/project-beta.git",
      "default_branch": "main",
      "created_at": "2024-01-16T14:20:00Z"
    }
  ],
  "next_cursor": "eyJyZXBvX2lkIjoidGVhbS9wcm9qZWN0LWJldGEifQ==",
  "has_more": true
}

Response Fields

FieldTypeDescription
reposArrayList of repository objects
repos[].repo_idStringRepository identifier
repos[].urlStringRepository URL
repos[].default_branchStringDefault branch name
repos[].created_atStringISO 8601 creation timestamp
repos[].base_repoOptionalGitHub sync configuration (if configured)
next_cursorOptionalCursor for the next page (absent when no more results)
has_moreBooleanWhether more repositories exist

Notes

  • The next_cursor value should be used for fetching the next page
  • Repositories are returned in creation order
  • The base_repo field is only present for repositories synced with GitHub

Error Responses

StatusDescription
401 UnauthorizedInvalid JWT or missing org:read scope