Your plan does not grant the scope this endpoint requires.
Returned when you have API access but your plan’s granted scopes don’t include
the one this endpoint declares. The missing scope is in the scope field.
{ "error": { "code": "scope_not_granted", "message": "scope 'vessels:fleet:read' is not granted to this partner", "scope": "vessels:fleet:read" } }
Fix — each capability page lists what it needs (the Requires note). If a
capability you expect isn’t enabled for your account, talk to CrewPass. See
how access works.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CrewPass Partner API","description":"Developer documentation for the CrewPass V2 Partner API — a scope-gated, consent-intersected, multi-tenant front door onto CrewPass crew, vessel, document, and compliance data.","colors":{"primary":"#2F4F6F","light":"#7FA1B8","dark":"#1A3550"},"logo":{"light":"/images/logo-light.svg","dark":"/images/logo-dark.svg","href":"https://crewpass.co.uk"},"favicon":"/images/favicon.svg","api":{"openapi":["api-reference/openapi.json"],"playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer"},"server":["https://partners.crewpass.co.uk","https://devpartners.crewpass.co.uk"]}},"appearance":{"default":"system"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://app.crewpass.co.uk","label":"Dashboard"}],"primary":{"type":"button","label":"Become a partner","href":"https://www.crewpass.co.uk/contact"}},"footer":{"socials":{"website":"https://crewpass.co.uk"}},"search":{"prompt":"Search the CrewPass Partner API docs..."},"seo":{"metatags":{"og:site_name":"CrewPass Partner API"},"indexing":"all"},"fonts":{"family":"Inter"},"integrations":{"ga4":{"measurementId":"G-0RB47XYKCM"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4421"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false},"customCss":[]}
{"page":{"pagePath":"errors/scope_not_granted","slug":"/errors/scope_not_granted","pageMetadata":{"title":"scope_not_granted (403)","description":"Your plan does not grant the scope this endpoint requires.","href":"/errors/scope_not_granted"},"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: \"Your plan does not grant the scope this endpoint requires.\"\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`,..._provideComponents(),...props.components},{CodeBlock}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returned when you have API access but your plan’s granted scopes don’t include\nthe one this endpoint declares. The missing scope is in the `,_jsx(_components.code,{children:`scope`}),` field.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"scope_not_granted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"scope 'vessels:fleet:read' is not granted to this partner\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"scope\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"vessels:fleet:read\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix`}),` — each capability page lists what it needs (the `,_jsx(_components.code,{children:`Requires`}),` note). If a\ncapability you expect isn’t enabled for your account, talk to CrewPass. See\n`,_jsx(_components.a,{href:`/introduction#access`,children:`how access works`}),`.`]})]})}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":"scope_not_granted (403)","description":"Your plan does not grant the scope this endpoint requires.","href":"/errors/scope_not_granted"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"devdocs.crewpass.co.uk","siteName":"CrewPass Partner API","title":"scope_not_granted (403) - CrewPass Partner API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"errors/scope_not_granted.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=\"Your plan does not grant the scope this endpoint requires.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CrewPass Partner API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"scope_not_granted (403) - CrewPass Partner API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Your plan does not grant the scope this endpoint requires.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CrewPass Partner API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./errors/scope_not_granted\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"http://devdocs.crewpass.co.uk/_mintlify/og/errors/scope_not_granted.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=\"scope_not_granted (403) - CrewPass Partner API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Your plan does not grant the scope this endpoint requires.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"http://devdocs.crewpass.co.uk/_mintlify/og/errors/scope_not_granted.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=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CrewPass Partner API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2F4F6F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./errors/scope_not_granted\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/errors/scope_not_granted.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CrewPass Partner API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CrewPass Partner API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/errors/scope_not_granted.md","siteName":"CrewPass Partner API","nav":{"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"CrewPass Partner API","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"}]},{"group":"Guides","pages":[{"title":"List your vessels","href":"/guides/vessels"},{"title":"See your crew","href":"/guides/crew"},{"title":"Read a crew profile","href":"/guides/profiles"},{"title":"Documents \u0026 downloads","href":"/guides/documents"},{"title":"Check compliance","href":"/guides/compliance"},{"title":"Background-check status","href":"/guides/background-checks"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks"}]},{"group":"Reference","pages":[{"title":"Document codes","href":"/reference/document-codes"},{"title":"Rate limits","href":"/rate-limits"},{"title":"Errors","href":"/errors/index"},{"title":"invalid_api_key (401)","href":"/errors/invalid_api_key"},{"title":"invalid_signature (401)","href":"/errors/invalid_signature"},{"title":"api_not_enabled (403)","description":"Your CrewPass plan does not include API access.","href":"/errors/api_not_enabled"},{"title":"scope_not_granted (403)","href":"/errors/scope_not_granted"},{"title":"scope_not_consented (403)","description":"The crew member has not consented to this scope for you.","href":"/errors/scope_not_consented"},{"title":"not_found (404)","href":"/errors/not_found"},{"title":"partner_rate_limited (429)","href":"/errors/partner_rate_limited"},{"title":"partner_mode_mismatch (403)","href":"/errors/partner_mode_mismatch"},{"title":"Changelog","href":"/changelog"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/overview"}]}]},"basePath":"","title":"scope_not_granted (403) - CrewPass Partner API","buildId":"c3c28bba369d","dynamics":[],"chunks":[]}