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