Skip to main content
POST
/
api
/
v1
/
files
/
images
Upload Image
curl --request POST \
  --url http://localhost:5300/api/v1/files/images \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "file_key": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Can be either a user JWT token or an API key. Example: Authorization: Bearer <token_or_key>

Body

multipart/form-data
file
file
required

Image file

Response

200 - application/json

Upload successful

code
integer
Example:

0

msg
string
Example:

"ok"

data
object