---
title: Upload user-list
slug: monitor/upload-user-list
docTags: 
createdAt: 2025-04-09T06:35:44.848Z
---

:::ApiMethodV2
```json
{
  "name": "Upload user-list",
  "method": "POST",
  "url": "https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}/user-list",
  "description": "Upload the list of monitored users ",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "CU7WSoFTEbWhp_9e0YObh",
        "language": "curl",
        "code": "curl --location --globoff --request POST 'https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}/user-list' \\\n--header 'Authorization: string' \\\n--form \"file=@data.csv;type=text/csv\" ",
        "customLabel": ""
      },
      {
        "id": "H9B7XS97jdxKuWQkrThbs",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'PUT',\n   'url': 'https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}/user-list',\n   'headers': {\n      'Authorization': 'string'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "phxoBoCM89Pdpnh8oMPn9",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Authorization\", \"string\");\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}/user-list\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "jwsaINA7pF6XohoEw-nhc",
        "language": "python",
        "code": "import requests\n\nurl = \"https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}/user-list\"\n\npayload = {}\nheaders = {\n   'Authorization': 'string'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "Qn10br8tLQ5bXFnicvlba",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}/user-list\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"Authorization\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "CU7WSoFTEbWhp_9e0YObh"
  },
  "results": {
    "languages": [
      {
        "id": "68MDpFYu8YvUi-KGjPdIh",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"messange\": \"ok\"\n}"
      }
    ],
    "selectedLanguageId": "68MDpFYu8YvUi-KGjPdIh"
  },
  "request": {
    "pathParameters": [
      {
        "name": "id",
        "kind": "required",
        "type": "string",
        "description": "ID of the monitor",
        "": "ID of the monitor"
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "Authorization",
        "kind": "required",
        "type": "string",
        "description": "Bearer access token, it returned by the /auth",
        "": "Bearer access token, it returned by the /auth"
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": [
      {
        "name": "file",
        "kind": "optional",
        "type": "object",
        "description": "Binary data stream",
        "": "file"
      }
    ]
  },
  "currentNewParameter": {
    "label": "Form Parameter",
    "value": "formDataParameters"
  },
  "hasTryItOut": false
}
```
:::

:::ExpandableHeading{isOpen="true"}
# user-list file

The user-list file currently only supports the utf-8 encoded text file format, with each CPF delimiter being a line break or comma.



:::

