1. Config
Onflow Open API
  • Getting Started
  • API
    • Config
      • Get Warehouse
        GET
      • Get Brand
        GET
      • Upload file
        POST
    • Product
      • Create Product
      • Assign Product
      • Get Product List
      • Get Product Detail
      • Delete Product
      • Get Stock
    • PO
      • Get PO List
      • Create PO
      • Cancel PO
    • Shipment
      • B2C shipment
        • Get B2C Shipment
        • Create B2C Shipment
          • Create B2C Shipment
        • Cancel B2C Shipment
          • Cancel B2C Shipment
  1. Config

Upload file

POST
/api/common/v1/media/upload
This API provides file upload functionality and returns the file metadata along with a public URL, which can be used as an input for other APIs that require a file URL

Request

Header Params

Body Params multipart/form-data

Responses

🟢200
application/json
Body

🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/common/v1/media/upload' \
--header 'Authorization: {{token}}' \
--form 'file=@""'
Response Response Example
200 - Success
{
    "data": {
        "url": "https://nhl.sgp1.cdn.digitaloceanspaces.com/ts/68b02608cad5453a95e6c5988afa3c83.xlsx"
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3",
    "error_detail": null
}
Modified at 2026-01-28 08:08:30
Previous
Get Brand
Next
Create Product
Built with