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

200
application/json

Repositories retrieved successfully

The response is of type object.