{"id":719,"date":"2022-05-06T13:05:53","date_gmt":"2022-05-06T13:05:53","guid":{"rendered":"https:\/\/phonenumbermonitoring.com\/wiki\/?post_type=lsvr_kba&#038;p=719"},"modified":"2022-08-23T15:23:13","modified_gmt":"2022-08-23T15:23:13","slug":"get-notifications-by-status-api","status":"publish","type":"lsvr_kba","link":"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/","title":{"rendered":"Get Notifications By Status API"},"content":{"rendered":"<h2>Request URL<\/h2>\n<p><strong>GET<\/strong> <em>https:\/\/api.phonenumbermonitoring.com\/GetJobStatus\/bystatus?<span style=\"color: #ff6600;\">apiuid<\/span>=XXXXXXX&amp;status=XXXXXXXX<\/em><\/p>\n<p>Returns information about notifications with specific status generated within the last 24 hours. You can specify a custom date range with the query parameters.<\/p>\n<h3>Query Parameters<\/h3>\n<div class=\"su-table su-table-alternate\">\n<table style=\"width: 50.8612%;height: 172px\">\n<tbody>\n<tr style=\"height: 24px\">\n<th style=\"height: 24px;width: 18.5472%\"><strong>Field<\/strong><\/th>\n<th style=\"width: 21.1403%\"><strong>Required<\/strong><\/th>\n<th style=\"height: 24px;width: 158.621%\"><strong>Description<\/strong><\/th>\n<\/tr>\n<tr style=\"height: 148px\">\n<td style=\"height: 148px;width: 18.5472%\">\n<p align=\"center\"><span style=\"color: #ff9900\"><em>apiuid<\/em><\/span><\/p>\n<\/td>\n<td style=\"width: 21.1403%\">\n<p align=\"center\"><strong>required<\/strong><\/p>\n<\/td>\n<td style=\"height: 148px;width: 158.621%\">API UID for your PNM account.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 18.5472%\">\n<p align=\"center\"><em>status<\/em><\/p>\n<\/td>\n<td style=\"width: 21.1403%\">\n<p align=\"center\"><strong>required<\/strong><\/p>\n<\/td>\n<td style=\"width: 158.621%\">The status of the calls which notifications you want to receive.<\/p>\n<p>Possible values:<\/p>\n<ul>\n<li>incorrectresponse &#8211; incorrect response code<\/li>\n<li>noanydigit &#8211; no any key pressed<\/li>\n<li>sysphoneerror &#8211; phone system error<\/li>\n<li>noanswer &#8211; no answer received<\/li>\n<li>busy &#8211; line is busy<\/li>\n<li>fails &#8211; connection failed<\/li>\n<li>success &#8211; successful call attempt<\/li>\n<li>answer &#8211; call answered<\/li>\n<li>anydigit &#8211; any key pressed<\/li>\n<li>anyword &#8211; any word from specified answered<\/li>\n<li>rtmtimeout &#8211; RTM timeout reached<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 18.5472%\">\n<p align=\"center\"><em>start<\/em><\/p>\n<\/td>\n<td style=\"width: 21.1403%\">\n<p align=\"center\">optional<\/p>\n<\/td>\n<td style=\"width: 158.621%\">The start date of the period for which the notifications need to be retrieved from the system.<\/p>\n<p>Date format:<\/p>\n<p><em>YYYY-MM-DD<\/em><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 18.5472%\">\n<p align=\"center\"><em>end<\/em><\/p>\n<\/td>\n<td style=\"width: 21.1403%\">\n<p align=\"center\">optional<\/p>\n<\/td>\n<td style=\"width: 158.621%\">The end date of the period for which the notifications need to be retrieved from the system.<\/p>\n<p>Date format:<\/p>\n<p><em>YYYY-MM-DD<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre>https:\/\/api.phonenumbermonitoring.com\/GetJobStatus\/bystatus?apiuid=XXXXXXX&amp;status=anydigit&amp;start=2020-05-01<\/pre>\n<h3>Response<\/h3>\n<p>If the request succeeds, the server responds with the 200 HTTP status code and notifications with the defined status of calls as defined by the query parameters. The default report period is the last 24 hours.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-linenumbers=\"false\">{\r\n    \"plan\": [\r\n        {\r\n            \"planID\": 111,\r\n            \"nextActive\": \"null\",\r\n            \"status\": \"Disabled\",\r\n            \"phoneNumber\": \"15644625186\",\r\n            \"planName\": \"test new\",\r\n            \"notifications\": [\r\n                {\r\n                    \"notificationID\": 3502833,\r\n                    \"phoneNumber\": \"15644625186\",\r\n                    \"Created\": \"6\/15\/2021 11:33:16 AM\",\r\n                    \"result\": \"Success\",\r\n                    \"calls\": {\r\n                        \"callID\": 3576622,\r\n                        \"callTime\": \"6\/15\/2021 11:33:16 AM\",\r\n                        \"duration\": 12,\r\n                        \"captured\": \"4\",\r\n                        \"result\": \"Success\"\r\n                    }\r\n                },\r\n                {\r\n                    \"notificationID\": 3421149,\r\n                    \"phoneNumber\": \"18844669900\",\r\n                    \"Created\": \"5\/12\/2021 12:08:29 PM\",\r\n                    \"result\": \"Success\",\r\n                    \"calls\": {\r\n                        \"callID\": 3494541,\r\n                        \"callTime\": \"5\/12\/2021 12:08:29 PM\",\r\n                        \"duration\": 7,\r\n                        \"captured\": \"thank you for calling\",\r\n                        \"result\": \"Success\"\r\n                    }\r\n                }\r\n            \r\n                ]\r\n        }\r\n    ]\r\n}<\/pre>\n<p><strong>Response Description<\/strong><\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 144px;\">\n<thead>\n<tr style=\"height: 24px;\">\n<td style=\"width: 8.77447%; height: 24px;\"><strong>Field<\/strong><\/td>\n<td style=\"width: 57.8921%; height: 24px;\"><strong>Description<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 8.77447%; height: 24px;\"><em>planID<\/em><\/td>\n<td style=\"width: 57.8921%; height: 24px;\">The ID of the monitoring plan in the PNM account. Use to request notification information by a plan id.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 8.77447%; height: 24px;\"><em>nextAcitve<\/em><\/td>\n<td style=\"width: 57.8921%; height: 24px;\">The date and time of the next call.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 8.77447%; height: 24px;\"><em>status<\/em><\/td>\n<td style=\"width: 57.8921%; height: 24px;\">The status of the monitoring plan.<\/p>\n<p>Possible value:<\/p>\n<ul>\n<li><em>Disabled<\/em> &#8211; postponed plan<\/li>\n<li><em>Enabled<\/em> &#8211; active plan<\/li>\n<li><em>Incomplete<\/em> &#8211; no schedule set for the plan<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 8.77447%; height: 24px;\"><em>phoneNumber<\/em><\/td>\n<td style=\"width: 57.8921%; height: 24px;\">The monitored phone number.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 8.77447%; height: 24px;\"><em>planName<\/em><\/td>\n<td style=\"width: 57.8921%; height: 24px;\">The name of the plan as specified in the PNM service.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><i>notifications<\/i><\/td>\n<td style=\"width: 57.8921%;\">An array of notifications generated for the related plan for the specified period.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><em>notificationID<\/em><\/td>\n<td style=\"width: 57.8921%;\">The notification ID.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><em>Created<\/em><\/td>\n<td style=\"width: 57.8921%;\">The date and time when the notification was created.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><i>cost<\/i><\/td>\n<td style=\"width: 57.8921%;\">The cost of the call. &#8220;<em>Null<\/em>&#8221; is set for the unanswered calls.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><i>result<\/i><\/td>\n<td style=\"width: 57.8921%;\">The call status. The possible values: incorrectresponse, noanydigit, sysphoneerror, noanswer , busy, fails, success, answer, anydigit, anyword, rtmtimeout<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><i>calls<\/i><\/td>\n<td style=\"width: 57.8921%;\">An array of calls.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><i>callID<\/i><\/td>\n<td style=\"width: 57.8921%;\">The call ID.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><i>callTime<\/i><\/td>\n<td style=\"width: 57.8921%;\">The time when the call happened.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><i>duration<\/i><\/td>\n<td style=\"width: 57.8921%;\">The duration time of the call.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 8.77447%;\"><i>captured<\/i><\/td>\n<td style=\"width: 57.8921%;\">The response that was captured if the call was answered.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Request URL GET https:\/\/api.phonenumbermonitoring.com\/GetJobStatus\/bystatus?apiuid=XXXXXXX&amp;status=XXXXXXXX Returns information about notifications with specific status generated within the last 24 hours. You can specify a custom date range with the query parameters. Query Parameters https:\/\/api.phonenumbermonitoring.com\/GetJobStatus\/bystatus?apiuid=XXXXXXX&amp;status=anydigit&amp;start=2020-05-01 Response If the request succeeds, the server responds with the 200 HTTP status code and notifications with the defined status of calls as defined [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"footnotes":""},"lsvr_kba_cat":[22],"lsvr_kba_tag":[],"class_list":["post-719","lsvr_kba","type-lsvr_kba","status-publish","format-standard","hentry","lsvr_kba_cat-pnm-api-reference"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Get Notifications By Status API | Phone Number Monitoring<\/title>\n<meta name=\"description\" content=\"Detailed instructions for get notifications by status Phone Number Monitoring API \u2705 Request URL \u2705 Query Parameters \u2705 Response \u27a1\ufe0f Click here to learn more information\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get Notifications By Status API | Phone Number Monitoring\" \/>\n<meta property=\"og:description\" content=\"Detailed instructions for get notifications by status Phone Number Monitoring API \u2705 Request URL \u2705 Query Parameters \u2705 Response \u27a1\ufe0f Click here to learn more information\" \/>\n<meta property=\"og:url\" content=\"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-23T15:23:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/phonenumbermonitoring.com\/wiki\/wp-content\/uploads\/2022\/08\/new-logo2slide.png\" \/>\n\t<meta property=\"og:image:width\" content=\"271\" \/>\n\t<meta property=\"og:image:height\" content=\"311\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Get Notifications By Status API | Phone Number Monitoring\" \/>\n<meta name=\"twitter:description\" content=\"Detailed instructions for get notifications by status Phone Number Monitoring API \u2705 Request URL \u2705 Query Parameters \u2705 Response \u27a1\ufe0f Click here to learn more information\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/phonenumbermonitoring.com\/wiki\/wp-content\/uploads\/2022\/08\/new-logo2slide.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/knowledge-base\\\/get-notifications-by-status-api\\\/\",\"url\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/knowledge-base\\\/get-notifications-by-status-api\\\/\",\"name\":\"Get Notifications By Status API | Phone Number Monitoring\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/#website\"},\"datePublished\":\"2022-05-06T13:05:53+00:00\",\"dateModified\":\"2022-08-23T15:23:13+00:00\",\"description\":\"Detailed instructions for get notifications by status Phone Number Monitoring API \u2705 Request URL \u2705 Query Parameters \u2705 Response \u27a1\ufe0f Click here to learn more information\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/knowledge-base\\\/get-notifications-by-status-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/knowledge-base\\\/get-notifications-by-status-api\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/knowledge-base\\\/get-notifications-by-status-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get Notifications By Status API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/#website\",\"url\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/phonenumbermonitoring.com\\\/wiki\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get Notifications By Status API | Phone Number Monitoring","description":"Detailed instructions for get notifications by status Phone Number Monitoring API \u2705 Request URL \u2705 Query Parameters \u2705 Response \u27a1\ufe0f Click here to learn more information","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/","og_locale":"en_US","og_type":"article","og_title":"Get Notifications By Status API | Phone Number Monitoring","og_description":"Detailed instructions for get notifications by status Phone Number Monitoring API \u2705 Request URL \u2705 Query Parameters \u2705 Response \u27a1\ufe0f Click here to learn more information","og_url":"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/","article_modified_time":"2022-08-23T15:23:13+00:00","og_image":[{"width":271,"height":311,"url":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-content\/uploads\/2022\/08\/new-logo2slide.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_title":"Get Notifications By Status API | Phone Number Monitoring","twitter_description":"Detailed instructions for get notifications by status Phone Number Monitoring API \u2705 Request URL \u2705 Query Parameters \u2705 Response \u27a1\ufe0f Click here to learn more information","twitter_image":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-content\/uploads\/2022\/08\/new-logo2slide.png","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/","url":"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/","name":"Get Notifications By Status API | Phone Number Monitoring","isPartOf":{"@id":"https:\/\/phonenumbermonitoring.com\/wiki\/#website"},"datePublished":"2022-05-06T13:05:53+00:00","dateModified":"2022-08-23T15:23:13+00:00","description":"Detailed instructions for get notifications by status Phone Number Monitoring API \u2705 Request URL \u2705 Query Parameters \u2705 Response \u27a1\ufe0f Click here to learn more information","breadcrumb":{"@id":"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/get-notifications-by-status-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/phonenumbermonitoring.com\/wiki\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/phonenumbermonitoring.com\/wiki\/knowledge-base\/"},{"@type":"ListItem","position":3,"name":"Get Notifications By Status API"}]},{"@type":"WebSite","@id":"https:\/\/phonenumbermonitoring.com\/wiki\/#website","url":"https:\/\/phonenumbermonitoring.com\/wiki\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/phonenumbermonitoring.com\/wiki\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/lsvr_kba\/719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/comments?post=719"}],"version-history":[{"count":5,"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/lsvr_kba\/719\/revisions"}],"predecessor-version":[{"id":742,"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/lsvr_kba\/719\/revisions\/742"}],"wp:attachment":[{"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/media?parent=719"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/lsvr_kba_cat?post=719"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/phonenumbermonitoring.com\/wiki\/wp-json\/wp\/v2\/lsvr_kba_tag?post=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}