GET
/
repos
/
{repo_id}
/
shelves
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/shelves \
  --header 'Authorization: Bearer <token>'
{
  "object": "Shelf",
  "items": [
    {
      "id": "<string>",
      "name": "<string>",
      "created_timestamp": 123,
      "branch_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Query Parameters

branch_id
string

Optional branch id to filter by

Response

200 - application/json
object
enum<string>
required
Available options:
Shelf
items
object[]
required