---
title: Catégories
slug: fr/categories
docTags: 
createdAt: 2021-12-17T16:10:10.000Z
---

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/categories/macro/list",
  "name": "Macrocategory list",
  "method": "GET",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "API Key for authorization"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "optional",
        "name": "lang",
        "type": "string",
        "description": "Language for the category name, defaults EN"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "sxU1SrOr-NVeBpVnIJVPH",
        "code": "{\n    \"code\": 200,\n    \"content\": [\n        {\n            \"macro_code\": 2,\n            \"macro_name\": \"News\"\n            \"module_code\": 1\n        },\n        {\n            \"macro_code\": 3,\n            \"macro_name\": \"Work\"\n            \"module_code\": 2\n        },\n    ]\n}",
        "language": "200"
      },
      {
        "id": "UMRl6ZupMVE3k8HdIvJFi",
        "code": "{\n    \"message\": \"Invalid token or Unauthorized admin\"\n}",
        "language": "401"
      },
      {
        "id": "yYJpJCsQCNZwz-HLjdW5F",
        "code": "{\r\n    \"code\": 500,\r\n    \"message\": \"The given data was invalid.\",\r\n    \"errors\": {\r\n        \"lang\": [\r\n            \"The lang must be one of the following types: EN, IT, ES, DE\"\r\n        ]\r\n    }\r\n}",
        "language": "500"
      }
    ],
    "selectedLanguageId": "sxU1SrOr-NVeBpVnIJVPH"
  },
  "examples": {
    "languages": [
      {
        "id": "S_853sFIbqZBh4DJC7-FH",
        "language": "curl",
        "code": "curl --location --request GET 'https://api.fsflt.net/panel/categories/macro/list' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"lang\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "RE0pksqjIkpXj2_MFAxEf",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'GET',\n   'url': 'https://api.fsflt.net/panel/categories/macro/list',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"lang\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "DNrgAtIgHHfgSgAKNoFTt",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"lang\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fsflt.net/panel/categories/macro/list\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "qFTPjMqOyguqpdRMfTt9l",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://api.fsflt.net/panel/categories/macro/list\"\n\npayload = json.dumps({\n   \"lang\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "8xuzWF_YI1FD1940tg4jj",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fsflt.net/panel/categories/macro/list\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"lang\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "S_853sFIbqZBh4DJC7-FH"
  },
  "description": "Get the macrocategory list",
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "macrocategory-list",
  "legacyHash": "KdmC3Fs81OkKILyLpEQ9n"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/categories/list",
  "name": "Category list",
  "method": "GET",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "API Key for authorization"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "optional",
        "name": "lang",
        "type": "string",
        "description": "Language for the category name, defaults EN"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "DUNcwQB6e3ohUSyQ1G-eJ",
        "code": "{\n    \"code\": 200,\n    \"content\": [\n        {\n            \"category_code\": \"adult\",\n            \"category_name\": \"Adult\",\n            \"macro_code\": 4\n        },\n        {\n            \"category_code\": \"publicite\",\n            \"category_name\": \"Advertising\",\n            \"macro_code\": 7\n        },\n    ]\n}",
        "language": "200"
      },
      {
        "id": "DblZMflU52HrgzytlZbhm",
        "code": "{\n    \"message\": \"Invalid token or Unauthorized admin\"\n}",
        "language": "401"
      },
      {
        "id": "lWytt79FbPtBZuWv_yXbu",
        "code": "{\r\n    \"code\": 500,\r\n    \"message\": \"The given data was invalid.\",\r\n    \"errors\": {\r\n        \"lang\": [\r\n            \"The lang must be one of the following types: EN, IT, ES, DE\"\r\n        ]\r\n    }\r\n}",
        "language": "500"
      }
    ],
    "selectedLanguageId": "DUNcwQB6e3ohUSyQ1G-eJ"
  },
  "examples": {
    "languages": [
      {
        "id": "Fp6O4uTqAnLt-F-V7--4T",
        "code": "curl -X 'GET' \\\n  'https://api.fsflt.net/panel/categories/list' \\\n  -H 'accept: application/json' \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\n  -d '{YOUR_PARAM}'",
        "language": "linux"
      },
      {
        "id": "MsewPKQsJcX6ycRQ80vd4",
        "language": "curl",
        "code": "curl --location --request GET 'https://api.fsflt.net/panel/categories/list' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"lang\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "SSbmPQ8Qon-9CWNfqRlGH",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'GET',\n   'url': 'https://api.fsflt.net/panel/categories/list',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"lang\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "2gG3Bt9429fbhQRe2U52b",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"lang\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fsflt.net/panel/categories/list\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "NWr6fiAtC7PwXDMacu-ut",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://api.fsflt.net/panel/categories/list\"\n\npayload = json.dumps({\n   \"lang\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "r5bTicD374kEgIjBZn9wK",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fsflt.net/panel/categories/list\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"lang\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "Fp6O4uTqAnLt-F-V7--4T"
  },
  "description": "Get the category list",
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "category-list",
  "legacyHash": "ECjEaieooUaq4ZtcPpKXm"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/categories/modules/",
  "name": "Get Modules",
  "method": "GET",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "API Key for authorization"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "optional",
        "name": "lang",
        "type": "string",
        "description": "Language for the category name, defaults EN"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "DUNcwQB6e3ohUSyQ1G-eJ",
        "code": "{\n    \"code\": 200,\n    \"content\": [\n        {\n            \"module_name\": \"<b>Content</b> Filter\",\n            \"module_code\": 1\n        },\n        {\n            \"module_name\": \"<b>Threat</b> Protection\",\n            \"module_code\": 2\n        },\n        {\n            \"module_name\": \"<b>App</b> Blocker\",\n            \"module_code\": 3\n        }\n    ]\n}",
        "language": "200"
      },
      {
        "id": "DblZMflU52HrgzytlZbhm",
        "code": "{\n    \"message\": \"Invalid token or Unauthorized admin\"\n}",
        "language": "401"
      },
      {
        "id": "lWytt79FbPtBZuWv_yXbu",
        "code": "{\r\n    \"code\": 500,\r\n    \"message\": \"The given data was invalid.\",\r\n    \"errors\": {\r\n        \"lang\": [\r\n            \"The lang must be one of the following types: EN, IT, ES, DE\"\r\n        ]\r\n    }\r\n}",
        "language": "500"
      }
    ],
    "selectedLanguageId": "DUNcwQB6e3ohUSyQ1G-eJ"
  },
  "examples": {
    "languages": [
      {
        "id": "iMd_ZRJA4xLAXZZQhu38a",
        "language": "curl",
        "code": "curl --location --request GET 'https://api.fsflt.net/panel/categories/modules' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"lang\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "XTZ0JDTHZyUzjfx0fd1jM",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'GET',\n   'url': 'https://api.fsflt.net/panel/categories/modules',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"lang\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "0dV7R3SYeNNHJ-w_6PMgX",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"lang\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fsflt.net/panel/categories/modules\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "YvQFWhjSkncfFqBWn4UTS",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://api.fsflt.net/panel/categories/modules\"\n\npayload = json.dumps({\n   \"lang\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "i_UamAMC85-6JJQpQFaO2",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fsflt.net/panel/categories/modules\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"lang\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "iMd_ZRJA4xLAXZZQhu38a"
  },
  "description": "Get the protection modules (AppBlocker, Contentfilter ecc)",
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "get-modules",
  "legacyHash": "gXV9Ir3oxIR1Xx5woadXO"
}
```
:::



