{"id":5657,"date":"2021-12-13T10:25:59","date_gmt":"2021-12-13T10:25:59","guid":{"rendered":"https:\/\/helptest.mainbrainer.com\/knowledge-base\/get-your-accounts-private-token\/"},"modified":"2022-06-10T04:30:33","modified_gmt":"2022-06-10T04:30:33","slug":"get-your-accounts-private-token","status":"publish","type":"ht_kb","link":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/start\/setup\/get-your-private-token\/","title":{"rendered":"Get Your Account&#8217;s Private Token"},"content":{"rendered":"<div class=\"aricle_container\">\n<p>MainBrainer supports JWT Bearer Authentication to authenticate all API requests. Herein, all your API requests must pass an additional <strong>access token<\/strong> in their Authorization header. This helps you add an additional layer of security to your account.<\/p>\n<p>To <a href=\"https:\/\/docs.mainbrainer.com\/developer-portal\/authentication\/\" target=\"_blank\" rel=\"noopener noreferrer\">generate an access token<\/a>, you&#8217;ll need to pass your account&#8217;s private token in the request header for request authentication.<\/p>\n<div style=\"padding:14px 0\"><\/div>\n<h2>Here&#8217;s how you can access your account&#8217;s private token<\/h2>\n<h2>Step 1<\/h2>\n<h2>Navigate to your account&#8217;s configuration settings<\/h2>\n<p>As you log into your account, the top-right corner of the screen displays your Account name, i.e. the name under which you have registered your MainBrainer account.<\/p>\n<p>Click the Account name to expand the account settings menu and click <strong>Configuration&nbsp;<\/strong><em>(as highlighted in the screenshot below).<\/em><\/p>\n<div style=\"padding: 14px 0;\"><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1397 size-full\" title=\"MainBrainer configuration menu\" src=\"https:\/\/www.mainbrainer.com\/hc\/wp-content\/uploads\/2021\/11\/mainbrainer-account-configuration.png\" alt=\"MainBrainer, Configuration menu\" width=\"587\" height=\"509\"><\/p>\n<div style=\"padding: 24px 0;\"><\/div>\n<h2>Step 2<\/h2>\n<h2>Open the API Documentation tab<\/h2>\n<p>Click the <strong>API Documentation<\/strong> tab <em>(as highlighted in the screenshot below).<\/em><\/p>\n<div style=\"padding: 14px 0;\"><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1399 size-full\" title=\"MainBrainer API documentation\" src=\"https:\/\/www.mainbrainer.com\/hc\/wp-content\/uploads\/2021\/11\/api-documentation.png\" alt=\"MainBrainer, API documentation tab\" width=\"568\" height=\"632\"><\/p>\n<div style=\"padding: 20px 0;\"><\/div>\n<p>Your account&#8217;s private token is displayed under the section <strong>Private Token<\/strong> <em>(as highlighted in the screenshot below)<\/em><em>.<\/em><\/p>\n<div style=\"padding: 14px 0;\"><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1400 size-full\" title=\"MainBrainer API documentation private token\" src=\"https:\/\/www.mainbrainer.com\/hc\/wp-content\/uploads\/2021\/11\/api-documentation-private-token.png\" alt=\"MainBrainer, API documentation of private token\" width=\"557\" height=\"460\"><\/p>\n<\/div>\n<style>\n  .aricle_container p,.aricle_container li{color: rgba(0,0,0,.8)!important}<br \/>\n  .aricle_container span{color:#0070ba!important}<br \/>\n  .aricle_container li,.aricle_container blockquote{font-size:18px!important;font-weight: 400;}<br \/>\n  .aricle_container a{font-size:18px!important;color: #0070BA!important; text-decoration:none!important;background-image:none!important}<br \/>\n<\/style>\n","protected":false},"excerpt":{"rendered":"<p>All API requests made to access the MainBrainer APIs must pass an access token in their authorization header. Get your account&#8217;s private token required for generating the access token.<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"ht-kb-category":[308,318],"ht-kb-tag":[],"class_list":["post-5657","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-account-configuration","ht_kb_category-setup-your-account-en_gb"],"_links":{"self":[{"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/ht-kb\/5657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/comments?post=5657"}],"version-history":[{"count":2,"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/ht-kb\/5657\/revisions"}],"predecessor-version":[{"id":9089,"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/ht-kb\/5657\/revisions\/9089"}],"wp:attachment":[{"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/media?parent=5657"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/ht-kb-category?post=5657"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mainbrainer.com\/hc\/en_GB\/wp-json\/wp\/v2\/ht-kb-tag?post=5657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}