GET
/
v1
/
repo
curl -X GET "https://api.relace.run/v1/repo?page_size=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "repo_id": "123e4567-e89b-12d3-a456-426614174000",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T11:15:00Z",
      "metadata": {
        "name": "my-project",
        "description": "A sample project"
      }
    }
  ],
  "total_items": 1
}

Query Parameters

page_start
integer
Start index of the page (default: 0)
page_size
integer
Number of repos to return per page (default: 100, min: 1, max: 100)
order_by
string
Field to order results by (default: “created_at”)
order_descending
boolean
Whether to sort in descending order (default: false)
filter_metadata
string
URL-encoded JSON map of metadata values to filter by

Response

items
array
Array of repo objects
next_page
integer
Start index of the next page (omitted if no more pages)
total_items
integer
Total number of repos matching the query
curl -X GET "https://api.relace.run/v1/repo?page_size=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "repo_id": "123e4567-e89b-12d3-a456-426614174000",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T11:15:00Z",
      "metadata": {
        "name": "my-project",
        "description": "A sample project"
      }
    }
  ],
  "total_items": 1
}