GET
/
api
/
repos
/
{namespace}
/
{repo_name}
/
commits
/
{commit_or_branch}
/
parents
curl --request GET \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/commits/{commit_or_branch}/parents \
  --header 'Authorization: Bearer <token>'
{
  "parents": [
    {
      "author": "Josh",
      "date": "Wed, 03 Aug 2022 22:00:14 -0600",
      "id": "20b9d5c4d1c213e9",
      "message": "add README",
      "parent_ids": [
        "4368d67f3bdd406"
      ],
      "timestamp": 1659585614580501000
    }
  ],
  "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"

commit_or_branch
string
required
Example:

"main"

Response

200 - application/json
OK
parents
object[]
Example:
[
  {
    "author": "Josh",
    "date": "Wed, 03 Aug 2022 22:00:14 -0600",
    "id": "20b9d5c4d1c213e9",
    "message": "add README",
    "parent_ids": ["4368d67f3bdd406"],
    "timestamp": 1659585614580501000
  }
]
status
string
Example:

"success"

status_message
string
Example:

"resource_found"