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
200

Download URL generated

application/json
get
/download
GET /api/download?url=text HTTP/1.1
Host: 
Accept: */*
{
  "downloadUrl": "text"
}

Upload files

post

Upload files including images, videos, AR World files, and other content types

Body
filestring · binaryOptional

Single file upload

filesstring · binary[]Optional

Multiple file uploads

Responses
200

Upload successful

application/json
post
/upload
POST /api/upload HTTP/1.1
Host: 
Content-Type: multipart/form-data
Accept: */*
Content-Length: 36

{
  "file": "binary",
  "files": [
    "binary"
  ]
}
{
  "status": "success",
  "results": [
    {
      "status": "success",
      "message": "text",
      "url": "https://example.com",
      "fileId": 1,
      "fileName": "text",
      "fileSize": 1,
      "mimeType": "text",
      "arWorldUrl": "https://example.com"
    }
  ]
}

Generate presigned upload URL

post
Body
fileNamestringRequired
contentTypestringRequired
Responses
200

Presigned URL generated

application/json
post
/upload/presigned
POST /api/upload/presigned HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "fileName": "text",
  "contentType": "text"
}
{
  "uploadUrl": "text",
  "key": "text",
  "url": "text"
}