File

The File endpoint allows you to get a list of all files, and delete or retrieve details of a specific file.

Get a list of files.

GET https://api.halosecurity.com/api/v1/file/list.json

Returns a paginated list of files.

https://www.halosecurity.com/user/security/report/files

Query Parameters

NameTypeDescription

sort

Integer

0

= created date (default)

sort_desc

Integer

0 = No (default)

1 = Yes

{
    "list": [
        {
            "content_type": "application/pdf",
            "ready": 1,
            "file_name": "test.pdf",
            "file_id": "id1",
            "checksum_md5": "3cc6424d1d01d886f96770983e125fc5",
            "description": "",
            "created_date": "0000-00-00 00:00",
            "file_size": 163637,
            "url": "/static/dl?do=company-file&t=0&id=id1"
        }
    ]
}

Get the details of a file.

GET https://api.halosecurity.com/api/v1/file/get.json

Returns the details of a file.

https://www.halosecurity.com/user/security/report/files

Query Parameters

NameTypeDescription

file_id*

String

String

{
    "file": {
        "content_type": "application/pdf",
        "ready": 1,
        "file_name": "test.pdf",
        "file_id": "id1",
        "checksum_md5": "3cc6424d1d01d886f96770983e125fc5",
        "description": "",
        "created_date": "0000-00-00 00:00",
        "file_size": 163637,
        "url": "/static/dl?do=company-file&t=0&id=id1"
    }
}

Delete a file

GET https://api.halosecurity.com/api/v1/file/delete.json

Returns the file deletion status.

https://www.halosecurity.com/user/security/report/files

Query Parameters

NameTypeDescription

file_id*

String

{
    "success": 1
}

Last updated