Skip to main content
POST
/
v1
/
storage
/
files
Upload File
curl --request POST \
  --url https://api.zarkai.xyz/v1/storage/files \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form file='@example-file'
{
  "fileId": "file-55f3fa40-9883-45d5-a877-a68264d58929"
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

multipart/form-data
file
file
required

File to upload

Response

200 - application/json

File uploaded successfully

fileId
string
Example:

"file-55f3fa40-9883-45d5-a877-a68264d58929"