GET
/
api
/
repos
/
{namespace}
/
{repo_name}
/
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": "hello@oxen.ai",
        "id": "592d564750031fa1431000472c2d721d",
        "message": "update README",
        "timestamp": "2024-11-25T21:11:12Z"
      },
      "commit_id": "592d564750031fa1431000472c2d721d",
      "name": "main"
    }
  ],
  "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

(Required)

Example:

"ox"

repo_name
string
required
Example:

"test-repo"

Response

200 - application/json
OK
branches
object[]
Example:
[
  {
    "commit": {
      "author": "Bessie Oxington",
      "email": "hello@oxen.ai",
      "id": "592d564750031fa1431000472c2d721d",
      "message": "update README",
      "timestamp": "2024-11-25T21:11:12Z"
    },
    "commit_id": "592d564750031fa1431000472c2d721d",
    "name": "main"
  }
]
oxen_version
string
Example:

"0.22.2"

status
string
Example:

"success"

status_message
string
Example:

"resource_found"