API REFERENCE
Monitors base info
Get a monitor
1 min
{ "name" "get a monitor", "method" "get", "url" "https //api sandbox klavi ai/monitor/v1/monitors/{id}", "description" "get a base information of monitor", "tab" "examples", "examples" { "languages" \[ { "id" "adzghukcel2ncwn8i xil", "language" "curl", "code" "curl location globoff 'https //api sandbox klavi ai/monitor/v1/monitors/{id}' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "asp7jnhvbpb58ly2xybwj", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api sandbox klavi ai/monitor/v1/monitors/{id}',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "vvjktzbbvsnze dck1hh3", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api sandbox klavi ai/monitor/v1/monitors/{id}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "8tznlaqy3ifkfd5mgwpyh", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api sandbox klavi ai/monitor/v1/monitors/{id}\\"\n\npayload = {}\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" "dltofusvagqebq at6biz", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api sandbox klavi ai/monitor/v1/monitors/{id}\\")\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\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "adzghukcel2ncwn8i xil" }, "results" { "languages" \[ { "id" "ljzhlqztz6elvr2xrbqtd", "language" "200", "customlabel" "", "code" "{\n \\"id\\" \\"64a8c71f 71db 4972 82b1 1aadc5434dd8\\",\n \\"name\\" \\"monitore teste 150 20250320\\",\n \\"onlinestatus\\" true,\n \\"userliststatus\\" \\"awaiting upload\\",\n \\"monitorweekdays\\" \[\\"mon\\",\\"tue\\",\\"wed\\",\\"thu\\",\\"fri\\",\\"sat\\"],\n \\"monitorfrequency\\" 2,\n \\"notificationemails\\" \[\\"admin\@partner com\\"],\n \\"createat\\" \\"2025 03 20t19 03 59z\\",\n \\"updateat\\" \\"2025 03 20t19 03 59z\\"\n}" } ], "selectedlanguageid" "ljzhlqztz6elvr2xrbqtd" }, "request" { "pathparameters" \[ { "name" "id", "kind" "required", "type" "string", "description" "id of the monitor", "" "id" } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "hastryitout" false, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "id of the monitor" }, { "name" "name", "kind" "optional", "type" "string", "description" "name of the monitor", "children" \[] }, { "name" "onlinestatus", "kind" "optional", "type" "string", "description" "monitor status online/offline", "children" \[] }, { "name" "userliststatus", "kind" "optional", "type" "string", "description" "user list status awaiting upload/uploaded", "children" \[] }, { "name" "monitorweekdays", "kind" "optional", "type" "string", "description" "monitoring dates within a week \[\\"mon\\",\\"tue\\",\\"wed\\",\\"thu\\",\\"fri\\",\\"sat\\"]", "children" \[] }, { "name" "monitortimes", "kind" "optional", "type" "string", "description" "daily monitoring frequency", "children" \[] }, { "name" "notificationemails", "kind" "optional", "type" "string", "description" "mailing list for sending notifications, the mail must be created in advance in the klavi console", "children" \[] }, { "name" "createat", "kind" "optional", "type" "string", "description" "create time", "children" \[] }, { "name" "updateat", "kind" "optional", "type" "string", "description" "update time", "children" \[] } ] }