Files

File upload and download operations

Generate signed download URL for a file

get
Query parameters
urlstringRequired

The file URL to generate download link for

Responses
chevron-right
200

Download URL generated

application/json
downloadUrlstringOptional
get
/download

Upload files

post

Upload files including images, videos, AR World files, and other content types. MVP: Public access, no authentication required.

Body
filestring · binaryOptional

Single file upload

filesstring · binary[]Optional

Multiple file uploads

Responses
chevron-right
200

Upload successful

application/json
statusstring · enumOptionalPossible values:
post
/upload

Upload relocalization reference photo

post

Uploads an image to be used as a relocalization reference photo for AR experiences. Only image files are accepted.

Authorizations
AuthorizationstringRequired

Bearer token authentication. Pass the session token obtained from /auth/sync.

Body
filestring · binaryRequired

Image file (jpg, jpeg, png, webp, heic, heif)

Responses
chevron-right
200

Photo uploaded successfully

application/json
urlstring · uriOptional

Full URL to the uploaded image

keystringOptional

S3 file key (e.g., reloc/uuid-filename.jpg)

post
/upload/relocalization

Retrieve or trigger GLB to USDZ conversion

post

Retrieves the conversion result for a file, or triggers a new GLB to USDZ conversion if not already converted.

Path parameters
fileIdintegerRequired

File ID

Responses
chevron-right
200

Conversion result

application/json
messagestringOptional
conversionTimestringOptional

Time taken for conversion (e.g., '2.34s')

post
/upload/{fileId}/converted_file

Generate presigned upload URL

post

MVP: Public access, no authentication required.

Body
fileNamestringRequired
contentTypestringRequired
Responses
chevron-right
200

Presigned URL generated

application/json
uploadUrlstringOptional
keystringOptional
urlstringOptional
post
/upload/presigned

Retrieve file information including converted USDZ if available

get

Retrieves file metadata by fileId. If the file has been converted to USDZ, returns both original and converted file information. Useful for visualizing already processed files without re-uploading.

Query parameters
fileIdintegerRequired

ID of the file to retrieve

Responses
chevron-right
200

File information retrieved successfully

application/json
or
get
/upload/convert

Upload file with automatic GLB to USDZ conversion

post

Uploads a file via multipart/form-data, creates a database record, and automatically converts GLB files to USDZ format. Returns file information including converted USDZ URL if conversion was performed.

Body
filestring · binaryRequired

File to upload. GLB files will be automatically converted to USDZ.

Responses
chevron-right
200

File uploaded successfully. If GLB file, conversion completed.

application/json
or
post
/upload/convert

Last updated