Search...
Menu

Get document list API

PDF

Get a list of site directories and documents, in a tree structure, and only supports documents in published status.

 

Request method Request address
GET https://api.helplook.net/api/content/get-list

Parameters

Parameter name Type Required Description
token string Yes

Get it from the AI Integrations -> AI Token

Response:

{
    "data": {
        "list": [
            {
                "id": "50792", // document id
                "string_id": "s3Enhv",
                "name": "first level category 01",// document title
                "type": "1", // type: 1-category 2-document
                "status": "1",
                "slug": "s3Enhv", // document slug
                "parent_id": "0", // root id
                "icon": "", // category icon
                "desc": "", // category/document description or introduction
                "child": [
                    {
                        "id": "50793",
                        "string_id": "BGqHsf",
                        "name": "second level category",
                        "type": "1",
                        "status": "1",
                        "slug": "BGqHsf",
                        "parent_id": "50792",
                        "icon": "",
                        "desc": "",
                        "child": [
                            {
                                "id": "50789",
                                "string_id": "FnwrJa",
                                "name": "document title",
                                "type": "2",
                                "status": "1",
                                "slug": "123123123",
                                "parent_id": "50793",
                                "icon": "",
                                "desc": "",
                                "child": []
                            }
                        ]
                    }
                ]
            },
            {
                "id": "155676",
                "string_id": "eDCO0h",
                "name": "second level category 02",
                "type": "1",
                "status": "1",
                "slug": "eDCO0h",
                "parent_id": "0",
                "icon": "",
                "desc": "",
                "child": [
                    {
                        "id": "155678",
                        "string_id": "Kt04as",
                        "name": "document title",
                        "type": "2",
                        "status": "1",
                        "slug": "wen-zhang-biao-ti-XqZW",
                        "parent_id": "155676",
                        "icon": "",
                        "desc": "",
                        "child": []
                    }
                ]
            },
            {
                "id": "155677",
                "string_id": "pOugVA",
                "name": "document title",
                "type": "2",
                "status": "1",
                "slug": "wen-zhang-biao-ti",
                "parent_id": "0",
                "icon": "",
                "desc": "",
                "child": []
            }
        ]
    },
    "msg": "Success",
    "code": 200
}
Share this Article
Last modified: 2024-03-19Powered by