Skip to main content
GET
/
api
/
repos
/
{namespace}
/
{repo_name}
/
branches
List all branches
curl --request GET \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/branches \
  --header 'Authorization: Bearer <token>'
{
  "branches": [
    {
      "commit": {
        "author": "Bessie Oxington",
        "email": "[email protected]",
        "id": "592d564750031fa1431000472c2d721d",
        "message": "update README",
        "timestamp": "2024-11-25T21:11:12Z"
      },
      "commit_id": "592d564750031fa1431000472c2d721d",
      "name": "main"
    },
    {
      "commit": {
        "author": "Daisy Oxington",
        "email": "[email protected]",
        "id": "abc1234567890def1234567890fedcba",
        "message": "added new validation data",
        "timestamp": "2024-11-25T20:00:00Z"
      },
      "commit_id": "abc1234567890def1234567890fedcba",
      "name": "development"
    }
  ],
  "oxen_version": "0.22.2",
  "status": "success",
  "status_message": "resource_found"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required

Namespace of the repository

repo_name
string
required

Name of the repository

Response

List of branches

status
string
required
status_message
string
required
branches
object[]
required
oxen_version
string | null