GET
/
files
/
list
curl --request GET \
  --url https://api.duohub.ai/files/list \
  --header 'X-API-Key: <api-key>'
{
  "files": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "meeting_recording.mp3",
      "extension": "mp3",
      "fileType": "audio",
      "category": "meeting",
      "bronzeKey": "raw/meeting_recording.mp3",
      "userID": "user123",
      "length": 300.5,
      "size": 1024,
      "tokens": 1500,
      "numSpeakers": 2,
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    }
  ],
  "nextToken": "eyJpZCI6eyJTIjoiNDU2In0sInVwZGF0ZWRBdCI6eyJTIjoiMjAyNC0wMS0wMlQwMDowMDowMFoifX0=",
  "previousToken": null,
  "count": 1
}

Authorizations

X-API-Key
string
header
required

Your duohub API key. Type: str

Query Parameters

category
enum<string>

Filter files by category

Available options:
audio,
video,
web,
document,
other,
all
limit
integer
default:10

Maximum number of files to return

Required range: 1 <= x <= 100
nextToken
string

Token for getting the next page of results

previousToken
string

Token for getting the previous page of results

Response

200
application/json
Files retrieved successfully
files
object[]
nextToken
string

Token for the next page of results

previousToken
string

Token for the previous page of results

count
integer

Number of files in the current page