{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"PlanetScale","description":"PlanetScale is a relational database platform for Vitess, Neki, and Postgres that gives you scale, performance, and reliability without sacrificing developer experience.","colors":{"primary":"#0e73cc","light":"#47b7f8","dark":"#f15817"},"logo":{"light":"https://mintcdn.com/planetscale-2/xUilVHToUFALai8a/logo/light.png?fit=max\u0026auto=format\u0026n=xUilVHToUFALai8a\u0026q=85\u0026s=cccd3c9fc813c01b899ab7af15a115b1","dark":"https://mintcdn.com/planetscale-2/xUilVHToUFALai8a/logo/dark.png?fit=max\u0026auto=format\u0026n=xUilVHToUFALai8a\u0026q=85\u0026s=4153888dc0ef54ddc3464738a2d7ee6e","href":"https://planetscale.com"},"favicon":"https://mintcdn.com/planetscale-2/DJh9Bv1aUZHTVDnK/favicon.svg?fit=max\u0026auto=format\u0026n=DJh9Bv1aUZHTVDnK\u0026q=85\u0026s=cc6ec9d8d0deb3450719bb4b5b6df73a","background":{"color":{"light":"#fafafa","dark":"#111111"}},"navbar":{"links":[{"href":"https://auth.planetscale.com/sign-in","label":"Log in"},{"href":"https://auth.planetscale.com/sign-up","label":"Get started"}],"primary":{"type":"button","label":"Get in touch","href":"https://planetscale.com/contact"}},"footer":{"socials":{"x":"https://twitter.com/planetscale","github":"https://github.com/planetscale","linkedin":"https://www.linkedin.com/company/planetscale","youtube":"https://www.youtube.com/c/PlanetScale","discord":"https://pscale.link/community","facebook":"https://www.facebook.com/planetscaledata"}},"seo":{"metatags":{"canonical":"https://planetscale.com/docs"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"integrations":{"segment":{"key":"9Ujczlrndco2w8fcFAakL0FT4bsJCCh3"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://planetscale.com/blog"},{"anchor":"Contact Us","icon":"headset","href":"https://planetscale.com/contact"},{"anchor":"Status","icon":"signal","href":"https://www.planetscalestatus.com/"},{"anchor":"Benchmarks","icon":"chart-line","href":"https://planetscale.com/benchmarks"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"planetscale-2","hasAudioNarration":false,"actualSubdomain":"planetscale-2","customDomains":["planetscale.com"],"gitSource":{"type":"github","owner":"planetscale","repo":"www","deployBranch":"main","contentDirectory":"content/mintlify/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae505c7cb870de49023cbd6","collectionId":"75c09c64-fefe-4ba5-8569-25281688c6cb","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae505c7cb870de49023cbd6"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae50e31004f8cf1ce957135","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Platform","count":289},{"language":"default","tag":"API Reference","count":268},{"language":"default","tag":"Vitess","count":184},{"language":"default","tag":"Postgres","count":109},{"language":"default","tag":"General API endpoints","count":97},{"language":"default","tag":"Neki","count":58},{"language":"default","tag":"Guides","count":58},{"language":"default","tag":"Vitess API endpoints","count":56},{"language":"default","tag":"Postgres API endpoints","count":51},{"language":"default","tag":"Neki API endpoints","count":50}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"type":"link","url":"https://planetscale.com/contact?initial=support"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-container{column-gap:2rem}.nav-tabs{column-gap:.5em}.nav-tabs-item{padding:0 8px}.eyebrow,.light #navigation-items .text-gray-700,.nav-tabs a{color:#616161}#navigation-items .text-primary,#topbar-cta-button .text-white,#topbar-cta-button svg,.nav-tabs a.text-primary{color:#1a1a1a}.nav-tabs a.text-primary .bg-primary{background-color:#1a1a1a;left:0}.dark .nav-tabs a[href='/docs/vitess'i].text-primary,.nav-tabs a[href='/docs/vitess'i].text-primary{color:#f15817}.dark .nav-tabs a[href='/docs/vitess'i].text-primary .bg-primary,.nav-tabs a[href='/docs/vitess'i].text-primary .bg-primary{background-color:#f15817}.nav-tabs a[href='/docs/postgres'i].text-primary{color:#0e73cc}.nav-tabs a[href='/docs/postgres'i].text-primary .bg-primary{background-color:#0e73cc}.nav-tabs a[href='/docs/neki'i].text-primary{color:#8f7200}.nav-tabs a[href='/docs/neki'i].text-primary .bg-primary{background-color:#8f7200}.dark .nav-tabs a{color:#a1a1a1}.dark #navigation-items .text-primary,.dark .nav-tabs a.text-primary{color:#fafafa}.dark .nav-tabs a.text-primary .bg-primary{background-color:#fafafa}.dark .nav-tabs a[href='/docs/postgres'i].text-primary{color:#47b7f8}.dark .nav-tabs a[href='/docs/postgres'i].text-primary .bg-primary{background-color:#47b7f8}.dark .nav-tabs a[href='/docs/neki'i].text-primary{color:#fbca00}.dark .nav-tabs a[href='/docs/neki'i].text-primary .bg-primary{background-color:#fbca00}.prose:is(.dark *){color:#c1c1c1}.prose :where(a):not(:where([class~='not-prose'], [class~='not-prose'] *)){color:#0e73cc;font-weight:500}.dark .prose :where(a):not(:where(.not-prose, .not-prose *)){color:#47b7f8}.dark .eyebrow{color:#a1a1a1}@media (min-width:1024px){#content-container{padding-top:2rem;padding-right:2rem;padding-left:2.5rem}}#topbar-cta-button a>span{background-color:#fbca00}.group:hover span{opacity:1!important}.bg-primary\\/10{background-color:rgba(129,129,129,.1)}.dark .bg-primary\\/10{background-color:rgba(255,255,255,.1)}body[data-current-path^='/vitess'] svg.bg-primary{background-color:#f15817}body[data-current-path^='/vitess'] .border-primary{border-color:#f15817}body[data-current-path^='/vitess'] #table-of-contents-content .text-primary,body[data-current-path^='/vitess'] .eyebrow{color:#f15817}body[data-current-path^='/vitess'] .card-group a:hover{border-color:#f15817!important}body[data-current-path^='/postgres'] .eyebrow{color:#0e73cc}.dark body[data-current-path^='/postgres'] .eyebrow{color:#47b7f8}body[data-current-path^='/neki'] svg.bg-primary{background-color:#8f7200}body[data-current-path^='/neki'] [data-component-part=card-icon]{background-color:#fbca00}body[data-current-path^='/neki'] [data-component-part=card-icon] svg.bg-primary{background-color:#1a1a1a;transform:scale(.7);transform-origin:center}body[data-current-path^='/neki'] .border-primary{border-color:#8f7200}body[data-current-path^='/neki'] #table-of-contents-content .text-primary{color:#1a1a1a;background-color:transparent;border-color:#fbca00}body[data-current-path^='/neki'] .eyebrow{display:inline-flex;align-items:center;width:fit-content;height:auto;min-height:1.25rem;padding:0 .375rem;color:#1a1a1a;background-color:#fbca00}body[data-current-path^='/neki'] .eyebrow:empty,body[data-current-path^='/neki'] .eyebrow[data-empty]{display:none}.dark body[data-current-path^='/neki'] .card-group .card:hover,body[data-current-path^='/neki'] .card-group .card:hover{--primary:251 202 0;--primary-light:251 202 0;border-color:#fbca00!important}.dark body[data-current-path^='/neki'] [data-component-part=card-icon],.dark body[data-current-path^='/neki'] svg.bg-primary{background-color:#fbca00}.dark body[data-current-path^='/neki'] [data-component-part=card-icon] svg.bg-primary{background-color:#1a1a1a}.dark body[data-current-path^='/neki'] .border-primary{border-color:#fbca00}.dark body[data-current-path^='/neki'] #table-of-contents-content .text-primary{color:#fafafa;background-color:transparent;border-color:#fbca00}.dark body[data-current-path^='/neki'] .eyebrow{color:#1a1a1a;background-color:#fbca00}footer div:last-child{display:none}#header,#pagination a,[data-component-part=card-content-container],[data-component-part=frame-caption]{text-wrap:balance}.step:last-of-type [data-component-part=step-line]{opacity:0}"}],"page":{"pagePath":"api/reference/list_service_tokens","slug":"/api/reference/list_service_tokens","pageMetadata":{"openapi":"get /organizations/{organization}/service-tokens","og:image":"images/og/api/reference/list_service_tokens.png","title":"List service tokens","description":"List service tokens for an organization.\n### Authorization\nA service token must have at least one of the following access in order to use this API endpoint:\n\n**Service Token Accesses**\n `read_service_tokens`\n\n","href":"/api/reference/list_service_tokens"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n h3: \"h3\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"List service tokens for an organization.\"\n }), \"\\n\", _jsx(_components.h3, {\n children: \"Authorization\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"A service token must have at least one of the following access in order to use this API endpoint:\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Service Token Accesses\"\n }), \"\\n\", _jsx(_components.code, {\n children: \"read_service_tokens\"\n })]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"get /organizations/{organization}/service-tokens","og:image":"images/og/api/reference/list_service_tokens.png","title":"List service tokens","description":"List service tokens for an organization.\n### Authorization\nA service token must have at least one of the following access in order to use this API endpoint:\n\n**Service Token Accesses**\n `read_service_tokens`\n\n","href":"/api/reference/list_service_tokens"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/planetscale-2/b155242ec3c4945e/custom.js"],"openApiReferenceData":{"operation":{"tags":["Service tokens"],"operationId":"list_service_tokens","summary":"List service tokens","parameters":["8afd33da-54a4-4f16-aa3c-bc636016793d","eb7da555-3d1e-465d-8f34-9fe7d82f9a42","fc40159a-972d-4bba-9dda-3d07f38cae6d"],"responses":{"200":"6e0220ac-9d8a-4b3f-948a-1db4e8e69593","401":"0b2fe4ea-5be3-4ff2-be28-08daa184cb2b","403":"e38f78f7-0ae2-41f2-a143-66c6584f46f2","404":"ce538c33-a281-424d-9987-4829bb26a728","422":"02e97976-b7b5-4171-a0b6-0d6426006455","429":"10b8b46f-2483-4d96-a9d6-c19e592a1ff9","500":"f8fd9174-00a0-49b9-a445-eabf6941d048"},"description":"List service tokens for an organization.\n### Authorization\nA service token must have at least one of the following access in order to use this API endpoint:\n\n**Service Token Accesses**\n `read_service_tokens`\n\n","method":"get","type":"path","servers":["3759bdaa-8148-479e-a8e8-7f8e8d52553e"],"security":["7501a857-855d-4d14-8ee7-cf2bc88fad9f"],"path":"/organizations/{organization}/service-tokens","baseUrlOptions":["https://api.planetscale.com/v1"],"title":"List service tokens","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8afd33da-54a4-4f16-aa3c-bc636016793d":{"name":"organization","in":"path","required":true,"description":"The name of the organization","schema":{"type":"string","isRequired":true,"description":"The name of the organization","uniqueKey":"","typeLabel":"string"}},"eb7da555-3d1e-465d-8f34-9fe7d82f9a42":{"name":"page","in":"query","description":"If provided, specifies the page offset of returned results","schema":{"type":"integer","default":1,"description":"If provided, specifies the page offset of returned results","uniqueKey":"","typeLabel":"integer"}},"fc40159a-972d-4bba-9dda-3d07f38cae6d":{"name":"per_page","in":"query","description":"If provided, specifies the number of returned results","schema":{"type":"integer","default":25,"description":"If provided, specifies the number of returned results","uniqueKey":"","typeLabel":"integer"}}},"responses":{"6e0220ac-9d8a-4b3f-948a-1db4e8e69593":{"description":"Returns the organization's service tokens","headers":{},"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The response type. Always \"list\" for paginated responses.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"current_page":{"type":"integer","description":"The current page number","isRequired":true,"uniqueKey":"current_page","typeLabel":"integer"},"per_page":{"type":"integer","description":"The maximum number of results per page","isRequired":true,"uniqueKey":"per_page","typeLabel":"integer"},"next_page":{"oneOf":[{"type":"integer","description":"The next page number, or null when this is the last page","isRequired":true,"uniqueKey":"next_page.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The next page number, or null when this is the last page","isRequired":true,"uniqueKey":"next_page.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"next_page","typeLabel":"integer | null"},"next_page_url":{"oneOf":[{"type":"string","description":"The next page of results, or null when this is the last page","isRequired":true,"uniqueKey":"next_page_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The next page of results, or null when this is the last page","isRequired":true,"uniqueKey":"next_page_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"next_page_url","typeLabel":"string | null"},"prev_page":{"oneOf":[{"type":"integer","description":"The previous page number, or null when this is the first page","isRequired":true,"uniqueKey":"prev_page.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The previous page number, or null when this is the first page","isRequired":true,"uniqueKey":"prev_page.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"prev_page","typeLabel":"integer | null"},"prev_page_url":{"oneOf":[{"type":"string","description":"The previous page of results, or null when this is the first page","isRequired":true,"uniqueKey":"prev_page_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The previous page of results, or null when this is the first page","isRequired":true,"uniqueKey":"prev_page_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"prev_page_url","typeLabel":"string | null"},"total_count":{"type":"integer","description":"The total number of matching results","isRequired":true,"uniqueKey":"total_count","typeLabel":"integer"},"total_pages":{"type":"integer","description":"The total number of pages of matching results","isRequired":true,"uniqueKey":"total_pages","typeLabel":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the service token","isRequired":true,"uniqueKey":"data.items.[INDEX].id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","description":"The name of the service token","isRequired":true,"uniqueKey":"data.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the service token","isRequired":true,"uniqueKey":"data.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].name","typeLabel":"string | null"},"display_name":{"type":"string","description":"The display name of the service token","isRequired":true,"uniqueKey":"data.items.[INDEX].display_name","typeLabel":"string"},"avatar_url":{"type":"string","description":"The image source for the avatar of the service token","isRequired":true,"uniqueKey":"data.items.[INDEX].avatar_url","typeLabel":"string"},"created_at":{"type":"string","description":"When the service token was created","isRequired":true,"uniqueKey":"data.items.[INDEX].created_at","typeLabel":"string"},"updated_at":{"type":"string","description":"When the service token was last updated","isRequired":true,"uniqueKey":"data.items.[INDEX].updated_at","typeLabel":"string"},"expires_at":{"oneOf":[{"type":"string","description":"When the service token will expire","isRequired":true,"uniqueKey":"data.items.[INDEX].expires_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the service token will expire","isRequired":true,"uniqueKey":"data.items.[INDEX].expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].expires_at","typeLabel":"string | null"},"last_used_at":{"oneOf":[{"type":"string","description":"When the service token was last used","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the service token was last used","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_at","typeLabel":"string | null"},"last_used_ip":{"oneOf":[{"type":"string","description":"The IP address from the service token's latest use","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_ip.oneOf.0","typeLabel":"string"},{"type":"null","description":"The IP address from the service token's latest use","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_ip.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_ip","typeLabel":"string | null"},"last_used_location":{"oneOf":[{"type":"string","description":"The location of the service token's latest use","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_location.oneOf.0","typeLabel":"string"},{"type":"null","description":"The location of the service token's latest use","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_location.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_location","typeLabel":"string | null"},"last_used_asn":{"oneOf":[{"type":"integer","description":"The autonomous system number for the service token's latest use","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_asn.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The autonomous system number for the service token's latest use","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_asn.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_asn","typeLabel":"integer | null"},"last_used_asn_organization":{"oneOf":[{"type":"string","description":"The autonomous system organization for the service token's latest use","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_asn_organization.oneOf.0","typeLabel":"string"},{"type":"null","description":"The autonomous system organization for the service token's latest use","isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_asn_organization.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].last_used_asn_organization","typeLabel":"string | null"},"actor_id":{"oneOf":[{"type":"string","description":"The ID of the actor on whose behalf the service token was created","isRequired":true,"uniqueKey":"data.items.[INDEX].actor_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the actor on whose behalf the service token was created","isRequired":true,"uniqueKey":"data.items.[INDEX].actor_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].actor_id","typeLabel":"string | null"},"actor_display_name":{"oneOf":[{"type":"string","description":"The name of the actor on whose behalf the service token was created","isRequired":true,"uniqueKey":"data.items.[INDEX].actor_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the actor on whose behalf the service token was created","isRequired":true,"uniqueKey":"data.items.[INDEX].actor_display_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].actor_display_name","typeLabel":"string | null"},"actor_type":{"oneOf":[{"type":"string","description":"The type of the actor on whose behalf the service token was created","isRequired":true,"uniqueKey":"data.items.[INDEX].actor_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The type of the actor on whose behalf the service token was created","isRequired":true,"uniqueKey":"data.items.[INDEX].actor_type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].actor_type","typeLabel":"string | null"},"token":{"oneOf":[{"type":"string","description":"The plaintext token. Available only after create.","uniqueKey":"data.items.[INDEX].token.oneOf.0","typeLabel":"string"},{"type":"null","description":"The plaintext token. Available only after create.","uniqueKey":"data.items.[INDEX].token.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].token","typeLabel":"string | null"},"plain_text_refresh_token":{"oneOf":[{"type":"string","description":"The plaintext refresh token. Available only after create.","uniqueKey":"data.items.[INDEX].plain_text_refresh_token.oneOf.0","typeLabel":"string"},{"type":"null","description":"The plaintext refresh token. Available only after create.","uniqueKey":"data.items.[INDEX].plain_text_refresh_token.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].plain_text_refresh_token","typeLabel":"string | null"},"service_token_accesses":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the service token access","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].id","typeLabel":"string"},"access":{"type":"string","description":"The name of the service token access","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].access","typeLabel":"string"},"description":{"type":"string","description":"The description of the service token access","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].description","typeLabel":"string"},"resource_name":{"type":"string","description":"The name of the resource the service token access gives access to","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource_name","typeLabel":"string"},"resource_id":{"type":"string","description":"The ID of the resource the service token access gives access to","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource_id","typeLabel":"string"},"resource_type":{"type":"string","description":"The type of the resource the service token access gives access to","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource_type","typeLabel":"string"},"resource":{"type":"object","properties":{"id":{"type":"string","description":"The ID for the resource","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource.id","typeLabel":"string"},"name":{"type":"string","description":"The name for the resource","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource.name","typeLabel":"string"},"created_at":{"type":"string","description":"When the resource was created","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource.created_at","typeLabel":"string"},"updated_at":{"type":"string","description":"When the resource was last updated","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource.updated_at","typeLabel":"string"},"deleted_at":{"oneOf":[{"type":"string","description":"When the resource was deleted, if deleted","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource.deleted_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the resource was deleted, if deleted","isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource.deleted_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource.deleted_at","typeLabel":"string | null"}},"required":["id","name","created_at","updated_at","deleted_at"],"isRequired":true,"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX].resource","typeLabel":"object"}},"required":["id","access","description","resource_name","resource_id","resource_type","resource"],"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the service token access"},"access":{"type":"string","description":"The name of the service token access"},"description":{"type":"string","description":"The description of the service token access"},"resource_name":{"type":"string","description":"The name of the resource the service token access gives access to"},"resource_id":{"type":"string","description":"The ID of the resource the service token access gives access to"},"resource_type":{"type":"string","description":"The type of the resource the service token access gives access to"},"resource":{"type":"object","properties":{"id":{"type":"string","description":"The ID for the resource"},"name":{"type":"string","description":"The name for the resource"},"created_at":{"type":"string","description":"When the resource was created"},"updated_at":{"type":"string","description":"When the resource was last updated"},"deleted_at":{"oneOf":[{"type":"string","description":"When the resource was deleted, if deleted"},{"type":"null","description":"When the resource was deleted, if deleted"}]}},"required":["id","name","created_at","updated_at","deleted_at"]}},"required":["id","access","description","resource_name","resource_id","resource_type","resource"]},"uniqueKey":"data.items.[INDEX].service_token_accesses.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].service_token_accesses","typeLabel":"object[] | null"},"oauth_accesses_by_resource":{"oneOf":[{"type":"object","properties":{"database":{"type":"object","properties":{"databases":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"the name of the database the token has access to","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.databases.items.[INDEX].name","typeLabel":"string"},"id":{"type":"string","description":"the id of the database the token has access to","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.databases.items.[INDEX].id","typeLabel":"string"},"organization":{"type":"string","description":"the name of the database's organization","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.databases.items.[INDEX].organization","typeLabel":"string"},"url":{"type":"string","description":"the planetscale app url for the database","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.databases.items.[INDEX].url","typeLabel":"string"}},"required":["name","id","organization","url"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.databases.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.databases","typeLabel":"object[]"},"accesses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the access scope","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.accesses.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","description":"The scope description","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.accesses.items.[INDEX].description","typeLabel":"string"}},"required":["name","description"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.accesses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database.accesses","typeLabel":"object[]"}},"required":["databases","accesses"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.database","typeLabel":"object"},"organization":{"type":"object","properties":{"organizations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"the name of the organization","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.organizations.items.[INDEX].name","typeLabel":"string"},"id":{"type":"string","description":"the id of the organization","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.organizations.items.[INDEX].id","typeLabel":"string"},"url":{"type":"string","description":"the planetscale app url for the organization","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.organizations.items.[INDEX].url","typeLabel":"string"}},"required":["name","id","url"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.organizations.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.organizations","typeLabel":"object[]"},"accesses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the access scope","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.accesses.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","description":"The scope description","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.accesses.items.[INDEX].description","typeLabel":"string"}},"required":["name","description"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.accesses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization.accesses","typeLabel":"object[]"}},"required":["organizations","accesses"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.organization","typeLabel":"object"},"branch":{"type":"object","properties":{"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"the name of the branch","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.branches.items.[INDEX].name","typeLabel":"string"},"id":{"type":"string","description":"the id of the branch","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.branches.items.[INDEX].id","typeLabel":"string"},"database":{"type":"string","description":"the name of the database the branch belongs to","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.branches.items.[INDEX].database","typeLabel":"string"},"organization":{"type":"string","description":"the name of the organization the branch belongs to","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.branches.items.[INDEX].organization","typeLabel":"string"},"url":{"type":"string","description":"the planetscale app url for the branch","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.branches.items.[INDEX].url","typeLabel":"string"}},"required":["name","id","database","organization","url"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.branches.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.branches","typeLabel":"object[]"},"accesses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the access scope","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.accesses.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","description":"The scope description","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.accesses.items.[INDEX].description","typeLabel":"string"}},"required":["name","description"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.accesses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch.accesses","typeLabel":"object[]"}},"required":["branches","accesses"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.branch","typeLabel":"object"},"user":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"the name of the user","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user.users.items.[INDEX].name","typeLabel":"string"},"id":{"type":"string","description":"the id of the user","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user.users.items.[INDEX].id","typeLabel":"string"}},"required":["name","id"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user.users.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user.users","typeLabel":"object[]"},"accesses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the access scope","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user.accesses.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","description":"The scope description","isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user.accesses.items.[INDEX].description","typeLabel":"string"}},"required":["name","description"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user.accesses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user.accesses","typeLabel":"object[]"}},"required":["users","accesses"],"isRequired":true,"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0.user","typeLabel":"object"}},"required":["database","organization","branch","user"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"database":{"type":"object","properties":{"databases":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"the name of the database the token has access to"},"id":{"type":"string","description":"the id of the database the token has access to"},"organization":{"type":"string","description":"the name of the database's organization"},"url":{"type":"string","description":"the planetscale app url for the database"}},"required":["name","id","organization","url"]}},"accesses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the access scope"},"description":{"type":"string","description":"The scope description"}},"required":["name","description"]}}},"required":["databases","accesses"]},"organization":{"type":"object","properties":{"organizations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"the name of the organization"},"id":{"type":"string","description":"the id of the organization"},"url":{"type":"string","description":"the planetscale app url for the organization"}},"required":["name","id","url"]}},"accesses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the access scope"},"description":{"type":"string","description":"The scope description"}},"required":["name","description"]}}},"required":["organizations","accesses"]},"branch":{"type":"object","properties":{"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"the name of the branch"},"id":{"type":"string","description":"the id of the branch"},"database":{"type":"string","description":"the name of the database the branch belongs to"},"organization":{"type":"string","description":"the name of the organization the branch belongs to"},"url":{"type":"string","description":"the planetscale app url for the branch"}},"required":["name","id","database","organization","url"]}},"accesses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the access scope"},"description":{"type":"string","description":"The scope description"}},"required":["name","description"]}}},"required":["branches","accesses"]},"user":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"the name of the user"},"id":{"type":"string","description":"the id of the user"}},"required":["name","id"]}},"accesses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the access scope"},"description":{"type":"string","description":"The scope description"}},"required":["name","description"]}}},"required":["users","accesses"]}},"required":["database","organization","branch","user"],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].oauth_accesses_by_resource","typeLabel":"object | null"}},"required":["id","name","display_name","avatar_url","created_at","updated_at","expires_at","last_used_at","last_used_ip","last_used_location","last_used_asn","last_used_asn_organization","actor_id","actor_display_name","actor_type"],"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data","typeLabel":"object[]"}},"required":["type","current_page","per_page","next_page","next_page_url","prev_page","prev_page_url","total_count","total_pages","data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","current_page":123,"per_page":123,"next_page":123,"next_page_url":"\u003cstring>","prev_page":123,"prev_page_url":"\u003cstring>","total_count":123,"total_pages":123,"data":[{"id":"\u003cstring>","name":"\u003cstring>","display_name":"\u003cstring>","avatar_url":"\u003cstring>","created_at":"\u003cstring>","updated_at":"\u003cstring>","expires_at":"\u003cstring>","last_used_at":"\u003cstring>","last_used_ip":"\u003cstring>","last_used_location":"\u003cstring>","last_used_asn":123,"last_used_asn_organization":"\u003cstring>","actor_id":"\u003cstring>","actor_display_name":"\u003cstring>","actor_type":"\u003cstring>","token":"\u003cstring>","plain_text_refresh_token":"\u003cstring>","service_token_accesses":[{"id":"\u003cstring>","access":"\u003cstring>","description":"\u003cstring>","resource_name":"\u003cstring>","resource_id":"\u003cstring>","resource_type":"\u003cstring>","resource":{"id":"\u003cstring>","name":"\u003cstring>","created_at":"\u003cstring>","updated_at":"\u003cstring>","deleted_at":"\u003cstring>"}}],"oauth_accesses_by_resource":{"database":{"databases":[{"name":"\u003cstring>","id":"\u003cstring>","organization":"\u003cstring>","url":"\u003cstring>"}],"accesses":[{"name":"\u003cstring>","description":"\u003cstring>"}]},"organization":{"organizations":[{"name":"\u003cstring>","id":"\u003cstring>","url":"\u003cstring>"}],"accesses":[{"name":"\u003cstring>","description":"\u003cstring>"}]},"branch":{"branches":[{"name":"\u003cstring>","id":"\u003cstring>","database":"\u003cstring>","organization":"\u003cstring>","url":"\u003cstring>"}],"accesses":[{"name":"\u003cstring>","description":"\u003cstring>"}]},"user":{"users":[{"name":"\u003cstring>","id":"\u003cstring>"}],"accesses":[{"name":"\u003cstring>","description":"\u003cstring>"}]}}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"0b2fe4ea-5be3-4ff2-be28-08daa184cb2b":{"description":"Unauthorized","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"e38f78f7-0ae2-41f2-a143-66c6584f46f2":{"description":"Forbidden","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"ce538c33-a281-424d-9987-4829bb26a728":{"description":"Not Found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"02e97976-b7b5-4171-a0b6-0d6426006455":{"description":"Unprocessable Entity","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"10b8b46f-2483-4d96-a9d6-c19e592a1ff9":{"description":"Too Many Requests. Reduce the frequency of requests and try again soon.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"f8fd9174-00a0-49b9-a445-eabf6941d048":{"description":"Internal Server Error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"7501a857-855d-4d14-8ee7-cf2bc88fad9f":{"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.planetscale.com/oauth/authorize","tokenUrl":"https://auth.planetscale.com/oauth/token","scopes":{"email":"Read user email","openid":"OpenID Connect scope","profile":"Read user profile","read_databases":"Read organization databases","read_user":"Read user","read_organization":"Read organization","write_databases":"Write organization databases","write_user":"Write user","write_organization":"Write organization","branch:delete_backups":"Delete backups","branch:delete_branch":"Delete a database branch","branch:manage_passwords":"Read, write, and delete branch passwords","branch:manage_read_only_passwords":"Read, write, and delete read only branch passwords","branch:manage_topology":"Manage shard primaries and tablet serving for this branch","branch:read_backups":"Read backups","branch:read_branch":"Read a database branch","branch:restore_backups":"Restore this branch's backups to new branches","branch:write_backups":"Create and update backups","branch:write_branch":"Write a database branch","database:approve_deploy_requests":"Approve deploy requests in a database","database:delete_backups":"Delete backups","database:delete_branches":"Delete database branches","database:delete_database":"Delete a database","database:delete_members":"Delete members","database:delete_production_branch_backups":"Delete production backups","database:delete_production_branches":"Delete a production database branch","database:demote_branches":"Demote production database branches","database:deploy_deploy_requests":"Deploy deploy requests in a database","database:manage_branch_topologies":"Manage shard primaries and tablet serving for development branches in a database","database:manage_passwords":"Read, write, and delete database branch passwords","database:manage_production_branch_passwords":"Read, write, and delete production branch passwords","database:manage_production_branch_topologies":"Manage shard primaries and tablet serving for production branches in a database","database:manage_production_read_only_passwords":"Read, write, and delete production read only branch passwords in an organization","database:manage_read_only_passwords":"Read, write, and delete read only branch passwords in an organization","database:promote_branches":"Promote database branches","database:read_backups":"Read backups","database:read_branches":"Read database branches","database:read_comments":"Read deploy request comments in a database","database:read_database":"Read database information","database:read_deploy_requests":"Read deploy requests in a database","database:read_members":"Read members","database:read_workflows":"Read database workflows","database:restore_backups":"Restore backups to new branches","database:restore_production_branch_backups":"Restore production branch backups to new branches","database:write_backups":"Create and update backups","database:write_branches":"Write database branches","database:write_comments":"Create deploy request comments in a database","database:write_database":"Write database","database:write_deploy_requests":"Create and update deploy requests in a database","database:write_members":"Write members","database:write_workflows":"Create and manage database workflows","organization:approve_deploy_requests":"Approve deploy requests in an organization","organization:create_databases":"Create organization databases","organization:delete_backups":"Delete backups in an organization","organization:delete_branches":"Delete branches in an organization","organization:delete_databases":"Delete organization databases","organization:delete_members":"Delete members in an organization","organization:delete_organization":"Delete organization","organization:delete_production_branch_backups":"Delete production backups in an organization","organization:delete_production_branches":"Delete a production branch in an organization","organization:deploy_deploy_requests":"Deploy deploy requests in an organization","organization:manage_branch_topologies":"Manage shard primaries and tablet serving for development branches in an organization","organization:manage_passwords":"Read, write, and delete branch passwords in an organization","organization:manage_production_branch_passwords":"Read, write, and delete production branch passwords in an organization","organization:manage_production_branch_topologies":"Manage shard primaries and tablet serving for production branches in an organization","organization:manage_production_read_only_passwords":"Read, write, and delete production read only branch passwords in an organization","organization:manage_read_only_passwords":"Read, write, and delete read only branch passwords in an organization","organization:manage_sso":"Enable, configure, and disable organization SSO","organization:promote_branches":"Promote branches in an organization","organization:read_audit_logs":"Read organization audit logs","organization:read_backups":"Read backups in an organization","organization:read_branches":"Read branches in an organization","organization:read_comments":"Read deploy request comments in an organization","organization:read_databases":"Read organization databases","organization:read_deploy_requests":"Read deploy requests in an organization","organization:read_invoices":"Read organization invoices","organization:read_members":"Read members in an organization","organization:read_organization":"Read organization","organization:read_payment_method":"Read organization payment method","organization:read_workflows":"Read workflows in an organization","organization:restore_backups":"Restore backups to new branches in an organization","organization:restore_production_branch_backups":"Restore production branch backups to new branches in an organization","organization:write_backups":"Create and update backups in an organization","organization:write_branches":"Write branches in an organization","organization:write_comments":"Create deploy request comments in an organization","organization:write_databases":"Write organization databases","organization:write_deploy_requests":"Create and update deploy requests in an organization","organization:write_members":"Write members in an organization","organization:write_organization":"Write organization","organization:write_payment_method":"Update and delete the organization payment method","organization:write_workflows":"Create and manage workflows in an organization","user:read_organizations":"Read a user's organizations","user:read_user":"Read user","user:write_user":"Write user"}}},"scopes":[],"schemeName":"oauth2"}}},"servers":{"3759bdaa-8148-479e-a8e8-7f8e8d52553e":{"url":"https://api.planetscale.com/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.planetscale.com/oauth/authorize","tokenUrl":"https://auth.planetscale.com/oauth/token","scopes":{"email":"Read user email","openid":"OpenID Connect scope","profile":"Read user profile","read_databases":"Read organization databases","read_user":"Read user","read_organization":"Read organization","write_databases":"Write organization databases","write_user":"Write user","write_organization":"Write organization","branch:delete_backups":"Delete backups","branch:delete_branch":"Delete a database branch","branch:manage_passwords":"Read, write, and delete branch passwords","branch:manage_read_only_passwords":"Read, write, and delete read only branch passwords","branch:manage_topology":"Manage shard primaries and tablet serving for this branch","branch:read_backups":"Read backups","branch:read_branch":"Read a database branch","branch:restore_backups":"Restore this branch's backups to new branches","branch:write_backups":"Create and update backups","branch:write_branch":"Write a database branch","database:approve_deploy_requests":"Approve deploy requests in a database","database:delete_backups":"Delete backups","database:delete_branches":"Delete database branches","database:delete_database":"Delete a database","database:delete_members":"Delete members","database:delete_production_branch_backups":"Delete production backups","database:delete_production_branches":"Delete a production database branch","database:demote_branches":"Demote production database branches","database:deploy_deploy_requests":"Deploy deploy requests in a database","database:manage_branch_topologies":"Manage shard primaries and tablet serving for development branches in a database","database:manage_passwords":"Read, write, and delete database branch passwords","database:manage_production_branch_passwords":"Read, write, and delete production branch passwords","database:manage_production_branch_topologies":"Manage shard primaries and tablet serving for production branches in a database","database:manage_production_read_only_passwords":"Read, write, and delete production read only branch passwords in an organization","database:manage_read_only_passwords":"Read, write, and delete read only branch passwords in an organization","database:promote_branches":"Promote database branches","database:read_backups":"Read backups","database:read_branches":"Read database branches","database:read_comments":"Read deploy request comments in a database","database:read_database":"Read database information","database:read_deploy_requests":"Read deploy requests in a database","database:read_members":"Read members","database:read_workflows":"Read database workflows","database:restore_backups":"Restore backups to new branches","database:restore_production_branch_backups":"Restore production branch backups to new branches","database:write_backups":"Create and update backups","database:write_branches":"Write database branches","database:write_comments":"Create deploy request comments in a database","database:write_database":"Write database","database:write_deploy_requests":"Create and update deploy requests in a database","database:write_members":"Write members","database:write_workflows":"Create and manage database workflows","organization:approve_deploy_requests":"Approve deploy requests in an organization","organization:create_databases":"Create organization databases","organization:delete_backups":"Delete backups in an organization","organization:delete_branches":"Delete branches in an organization","organization:delete_databases":"Delete organization databases","organization:delete_members":"Delete members in an organization","organization:delete_organization":"Delete organization","organization:delete_production_branch_backups":"Delete production backups in an organization","organization:delete_production_branches":"Delete a production branch in an organization","organization:deploy_deploy_requests":"Deploy deploy requests in an organization","organization:manage_branch_topologies":"Manage shard primaries and tablet serving for development branches in an organization","organization:manage_passwords":"Read, write, and delete branch passwords in an organization","organization:manage_production_branch_passwords":"Read, write, and delete production branch passwords in an organization","organization:manage_production_branch_topologies":"Manage shard primaries and tablet serving for production branches in an organization","organization:manage_production_read_only_passwords":"Read, write, and delete production read only branch passwords in an organization","organization:manage_read_only_passwords":"Read, write, and delete read only branch passwords in an organization","organization:manage_sso":"Enable, configure, and disable organization SSO","organization:promote_branches":"Promote branches in an organization","organization:read_audit_logs":"Read organization audit logs","organization:read_backups":"Read backups in an organization","organization:read_branches":"Read branches in an organization","organization:read_comments":"Read deploy request comments in an organization","organization:read_databases":"Read organization databases","organization:read_deploy_requests":"Read deploy requests in an organization","organization:read_invoices":"Read organization invoices","organization:read_members":"Read members in an organization","organization:read_organization":"Read organization","organization:read_payment_method":"Read organization payment method","organization:read_workflows":"Read workflows in an organization","organization:restore_backups":"Restore backups to new branches in an organization","organization:restore_production_branch_backups":"Restore production branch backups to new branches in an organization","organization:write_backups":"Create and update backups in an organization","organization:write_branches":"Write branches in an organization","organization:write_comments":"Create deploy request comments in an organization","organization:write_databases":"Write organization databases","organization:write_deploy_requests":"Create and update deploy requests in an organization","organization:write_members":"Write members in an organization","organization:write_organization":"Write organization","organization:write_payment_method":"Update and delete the organization payment method","organization:write_workflows":"Create and manage workflows in an organization","user:read_organizations":"Read a user's organizations","user:read_user":"Read user","user:write_user":"Write user"}}},"scopes":[],"schemeName":"oauth2"},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"The access token received from the authorization server in the OAuth 2.0 flow.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"oauth2","name":"Authorization"}],"title":"oauth2"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"planetscale-2","siteName":"PlanetScale","title":"List service tokens - PlanetScale","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-09T22:46:48.349Z","originalFileLocation":"api/reference/list_service_tokens.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=\"List service tokens for an organization. ### Authorization A service token must have at least one of the following access in order to use this API endpoint: Service Token Accesses read_service_tokens\">\u003cmeta data-mint-head name=\"application-name\" content=\"PlanetScale\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_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=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List service tokens - PlanetScale\">\u003cmeta data-mint-head property=\"og:description\" content=\"List service tokens for an organization. ### Authorization A service token must have at least one of the following access in order to use this API endpoint: Service Token Accesses read_service_tokens\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PlanetScale\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://planetscale.com/docs/api/reference/list_service_tokens\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://planetscale-2.mintlify.app/images/og/api/reference/list_service_tokens.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=\"List service tokens - PlanetScale\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"List service tokens for an organization. ### Authorization A service token must have at least one of the following access in order to use this API endpoint: Service Token Accesses read_service_tokens\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://planetscale-2.mintlify.app/images/og/api/reference/list_service_tokens.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=\"/docs/mintlify-assets/_mintlify/favicons/planetscale-2/_bFyi8IG4CeLblEd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PlanetScale\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0e73cc\">\u003clink data-mint-head rel=\"canonical\" href=\"https://planetscale.com/docs/api/reference/list_service_tokens\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api/reference/list_service_tokens.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://planetscale.com/#organization\",\"name\":\"PlanetScale\",\"url\":\"https://planetscale.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/planetscale-2/xUilVHToUFALai8a/logo/light.png?fit=max\u0026auto=format\u0026n=xUilVHToUFALai8a\u0026q=85\u0026s=cccd3c9fc813c01b899ab7af15a115b1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://planetscale.com/docs#website\",\"name\":\"PlanetScale\",\"url\":\"https://planetscale.com/docs\",\"publisher\":{\"@id\":\"https://planetscale.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://planetscale.com/docs/api/reference/list_service_tokens#webpage\",\"url\":\"https://planetscale.com/docs/api/reference/list_service_tokens\",\"name\":\"List service tokens\",\"description\":\"List service tokens for an organization. ### Authorization A service token must have at least one of the following access in order to use this API endpoint: Service Token Accesses read_service_tokens\",\"dateModified\":\"2026-02-09T22:46:48.349Z\",\"isPartOf\":{\"@id\":\"https://planetscale.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://planetscale.com/docs/api/reference/list_service_tokens#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://planetscale.com/docs/api/reference/list_service_tokens#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General API endpoints\",\"item\":\"https://planetscale.com/docs/api/reference/list_audit_logs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Service tokens\",\"item\":\"https://planetscale.com/docs/api/reference/create_service_token\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"List service tokens\",\"item\":\"https://planetscale.com/docs/api/reference/list_service_tokens\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://planetscale.com/docs/api/reference/list_service_tokens#apireference\",\"headline\":\"List service tokens\",\"name\":\"List service tokens\",\"description\":\"List service tokens for an organization. ### Authorization A service token must have at least one of the following access in order to use this API endpoint: Service Token Accesses read_service_tokens\",\"url\":\"https://planetscale.com/docs/api/reference/list_service_tokens\",\"mainEntityOfPage\":{\"@id\":\"https://planetscale.com/docs/api/reference/list_service_tokens#webpage\"},\"image\":\"https://planetscale.com/docs/images/og/api/reference/list_service_tokens.png\",\"dateModified\":\"2026-02-09T22:46:48.349Z\",\"publisher\":{\"@id\":\"https://planetscale.com/#organization\"},\"isPartOf\":{\"@id\":\"https://planetscale.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PlanetScale\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"PlanetScale","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://planetscale.com/blog"},{"anchor":"Contact Us","icon":"headset","href":"https://planetscale.com/contact"},{"anchor":"Status","icon":"signal","href":"https://www.planetscalestatus.com/"},{"anchor":"Benchmarks","icon":"chart-line","href":"https://planetscale.com/benchmarks"}]},"tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":""}]},{"tab":"Vitess","pages":[{"title":"Vitess","href":"/vitess"}]},{"tab":"Neki","pages":[{"title":"Neki","href":"/neki"}]},{"tab":"Postgres","pages":[{"title":"Postgres","href":"/postgres"}]},{"tab":"API Reference","groups":[{"group":"Introduction","pages":[{"title":"Getting started with PlanetScale API","href":"/api/reference/getting-started-with-planetscale-api"},{"title":"Rate limits","href":"/api/reference/rate-limits"},{"title":"Pagination","href":"/api/reference/pagination"},{"title":"PlanetScale API and OAuth applications","sidebarTitle":"API and OAuth applications","href":"/api/planetscale-api-oauth-applications"},{"title":"Service tokens","href":"/api/service-tokens"},{"title":"OpenAPI Spec","href":"/api/openapi-spec"}]},{"group":"Webhooks in PlanetScale","pages":[{"title":"Webhooks","sidebarTitle":"Setting up webhooks","href":"/api/webhooks"},{"title":"Webhook events reference","href":"/api/webhook-events"}]},{"group":"Authentication","pages":[{"title":"Service tokens","href":"/api/reference/service-tokens"},{"title":"OAuth","href":"/api/reference/oauth"},{"group":"OAuth tokens","pages":[{"title":"Create or refresh OAuth token","href":"/api/reference/oauth/create-token"},{"title":"Revoke OAuth token","href":"/api/reference/oauth/revoke-token"},{"title":"Get OAuth token info","href":"/api/reference/oauth/token-info"}]},{"title":"OAuth access scopes","href":"/api/reference/oauth-access-scopes"}]},{"group":"General API endpoints","pages":[{"group":"Audit logs","pages":[{"openapi":"get /organizations/{organization}/audit-log","title":"List audit logs","href":"/api/reference/list_audit_logs"}]},{"group":"Backup policies","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/backup-policies","title":"List backup policies","href":"/api/reference/list_backup_policies"},{"openapi":"post /organizations/{organization}/databases/{database}/backup-policies","title":"Create a backup policy","href":"/api/reference/create_backup_policy"},{"openapi":"get /organizations/{organization}/databases/{database}/backup-policies/{id}","title":"Get a backup policy","href":"/api/reference/get_backup_policy"},{"openapi":"patch /organizations/{organization}/databases/{database}/backup-policies/{id}","title":"Update a backup policy","href":"/api/reference/update_backup_policy"},{"openapi":"delete /organizations/{organization}/databases/{database}/backup-policies/{id}","title":"Delete a backup policy","href":"/api/reference/delete_backup_policy"}]},{"group":"Backups","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/backups","title":"List backups","href":"/api/reference/list_backups"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/backups","title":"Create a backup","href":"/api/reference/create_backup"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}","title":"Get a backup","href":"/api/reference/get_backup"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}","title":"Delete a backup","href":"/api/reference/delete_backup"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}","title":"Update a backup","href":"/api/reference/update_backup"}]},{"group":"Billing payment methods","pages":[{"openapi":"get /organizations/{organization}/billing/payment-method","title":"Get the current billing payment method","href":"/api/reference/get_organization_billing_payment_method"},{"openapi":"delete /organizations/{organization}/billing/payment-method","title":"Delete the current billing payment method","href":"/api/reference/delete_organization_billing_payment_method"}]},{"group":"Cluster sizes","pages":[{"openapi":"get /organizations/{organization}/cluster-size-skus","title":"List available cluster sizes","href":"/api/reference/list_cluster_size_skus"}]},{"group":"Database branches","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches","title":"List branches","href":"/api/reference/list_branches"},{"openapi":"post /organizations/{organization}/databases/{database}/branches","title":"Create a branch","href":"/api/reference/create_branch"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}","title":"Get a branch","href":"/api/reference/get_branch"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}","title":"Update a branch","href":"/api/reference/update_branch"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}","title":"Delete a branch","href":"/api/reference/delete_branch"}]},{"group":"Databases","pages":[{"openapi":"get /organizations/{organization}/databases","title":"List databases","href":"/api/reference/list_databases"},{"openapi":"post /organizations/{organization}/databases","title":"Create a database","href":"/api/reference/create_database"},{"openapi":"get /organizations/{organization}/databases/{database}","title":"Get a database","href":"/api/reference/get_database"},{"openapi":"patch /organizations/{organization}/databases/{database}","title":"Update database settings","href":"/api/reference/update_database_settings"},{"openapi":"delete /organizations/{organization}/databases/{database}","title":"Delete a database","href":"/api/reference/delete_database"},{"openapi":"get /organizations/{organization}/databases/{database}/read-only-regions","title":"List read-only regions","href":"/api/reference/list_read_only_regions"},{"openapi":"get /organizations/{organization}/databases/{database}/regions","title":"List database regions","href":"/api/reference/list_database_regions"}]},{"group":"Invoices","pages":[{"openapi":"get /organizations/{organization}/invoices","title":"Get invoices","href":"/api/reference/list_invoices"},{"openapi":"get /organizations/{organization}/invoices/{id}","title":"Get an invoice","href":"/api/reference/get_invoice"},{"openapi":"get /organizations/{organization}/invoices/{id}/line-items","title":"Get invoice line items","href":"/api/reference/get_invoice_line_items"}]},{"group":"Maintenance schedules","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/maintenance-schedules","title":"List maintenance schedules","href":"/api/reference/list_maintenance_schedules"},{"openapi":"get /organizations/{organization}/databases/{database}/maintenance-schedules/{id}","title":"Get a maintenance schedule","href":"/api/reference/get_maintenance_schedule"},{"openapi":"patch /organizations/{organization}/databases/{database}/maintenance-schedules/{id}","title":"Update a maintenance schedule","href":"/api/reference/update_maintenance_schedule"},{"openapi":"get /organizations/{organization}/databases/{database}/maintenance-schedules/{id}/windows","title":"List maintenance windows","href":"/api/reference/list_maintenance_windows"}]},{"group":"Metrics","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/metrics/keyspace-tables","title":"Get table storage metrics by keyspace","href":"/api/reference/get_branch_keyspace_table_metrics"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/metrics","title":"Get time-series metrics","href":"/api/reference/get_branch_metrics"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/metrics/query","title":"Get time-series metrics for SQL queries","href":"/api/reference/get_branch_query_metrics"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/metrics/tables","title":"Get table storage metrics","href":"/api/reference/get_branch_table_metrics"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/metrics/tag","title":"Get time-series metrics grouped by query tags","href":"/api/reference/get_branch_tag_metrics"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/metrics/instant","title":"Get current metric values","href":"/api/reference/get_instant_branch_metrics"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/metrics/tablets-instant","title":"Get current tablet metrics","href":"/api/reference/get_instant_tablet_metrics"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/metrics/tablets","title":"Get time-series tablet metrics","href":"/api/reference/get_tablet_metrics"}]},{"group":"OAuth applications","pages":[{"openapi":"get /organizations/{organization}/oauth-applications","title":"List OAuth applications","href":"/api/reference/list_oauth_applications"},{"openapi":"get /organizations/{organization}/oauth-applications/{application_id}","title":"Get an OAuth application","href":"/api/reference/get_oauth_application"},{"openapi":"get /organizations/{organization}/oauth-applications/{application_id}/tokens/{token_id}","title":"Get an OAuth token","href":"/api/reference/get_oauth_token"},{"openapi":"delete /organizations/{organization}/oauth-applications/{application_id}/tokens/{token_id}","title":"Delete an OAuth token","href":"/api/reference/delete_oauth_token"}]},{"group":"OAuth tokens","pages":[{"openapi":"post /organizations/{organization}/oauth-applications/{id}/token","title":"Create or renew an OAuth token","href":"/api/reference/create_oauth_token"}]},{"group":"Organization invitations","pages":[{"openapi":"get /organizations/{organization}/invitations","title":"List pending invitations","href":"/api/reference/list_organization_invitations"},{"openapi":"post /organizations/{organization}/invitations","title":"Send an invitation","href":"/api/reference/create_organization_invitation"},{"openapi":"delete /organizations/{organization}/invitations/{id}","title":"Cancel an invitation","href":"/api/reference/cancel_organization_invitation"}]},{"group":"Organization members","pages":[{"openapi":"get /organizations/{organization}/members","title":"List organization members","href":"/api/reference/list_organization_members"},{"openapi":"get /organizations/{organization}/members/{id}","title":"Get an organization member","href":"/api/reference/get_organization_membership"},{"openapi":"patch /organizations/{organization}/members/{id}","title":"Update organization member role","href":"/api/reference/update_organization_membership"},{"openapi":"delete /organizations/{organization}/members/{id}","title":"Remove a member from an organization","href":"/api/reference/remove_organization_member"}]},{"group":"Organizations","pages":[{"openapi":"get /organizations","title":"List organizations","href":"/api/reference/list_organizations"},{"openapi":"get /organizations/{organization}","title":"Get an organization","href":"/api/reference/get_organization"},{"openapi":"patch /organizations/{organization}","title":"Update an organization","href":"/api/reference/update_organization"},{"openapi":"get /organizations/{organization}/regions","title":"List regions for an organization","href":"/api/reference/list_regions_for_organization"}]},{"group":"Organization teams","pages":[{"openapi":"get /organizations/{organization}/teams","title":"List teams in an organization","href":"/api/reference/list_organization_teams"},{"openapi":"post /organizations/{organization}/teams","title":"Create an organization team","href":"/api/reference/create_organization_team"},{"openapi":"get /organizations/{organization}/teams/{team}","title":"Get an organization team","href":"/api/reference/get_organization_team"},{"openapi":"patch /organizations/{organization}/teams/{team}","title":"Update an organization team","href":"/api/reference/update_organization_team"},{"openapi":"delete /organizations/{organization}/teams/{team}","title":"Delete an organization team","href":"/api/reference/delete_organization_team"},{"openapi":"get /organizations/{organization}/teams/{team}/members","title":"List team members","href":"/api/reference/list_organization_team_members"},{"openapi":"post /organizations/{organization}/teams/{team}/members","title":"Add a member to a team","href":"/api/reference/add_organization_team_member"},{"openapi":"get /organizations/{organization}/teams/{team}/members/{id}","title":"Get a team member","href":"/api/reference/get_organization_team_member"},{"openapi":"delete /organizations/{organization}/teams/{team}/members/{id}","title":"Remove a member from a team","href":"/api/reference/remove_organization_team_member"}]},{"group":"Query insights","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights","title":"List branch queries","href":"/api/reference/list_branch_queries"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/{fingerprint}","title":"Retrieve query statistics","href":"/api/reference/get_query_statistics"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/{fingerprint}/summary","title":"Retrieve a summary of query statistics","href":"/api/reference/get_query_summary"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/queries/{id}","title":"Retrieve a branch query","href":"/api/reference/get_branch_query"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/errors","title":"List branch query errors","href":"/api/reference/list_branch_query_errors"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/errors/{fingerprint}","title":"List queries for an error fingerprint","href":"/api/reference/get_branch_query_error"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/anomalies","title":"List branch anomalies","href":"/api/reference/list_branch_anomalies"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/anomalies/{id}","title":"Retrieve a branch anomaly","href":"/api/reference/get_branch_anomaly"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/tags","title":"List query tags","href":"/api/reference/list_branch_query_tags"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/tags/summaries","title":"List query statistics grouped by tag","href":"/api/reference/list_branch_query_tag_summaries"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/tags/{tag}","title":"Retrieve a query tag","href":"/api/reference/get_branch_query_tag"}]},{"group":"Query Insights reports","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns","title":"List generated query patterns reports","href":"/api/reference/list_generated_query_patterns_reports"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns","title":"Create a new query patterns report","href":"/api/reference/create_query_patterns_report"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}","title":"Show the status of a query patterns report","href":"/api/reference/get_query_patterns_report_status"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}","title":"Delete a query patterns report","href":"/api/reference/delete_query_patterns_report"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}/download","title":"Download a finished query patterns report","href":"/api/reference/get_query_patterns_report"}]},{"group":"Schema recommendations","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/schema-recommendations","title":"List schema recommendations","href":"/api/reference/list_schema_recommendations"},{"openapi":"get /organizations/{organization}/databases/{database}/schema-recommendations/{number}","title":"Get a schema recommendation","href":"/api/reference/get_schema_recommendation"},{"openapi":"post /organizations/{organization}/databases/{database}/schema-recommendations/{number}/dismiss","title":"Dismiss a schema recommendation","href":"/api/reference/dismiss_schema_recommendation"}]},{"group":"Regions","pages":[{"openapi":"get /regions","title":"List public regions","href":"/api/reference/list_public_regions"}]},{"group":"Service tokens","pages":[{"openapi":"post /organizations/{organization}/service-tokens","title":"Create a service token","href":"/api/reference/create_service_token"},{"openapi":"delete /organizations/{organization}/service-tokens/{id}","title":"Delete a service token","href":"/api/reference/delete_service_token"},{"openapi":"get /organizations/{organization}/service-tokens/{id}","title":"Get a service token","description":"Get information about a service token.\n### Authorization\nA service token must have at least one of the following access in order to use this API endpoint:\n\n**Service Token Accesses**\n `read_service_tokens`\n\n","href":"/api/reference/get_service_token"},{"openapi":"get /organizations/{organization}/service-tokens","title":"List service tokens","href":"/api/reference/list_service_tokens"}]},{"group":"Users","pages":[{"openapi":"get /user","title":"Get current user","description":"Get the user associated with this service token\n### Authorization\nA OAuth token must have at least one of the following scopes in order to use this API endpoint:\n\n**OAuth Scopes**\n\n | Resource | Scopes |\n| :------- | :---------- |\n| User | `read_user` |","href":"/api/reference/get_current_user"}]},{"group":"Webhooks","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/webhooks","title":"List webhooks","href":"/api/reference/list_webhooks"},{"openapi":"post /organizations/{organization}/databases/{database}/webhooks","title":"Create a webhook","href":"/api/reference/create_webhook"},{"openapi":"get /organizations/{organization}/databases/{database}/webhooks/{id}","title":"Get a webhook","href":"/api/reference/get_webhook"},{"openapi":"patch /organizations/{organization}/databases/{database}/webhooks/{id}","title":"Update a webhook","href":"/api/reference/update_webhook"},{"openapi":"delete /organizations/{organization}/databases/{database}/webhooks/{id}","title":"Delete a webhook","href":"/api/reference/delete_webhook"},{"openapi":"post /organizations/{organization}/databases/{database}/webhooks/{id}/test","title":"Test a webhook","href":"/api/reference/test_webhook"}]}]},{"group":"Postgres API endpoints","pages":[{"group":"Branch changes","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/changes","title":"Get branch change requests","href":"/api/reference/list_branch_change_requests"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/changes/{id}","title":"Get a branch change request","href":"/api/reference/get_branch_change_request"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/changes","title":"Upsert a change request for cluster size, replicas, storage, or parameters","href":"/api/reference/update_branch_change_request"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/resizes","title":"Cancel a change request","href":"/api/reference/cancel_branch_change_request"}]},{"group":"Branch maintenance windows","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/maintenance-window","title":"Get a branch's maintenance window","href":"/api/reference/get_branch_maintenance_window"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/maintenance-window","title":"Update a branch's maintenance window","href":"/api/reference/update_branch_maintenance_window"}]},{"group":"Cluster extensions","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/extensions","title":"List cluster extensions","href":"/api/reference/list_extensions"}]},{"group":"Cluster parameters","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/parameters","title":"List cluster parameters","href":"/api/reference/list_parameters"}]},{"group":"Dedicated PgBouncers","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/bouncers","title":"List bouncers","href":"/api/reference/list_bouncers"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/bouncers","title":"Create a bouncer","href":"/api/reference/create_bouncer"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}","title":"Get a bouncer","href":"/api/reference/get_bouncer"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}","title":"Delete a bouncer","href":"/api/reference/delete_bouncer"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/bouncer-resizes","title":"Get bouncer resize requests","href":"/api/reference/list_branch_bouncer_resize_requests"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}/resizes","title":"Get bouncer resize requests","href":"/api/reference/list_bouncer_resize_requests"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}/resizes","title":"Upsert a bouncer resize request","href":"/api/reference/update_bouncer_resize_request"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/bouncers/{bouncer}/resizes","title":"Cancel a resize request","href":"/api/reference/cancel_bouncer_resize_request"}]},{"group":"IP restrictions","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/cidrs","title":"List IP restriction entries","href":"/api/reference/list_database_postgres_cidrs"},{"openapi":"post /organizations/{organization}/databases/{database}/cidrs","title":"Create an IP restriction entry","href":"/api/reference/create_database_postgres_cidr"},{"openapi":"get /organizations/{organization}/databases/{database}/cidrs/{id}","title":"Get an IP restriction entry","href":"/api/reference/get_database_postgres_cidr"},{"openapi":"patch /organizations/{organization}/databases/{database}/cidrs/{id}","title":"Update an IP restriction entry","href":"/api/reference/update_database_postgres_cidr"},{"openapi":"delete /organizations/{organization}/databases/{database}/cidrs/{id}","title":"Delete an IP restriction entry","href":"/api/reference/delete_database_postgres_cidr"}]},{"group":"Maintenance events","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/maintenance-events","title":"List maintenance events","href":"/api/reference/list_maintenance_events"},{"openapi":"get /organizations/{organization}/databases/{database}/maintenance-events/{id}","title":"Get a maintenance event","href":"/api/reference/get_maintenance_event"},{"openapi":"patch /organizations/{organization}/databases/{database}/maintenance-events/{id}","title":"Reschedule a maintenance event","href":"/api/reference/reschedule_maintenance_event"}]},{"group":"Dedicated read replicas","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/dedicated-read-replicas","title":"List dedicated read replicas","href":"/api/reference/list_dedicated_read_replicas"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/dedicated-read-replicas","title":"Create a dedicated read replica","href":"/api/reference/create_dedicated_read_replica"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/dedicated-read-replicas/{dedicated_read_replica}","title":"Get a dedicated read replica","href":"/api/reference/get_dedicated_read_replica"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/dedicated-read-replicas/{dedicated_read_replica}","title":"Update a dedicated read replica","href":"/api/reference/update_dedicated_read_replica"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/dedicated-read-replicas/{dedicated_read_replica}","title":"Delete a dedicated read replica","href":"/api/reference/delete_dedicated_read_replica"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/dedicated-read-replica-changes","title":"Get dedicated read replica change requests","href":"/api/reference/list_dedicated_read_replica_change_requests"}]},{"group":"Roles","pages":[{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/roles","title":"Create role credentials","href":"/api/reference/create_role"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}","title":"Delete role credentials","href":"/api/reference/delete_role"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/roles/default","title":"Get the default postgres role","href":"/api/reference/get_default_role"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}","title":"Get a role","href":"/api/reference/get_role"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/roles","title":"List roles","href":"/api/reference/list_roles"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}/reassign","title":"Reassign objects owned by one role to another role","href":"/api/reference/reassign_role_objects"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}/renew","title":"Renew role expiration","href":"/api/reference/renew_role"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/roles/reset-default","title":"Reset default credentials","href":"/api/reference/reset_default_role"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}/reset","title":"Reset a role's password","href":"/api/reference/reset_role"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}","title":"Update role name","href":"/api/reference/update_role"}]},{"group":"Switchovers","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/switchovers","title":"List switchovers","href":"/api/reference/list_switchovers"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/switchovers","title":"Create a switchover","href":"/api/reference/create_switchover"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/switchovers/{id}","title":"Get a switchover","href":"/api/reference/get_switchover"}]},{"group":"Traffic budgets","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets","title":"List traffic budgets","href":"/api/reference/list_traffic_budgets"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets","title":"Create a traffic budget","href":"/api/reference/create_traffic_budget"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{id}","title":"Get a traffic budget","href":"/api/reference/get_traffic_budget"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{id}","title":"Update a traffic budget","href":"/api/reference/update_traffic_budget"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{id}","title":"Delete a traffic budget","href":"/api/reference/delete_traffic_budget"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/insights/{fingerprint}/traffic/budgets","title":"List traffic budgets affecting a query fingerprint","href":"/api/reference/list_traffic_budgets_for_query"}]},{"group":"Traffic rules","pages":[{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{budget_id}/rules","title":"Create a traffic rule","href":"/api/reference/create_traffic_rule"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/traffic/budgets/{budget_id}/rules/{id}","title":"Delete a traffic rule","href":"/api/reference/delete_traffic_rule"}]}]},{"group":"Neki API endpoints","pages":[{"group":"Admins","pages":[{"title":"Get the admin for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/admin","href":"/api/reference/get_admin"},{"title":"Update the admin for a branch","openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/admin","href":"/api/reference/update_admin"},{"title":"List admin size SKUs for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/admin-size-skus","href":"/api/reference/list_admin_size_skus"},{"title":"List change requests for an admin","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/admin/change-requests","href":"/api/reference/list_admin_change_requests"},{"title":"Get a change request for an admin","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/admin/change-requests/{id}","href":"/api/reference/get_admin_change_request"},{"title":"Cancel a change request for an admin","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/admin/change-requests/{id}","href":"/api/reference/cancel_admin_change_request"},{"title":"List parameters for an admin","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/admin/parameters","href":"/api/reference/list_admin_parameters"}]},{"group":"Configuration profiles","pages":[{"title":"List configuration profiles for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles","href":"/api/reference/list_shard_configuration_profiles"},{"title":"Create a configuration profile for a branch","openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles","href":"/api/reference/create_shard_configuration_profile"},{"title":"Get a configuration profile for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}","href":"/api/reference/get_shard_configuration_profile"},{"title":"Update a configuration profile for a branch","openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}","href":"/api/reference/update_shard_configuration_profile"},{"title":"Delete a configuration profile for a branch","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}","href":"/api/reference/delete_shard_configuration_profile"},{"title":"Run maintenance for selected configuration profiles","openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/maintenance","href":"/api/reference/run_shard_configuration_profiles_maintenance"},{"title":"Run maintenance for a configuration profile","openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/maintenance","href":"/api/reference/run_shard_configuration_profile_maintenance"},{"title":"List change requests for a configuration profile","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/change-requests","href":"/api/reference/list_shard_configuration_profile_change_requests"},{"title":"Get a change request for a configuration profile","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/change-requests/{id}","href":"/api/reference/get_shard_configuration_profile_change_request"},{"title":"Cancel a change request for a configuration profile","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/change-requests/{id}","href":"/api/reference/cancel_shard_configuration_profile_change_request"},{"title":"List extensions for a configuration profile","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/extensions","href":"/api/reference/list_shard_configuration_profile_extensions"},{"title":"Enable or disable an extension for a configuration profile","openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/extensions/{extension}","href":"/api/reference/update_shard_configuration_profile_extension"},{"title":"List parameters for a configuration profile","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/parameters","href":"/api/reference/list_shard_configuration_profile_parameters"}]},{"group":"Configuration profile shards","pages":[{"title":"List shards for a configuration profile","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards","href":"/api/reference/list_shard_configuration_profile_shards"},{"title":"Add a shard to a configuration profile","openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards","href":"/api/reference/create_shard_configuration_profile_shard"},{"title":"Add shards to a configuration profile","openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards/bulk","href":"/api/reference/bulk_create_shard_configuration_profile_shards"},{"title":"Assign shards to a configuration profile","openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards","href":"/api/reference/assign_shard_configuration_profile_shards"},{"title":"Remove shards from a configuration profile","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards","href":"/api/reference/delete_shard_configuration_profile_shards"},{"title":"Get a shard in a configuration profile","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards/{id}","href":"/api/reference/get_shard_configuration_profile_shard"},{"title":"Update a shard in a configuration profile","openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards/{id}","href":"/api/reference/update_shard_configuration_profile_shard"},{"title":"Remove a shard from a configuration profile","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/configuration-profiles/{configuration_profile}/shards/{id}","href":"/api/reference/delete_shard_configuration_profile_shard"}]},{"group":"Data topology","pages":[{"title":"Get the data topology for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/data-topology","href":"/api/reference/get_data_topology"},{"title":"Set the data topology for a branch","openapi":"put /organizations/{organization}/databases/{database}/branches/{branch}/data-topology","href":"/api/reference/update_data_topology"}]},{"group":"Default configuration profile","pages":[{"title":"Get the default configuration profile for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/default-configuration-profile","href":"/api/reference/get_default_shard_configuration_profile"},{"title":"Set the default configuration profile for a branch","openapi":"put /organizations/{organization}/databases/{database}/branches/{branch}/default-configuration-profile","href":"/api/reference/set_default_shard_configuration_profile"}]},{"group":"Neki changes","pages":[{"title":"List change requests for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/neki-changes","href":"/api/reference/list_neki_change_requests"},{"title":"Get a change request for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/neki-changes/{id}","href":"/api/reference/get_neki_change_request"},{"title":"Cancel a change request for a branch","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/neki-changes/{id}","href":"/api/reference/cancel_neki_change_request"}]},{"group":"Routers","pages":[{"title":"List router size SKUs for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/router-size-skus","href":"/api/reference/list_router_size_skus"},{"title":"List routers for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/routers","href":"/api/reference/list_routers"},{"title":"Create a router for a branch","openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/routers","href":"/api/reference/create_router"},{"title":"Get a router for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}","href":"/api/reference/get_router"},{"title":"Update a router for a branch","openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}","href":"/api/reference/update_router"},{"title":"Delete a router from a branch","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}","href":"/api/reference/delete_router"},{"title":"List change requests for a router","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}/change-requests","href":"/api/reference/list_router_change_requests"},{"title":"Get a change request for a router","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}/change-requests/{id}","href":"/api/reference/get_router_change_request"},{"title":"Cancel a change request for a router","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}/change-requests/{id}","href":"/api/reference/cancel_router_change_request"},{"title":"List parameters for a router","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/routers/{router}/parameters","href":"/api/reference/list_router_parameters"}]},{"group":"Shards","pages":[{"title":"List shards for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/shards","href":"/api/reference/list_shards"},{"title":"Add shards to a branch","openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/shards","href":"/api/reference/create_shard"},{"title":"Get a shard for a branch","openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/shards/{id}","href":"/api/reference/get_shard"},{"title":"Update a shard for a branch","openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/shards/{id}","href":"/api/reference/update_shard"},{"title":"Remove a shard from a branch","openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/shards/{id}","href":"/api/reference/delete_shard"}]}]},{"group":"Vitess API endpoints","pages":[{"group":"Branch cluster size","pages":[{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/cluster","title":"Change a branch cluster configuration","href":"/api/reference/update_branch_cluster_config"}]},{"group":"Branch promotion","pages":[{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/demote","title":"Demote a branch","href":"/api/reference/demote_branch"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/promote","title":"Promote a branch","href":"/api/reference/promote_branch"}]},{"group":"Branch schema","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/schema","title":"Get a branch schema","href":"/api/reference/get_branch_schema"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/schema/lint","title":"Lint a branch schema","href":"/api/reference/lint_branch_schema"}]},{"group":"Database branch keyspaces","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces","title":"Get keyspaces","href":"/api/reference/list_keyspaces"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces","title":"Create a keyspace","href":"/api/reference/create_keyspace"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}","title":"Get a keyspace","href":"/api/reference/get_keyspace"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}","title":"Delete a keyspace","href":"/api/reference/delete_keyspace"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}","title":"Configure keyspace settings","href":"/api/reference/update_keyspace"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/rollout-status","title":"Get keyspace rollout status","href":"/api/reference/get_keyspace_rollout_status"}]},{"group":"Database branch passwords","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/passwords","title":"List passwords","href":"/api/reference/list_passwords"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/passwords","title":"Create a password","href":"/api/reference/create_password"},{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}","title":"Get a password","href":"/api/reference/get_password"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}","title":"Update a password","href":"/api/reference/update_password"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}","title":"Delete a password","href":"/api/reference/delete_password"},{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}/renew","title":"Renew a password","href":"/api/reference/renew_password"}]},{"group":"Deploy request throttling","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/throttler","title":"Get database throttler configurations","href":"/api/reference/get_database_throttler"},{"openapi":"patch /organizations/{organization}/databases/{database}/throttler","title":"Update database throttler configurations","href":"/api/reference/update_database_throttler"}]},{"group":"Deploy requests","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/deploy-queue","title":"Get the deploy queue","href":"/api/reference/get_deploy_queue"},{"openapi":"get /organizations/{organization}/databases/{database}/deploy-requests","title":"List deploy requests","href":"/api/reference/list_deploy_requests"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests","title":"Create a deploy request","href":"/api/reference/create_deploy_request"},{"openapi":"get /organizations/{organization}/databases/{database}/deploy-requests/{number}","title":"Get a deploy request","href":"/api/reference/get_deploy_request"},{"openapi":"patch /organizations/{organization}/databases/{database}/deploy-requests/{number}","title":"Close a deploy request","href":"/api/reference/close_deploy_request"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests/{number}/apply-deploy","title":"Complete a gated deploy request","href":"/api/reference/complete_gated_deploy_request"},{"openapi":"put /organizations/{organization}/databases/{database}/deploy-requests/{number}/auto-apply","title":"Update auto-apply for deploy request","href":"/api/reference/update_auto_apply"},{"openapi":"put /organizations/{organization}/databases/{database}/deploy-requests/{number}/auto-delete-branch","title":"Update auto-delete branch for deploy request","href":"/api/reference/update_auto_delete_branch"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests/{number}/cancel","title":"Cancel a queued deploy request","href":"/api/reference/cancel_deploy_request"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests/{number}/complete-deploy","title":"Complete an errored deploy","href":"/api/reference/complete_errored_deploy"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests/{number}/deploy","title":"Queue a deploy request","href":"/api/reference/queue_deploy_request"},{"openapi":"get /organizations/{organization}/databases/{database}/deploy-requests/{number}/deployment","title":"Get a deployment","href":"/api/reference/get_deployment"},{"openapi":"get /organizations/{organization}/databases/{database}/deploy-requests/{number}/operations","title":"List deploy operations","href":"/api/reference/list_deploy_operations"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests/{number}/revert","title":"Complete a revert","href":"/api/reference/complete_revert"},{"openapi":"get /organizations/{organization}/databases/{database}/deploy-requests/{number}/reviews","title":"List deploy request reviews","href":"/api/reference/list_deploy_request_reviews"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests/{number}/reviews","title":"Review a deploy request","href":"/api/reference/review_deploy_request"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests/{number}/skip-revert","title":"Skip revert period","href":"/api/reference/skip_revert_period"},{"openapi":"get /organizations/{organization}/databases/{database}/deploy-requests/{number}/storage-check","title":"Check deploy request storage","href":"/api/reference/check_deploy_request_storage"},{"openapi":"post /organizations/{organization}/databases/{database}/deploy-requests/{number}/force-cutover","title":"Enable force cutover for a deploy request","href":"/api/reference/force_cutover_deploy_request"},{"openapi":"get /organizations/{organization}/databases/{database}/deploy-requests/{number}/throttler","title":"Get deploy request throttler configurations","href":"/api/reference/get_deploy_request_throttler"},{"openapi":"patch /organizations/{organization}/databases/{database}/deploy-requests/{number}/throttler","title":"Update deploy request throttler configurations","href":"/api/reference/update_deploy_request_throttler"}]},{"group":"Keyspace VSchemas","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/vschema","title":"Get the VSchema for the keyspace","href":"/api/reference/get_keyspace_vschema"},{"openapi":"patch /organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/vschema","title":"Update the VSchema for the keyspace","href":"/api/reference/update_keyspace_vschema"}]},{"group":"Safe migrations","pages":[{"openapi":"post /organizations/{organization}/databases/{database}/branches/{branch}/safe-migrations","title":"Enable safe migrations for a branch","href":"/api/reference/enable_safe_migrations"},{"openapi":"delete /organizations/{organization}/databases/{database}/branches/{branch}/safe-migrations","title":"Disable safe migrations for a branch","href":"/api/reference/disable_safe_migrations"}]},{"group":"Workflows","pages":[{"openapi":"get /organizations/{organization}/databases/{database}/workflows","title":null,"href":"/api/reference/list_workflows"},{"openapi":"post /organizations/{organization}/databases/{database}/workflows","title":null,"href":"/api/reference/create_workflow"},{"openapi":"get /organizations/{organization}/databases/{database}/workflows/{number}","title":null,"href":"/api/reference/get_workflow"},{"openapi":"delete /organizations/{organization}/databases/{database}/workflows/{number}","title":null,"href":"/api/reference/workflow_cancel"},{"openapi":"patch /organizations/{organization}/databases/{database}/workflows/{number}/complete","title":null,"href":"/api/reference/workflow_complete"},{"openapi":"patch /organizations/{organization}/databases/{database}/workflows/{number}/cutover","title":null,"href":"/api/reference/workflow_cutover"},{"openapi":"patch /organizations/{organization}/databases/{database}/workflows/{number}/retry","title":null,"href":"/api/reference/workflow_retry"},{"openapi":"patch /organizations/{organization}/databases/{database}/workflows/{number}/reverse-cutover","title":null,"href":"/api/reference/workflow_reverse_cutover"},{"openapi":"patch /organizations/{organization}/databases/{database}/workflows/{number}/reverse-traffic","title":null,"href":"/api/reference/workflow_reverse_traffic"},{"openapi":"patch /organizations/{organization}/databases/{database}/workflows/{number}/switch-primaries","title":null,"href":"/api/reference/workflow_switch_primaries"},{"openapi":"patch /organizations/{organization}/databases/{database}/workflows/{number}/switch-replicas","title":null,"href":"/api/reference/workflow_switch_replicas"},{"openapi":"patch /organizations/{organization}/databases/{database}/workflows/{number}/verify-data","title":null,"href":"/api/reference/verify_workflow"}]}]}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli"}]}]},"basePath":"","title":"List service tokens - PlanetScale","buildId":"dpl_4RHMRqtvdHvKgaEfTTjFqjzja3B6","deploymentId":"dpl_4RHMRqtvdHvKgaEfTTjFqjzja3B6","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D_4Sesi0.js","utils-DRHeK26p.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C6d-DUc2.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dex7slho.js","snippetPresets-BcCEBp0Z.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CufowNTX.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-A4lJSCIe.js","shallow-DqoHP7zn.js","getApiPlaygroundDisplay-Cku8AmtL.js","CodeSnippet-CtHQbNqc.js","CodeSnippets-CGo5Cslf.js","Page-BoJxk0m8.js","getPastedJson-M-bKdue4.js","icon-DEqCU4st.js","MethodPill-DnfSSXiJ.js","DuplicateIcon-BHu2PE8M.js","createIcon-BPsE5X7c.js","DynamicMarkdown-Dnt6YhtR.js","SectionHeading-6CtFWqMQ.js","axios-vUo_bRtp.js","Markdown-BoKe_1fI.js","clsx-DM5-sUNJ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CkIdkovK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-B3e6Nh_r.js"]}