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"
    }
  ]
}
This endpoint has very strict rate limits.Limit requests to 1 / user / minute, and 30 / user / hour.This request can take tens of seconds to respond for users with access to many repositories.Make sure to handle this information not being available gracefully.

Authorizations

Authorization
string
header
required

API key from Cursor Dashboard

Response

200
application/json

Repositories retrieved successfully

The response is of type object.