Skip to main content
POST
/
upload
Upload File
curl --request POST \
  --url https://api.supapost.so/upload \
  --header 'Content-Type: application/json' \
  --data '
{
  "filename": "<string>"
}
'
{
  "publicUrl": "https://cdn.supapost.so/assets/team-uuid/1712000000-photo.jpg",
  "key": "assets/team-uuid/1712000000-photo.jpg"
}
Upload a file via multipart form data. The file is stored in R2 and tracked in the team’s asset library.

Authentication

Authorization
string
Bearer token. Bearer <supabase-jwt>.

Body

Send as multipart/form-data.
file
file
required
The file to upload.
filename
string
Override the filename. Defaults to the original file name.
{
  "publicUrl": "https://cdn.supapost.so/assets/team-uuid/1712000000-photo.jpg",
  "key": "assets/team-uuid/1712000000-photo.jpg"
}