Skip to main content
POST
Upload File

Overview

Upload your files to Wokelo to supplement research reports with proprietary data. Each uploaded file receives a unique identifier that you can reference in the custom_files parameter when creating reports.

Endpoint Details

  • Method: POST
  • Endpoint: /api/assets/upload/

Authentication requirements

  • Include a valid JWT token in your request header
  • If you don’t have a token yet, you can get one from the /auth/token/ endpoint first.

Request

Request Parameters

Header Parameters

string
required
JWT token obtained from the Authentication request

Body Parameters

array of files
required
Array of files to be uploaded
array of uuids
Your own UUIDs to track files. Must match the length and order of the files array. These UUIDs will be returned in the response alongside Wokelo’s fileName identifiers.
Recommended Usage:
  • Individual uploads preferred - For best performance, upload files individually
  • Bulk upload limits - When uploading multiple files, the maximum is 10 files per request with a 20MB limit per file.

Response

Successful response will include the details of files uploaded successfully and those that failed to upload.

Successful Response Fields

String
Overall upload status (success or error)
Array of Objects
Array containing information on successfully uploaded files
String
Wokelo’s unique file identifier—use this in the custom_files parameter when creating reports
String
Original filename as uploaded
String
Detected file type/format
String
Your provided UUID (if supplied in request)
Array of Objects
Array containing information about failed uploads (empty on success)
String
Reason for which the file upload failed

Authorizations

Authorization
string
header
required

JWT token obtained from the /auth/token/ endpoint.

Body

multipart/form-data
files
file[]
required

Array of files to be uploaded.

fileUUID
string[]

Your own UUIDs to track files. Must match the length and order of the files array. These UUIDs will be returned in the response alongside Wokelo's fileName identifiers.

Example:

Response

Upload response including successfully uploaded files and any failures.

status
string

Overall upload status.

Example:

"success"

success
object[]

Array containing information on successfully uploaded files.

fails
object[]

Array containing information about failed uploads (empty on full success).