API Documentation

Integrate Synclyz into your application. Secure REST API for uploading, managing, and downloading files.

https://synclyz.com/api/v2/

Overview

The Synclyz API provides a secure interface to upload, manage, and download files externally. All requests use POST unless stated otherwise. All responses are JSON.

Base URL: https://synclyz.com/api/v2/

Error Handling

All error responses return a JSON body with a _status of "error" and a message field.

CodeMeaning
400Bad input — check your request parameters.
401Bad or expired token — re-authenticate via /authorize.
403Permission denied for this resource.
404File or folder not found.
405Unexpected method — use POST unless specified.
429Rate limit reached — wait before retrying.
5xxServer error — try again or contact support.

/authorize

Exchange your API keys for an access_token. Store and reuse it — do not generate a new token per request.

POST https://synclyz.com/api/v2/authorize
ParameterTypeRequiredDescription
key1stringYesAPI key 1 (64 characters)
key2stringYesAPI key 2 (64 characters)
{"data":{"access_token":"YOUR_TOKEN","account_id":"158642"},"_status":"success"}

/disable_access_token

Invalidate the current access token. Call this on logout or security events.

POST https://synclyz.com/api/v2/disable_access_token
ParameterTypeRequiredDescription
access_tokenstringYesToken to invalidate
{"_status":"success"}

/account/info

Retrieve basic information about the authenticated account.

POST https://synclyz.com/api/v2/account/info
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
{"data":{"username":"...","email":"...","account_type":"premium","storage_used_bytes":1073741824,"storage_limit_bytes":5368709120},"_status":"success"}

/account/package

Get the current account package and subscription details.

POST https://synclyz.com/api/v2/account/package
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
{"data":{"package_label":"Premium","expiry_date":"YYYY-MM-DD"},"_status":"success"}

/file/upload

Upload a file. Send as multipart/form-data.

POST https://synclyz.com/api/v2/file/upload
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
filefileYesFile to upload (multipart)
folder_idintNoTarget folder ID — 0 for root
{"data":{"file_hash":"abc123","file_url":"https://synclyz.com/abc123","short_url":"abc123","filesize":204800,"original_filename":"document.pdf"},"_status":"success"}

/file/download

Get a direct download URL for a file.

POSThttps://synclyz.com/api/v2/file/download
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
file_hashstringYesFile hash / short URL
{"data":{"download_url":"https://...","expires_in":3600},"_status":"success"}

/file/info

POSThttps://synclyz.com/api/v2/file/info
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
file_hashstringYesFile hash / short URL
{"data":{"file_hash":"abc123","original_filename":"document.pdf","filesize":204800,"date_uploaded":"YYYY-MM-DD","downloads":142},"_status":"success"}

/file/edit

POSThttps://synclyz.com/api/v2/file/edit
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
file_hashstringYesFile to edit
file_titlestringNoNew display name
file_descriptionstringNoDescription
file_passwordstringNoAccess password
{"_status":"success"}

/file/delete

POSThttps://synclyz.com/api/v2/file/delete
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
file_hashstringYesFile to delete
{"_status":"success"}

/file/move

POSThttps://synclyz.com/api/v2/file/move
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
file_hashstringYesFile to move
folder_idintYesDestination folder ID
{"_status":"success"}

/file/copy

POSThttps://synclyz.com/api/v2/file/copy
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
file_hashstringYesFile to copy
folder_idintYesDestination folder ID
{"data":{"new_file_hash":"xyz789"},"_status":"success"}

/folder/create

POSThttps://synclyz.com/api/v2/folder/create
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
folder_namestringYesName for the new folder
folder_idintNoParent folder ID — 0 for root
{"data":{"folder_id":42},"_status":"success"}

/folder/listing

POSThttps://synclyz.com/api/v2/folder/listing
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
folder_idintNoFolder to list — 0 for root
{"data":{"files":[...],"folders":[...]},"_status":"success"}

/folder/info

POSThttps://synclyz.com/api/v2/folder/info
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
folder_idintYesFolder ID to look up
{"data":{"folder_id":42,"folder_name":"My Docs","file_count":12},"_status":"success"}

/folder/edit

POSThttps://synclyz.com/api/v2/folder/edit
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
folder_idintYesFolder to edit
folder_namestringYesNew folder name
{"_status":"success"}

/folder/delete

POSThttps://synclyz.com/api/v2/folder/delete
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
folder_idintYesFolder to delete (also deletes contents)
{"_status":"success"}

/folder/move

POSThttps://synclyz.com/api/v2/folder/move
ParameterTypeRequiredDescription
access_tokenstringYesValid access token
folder_idintYesFolder to move
destination_folder_idintYesTarget parent folder ID
{"_status":"success"}
Full API reference: https://synclyz.com/api/v2/