POST
/
files
/
create
Create a file
curl --request POST \
  --url https://api.kaizenautomation.com/files/create \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=<string>' \
  --form file=@example-file
{
  "id": "<string>",
  "name": "<string>",
  "mimeType": "<string>",
  "sizeBytes": 123,
  "downloadUrl": "<string>",
  "key": "<string>"
}

Body

multipart/form-data

File upload with optional name

file
file
required

The file to upload

name
string

Optional name for the file. If not provided, will use the original filename.

Response

File uploaded successfully

Created file information

id
string
required

Unique identifier for the file

name
string
required

Name of the file

mimeType
string | null
required

MIME type of the file

sizeBytes
number | null
required

Size of the file in bytes

downloadUrl
string | null
required

Signed URL to download the file directly

key
string | null
required

Key identifier for the file (for example, a key provided when completing a download for the file).