Blueticks

Uploads

Returns a signed URL to upload one file directly, plus a `fileId`.

  1. PUT the raw bytes to uploadUrl with the returned headers. 2) Send it with type: "media" and mediaFileId: <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"  }'
POST
/v1/uploads

Request Body

application/json

Response

Response Body

application/json

application/json