Files
Uploads a new file to the specified directory. Requires authentication.
id_UGacp3OrGbGt78bpwzmhkB42cfhTL0US2dPMTbVb1E
sk_1e9KhX0ZReeT6Avugl8cA2rBvKdD2z05LB9VrA4q3hY
The ID of the directory to upload the file to. If not provided, the file will be uploaded to the root directory.
682aa5a96ef58914bf648be7
If provided, the file upload will be encrypted with this passphrase. Must be at least 8 characters long, include 1 uppercase letter, 1 number, and 1 special character (!@#$%^&*()_+). Encrypted files are limited to 50MB.
Passphrase123!
POST /api/clients/v1/files HTTP/1.1
Host: uat.koneksi.co.kr
Client-ID: text
Client-Secret: text
Content-Type: multipart/form-data
Accept: */*
Content-Length: 89
{
"file": "binary",
"directory_id": "682aa5a96ef58914bf648be7",
"passphrase": "Passphrase123!"
}
No content
Downloads a file by its ID. Requires authentication. For encrypted files, use stream=false
and provide the Passphrase
header.
The ID of the file to download.
682c304bbf71b6b7ac80dc97
Set to false
to download encrypted files. Defaults to true
for streaming.
false
id_UGacp3OrGbGt78bpwzmhkB42cfhTL0US2dPMTbVb1E
sk_1e9KhX0ZReeT6Avugl8cA2rBvKdD2z05LB9VrA4q3hY
Passphrase to decrypt the file if it was uploaded with encryption.
Password123!
GET /api/clients/v1/files/{file_id}/download HTTP/1.1
Host: uat.koneksi.co.kr
Client-ID: text
Client-Secret: text
Accept: */*
No content
Retrieves details of a specific file by its ID. Requires authentication.
The ID of the file to retrieve.
682c304bbf71b6b7ac80dc97
Set to true to include the IPFS chunks in the response. Defaults to false if not provided.
false
id_UGacp3OrGbGt78bpwzmhkB42cfhTL0US2dPMTbVb1E
sk_1e9KhX0ZReeT6Avugl8cA2rBvKdD2z05LB9VrA4q3hY
GET /api/clients/v1/files/{file_id} HTTP/1.1
Host: uat.koneksi.co.kr
Client-ID: text
Client-Secret: text
Accept: */*
No content
Updates the name or parent directory of a specified file. Requires authentication.
The ID of the file to update.
682c304bbf71b6b7ac80dc97
id_UGacp3OrGbGt78bpwzmhkB42cfhTL0US2dPMTbVb1E
sk_1e9KhX0ZReeT6Avugl8cA2rBvKdD2z05LB9VrA4q3hY
The target directory ID to move this file to.
682c86bec39bd0d59b3d6567
The new name for the file.
Profile.jpg
PUT /api/clients/v1/files/{file_id} HTTP/1.1
Host: uat.koneksi.co.kr
Client-ID: text
Client-Secret: text
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"directory_id": "682c86bec39bd0d59b3d6567",
"name": "Profile.jpg"
}
No content
Deletes a file by its ID. Requires authentication.
The ID of the file to delete.
682c304bbf71b6b7ac80dc97
id_UGacp3OrGbGt78bpwzmhkB42cfhTL0US2dPMTbVb1E
sk_1e9KhX0ZReeT6Avugl8cA2rBvKdD2z05LB9VrA4q3hY
DELETE /api/clients/v1/files/{file_id} HTTP/1.1
Host: uat.koneksi.co.kr
Client-ID: text
Client-Secret: text
Accept: */*
No content
Generates a temporary token with a specified duration for downloading a file. Requires a valid Bearer token for authentication.
The ID of the file to generate a link for.
682c304bbf71b6b7ac80dc97
id_UGacp3OrGbGt78bpwzmhkB42cfhTL0US2dPMTbVb1E
sk_1e9KhX0ZReeT6Avugl8cA2rBvKdD2z05LB9VrA4q3hY
Duration of the link validity in seconds.
3600
POST /api/clients/v1/files/{file_id}/generate-link HTTP/1.1
Host: uat.koneksi.co.kr
Client-ID: text
Client-Secret: text
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"duration": 3600
}
No content
Shares a file with specified access settings. Requires authentication. Request body is optional unless access is 'password' (requires password) or 'email' (requires emails).
The ID of the file to share.
6853e14d78e8cc3e4c66fb
The access level for the shared file (public, private, password, email).
password
Possible values: id_UGacp3OrGbGt78bpwzmhkB42cfhTL0US2dPMTbVb1E
sk_1e9KhX0ZReeT6Avugl8cA2rBvKdD2z05LB9VrA4q3hY
Password required for 'password' access. Must be at least 8 characters long, include 1 uppercase letter, 1 number, and 1 special character (!@#$%^&*()_+). Required if access is 'password'.
Password123!
List of email addresses for 'email' access. Required if access is 'email'. The email must have an account in Koneksi.
["alex@ardata.tech","paulinquit@gmail.com"]
POST /api/clients/v1/files/{file}/share HTTP/1.1
Host: uat.koneksi.co.kr
Client-ID: text
Client-Secret: text
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"password": "Password123!",
"emails": [
"alex@ardata.tech",
"paulinquit@gmail.com"
]
}
No content