GET
/
api
/
repos
/
{namespace}
/
{repo_name}
/
commits
/
{commit_or_branch}
curl --request GET \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/commits/{commit_or_branch} \
  --header 'Authorization: Bearer <token>'
{
  "commit": {
    "author": "Josh",
    "date": "Thu, 04 Aug 2022 07:43:01 -0600",
    "id": "f19db90a52a7c8ba",
    "message": "In this commit, very few changes were made. However, the content was very important. Trust me.",
    "parent_ids": [
      "20b9d5c4d1c213e9"
    ],
    "timestamp": 1659620581694385000
  },
  "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
commit
object
status
string
Example:

"success"

status_message
string
Example:

"resource_found"