Bloq
Making an authenticated call to the bloq endpoint
Creating a new bloq
We use chunking which is useful in big size files uploading. In chunk uploading, you can configure how much size each chunk should upload to the server.
Create bloq
POST
https://api.bloqifi.com/v0/bloq
Creates a new bloq
Headers
Authorization*
String
Bearer ${accessToken}
Content-Length
String
Content length
blockchain*
String
Bloqcoin
, Dogecoin
, Bitcoin
, IPFS
Cache-Control
String
no-cache
Content-Type*
String
application/json
folder
String
${folderId}
Request Body
multipart/form-data**
String
Any appropriate content
The Chunked Upload API provides a way to reliably upload large files to Bloqifi by chunking them into a sequence of parts that can be uploaded individually. By using this API the application uploads a file in part, allowing it to recover from a failed request more reliably.
Create a new folder
You'll need a folder ID to merge chunks from a new bloq.
Create new folder
PATCH
https://api.bloqifi.com/v0/bloq
Creates a new folder, or receive current folder id
Headers
Content-Type
String
application/json
Authorization*
String
Bearer ${accessToken}
Request Body
name*
String
Name of folder
blockchain*
String
Bloqcoin
, Dogecoin
, Bitcoin
, IPFS
Merge chunks for created bloq
The merge and combine of multiple chunks in the created bloq
could take a while for larger files, however not longer then any predefined timeouts.
Merge chunks
PUT
https://api.bloqifi.com/v0/bloq
Headers
Authorization*
String
Bearer ${accessToken}
Content-Type*
String
application/json
Request Body
originalname*
String
Name of file
folder*
String
${folderId}
dzuuid*
String
${dzuuid}
dztotalchunkcount*
String
${dztotalchunkcount}
dztotalfilesize*
String
${dztotalfilesize}
blockchain*
String
Bloqcoin
, Dogecoin
, Bitcoin
, IPFS
In some cases, creating the parts might take a long time and the API will return a 202 Accepted
status code instead.
Last updated
Was this helpful?