Skip to main content
GET
/
{namespace}
/
{repo_name}
/
versions
/
{resource}
Download version file
curl --request GET \
  --url https://hub.oxen.ai/{namespace}/{repo_name}/versions/{resource} \
  --header 'Authorization: Bearer <token>'
[
  1
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required

The namespace of the repository

repo_name
string
required

The name of the repository

resource
string
required

The resource identifier (e.g., 'main/path/to/file.ext' or a commit ID/branch name followed by the file path)

width
integer<int32> | null
required
Required range: x >= 0
height
integer<int32> | null
required
Required range: x >= 0

Response

File content returned as a stream. Content-Type matches the file's MIME type (e.g., image/jpeg), or the resized image's MIME type.

Required range: x >= 0