简体中文
cURL
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" } ] }
获取已认证用户可访问的 GitHub 仓库列表。
API key from Cursor Dashboard
Repositories retrieved successfully
Array of GitHub repositories the user has access to
显示 子属性
The owner of the repository (user or organization)
"your-org"
The name of the repository
"your-repo"
The full URL to the GitHub repository
"https://github.com/your-org/your-repo"
此页面对您有帮助吗?