跳转到主要内容
GET
/
v0
/
repositories
List GitHub repositories
curl --request GET \
  --url https://api.cursor.com/v0/repositories \
  --header 'Authorization: Bearer <token>'
{
  "repositories": [
    {
      "owner": "your-org",
      "name": "your-repo",
      "repository": "https://github.com/your-org/your-repo"
    }
  ]
}
此端点的速率限制非常严格。将请求限制为每位用户每分钟 1 次,以及每位用户每小时 30 次对于能访问许多仓库的用户,请求可能需要几十秒才能返回。请确保在该信息暂不可用时进行友好处理。

Authorizations

Authorization
string
header
required

API key from Cursor Dashboard

Response

Repositories retrieved successfully

repositories
object[]
required

Array of GitHub repositories the user has access to

I