{"id":3552,"date":"2021-12-13T10:26:00","date_gmt":"2021-12-13T10:26:00","guid":{"rendered":"https:\/\/helptest.mainbrainer.com\/knowledge-base\/get-your-accounts-private-token\/"},"modified":"2022-06-27T06:26:50","modified_gmt":"2022-06-27T06:26:50","slug":"din-private-token","status":"publish","type":"ht_kb","link":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/start\/oppsett\/din-private-token\/","title":{"rendered":"F\u00e5 kontoens private token"},"content":{"rendered":"<div class=\"aricle_container\">\n<p>MainBrainer st\u00f8tter JWT Bearer Authentication for \u00e5 autentisere alle API-foresp\u00f8rsler. Her m\u00e5 alle API-foresp\u00f8rslene dine passere et ekstra access token i autoriseringsheaderen. Dette hjelper deg med \u00e5 legge til et ekstra lag med sikkerhet til kontoen din.<\/p>\n<p>For \u00e5 <a href=\"https:\/\/docs.mainbrainer.com\/developer-portal\/authentication\/\" target=\"_blank\" rel=\"noopener noreferrer\">generere en access token<\/a> m\u00e5 du sende kontoens private token i foresp\u00f8rselsheaderen for foresp\u00f8rselsgodkjenning.<\/p>\n<div style=\"padding: 14px 0;\"><\/div>\n<h2>Slik f\u00e5r du tilgang til kontoens private token<\/h2>\n<h2>Trinn 1<\/h2>\n<h2>Naviger til kontoens konfigurasjonsinnstillinger<\/h2>\n<p>N\u00e5r du logger p\u00e5 kontoen din, viser det \u00f8verste h\u00f8yre hj\u00f8rnet av skjermen kontonavnet ditt, dvs. navnet du har registrert MainBrainer-kontoen din med.<\/p>\n<p>Klikk p\u00e5 kontonavnet for \u00e5 utvide kontoinnstillingsmenyen og klikk p\u00e5 <strong>Konfigurasjon<\/strong> <em>(som uthevet i skjermbildet nedenfor).<\/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-konto-konfigurasjon.png\" alt=\"MainBrainer, Konfigurasjonsmeny\" width=\"587\" height=\"509\"><\/p>\n<div style=\"padding: 24px 0;\"><\/div>\n<h2>Trinn 2<\/h2>\n<h2>\u00c5pne API Documentation-fanen<\/h2>\n<p>Klikk p\u00e5 <strong>API-dokumentasjon<\/strong>&nbsp;<em>(som uthevet i skjermbildet nedenfor).<\/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-dokumentasjon.png\" alt=\"MainBrainer, API-dokumentasjonsfanen\" width=\"568\" height=\"632\"><\/p>\n<div style=\"padding: 20px 0;\"><\/div>\n<p>Kontoens private token vises under&nbsp;<strong>Privat token<\/strong><em>(som uthevet i skjermbildet nedenfor)<\/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-dokumentasjon-privat-token.png\" alt=\"MainBrainer, API-dokumentasjon av privat 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>Alle API-foresp\u00f8rsler som gj\u00f8res for \u00e5 f\u00e5 tilgang til MainBrainer API-ene m\u00e5 passere en access token i autoriseringsheaderen. F\u00e5 kontoens private token som kreves for \u00e5 generere en slik 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":[258,263],"ht-kb-tag":[],"class_list":["post-3552","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-account-configuration-nb_no","ht_kb_category-setup-your-account-nb_no"],"_links":{"self":[{"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/ht-kb\/3552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/comments?post=3552"}],"version-history":[{"count":7,"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/ht-kb\/3552\/revisions"}],"predecessor-version":[{"id":10651,"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/ht-kb\/3552\/revisions\/10651"}],"wp:attachment":[{"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/media?parent=3552"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/ht-kb-category?post=3552"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mainbrainer.com\/hc\/nb_NO\/wp-json\/wp\/v2\/ht-kb-tag?post=3552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}