CDN API

List files

This endpoint allows you to retrieve the list of files stored in the Content Delivery Network (CDN). By utilizing this function, you can obtain the unique UID code associated with each file, which can then be utilized in subsequent operations.

POSTGET *
https://api.dotmaui.com/client/1.0/cdn/

Parameters

Field Type Description Required
apikey String

.Maui Api key

True

cmd String

Currently, only the ls command is supported for listing files, with a maximum limit of 500.

True

limit String

This function accepts two numeric arguments separated by a comma (e.g., 10,10). The first argument indicates the offset of the first file to return, while the second specifies the maximum number of files to return. The default values are 0 and 500, respectively.

False

beauty Boolean

Indent your JSON to improve readability. By default, this option is set to false.

False

 

Success 200 - Default Mode

The response will be in the form of a JSON string.

      
{
    "resources": {
        "0": {
            "creationDate": "2023-10-16T12:14:46.473Z",
            "UID": "7iikf1",
            "size": 44416,
            "url": "https://cdn.dotmaui.com/libs/img/33399.jpg"
        },
        "1": {
            "creationDate": "2023-10-16T12:14:46.473Z",
            "UID": "TnHGii",
            "size": 67280,
            "url": "https://cdn.dotmaui.com/libs/img/33400.jpg"
        }
    },
    "spaceUsed": 373885772,
    "freeSpace": 1073741824
}

Single File Operations

Perform operations such as retrieving file information or deleting a specific file.

POSTGET *
https://api.dotmaui.com/client/1.0/cdn/{UID}/

The placeholder {UID} should be replaced with the UID code of the file on which you wish to perform operations.

Parameters

Field Type Description Required
apikey String

.Maui Api key

True

cmd String

This function supports two values: "del" to delete the file and "info" to retrieve information about the specified file. By default, the value is set to info.

False

beauty Boolean

Indent your JSON to improve readability. By default, this option is set to false.

False

 

Success 200 - Default Mode

It will be a JSON string

{
    "url": "https://cdn.dotmaui.com/appelbana/img/48647.jpg",
    "creationDate": "2023-08-23T06:30:04.032Z",
    "size": 34448,
    "UID": "MF26CQ"
}
{
    "result": "Item deleted successfully"
}

* Only for premium users.