1. Home
  2. Docs
  3. API Documentation
  4. Storage
  5. GetFiles


Route: https://kayran.live/api/GetFiles

Use this function to Fetch all the Files that are in your Server’s Storage.

Roles Required: Admin and Users. Private Users can only fetch Files they have uploaded.

Request Syntax


“apiKey”: “String”


Request Parameters

Parameters being used in the Request

Parameter Name :


Parameter Usage and Options :

Your Kayran given API Key.

How do I get it ? :

Located in the “Profile” section.

Note : by default, the “API Status” is enabled, unless, the Admin has disabled it in the “Server Settings” section.

Type :


Is it Optional ? :


Successful Response

“Error”: 0,
“Function”: “GetFiles”,
“Data”: [
“name”: “File.txt”,
“size”: 12315651.0,
“permission”: “Ok”

Errors and their Possible Causes

For more information, please refer to the General Errors section.