Skip to main content
POST
Upload File

Authorizations

Authorization
string
header
required

Authenticate using Bearer token. Get your API Key from the WeryAI Console.

Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx

Body

multipart/form-data
file
file
required

File to upload

batch_no
string

Batch number for rate-limit reuse

fixed
boolean
default:false

Whether to use fixed file name

expire_minutes
integer

File expiration time in minutes (min 1, max 10080 / 7 days)

Required range: 1 <= x <= 10080

Response

Upload successful

status
integer

Business status code

Example:

0

desc
string

Status description

Example:

"success"

message
string

Multi-language message

Example:

"success"

data
object