cURL
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" }
List parent commits
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
(Required)
"ox"
"test-repo"
"main"
OK
The response is of type object.
object