Files

Upload file

POST
Upload a file synchronously. Returns 201 if successful. Files must have a name. Files must specify Content-Type. Request bodies, and therefore files, are limited to 100MB

Request

This endpoint expects a multipart form with multiple files.
filefile
attributesoptional file

Response

This endpoint returns an object
file
object
attributes
list of objectsOptional
List of Attributes
POST
$curl -X POST https://api.hume.ai/v0/registry/files/upload \
> -H "X-Hume-Api-Key: <apiKey>" \
> -H "Content-Type: multipart/form-data" \
> -d '{}'
Response
1{
2 "file": {
3 "id": "id",
4 "user_id": "user_id",
5 "data_type": "data_type",
6 "is_sanitized": true,
7 "is_owned_by_reader": true,
8 "name": "name",
9 "uri": "uri",
10 "upload_uri": "upload_uri",
11 "thumbnail_uri": "thumbnail_uri",
12 "created_on": 1,
13 "modified_on": 1,
14 "metadata": {
15 "metadata": {}
16 },
17 "hume_storage": true,
18 "hume_storage_upload_timestamp": 1,
19 "is_linked_to_publicly_shared": true,
20 "is_linked_to_hume_model": true
21 },
22 "attributes": [
23 {
24 "name": "name",
25 "value": "value"
26 }
27 ]
28}