Skip to main content
POST
/
api
/
v1
/
files
Upload a File
curl --request POST \
  --url https://api.example.com/api/v1/files
Send the file as the raw request body with the appropriate Content-Type header.
curl -H "Authorization: Bearer $API_KEY" \
  -X POST http://localhost:8080/api/v1/files \
  -H "Content-Type: image/png" \
  --data-binary @photo.png

Response

{
  "id": "V1StGXR8_Z5jdHi6B-myT"
}
The returned id can be used to access the file publicly at /{id}.