Skip to main content
GET
/
api
/
repos
/
{namespace}
/
{repo_name}
/
file
/
{resource}
Download File
curl --request GET \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/file/{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

Namespace of the repository

repo_name
string
required

Name of the repository

resource
string
required

Path to the file (including branch/commit info)

Query Parameters

width
integer<int32>

Width for image resize or video thumbnail

Required range: x >= 0
height
integer<int32>

Height for image resize or video thumbnail

Required range: x >= 0
timestamp
number<double>

Timestamp in seconds to extract video thumbnail from (default: 1.0)

thumbnail
boolean

Set to true to generate a video thumbnail instead of returning the full video

Response

File content stream

Required range: x >= 0