Skip to main content
POST
URL File Upload

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit API Key Management Page to get your API Key

Add to request header:

Body

application/json
file_url
string<uri>
required

Remote file URL

Requirements:

  • Must be a publicly accessible URL
  • Supports HTTP and HTTPS protocols
  • System will automatically download the file content from this URL
  • Maximum 1 image per request
  • Currently supports uploading files in: image/jpeg, image/png, image/gif, image/webp formats only
Example:

"https://example.com/image.jpg"

upload_path
string

Custom upload path

Note:

  • If not specified, system will automatically categorize based on file type
Example:

"downloads"

file_name
string

Custom file name

Note:

  • If not specified, system will automatically generate a unique file name
Example:

"downloaded.jpg"

Response

200 - application/json

File uploaded successfully

success
boolean

Whether the request was successful

Example:

true

code
integer

Response status code

Example:

200

msg
string

Response message

Example:

"File uploaded successfully"

data
object