{"id":4891,"date":"2017-03-17T11:01:31","date_gmt":"2017-03-17T15:01:31","guid":{"rendered":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/?post_type=ht_kb&#038;p=4891"},"modified":"2025-04-15T17:54:40","modified_gmt":"2025-04-15T21:54:40","slug":"datamotion-direct-api-faqs","status":"publish","type":"ht_kb","link":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/?ht_kb=datamotion-direct-api-faqs","title":{"rendered":"DataMotion Direct API FAQs"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\"><span class=\"rt-label rt-prefix\">Est. reading time:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<h2>Questions and Answers Regarding DataMotion Direct APIs<\/h2>\n<p>DataMotion receives a number of questions regarding its APIs mainly pertaining to how they function and what can be done to maximize their effectiveness for developers. These questions are highlighted as individual sections throughout this article which is updated over time whenever new questions are posed.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle  \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Note<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tFor technical information regarding the API methods and their expected request formats see the <a href=\"https:\/\/developer-docs.datamotion.com\">DataMotion Developer Center<\/a>\u00a0website.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h3>How to retrieve the number of Unread Messages in an Inbox<\/h3>\n<p>In order to find the number of unread messages within an inbox you should use the <b>GetMailboxXML<\/b> method and set the <b>GetInboxUnReadOnly\u00a0<\/b>flag to true.<\/p>\n<h3>Retrieving Provider Details<\/h3>\n<p>It is a common misconception that the functions to retrieve a healthcare provider&#8217;s details from the HPD are a part of the standard Direct Messaging API. This is not the case however as there is a separate Healthcare Provider Directory (HPD) API that is required in order to retrieve provider data. You can find information regarding the HPD API on our <a class=\"external-link\" href=\"https:\/\/developer-docs.datamotion.com\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Developers Wiki<\/a>.<\/p>\n<h3>Is there a way to search an Inbox with the API<\/h3>\n<p>Yes it is possible to search an Inbox by using the <b>GetMailboxXML<\/b> and setting the <b>Filter<\/b> parameter.<\/p>\n<h3>Is there a method for adding signatures to messages<\/h3>\n<p>The short answer is no such a method does not exist within the Direct Messaging API as of now. In order to do this currently, one would need to construct it themselves as part of the MIME message.<\/p>\n<h3>How to return additional information when retrieving a message<\/h3>\n<p>While using the SOAP based Direct Messaging API it is possible to set additional headers which are &#8220;WithCMHeaderXML&#8221;, &#8220;WithTrackingXML&#8221;, and &#8220;WithSecurityEnvelope&#8221; to the request. The &#8220;WithCMHeaderXML&#8221; header in particular will return a X-CMHeaderXML field in the response containing useful information such as the message expiration date within the DateExpires section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Questions and Answers Regarding DataMotion Direct APIs DataMotion receives a number of questions regarding its APIs mainly pertaining to how they function and what can be done to maximize their effectiveness for developers. These questions are highlighted as individual sections throughout this article which is updated over time whenever new&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"content-type":"","footnotes":""},"ht-kb-category":[181],"ht-kb-tag":[],"class_list":["post-4891","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-datamotion-apis"],"_links":{"self":[{"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/ht-kb\/4891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4891"}],"version-history":[{"count":9,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/ht-kb\/4891\/revisions"}],"predecessor-version":[{"id":7895,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/ht-kb\/4891\/revisions\/7895"}],"wp:attachment":[{"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4891"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=4891"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/knowlegebase-b5heb6b2esbghgd4.eastus2-01.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=4891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}