{"id":885,"date":"2017-12-07T22:33:09","date_gmt":"2017-12-07T22:33:09","guid":{"rendered":"http:\/\/kb.powercode.com\/?post_type=ht_kb&#038;p=885"},"modified":"2025-01-09T21:28:19","modified_gmt":"2025-01-09T21:28:19","slug":"powercode-api","status":"publish","type":"ht_kb","link":"https:\/\/kb.powercode.com\/?ht_kb=powercode-api","title":{"rendered":"Powercode API"},"content":{"rendered":"<p>The Powercode API represents a secure method for interfacing with Powercode programmatically. API endpoints are documented&nbsp;<a href=\"http:\/\/api.powercode.com\/v1\/\">here.&nbsp;<\/a>Examples of proper API Endpoint usage and Powercode API capabilities can be found&nbsp; on the<a href=\"http:\/\/api.powercode.com\/v1\/#api-_footer\"> same page.<\/a><\/p>\n<h3>Generate an API Key<\/h3>\n<p>Powercode requires you to generate an<strong> API Key<\/strong> for each service that will make use of the<strong> API.<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1431\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/NewapiInterface.png\" alt=\"\" width=\"839\" height=\"441\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/NewapiInterface.png 839w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/NewapiInterface-300x158.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/NewapiInterface-768x404.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/NewapiInterface-50x26.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/NewapiInterface-60x32.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/NewapiInterface-100x53.png 100w\" sizes=\"(max-width: 839px) 100vw, 839px\" \/><\/p>\n<p>Go to&nbsp;<strong>Powercode Billing Server<\/strong> at&nbsp;<strong>Admin Mode &gt; Config &gt; API Management <\/strong>and click <strong>Generate New API Key.&nbsp;<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1432\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/AddAPIkey.png\" alt=\"\" width=\"514\" height=\"280\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/AddAPIkey.png 514w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/AddAPIkey-300x163.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/AddAPIkey-50x27.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/AddAPIkey-60x33.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/AddAPIkey-100x54.png 100w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/p>\n<p>Enter the origin IP and a description of the service you intend to interface with the Powercode API and click <strong>Sav<\/strong>e to create your<strong> API Key.<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1433\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface.png\" alt=\"\" width=\"839\" height=\"476\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface.png 839w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-300x170.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-768x436.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-50x28.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-60x34.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-100x57.png 100w\" sizes=\"(max-width: 839px) 100vw, 839px\" \/><\/p>\n<h3><strong>Powercode API Settings<\/strong><\/h3>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1434\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-1.png\" alt=\"\" width=\"839\" height=\"476\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-1.png 839w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-1-300x170.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-1-768x436.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-1-50x28.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-1-60x34.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/apiInterface-1-100x57.png 100w\" sizes=\"(max-width: 839px) 100vw, 839px\" \/><\/p>\n<p><strong>Generate New API Key:<\/strong> Allows creation of API keys for allowing API connections to your<strong> Powercode Billing server<\/strong>.<\/p>\n<p>Existing <strong>API keys<\/strong> are shown below the <strong>Generate New API Key&nbsp;<\/strong>button&nbsp;and can be edited or deleted using the&nbsp;<strong>Action&nbsp;<\/strong>dropdown. Editing an API Key allows you to regenerate the API Key string in addition to updating the Name and IP address.<\/p>\n<h4><strong>Logging<\/strong><\/h4>\n<ul>\n<li><strong>API Notification Email: <\/strong>Enables&nbsp;a nightly notification email containing&nbsp;<strong>API Log<\/strong> updates.<\/li>\n<li><strong>Number of Logs to Store:<\/strong> Sets the number of entries kept in the&nbsp;<strong>API Log<\/strong><\/li>\n<li><strong>Log both Success and Failure Messages:<\/strong>&nbsp; Enables the log&nbsp; to save all successful and unsuccessful captured API attempts. By default Powercode only logs unsuccessful API attempts.<\/li>\n<li><strong>View API Logs<\/strong>:&nbsp;Click to access the API logging on your&nbsp;Powercode Billing Server.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Powercode API represents a secure method for interfacing with Powercode programmatically. API endpoints are documented&nbsp;here.&nbsp;Examples of proper API Endpoint usage and Powercode API capabilities can be found&nbsp; on the same page. Generate an API Key Powercode requires you to generate an API Key for each service that will make&#8230;<\/p>\n","protected":false},"author":4,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[104,113],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/885"}],"collection":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=885"}],"version-history":[{"count":6,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/885\/revisions"}],"predecessor-version":[{"id":1630,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/885\/revisions\/1630"}],"wp:attachment":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=885"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=885"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}