cURL
curl --request POST \ --url https://api.ubpass.co/v1/uploads \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "msg": "<string>" }
Upload a file to the server by providing the file data as a form-data parameter
Bearer token authentication
File to upload
File uploaded successfully, key returned