Skip to main content
GET
/
api
/
repos
/
{namespace}
/
{repo_name}
/
compare
/
{base_head}
/
tree
Get diff tree
curl --request GET \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/compare/{base_head}/tree \
  --header 'Authorization: Bearer <token>'
{
  "status": "<string>",
  "status_message": "<string>",
  "dirs": [
    {
      "can_display": true,
      "children": [
        {
          "name": "<string>",
          "status": "added"
        }
      ],
      "name": "<string>",
      "num_subdirs": 1,
      "status": "added"
    }
  ],
  "oxen_version": "<string>"
}

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

base_head
string
required

The base and head revisions separated by '..'

Response

Directory diff tree found successfully

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