日本語
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"
このページは役に立ちましたか?