Upload an asset
POST/v1/assets/upload
Upload a file to a temporary location using multipart/form-data. Returns an uploadID that can be referenced when sending messages with attachments.
Body ParametersForm Data
Returns
Upload an asset
curl http://localhost:23373/v1/assets/upload \
-H 'Content-Type: multipart/form-data' \
-H "Authorization: Bearer $BEEPER_ACCESS_TOKEN" \
-F 'file=@/path/to/file'{
"duration": 0,
"error": "error",
"fileName": "fileName",
"fileSize": 0,
"height": 0,
"mimeType": "mimeType",
"srcURL": "srcURL",
"uploadID": "uploadID",
"width": 0
}Returns Examples
{
"duration": 0,
"error": "error",
"fileName": "fileName",
"fileSize": 0,
"height": 0,
"mimeType": "mimeType",
"srcURL": "srcURL",
"uploadID": "uploadID",
"width": 0
}