Uploads
Returns a signed URL to upload one file directly, plus a `fileId`.
PUTthe raw bytes touploadUrlwith the returnedheaders. 2) Send it withtype: "media"andmediaFileId: <fileId>. The URL accepts the PUT for ~15 minutes. The file is deleted 1 hour after it is sent, or ~24 hours after this call if it is never sent.
Request
curl -X POST "https://api.blueticks.co/v1/uploads" \ -H "Content-Type: application/json" \ -d '{ "contentType": "application/pdf", "sizeBytes": 482113, "filename": "invoice.pdf" }'{
"success": true,
"data": {
"fileId": "string",
"uploadUrl": "string",
"method": "PUT",
"headers": {
"property1": "string",
"property2": "string"
},
"expiresAt": "string",
"deleteAt": "string",
"maxBytes": 0,
"contentType": "string"
}
}{
"success": false,
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"requestId": "string",
"details": [
{
"path": "string",
"code": "string",
"message": "string"
}
],
"candidates": [
{
"numberId": "string",
"phoneNumber": "string"
}
],
"upgrade": {
"url": "string",
"text": "string",
"reset_time": "string",
"seconds_remaining": 0,
"plan": {}
}
}
}Request Body
application/json
Response
Response Body
application/json
application/json