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"
    }
  ]
}
此 endpoint 有非常严格的速率限制。将请求限制为 1 次/用户/分钟,以及 30 次/用户/小时。对于能访问大量仓库的用户,此请求可能需要数十秒才能返回。请确保在相关信息暂不可用时进行友好处理。

Authorizations

Authorization
string
header
required

API key from Cursor Dashboard

Response

200
application/json

Repositories retrieved successfully

The response is of type object.