REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud
The Cloud Platform API manages your NEAR AI Cloud account: organizations, workspaces, API keys, members, invitations, usage and billing. Inference (chat completions, responses, images and the like) is served by the NEAR AI Cloud API.
Send Authorization: Bearer <credential> with every request that needs one.
Credential
Prefix
Use for
Session access token
none
Almost every endpoint. Get one by signing in, or by refreshing with a refresh token.
Refresh token
rt_
Getting a new access token, and signing out.
Reporting token
rpt-
Read-only usage reporting.
API key
sk-
Looking up the cost of individual requests with POST /v1/billing/costs.
Tokens issued by another NEAR AI service are not accepted here. Each endpoint page lists which credentials it accepts under Authorizations.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NEAR AI","description":"Documentation for NEAR AI Cloud: private, verifiable AI inference in Trusted Execution Environments through an OpenAI-compatible API.","colors":{"primary":"#0B8FF6","light":"#83D2FA","dark":"#0B8FF6"},"logo":{"light":"https://mintcdn.com/near-ai-cloud/pPLdEuT1c099u7Oo/logo/nearAI-logo.svg?fit=max\u0026auto=format\u0026n=pPLdEuT1c099u7Oo\u0026q=85\u0026s=8a963be37f612240f91743d7a063d5b8","dark":"https://mintcdn.com/near-ai-cloud/pPLdEuT1c099u7Oo/logo/nearAI-logo.svg?fit=max\u0026auto=format\u0026n=pPLdEuT1c099u7Oo\u0026q=85\u0026s=8a963be37f612240f91743d7a063d5b8","href":"/"},"favicon":"https://mintcdn.com/near-ai-cloud/pPLdEuT1c099u7Oo/favicon.svg?fit=max\u0026auto=format\u0026n=pPLdEuT1c099u7Oo\u0026q=85\u0026s=21cf1a0245b8fe066c206f1634b65bf4","appearance":{"default":"dark","strict":true},"background":{"color":{"light":"#000000","dark":"#000000"}},"navbar":{"links":[{"href":"https://cloud.near.ai","label":"Developer Dashboard"}]},"footer":{"socials":{"telegram":"https://t.me/nearaialpha","x":"https://x.com/near_ai","github":"https://github.com/nearai/docs"},"links":[{"header":"Docs","items":[{"label":"Quickstart","href":"https://docs.near.ai/cloud/quickstart"},{"label":"Models","href":"https://docs.near.ai/cloud/models"},{"label":"Private Inference","href":"https://docs.near.ai/cloud/private-inference"},{"label":"Verification","href":"https://docs.near.ai/cloud/verification"},{"label":"API Reference","href":"https://docs.near.ai/api-reference/introduction"}]},{"header":"Community","items":[{"label":"Telegram","href":"https://t.me/nearaialpha"},{"label":"X","href":"https://x.com/near_ai"}]},{"header":"More","items":[{"label":"Developer Dashboard","href":"https://cloud.near.ai"},{"label":"GitHub","href":"https://github.com/nearai/docs"}]}]},"seo":{"metatags":{"og:site_name":"NEAR AI Docs","og:image":"https://docs.near.ai/images/icons/social-card.png","twitter:card":"summary_large_image","twitter:image":"https://docs.near.ai/images/icons/social-card.png"}},"icons":{"library":"lucide"},"styling":{"codeblocks":"dark","latex":false},"banner":{"content":"Direct endpoint support ends December 6, 2026. [Move to the Gateway](/cloud/guides/direct-to-gateway).","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"near-ai-cloud","hasAudioNarration":false,"actualSubdomain":"near-ai-cloud","customDomains":["docs.near.ai"],"gitSource":{"type":"github","owner":"nearai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10fc0a9ffae5051c41be06"},"entitlements":{},"buildId":"6b120555df5183d5a3010b81","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"API Reference","count":87},{"language":"default","tag":"Documentation","count":47},{"language":"default","tag":"Guides","count":23},{"language":"default","tag":"Private Inference","count":20},{"language":"default","tag":"Integrations","count":14},{"language":"default","tag":"Users","count":13},{"language":"default","tag":"Verification","count":11},{"language":"default","tag":"Workspaces","count":10},{"language":"default","tag":"Coding Agents and IDEs","count":8},{"language":"default","tag":"Organization Members","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--near-black: #000000;--near-white: #f4f0e8;--near-blue: #0b8ff6;--near-blue-light: #83d2fa;--accent-border-hover: rgba(11, 143, 246, 0.4);--doc-warning: #ffc400}.home-lead{margin:0 0 1.5rem;font-size:clamp(1.05rem, 2vw, 1.2rem);line-height:1.75;letter-spacing:-0.01em}.doc-lead{display:flex;justify-content:center;margin:0 0 1.75rem}.doc-button{display:inline-flex;align-items:center;gap:0.5rem;min-height:48px;padding:0 1.75rem;border-radius:10px;background:var(--near-blue);color:#ffffff!important;font-size:1rem;font-weight:600;text-decoration:none!important;border:none;box-shadow:0 4px 14px rgba(11, 143, 246, 0.35);transition:transform 150ms ease-out, background 150ms ease-out, box-shadow 150ms ease-out}.doc-button:hover{background:var(--near-blue-light);color:var(--near-black)!important;transform:translateY(-1px);box-shadow:0 6px 18px rgba(11, 143, 246, 0.45)}.doc-button:active{transform:translateY(0);box-shadow:0 2px 8px rgba(11, 143, 246, 0.35)}.doc-button:focus-visible{outline:2px solid var(--near-blue);outline-offset:2px}.doc-badge{display:inline-block;padding:0.05rem 0.45rem;border-radius:999px;background:rgba(11, 143, 246, 0.18);border:1px solid var(--accent-border-hover);color:var(--near-blue-light);font-size:0.75rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;vertical-align:middle}"}]}
{"page":{"pagePath":"api-reference/cloud-platform/introduction","slug":"/api-reference/cloud-platform/introduction","pageMetadata":{"title":"Cloud Platform API","sidebarTitle":"Overview","description":"REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud","icon":"cloud","href":"/api-reference/cloud-platform/introduction"},"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: \"REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The Cloud Platform API manages your NEAR AI Cloud account: organizations, workspaces, API keys, members, invitations, usage and billing. Inference (chat completions, responses, images and the like) is served by the `,_jsx(_components.a,{href:`/api-reference/introduction`,children:`NEAR AI Cloud API`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://cloud-platform.near.ai`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`For a walkthrough that signs in from a script and calls these endpoints, see `,_jsx(_components.a,{href:`/cloud/guides/cloud-platform-management`,children:`Manage your account with the Cloud Platform API`}),`. If you are moving existing scripts, see the `,_jsx(_components.a,{href:`/cloud/guides/cloud-platform-migration`,children:`migration guide`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`Authorization: Bearer \u003ccredential>`}),` with every request that needs one.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Credential`}),_jsx(_components.th,{children:`Prefix`}),_jsx(_components.th,{children:`Use for`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Session access token`})}),_jsx(_components.td,{children:`none`}),_jsx(_components.td,{children:`Almost every endpoint. Get one by signing in, or by refreshing with a refresh token.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Refresh token`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`rt_`})}),_jsx(_components.td,{children:`Getting a new access token, and signing out.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Reporting token`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`rpt-`})}),_jsx(_components.td,{children:`Read-only usage reporting.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`API key`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`sk-`})}),_jsxs(_components.td,{children:[`Looking up the cost of individual requests with `,_jsx(_components.code,{children:`POST /v1/billing/costs`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Tokens issued by another NEAR AI service are not accepted here. Each endpoint page lists which credentials it accepts under `,_jsx(_components.strong,{children:`Authorizations`}),`.`]})]})}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":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Cloud Platform API","sidebarTitle":"Overview","description":"REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud","icon":"cloud","href":"/api-reference/cloud-platform/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"near-ai-cloud","siteName":"NEAR AI","title":"Cloud Platform API - NEAR AI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T00:12:14.242Z","originalFileLocation":"api-reference/cloud-platform/introduction.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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=\"REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud\">\u003cmeta data-mint-head name=\"application-name\" content=\"NEAR AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/near-ai-cloud/bPg3CNUSTkDdwz7a/_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/near-ai-cloud/bPg3CNUSTkDdwz7a/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/near-ai-cloud/bPg3CNUSTkDdwz7a/_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/near-ai-cloud/bPg3CNUSTkDdwz7a/_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/near-ai-cloud/bPg3CNUSTkDdwz7a/_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/near-ai-cloud/bPg3CNUSTkDdwz7a/_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/near-ai-cloud/bPg3CNUSTkDdwz7a/_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/near-ai-cloud/bPg3CNUSTkDdwz7a/_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/near-ai-cloud/bPg3CNUSTkDdwz7a/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cloud Platform API - NEAR AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NEAR AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.near.ai/api-reference/cloud-platform/introduction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.near.ai/images/icons/social-card.png\">\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=\"Cloud Platform API - NEAR AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.near.ai/images/icons/social-card.png\">\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/near-ai-cloud/bPg3CNUSTkDdwz7a/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NEAR AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0B8FF6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.near.ai/api-reference/cloud-platform/introduction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/cloud-platform/introduction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.near.ai/#organization\",\"name\":\"NEAR AI\",\"url\":\"https://docs.near.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/near-ai-cloud/pPLdEuT1c099u7Oo/logo/nearAI-logo.svg?fit=max\u0026auto=format\u0026n=pPLdEuT1c099u7Oo\u0026q=85\u0026s=8a963be37f612240f91743d7a063d5b8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.near.ai#website\",\"name\":\"NEAR AI\",\"url\":\"https://docs.near.ai\",\"publisher\":{\"@id\":\"https://docs.near.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.near.ai/api-reference/cloud-platform/introduction#webpage\",\"url\":\"https://docs.near.ai/api-reference/cloud-platform/introduction\",\"name\":\"Cloud Platform API\",\"description\":\"REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud\",\"dateModified\":\"2026-12-04T00:12:14.242Z\",\"isPartOf\":{\"@id\":\"https://docs.near.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.near.ai/api-reference/cloud-platform/introduction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.near.ai/api-reference/cloud-platform/introduction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"NEAR AI\",\"item\":\"https://docs.near.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cloud Platform API\",\"item\":\"https://docs.near.ai/api-reference/cloud-platform/introduction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.near.ai/api-reference/cloud-platform/introduction#article\",\"headline\":\"Cloud Platform API\",\"name\":\"Cloud Platform API\",\"description\":\"REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud\",\"url\":\"https://docs.near.ai/api-reference/cloud-platform/introduction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.near.ai/api-reference/cloud-platform/introduction#webpage\"},\"image\":\"https://docs.near.ai/images/icons/social-card.png\",\"dateModified\":\"2026-12-04T00:12:14.242Z\",\"publisher\":{\"@id\":\"https://docs.near.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.near.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NEAR AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NEAR AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/cloud-platform/introduction.md","siteName":"NEAR AI","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","icon":"braces","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Cloud Platform API","icon":"cloud","groups":[{"group":"Getting Started","pages":[{"title":"Cloud Platform API","sidebarTitle":"Overview","icon":"cloud","href":"/api-reference/cloud-platform/introduction"}]},{"group":"Authentication","pages":[{"title":"Complete a sign-in","description":"The address the sign-in provider sends the browser back to. It is not called directly: GitHub or Google adds the `code` and `state` parameters. A successful sign-in answers with the access token and refresh token as JSON. Send a `User-Agent` header.","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/auth/callback","href":"/cloud-platform-reference/authentication/complete-a-sign-in"},{"title":"Sign in with GitHub","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/auth/github","href":"/cloud-platform-reference/authentication/sign-in-with-github"},{"title":"Sign in with Google","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/auth/google","href":"/cloud-platform-reference/authentication/sign-in-with-google"},{"title":"Sign out","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/auth/logout","href":"/cloud-platform-reference/authentication/sign-out"},{"title":"Sign in with a NEAR account","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/auth/near","href":"/cloud-platform-reference/authentication/sign-in-with-a-near-account"},{"title":"Revoke the credential you hold","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/auth/revoke","href":"/cloud-platform-reference/authentication/revoke-the-credential-you-hold"},{"title":"Refresh an access token","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/users/me/access-tokens","href":"/cloud-platform-reference/authentication/refresh-an-access-token"}]},{"group":"Account","pages":[{"title":"Get the signed-in user","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/users/me","href":"/cloud-platform-reference/account/get-the-signed-in-user"},{"title":"Update the profile","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json put /v1/users/me/profile","href":"/cloud-platform-reference/account/update-the-profile"},{"title":"List refresh tokens","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/users/me/refresh-tokens","href":"/cloud-platform-reference/account/list-refresh-tokens"},{"title":"Revoke a refresh token","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json delete /v1/users/me/refresh-tokens/{refresh_token_id}","href":"/cloud-platform-reference/account/revoke-a-refresh-token"},{"title":"Check the account status","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/users/me/status","href":"/cloud-platform-reference/account/check-the-account-status"},{"title":"Revoke all tokens","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json delete /v1/users/me/tokens","href":"/cloud-platform-reference/account/revoke-all-tokens"}]},{"group":"Organizations","pages":[{"title":"List your organizations","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations","href":"/cloud-platform-reference/organizations/list-your-organizations"},{"title":"Create an organization","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/organizations","href":"/cloud-platform-reference/organizations/create-an-organization"},{"title":"Delete an organization","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json delete /v1/organizations/{org_id}","href":"/cloud-platform-reference/organizations/delete-an-organization"},{"title":"Get an organization","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}","href":"/cloud-platform-reference/organizations/get-an-organization"},{"title":"Update an organization","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json put /v1/organizations/{org_id}","href":"/cloud-platform-reference/organizations/update-an-organization"},{"title":"Get organization settings","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/settings","href":"/cloud-platform-reference/organizations/get-organization-settings"},{"title":"Update organization settings","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json patch /v1/organizations/{org_id}/settings","href":"/cloud-platform-reference/organizations/update-organization-settings"}]},{"group":"Members","pages":[{"title":"List members","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/members","href":"/cloud-platform-reference/members/list-members"},{"title":"Invite members by email","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/organizations/{org_id}/members/invite-by-email","href":"/cloud-platform-reference/members/invite-members-by-email"},{"title":"Remove a member","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json delete /v1/organizations/{org_id}/members/{user_id}","href":"/cloud-platform-reference/members/remove-a-member"},{"title":"Change a member's role","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json put /v1/organizations/{org_id}/members/{user_id}","href":"/cloud-platform-reference/members/change-a-members-role"}]},{"group":"Invitations","pages":[{"title":"Look up an invitation","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/invitations/{token}","href":"/cloud-platform-reference/invitations/look-up-an-invitation"},{"title":"Accept an invitation by token","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/invitations/{token}/accept","href":"/cloud-platform-reference/invitations/accept-an-invitation-by-token"},{"title":"List invitations","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/members/invitations","href":"/cloud-platform-reference/invitations/list-invitations"},{"title":"Cancel an invitation","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json delete /v1/organizations/{org_id}/members/invitations/{invitation_id}","href":"/cloud-platform-reference/invitations/cancel-an-invitation"},{"title":"List my invitations","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/users/me/invitations","href":"/cloud-platform-reference/invitations/list-my-invitations"},{"title":"Accept an invitation","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/users/me/invitations/{invitation_id}/accept","href":"/cloud-platform-reference/invitations/accept-an-invitation"},{"title":"Decline an invitation","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/users/me/invitations/{invitation_id}/decline","href":"/cloud-platform-reference/invitations/decline-an-invitation"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/workspaces","href":"/cloud-platform-reference/workspaces/list-workspaces"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/organizations/{org_id}/workspaces","href":"/cloud-platform-reference/workspaces/create-a-workspace"},{"title":"Delete a workspace","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json delete /v1/workspaces/{workspace_id}","href":"/cloud-platform-reference/workspaces/delete-a-workspace"},{"title":"Get a workspace","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/workspaces/{workspace_id}","href":"/cloud-platform-reference/workspaces/get-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json put /v1/workspaces/{workspace_id}","href":"/cloud-platform-reference/workspaces/update-a-workspace"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/workspaces/{workspace_id}/api-keys","href":"/cloud-platform-reference/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/workspaces/{workspace_id}/api-keys","href":"/cloud-platform-reference/api-keys/create-an-api-key"},{"title":"Delete an API key","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json delete /v1/workspaces/{workspace_id}/api-keys/{key_id}","href":"/cloud-platform-reference/api-keys/delete-an-api-key"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json patch /v1/workspaces/{workspace_id}/api-keys/{key_id}","href":"/cloud-platform-reference/api-keys/update-an-api-key"},{"title":"Set an API key spending limit","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json patch /v1/workspaces/{workspace_id}/api-keys/{key_id}/spend-limit","href":"/cloud-platform-reference/api-keys/set-an-api-key-spending-limit"}]},{"group":"Usage","pages":[{"title":"List an organization's service usage history","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/service-usage/history","href":"/cloud-platform-reference/usage/list-an-organizations-service-usage-history"},{"title":"Get an organization's balance","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/usage/balance","href":"/cloud-platform-reference/usage/get-an-organizations-balance"},{"title":"Get an organization's usage by model","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/usage/by-model","href":"/cloud-platform-reference/usage/get-an-organizations-usage-by-model"},{"title":"List an organization's usage history","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/usage/history","href":"/cloud-platform-reference/usage/list-an-organizations-usage-history"},{"title":"Get an organization's usage metrics","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/usage/metrics","href":"/cloud-platform-reference/usage/get-an-organizations-usage-metrics"},{"title":"Get an organization's usage over time","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/usage/timeseries","href":"/cloud-platform-reference/usage/get-an-organizations-usage-over-time"},{"title":"List an API key's usage history","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/workspaces/{workspace_id}/api-keys/{api_key_id}/usage/history","href":"/cloud-platform-reference/usage/list-an-api-keys-usage-history"}]},{"group":"Billing","pages":[{"title":"Get the cost of requests","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/billing/costs","href":"/cloud-platform-reference/billing/get-the-cost-of-requests"}]},{"group":"Reporting tokens","pages":[{"title":"List reporting tokens","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/organizations/{org_id}/reporting-tokens","href":"/cloud-platform-reference/reporting-tokens/list-reporting-tokens"},{"title":"Create a reporting token","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json post /v1/organizations/{org_id}/reporting-tokens","href":"/cloud-platform-reference/reporting-tokens/create-a-reporting-token"},{"title":"Revoke a reporting token","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json delete /v1/organizations/{org_id}/reporting-tokens/{token_id}","href":"/cloud-platform-reference/reporting-tokens/revoke-a-reporting-token"}]},{"group":"Services","pages":[{"title":"List platform services","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/services","href":"/cloud-platform-reference/services/list-platform-services"},{"title":"Get a platform service","deprecated":null,"version":null,"openapi":"/api-reference/cloud-platform-openapi.json get /v1/services/{service_name}","href":"/cloud-platform-reference/services/get-a-platform-service"}]}]}]},"basePath":"","title":"Cloud Platform API - NEAR AI","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":["10e4515597"],"chunks":["BannerMarkdown-BO8ECIXa.js","dist-1NU8F86Q.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}