If authentication fails, you’ll receive a 401 response:
{ "error": { "code": "unauthorized", "message": "Invalid or missing API token" }}
Common causes:
Missing Authorization header
Invalid token format
Expired or revoked token
Insufficient permissions for the requested operation
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Galadriel","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/galadriel-d52d3460/nGG8-cfk0XZc-Hmm/logo/light.svg?fit=max\u0026auto=format\u0026n=nGG8-cfk0XZc-Hmm\u0026q=85\u0026s=78326436f6824b37b031fc442b59c4b4","dark":"https://mintcdn.com/galadriel-d52d3460/nGG8-cfk0XZc-Hmm/logo/dark.svg?fit=max\u0026auto=format\u0026n=nGG8-cfk0XZc-Hmm\u0026q=85\u0026s=b0c4e843296f9f2a55a3d0d26eb61e57"},"favicon":"/favicon.svg","navbar":{"links":[{"label":"Support","href":"mailto:support@galadriel.com"}],"primary":{"type":"button","label":"Get Started","href":"https://app.galadriel.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"galadriel-d52d3460","hasAudioNarration":false,"actualSubdomain":"galadriel-d52d3460","customDomains":["docs.galadriel.co"],"gitSource":{"type":"github","owner":"johannestk","repo":"galadriel","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9414ce9c36af6b42dfea2:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API Reference","count":13},{"language":"default","tag":"Documentation","count":9},{"language":"default","tag":"Marketplace","count":6},{"language":"default","tag":"Leases","count":5},{"language":"default","tag":"Orders","count":4},{"language":"default","tag":"REST API","count":2},{"language":"default","tag":"Tools","count":2},{"language":"default","tag":"Getting Started","count":2},{"language":"default","tag":"Advanced","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/authentication","slug":"/api-reference/authentication","pageMetadata":{"title":"Authentication","description":"Authenticate your API requests with API tokens","href":"/api-reference/authentication"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Authenticate your API requests with API tokens\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`The Galadriel API uses API tokens for authentication. Include your token in the `,_jsx(_components.code,{children:`Authorization`}),` header:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer YOUR_API_TOKEN`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`getting-an-api-token`,children:`Getting an API Token`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Sign up at `,_jsx(_components.a,{href:`https://app.galadriel.com`,children:`https://app.galadriel.com`})]}),`\n`,_jsx(_components.li,{children:`Navigate to Settings → API Tokens`}),`\n`,_jsx(_components.li,{children:`Click “Create Token”`}),`\n`,_jsx(_components.li,{children:`Copy and securely store your token`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Keep your API token secure. Do not share it or commit it to version control.`})}),`\n`,_jsx(Heading,{level:`2`,id:`example-request`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.galadriel.com/v1/orders`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer gal_abc123...\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`token-permissions`,children:`Token Permissions`}),`\n`,_jsx(_components.p,{children:`Tokens can have different permission scopes:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`orders:read`})}),_jsx(_components.td,{children:`View orders and orderbook`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`orders:write`})}),_jsx(_components.td,{children:`Create and cancel orders`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`leases:read`})}),_jsx(_components.td,{children:`View lease details`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`leases:write`})}),_jsx(_components.td,{children:`Manage leases (terminate, resell)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`full_access`})}),_jsx(_components.td,{children:`All permissions (recommended for CLI)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`rotating-tokens`,children:`Rotating Tokens`}),`\n`,_jsx(_components.p,{children:`For security, rotate your tokens regularly:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Create a new token`}),`\n`,_jsx(_components.li,{children:`Update your application to use the new token`}),`\n`,_jsx(_components.li,{children:`Delete the old token`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`api-token-format`,children:`API Token Format`}),`\n`,_jsxs(_components.p,{children:[`Tokens are prefixed with `,_jsx(_components.code,{children:`gal_`}),` followed by a random string:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`gal_1234567890abcdefghijklmnop`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`unauthorized-responses`,children:`Unauthorized Responses`}),`\n`,_jsx(_components.p,{children:`If authentication fails, you’ll receive a 401 response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unauthorized\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid or missing API token\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Common causes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Missing `,_jsx(_components.code,{children:`Authorization`}),` header`]}),`\n`,_jsx(_components.li,{children:`Invalid token format`}),`\n`,_jsx(_components.li,{children:`Expired or revoked token`}),`\n`,_jsx(_components.li,{children:`Insufficient permissions for the requested operation`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Authentication","description":"Authenticate your API requests with API tokens","href":"/api-reference/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":1,"children":[]},{"title":"Getting an API Token","slug":"getting-an-api-token","depth":2,"children":[]},{"title":"Example Request","slug":"example-request","depth":2,"children":[]},{"title":"Token Permissions","slug":"token-permissions","depth":2,"children":[]},{"title":"Rotating Tokens","slug":"rotating-tokens","depth":2,"children":[]},{"title":"API Token Format","slug":"api-token-format","depth":2,"children":[]},{"title":"Unauthorized Responses","slug":"unauthorized-responses","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"galadriel-d52d3460","siteName":"Galadriel","title":"Authentication - Galadriel","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/authentication.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Authenticate your API requests with API tokens\">\u003cmeta data-mint-head name=\"application-name\" content=\"Galadriel\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Galadriel\">\u003cmeta data-mint-head property=\"og:description\" content=\"Authenticate your API requests with API tokens\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Galadriel\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.galadriel.co/api-reference/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://galadriel-d52d3460.mintlify.site/_mintlify/api/og/v2?division=REST+API\u0026amp;title=Authentication\u0026amp;description=Authenticate+your+API+requests+with+API+tokens\u0026amp;theme=195aa72062349006c7753975\u0026amp;signature=a325a77de0ffef0fbc7fa63bb36b49409b9823de76d91af4d83a6d8c2b555942\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Authentication - Galadriel\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Authenticate your API requests with API tokens\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://galadriel-d52d3460.mintlify.site/_mintlify/api/og/v2?division=REST+API\u0026amp;title=Authentication\u0026amp;description=Authenticate+your+API+requests+with+API+tokens\u0026amp;theme=195aa72062349006c7753975\u0026amp;signature=a325a77de0ffef0fbc7fa63bb36b49409b9823de76d91af4d83a6d8c2b555942\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/galadriel-d52d3460/LXiaIcLt_1VadkTT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Galadriel\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.galadriel.co/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.galadriel.co/#organization\",\"name\":\"Galadriel\",\"url\":\"https://docs.galadriel.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/galadriel-d52d3460/nGG8-cfk0XZc-Hmm/logo/light.svg?fit=max\u0026auto=format\u0026n=nGG8-cfk0XZc-Hmm\u0026q=85\u0026s=78326436f6824b37b031fc442b59c4b4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.galadriel.co#website\",\"name\":\"Galadriel\",\"url\":\"https://docs.galadriel.co\",\"publisher\":{\"@id\":\"https://docs.galadriel.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.galadriel.co/api-reference/authentication#webpage\",\"url\":\"https://docs.galadriel.co/api-reference/authentication\",\"name\":\"Authentication\",\"description\":\"Authenticate your API requests with API tokens\",\"isPartOf\":{\"@id\":\"https://docs.galadriel.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.galadriel.co/api-reference/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.galadriel.co/api-reference/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API\",\"item\":\"https://docs.galadriel.co/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.galadriel.co/api-reference/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.galadriel.co/api-reference/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"Authenticate your API requests with API tokens\",\"url\":\"https://docs.galadriel.co/api-reference/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.galadriel.co/api-reference/authentication#webpage\"},\"publisher\":{\"@id\":\"https://docs.galadriel.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.galadriel.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Galadriel\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Galadriel\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/authentication.md","siteName":"Galadriel","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"REST API","pages":[{"title":"Introduction","description":"Get started with the Galadriel REST API","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"Orders","pages":[{"title":"Create Order","api":"POST https://api.galadriel.com/v1/orders","description":"Create a new buy or sell order in the marketplace","href":"/api-reference/orders/create"},{"title":"List Orders","api":"GET https://api.galadriel.com/v1/orders","href":"/api-reference/orders/list"},{"title":"Get Order","api":"GET https://api.galadriel.com/v1/orders/{order_id}","href":"/api-reference/orders/get"},{"title":"Cancel Order","api":"DELETE https://api.galadriel.com/v1/orders/{order_id}","href":"/api-reference/orders/cancel"}]},{"group":"Leases","pages":[{"title":"List Leases","api":"GET https://api.galadriel.com/v1/leases","href":"/api-reference/leases/list"},{"title":"Get Lease","api":"GET https://api.galadriel.com/v1/leases/{lease_id}","href":"/api-reference/leases/get"},{"title":"Get Kubeconfig","api":"GET https://api.galadriel.com/v1/leases/{lease_id}/kubeconfig","href":"/api-reference/leases/kubeconfig"},{"title":"Resell Lease","api":"POST https://api.galadriel.com/v1/leases/{lease_id}/resell","href":"/api-reference/leases/resell"},{"title":"Terminate Lease","api":"DELETE https://api.galadriel.com/v1/leases/{lease_id}","href":"/api-reference/leases/terminate"}]},{"group":"Marketplace","pages":[{"title":"Get Orderbook","api":"GET https://api.galadriel.com/v1/orderbook","href":"/api-reference/marketplace/orderbook"},{"title":"Get Price Estimate","api":"GET https://api.galadriel.com/v1/prices/estimate","href":"/api-reference/marketplace/prices"}]}]}]},"basePath":"","title":"Authentication - Galadriel","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":[],"chunks":[]}