To create a new API token, scoped to a single organization, run the following command:
turso auth api-tokens mint <api-token-name> --org <organization-slug>
Unrestricted (cross-org) tokens — minting without --org — are deprecated and will be removed in a future release. Always pass --org for new tokens. Existing unrestricted tokens continue to work for now, but you should rotate them to scoped tokens at your earliest convenience.
Flags
Flag
Description
--org
Restrict the token to a specific organization.
--group
Restrict the token to a specific group inside --org. Requires --org and at least one scope.
--scope
Permission to grant the token. Repeatable.
--read-only
Shorthand for --scope read.
--full-access
Shorthand for granting every group scope. Does not include the organization scopes.
Organization-scoped tokens
Pass --org to restrict a token to a single organization:
turso auth api-tokens mint <api-token-name> --org <organization-slug>
An org-scoped token can only manage resources (groups, databases, members) within that organization. Requests to any other organization will be rejected.Without scopes, the token can do everything that you can do in the organization. Add --scope to limit it. The scopes then apply to every group in the organization:
# Read the audit logs, members, and billing data of the organizationturso auth api-tokens mint audit-reader --org my-org --scope org:read# Create databases and mint SQL tokens in every groupturso auth api-tokens mint deploy-bot --org my-org --scope db:create --scope db:mint-token
An org-scoped token accepts all the group scopes, and also the organization scopes that follow. A token with scopes cannot manage members or invites, change organization settings, transfer groups or databases, or mint API tokens.
Organization scopes
These scopes are valid only on org-scoped tokens, that is, without --group:
Scope
Allows
group:create
Create groups in the organization.
group:delete
Delete groups in the organization.
org:read
Read organization data: members, invites, billing, invoices, audit logs, SSO, JWKS, and API tokens.
Reading invites and audit logs also requires that you are an admin or owner of the organization. --full-access does not include these scopes. To grant them, list each scope with --scope.
Group-scoped tokens
A group-scoped token is pinned to a single group inside an organization and is restricted to an explicit set of operations. It’s the right shape for automations that should be able to provision and manage databases inside one group without being able to touch the rest of the organization.You must be an admin or owner of the organization to mint a group-scoped token.
# Read-only access to one groupturso auth api-tokens mint deploy-bot --org my-org --group default --read-only# Full access inside one group, but nothing outside itturso auth api-tokens mint deploy-bot --org my-org --group default --full-access# Fine-grained: provision and configure databases, mint SQL tokensturso auth api-tokens mint deploy-bot --org my-org --group default \ --scope db:create --scope db:configure --scope db:mint-token
Available scopes
--scope can be repeated and accepts any of the following:
Scope
Allows
read
All GET-style routes: list/retrieve databases and groups, configuration, usage, instances, locations.
db:create
Create databases inside the group, seed from a dump, restore.
db:delete
Delete a database inside the group.
db:configure
Patch database configuration, wake, add or remove instances.
db:mint-token
Issue a SQL-engine token or TLS client certificate for a database inside the group.
db:rotate-creds
Rotate the database signing key, invalidating every SQL token previously issued for it.
group:configure
Configure, rename, update, unarchive the group, or add and remove locations.
group:mint-token
Issue a group-level SQL-engine token.
group:rotate-creds
Rotate the group signing key, invalidating group tokens. On AWS, database-scoped tokens are not invalidated.
db:mint-token and db:rotate-creds are deliberately separate scopes. Minting a new SQL credential is additive; rotating invalidates every credential currently in use, which can take down running applications. Grant rotation only to automations that need it.
--scope, --read-only, and --full-access are mutually exclusive — pass one flavor at a time. Unknown scope labels are rejected before the request is sent. Group create, group delete, group transfer, and AWS migration are never reachable from a group-scoped token at any scope.
Lifecycle
Group-scoped tokens are pinned by the group’s UUID, not its name. Deleting a group, or transferring it to another organization, cascades a revoke to every token scoped to it. A new group created with the same name does not inherit tokens from the previous one.
The token value is only shown once at creation time. Store it somewhere safe.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Turso","colors":{"primary":"#1EBCA1","light":"#1EBCA1","dark":"#1EBCA1"},"logo":{"light":"https://mintcdn.com/turso/0gN7SecUGL1uVO9v/logo/turso-light.svg?fit=max\u0026auto=format\u0026n=0gN7SecUGL1uVO9v\u0026q=85\u0026s=089d09358d8f5a3e3815861a7419a616","dark":"https://mintcdn.com/turso/0gN7SecUGL1uVO9v/logo/turso-dark.svg?fit=max\u0026auto=format\u0026n=0gN7SecUGL1uVO9v\u0026q=85\u0026s=2946b82b1620bb2c7839f85d7e2e113b"},"favicon":"https://mintcdn.com/turso/0gN7SecUGL1uVO9v/favicon.svg?fit=max\u0026auto=format\u0026n=0gN7SecUGL1uVO9v\u0026q=85\u0026s=3eb0166155fecb6dbad825308e71a8aa","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://api.turso.tech"}},"appearance":{"default":"dark"},"background":{"color":{"light":"#FFFFFF","dark":"#121B22"}},"navbar":{"links":[{"href":"https://turso.tech/app","label":"Dashboard"}],"primary":{"type":"github","href":"https://github.com/tursodatabase/turso"}},"footer":{"socials":{"discord":"https://tur.so/discord","github":"https://github.com/tursodatabase","twitter":"https://twitter.com/tursodatabase","linkedin":"https://www.linkedin.com/company/turso"}},"integrations":{"gtm":{"tagId":"GTM-WW757Q5"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Turso Homepage","icon":"house","href":"https://turso.tech"},{"anchor":"Discord","icon":"discord","href":"https://tur.so/discord"},{"anchor":"GitHub","icon":"github","href":"https://github.com/tursodatabase/turso"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"turso","hasAudioNarration":false,"actualSubdomain":"turso","customDomains":["docs.turso.tech"],"gitSource":{"type":"github","owner":"tursodatabase","repo":"turso-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afda3d5fd124ae05f54ea86","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Turso Cloud","count":223},{"language":"default","tag":"Turso Database","count":72},{"language":"default","tag":"SDKs","count":62},{"language":"default","tag":"API Reference","count":56},{"language":"default","tag":"CLI","count":56},{"language":"default","tag":"Resources","count":52},{"language":"default","tag":"Commands","count":50},{"language":"default","tag":"Official SDKs","count":47},{"language":"default","tag":"SQL Reference","count":46},{"language":"default","tag":"Statements","count":30}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"cli/auth/api-tokens/mint","slug":"/cli/auth/api-tokens/mint","pageMetadata":{"title":"auth api-tokens mint","sidebarTitle":"mint","description":null,"href":"/cli/auth/api-tokens/mint"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`To create a new API token, scoped to a single organization, run the following command:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`turso`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-tokens`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mint`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`api-token-nam`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`e`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`organization-slu`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`g`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Unrestricted (cross-org) tokens — minting without `,_jsx(_components.code,{children:`--org`}),` — are deprecated and will be removed in a future release.`]}),` Always pass `,_jsx(_components.code,{children:`--org`}),` for new tokens. Existing unrestricted tokens continue to work for now, but you should rotate them to scoped tokens at your earliest convenience.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`flags`,children:`Flags`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--org`})}),_jsx(_components.td,{children:`Restrict the token to a specific organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--group`})}),_jsxs(_components.td,{children:[`Restrict the token to a specific group inside `,_jsx(_components.code,{children:`--org`}),`. Requires `,_jsx(_components.code,{children:`--org`}),` and at least one scope.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--scope`})}),_jsx(_components.td,{children:`Permission to grant the token. Repeatable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--read-only`})}),_jsxs(_components.td,{children:[`Shorthand for `,_jsx(_components.code,{children:`--scope read`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--full-access`})}),_jsx(_components.td,{children:`Shorthand for granting every group scope. Does not include the organization scopes.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`organization-scoped-tokens`,children:`Organization-scoped tokens`}),`\n`,_jsxs(_components.p,{children:[`Pass `,_jsx(_components.code,{children:`--org`}),` to restrict a token to a single organization:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`turso`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-tokens`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mint`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`api-token-nam`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`e`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`organization-slu`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`g`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`An org-scoped token can only manage resources (groups, databases, members) within that organization. Requests to any other organization will be rejected.`}),`\n`,_jsxs(_components.p,{children:[`Without scopes, the token can do everything that you can do in the organization. Add `,_jsx(_components.code,{children:`--scope`}),` to limit it. The scopes then apply to every group in the organization:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Read the audit logs, members, and billing data of the organization`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`turso`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-tokens`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` audit-reader`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-org`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` org:read`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create databases and mint SQL tokens in every group`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`turso`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-tokens`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deploy-bot`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-org`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` db:create`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` db:mint-token`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`An org-scoped token accepts all the `,_jsx(_components.a,{href:`#available-scopes`,children:`group scopes`}),`, and also the organization scopes that follow. A token with scopes cannot manage members or invites, change organization settings, transfer groups or databases, or mint API tokens.`]}),`\n`,_jsx(Heading,{level:`3`,id:`organization-scopes`,children:`Organization scopes`}),`\n`,_jsxs(_components.p,{children:[`These scopes are valid only on org-scoped tokens, that is, without `,_jsx(_components.code,{children:`--group`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Allows`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`group:create`})}),_jsx(_components.td,{children:`Create groups in the organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`group:delete`})}),_jsx(_components.td,{children:`Delete groups in the organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`org:read`})}),_jsx(_components.td,{children:`Read organization data: members, invites, billing, invoices, audit logs, SSO, JWKS, and API tokens.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Reading invites and audit logs also requires that you are an admin or owner of the organization. `,_jsx(_components.code,{children:`--full-access`}),` does not include these scopes. To grant them, list each scope with `,_jsx(_components.code,{children:`--scope`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`group-scoped-tokens`,children:`Group-scoped tokens`}),`\n`,_jsx(_components.p,{children:`A group-scoped token is pinned to a single group inside an organization and is restricted to an explicit set of operations. It’s the right shape for automations that should be able to provision and manage databases inside one group without being able to touch the rest of the organization.`}),`\n`,_jsx(_components.p,{children:`You must be an admin or owner of the organization to mint a group-scoped token.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Read-only access to one group`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`turso`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-tokens`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deploy-bot`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-org`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --group`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` default`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --read-only`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Full access inside one group, but nothing outside it`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`turso`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-tokens`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deploy-bot`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-org`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --group`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` default`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --full-access`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fine-grained: provision and configure databases, mint SQL tokens`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`turso`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-tokens`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mint`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deploy-bot`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-org`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --group`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` default`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` db:create`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` db:configure`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` db:mint-token`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`available-scopes`,children:`Available scopes`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--scope`}),` can be repeated and accepts any of the following:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Allows`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`read`})}),_jsx(_components.td,{children:`All GET-style routes: list/retrieve databases and groups, configuration, usage, instances, locations.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`db:create`})}),_jsx(_components.td,{children:`Create databases inside the group, seed from a dump, restore.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`db:delete`})}),_jsx(_components.td,{children:`Delete a database inside the group.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`db:configure`})}),_jsx(_components.td,{children:`Patch database configuration, wake, add or remove instances.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`db:mint-token`})}),_jsx(_components.td,{children:`Issue a SQL-engine token or TLS client certificate for a database inside the group.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`db:rotate-creds`})}),_jsx(_components.td,{children:`Rotate the database signing key, invalidating every SQL token previously issued for it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`group:configure`})}),_jsx(_components.td,{children:`Configure, rename, update, unarchive the group, or add and remove locations.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`group:mint-token`})}),_jsx(_components.td,{children:`Issue a group-level SQL-engine token.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`group:rotate-creds`})}),_jsx(_components.td,{children:`Rotate the group signing key, invalidating group tokens. On AWS, database-scoped tokens are not invalidated.`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`db:mint-token`}),` and `,_jsx(_components.code,{children:`db:rotate-creds`}),` are deliberately separate scopes. Minting a new SQL credential is additive; rotating invalidates every credential currently in use, which can take down running applications. Grant rotation only to automations that need it.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--scope`}),`, `,_jsx(_components.code,{children:`--read-only`}),`, and `,_jsx(_components.code,{children:`--full-access`}),` are mutually exclusive — pass one flavor at a time. Unknown scope labels are rejected before the request is sent. Group create, group delete, group transfer, and AWS migration are never reachable from a group-scoped token at any scope.`]}),`\n`,_jsx(Heading,{level:`3`,id:`lifecycle`,children:`Lifecycle`}),`\n`,_jsx(_components.p,{children:`Group-scoped tokens are pinned by the group’s UUID, not its name. Deleting a group, or transferring it to another organization, cascades a revoke to every token scoped to it. A new group created with the same name does not inherit tokens from the previous one.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The token value is only shown once at creation time. Store it somewhere safe.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"auth api-tokens mint","sidebarTitle":"mint","description":null,"href":"/cli/auth/api-tokens/mint"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Flags","slug":"flags","depth":2,"children":[]},{"title":"Organization-scoped tokens","slug":"organization-scoped-tokens","depth":2,"children":[{"title":"Organization scopes","slug":"organization-scopes","depth":3,"children":[]}]},{"title":"Group-scoped tokens","slug":"group-scoped-tokens","depth":2,"children":[{"title":"Available scopes","slug":"available-scopes","depth":3,"children":[]},{"title":"Lifecycle","slug":"lifecycle","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/turso/37ed2bd0c4d50890/prefetch-viz-v3.js","/_mintlify/custom/turso/30fa7bada8cea66f/segment-viz-v2.js"],"subdomain":"turso","siteName":"Turso","title":"auth api-tokens mint - Turso","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T13:10:53.573Z","originalFileLocation":"cli/auth/api-tokens/mint.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=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Turso\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"auth api-tokens mint - Turso\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Turso\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.turso.tech/cli/auth/api-tokens/mint\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://turso.mintlify.site/_mintlify/api/og/v2?division=api-tokens\u0026amp;title=auth+api-tokens+mint\u0026amp;theme=799b9dd861205471af889b1f\u0026amp;signature=7cb36f4b04966554b12837727d396b1e30b6fd259d70517eccac56cedf43fd51\">\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=\"auth api-tokens mint - Turso\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://turso.mintlify.site/_mintlify/api/og/v2?division=api-tokens\u0026amp;title=auth+api-tokens+mint\u0026amp;theme=799b9dd861205471af889b1f\u0026amp;signature=7cb36f4b04966554b12837727d396b1e30b6fd259d70517eccac56cedf43fd51\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/turso/Iu9g4qZd-KNb0pxr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Turso\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1EBCA1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.turso.tech/cli/auth/api-tokens/mint\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/auth/api-tokens/mint.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.turso.tech/#organization\",\"name\":\"Turso\",\"url\":\"https://docs.turso.tech\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/turso/0gN7SecUGL1uVO9v/logo/turso-light.svg?fit=max\u0026auto=format\u0026n=0gN7SecUGL1uVO9v\u0026q=85\u0026s=089d09358d8f5a3e3815861a7419a616\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.turso.tech#website\",\"name\":\"Turso\",\"url\":\"https://docs.turso.tech\",\"publisher\":{\"@id\":\"https://docs.turso.tech/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.turso.tech/cli/auth/api-tokens/mint#webpage\",\"url\":\"https://docs.turso.tech/cli/auth/api-tokens/mint\",\"name\":\"auth api-tokens mint\",\"dateModified\":\"2026-11-18T13:10:53.573Z\",\"isPartOf\":{\"@id\":\"https://docs.turso.tech#website\"},\"breadcrumb\":{\"@id\":\"https://docs.turso.tech/cli/auth/api-tokens/mint#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.turso.tech/cli/auth/api-tokens/mint#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI\",\"item\":\"https://docs.turso.tech/cli/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Commands\",\"item\":\"https://docs.turso.tech/cli/auth/login\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"auth\",\"item\":\"https://docs.turso.tech/cli/auth/login\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"auth api-tokens mint\",\"item\":\"https://docs.turso.tech/cli/auth/api-tokens/mint\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.turso.tech/cli/auth/api-tokens/mint#article\",\"headline\":\"auth api-tokens mint\",\"name\":\"auth api-tokens mint\",\"url\":\"https://docs.turso.tech/cli/auth/api-tokens/mint\",\"mainEntityOfPage\":{\"@id\":\"https://docs.turso.tech/cli/auth/api-tokens/mint#webpage\"},\"dateModified\":\"2026-11-18T13:10:53.573Z\",\"publisher\":{\"@id\":\"https://docs.turso.tech/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.turso.tech#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Turso\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Turso\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/auth/api-tokens/mint.md","siteName":"Turso","nav":{"global":{"anchors":[{"anchor":"Turso Homepage","icon":"house","href":"https://turso.tech"},{"anchor":"Discord","icon":"discord","href":"https://tur.so/discord"},{"anchor":"GitHub","icon":"github","href":"https://github.com/tursodatabase/turso"}]},"tabs":[{"tab":"Turso Database","pages":[{"title":"Turso Database","href":"/introduction"}]},{"tab":"Turso Cloud","groups":[{"group":"Turso Cloud","pages":[{"title":"Turso Cloud Documentation","sidebarTitle":"Introduction","href":"/turso-cloud"},{"title":"Quickstart","href":"/quickstart"},{"title":"Local Development","href":"/local-development"},{"title":"libSQL","href":"/libsql"},{"title":"Limitations","href":"/cloud/limitations"},{"title":"Migrate to Turso","href":"/cloud/migrate-to-turso"},{"title":"Durability Guarantees","href":"/cloud/durability"},{"title":"Private Endpoints","href":"/cloud/private-endpoints"},{"title":"Database Access Allow Rules","href":"/cloud/allow-rules"},{"title":"BYOK Encryption","href":"/cloud/encryption"},{"title":"Usage \u0026 Billing","href":"/help/usage-and-billing"},{"title":"AI \u0026 Embeddings","href":"/features/ai-and-embeddings"},{"group":"Embedded Replicas","pages":[{"title":"Embedded Replicas","sidebarTitle":"Introduction","href":"/features/embedded-replicas/introduction"},{"group":"Platform Guides","pages":[{"title":"Embedded Replicas on Fly","sidebarTitle":"Turso + Fly","href":"/features/embedded-replicas/with-fly"},{"title":"Turso + Render","sidebarTitle":null,"href":"/features/embedded-replicas/with-render"},{"title":"Turso + Koyeb","sidebarTitle":null,"href":"/features/embedded-replicas/with-koyeb"},{"title":"Turso + Railway","sidebarTitle":null,"href":"/features/embedded-replicas/with-railway"},{"title":"Turso + Linode by Akamai","sidebarTitle":"Turso + Akamai","href":"/features/embedded-replicas/with-akamai"}]}]},{"title":"Branching","href":"/features/branching"},{"title":"Point-in-Time Recovery","href":"/features/point-in-time-recovery"},{"title":"Recover Deleted Databases","href":"/features/recover-deleted-databases"},{"title":"SQLite Extensions","href":"/features/sqlite-extensions"},{"group":"Deprecated","pages":[{"title":"Multi-DB Schemas (Deprecated)","href":"/features/multi-db-schemas"},{"title":"Attach Database (Deprecated)","href":"/features/attach-database"},{"title":"Data Edge (Deprecated)","href":"/features/data-edge"}]}]},{"group":"SDKs","pages":[{"sidebarTitle":"Introduction","title":"Turso SDKs","href":"/sdk/introduction"},{"title":"Authentication","href":"/sdk/authentication"},{"group":"Authorization","pages":[{"title":"Authorization","sidebarTitle":"Overview","href":"/sdk/authorization"},{"title":"Platform Tokens","href":"/sdk/authorization/tokens"},{"title":"External Auth Providers","href":"/sdk/authorization/jwks"},{"title":"Fine-Grained Permissions","sidebarTitle":"Fine-Grained Permissions","href":"/sdk/authorization/fine-grained-permissions"}]},{"group":"SQL over HTTP","pages":[{"title":"Turso Quickstart (SQL over HTTP)","sidebarTitle":"Quickstart","href":"/sdk/http/quickstart"},{"title":"SQL over HTTP Reference","sidebarTitle":"Reference","href":"/sdk/http/reference"}]},{"group":"Official SDKs","pages":[{"group":"TypeScript","pages":[{"title":"Turso Quickstart (TypeScript)","sidebarTitle":"Quickstart","href":"/sdk/ts/quickstart"},{"title":"Reference","href":"/sdk/ts/reference"},{"title":"Examples","url":"https://github.com/tursodatabase/libsql-client-ts/tree/main/packages/libsql-client/examples","href":"/sdk/ts/examples"},{"group":"Guides","pages":[{"title":"Next.js + Turso","sidebarTitle":"Next.js","href":"/sdk/ts/guides/nextjs"},{"title":"Remix + Turso","sidebarTitle":"Remix","href":"/sdk/ts/guides/remix"},{"title":"Astro + Turso","sidebarTitle":"Astro","href":"/sdk/ts/guides/astro"},{"title":"Nuxt + Turso","sidebarTitle":"Nuxt","href":"/sdk/ts/guides/nuxt"},{"title":"Qwik + Turso","sidebarTitle":"Qwik","href":"/sdk/ts/guides/qwik"},{"title":"SvelteKit + Turso","sidebarTitle":"SvelteKit","href":"/sdk/ts/guides/sveltekit"},{"title":"Quasar + Turso","sidebarTitle":"Quasar","href":"/sdk/ts/guides/quasar"},{"title":"Elysia + Turso","sidebarTitle":"Elysia","href":"/sdk/ts/guides/elysia"},{"title":"Hono + Turso","sidebarTitle":"Hono","href":"/sdk/ts/guides/hono"}]},{"group":"ORMs","pages":[{"title":"Drizzle + Turso","sidebarTitle":"Drizzle","href":"/sdk/ts/orm/drizzle"},{"title":"Prisma + Turso","sidebarTitle":"Prisma","href":"/sdk/ts/orm/prisma"}]},{"group":"Integrations","pages":[{"title":"Sentry","href":"/sdk/ts/integrations/sentry"}]}]},{"group":"Rust","pages":[{"title":"Turso Quickstart (Rust)","sidebarTitle":"Quickstart","href":"/sdk/rust/quickstart"},{"title":"Reference","href":"/sdk/rust/reference"},{"title":"Examples","url":"https://github.com/tursodatabase/libsql/tree/main/libsql/examples","href":"/sdk/rust/examples"},{"group":"Guides","pages":[{"title":"Turso + Actix","sidebarTitle":"Actix","href":"/sdk/rust/guides/actix"},{"title":"Turso + Axum","sidebarTitle":"Axum","href":"/sdk/rust/guides/axum"},{"title":"Turso + Rocket","sidebarTitle":"Rocket","href":"/sdk/rust/guides/rocket"},{"title":"Tauri + Turso","sidebarTitle":"Tauri","href":"/sdk/rust/guides/tauri"}]},{"group":"ORMs","pages":[{"title":"Toasty + Turso","sidebarTitle":"Toasty","href":"/sdk/rust/orm/toasty"}]}]},{"group":"Go","pages":[{"title":"Turso Quickstart (Go)","sidebarTitle":"Quickstart","href":"/sdk/go/quickstart"},{"title":"Reference","href":"/sdk/go/reference"},{"title":"Examples","url":"https://github.com/libsql/go-libsql/tree/main/example","href":"/sdk/go/examples"}]},{"group":"Python","pages":[{"title":"Turso Quickstart (Python)","sidebarTitle":"Quickstart","href":"/sdk/python/quickstart"},{"title":"Reference","href":"/sdk/python/reference"},{"title":"Examples","url":"https://github.com/tursodatabase/libsql-python/tree/main/examples","href":"/sdk/python/examples"},{"group":"Guides","pages":[{"title":"Flask + Turso","sidebarTitle":"Flask","href":"/sdk/python/guides/flask"}]},{"group":"ORMs","pages":[{"title":"SQLAlchemy + Turso","sidebarTitle":"SQLAlchemy","href":"/sdk/python/orm/sqlalchemy"}]}]},{"group":"PHP","pages":[{"title":"Turso Quickstart (PHP)","sidebarTitle":"Quickstart","href":"/sdk/php/quickstart"},{"title":"Reference","href":"/sdk/php/reference"},{"title":"Examples","url":"https://github.com/tursodatabase/turso-client-php/tree/main/examples","href":"/sdk/php/examples"},{"group":"ORMs","pages":[{"title":"Turso + Doctrine DBAL","sidebarTitle":"Doctrine DBAL","href":"/sdk/php/orm/doctrine-dbal"}]},{"group":"Guides","pages":[{"sidebarTitle":"Laravel","title":"Turso Quickstart (Laravel)","href":"/sdk/php/guides/laravel"}]}]},{"group":"Ruby","pages":[{"title":"Turso Quickstart (Ruby)","sidebarTitle":"Quickstart","href":"/sdk/ruby/quickstart"},{"title":"Turso Examples (Ruby)","sidebarTitle":"Examples","href":"/sdk/ruby/examples"}]},{"group":"ActiveRecord","pages":[{"title":"Turso Quickstart (ActiveRecord)","sidebarTitle":"Quickstart","href":"/sdk/activerecord/quickstart"},{"group":"Guides","pages":[{"title":"Ruby on Rails + Turso","sidebarTitle":"Ruby on Rails","href":"/sdk/activerecord/guides/rails"}]}]},{"group":"Android","pages":[{"title":"Turso Quickstart (Android)","sidebarTitle":"Quickstart","href":"/sdk/kotlin/quickstart"},{"title":"Android Reference","sidebarTitle":"Reference","href":"/sdk/kotlin/reference"}]},{"group":"Swift","pages":[{"title":"Turso Quickstart (Swift)","sidebarTitle":"Quickstart","href":"/sdk/swift/quickstart"},{"title":"Swift Reference","sidebarTitle":"Reference","href":"/sdk/swift/reference"}]},{"group":"C","pages":[{"title":"Turso Quickstart (C)","sidebarTitle":"Quickstart","href":"/sdk/c/quickstart"},{"title":"C Reference","sidebarTitle":"Reference","href":"/sdk/c/reference"},{"title":"Turso Examples (C)","sidebarTitle":"Examples","href":"/sdk/c/examples"}]}]},{"group":"Community SDKs","pages":[{"group":"Flutter / Dart","pages":[{"title":"Turso Quickstart (Flutter / Dart)","sidebarTitle":"Quickstart","href":"/sdk/flutter/quickstart"},{"title":"Reference","href":"/sdk/flutter/reference"},{"title":"Examples","url":"https://github.com/dikatok/libsql_dart/tree/main/example","href":"/sdk/flutter/examples"},{"group":"Integrations","pages":[{"title":"Drift + Turso / LibSQL","sidebarTitle":"Drift","href":"/sdk/flutter/integrations/drift"}]}]}]}]},{"group":"CLI","pages":[{"title":"Introduction","href":"/cli/introduction"},{"title":"Installation","href":"/cli/installation"},{"title":"Authentication","href":"/cli/authentication"},{"title":"Upgrading","href":"/cli/upgrading"},{"title":"Help","href":"/cli/help"},{"title":"Headless Mode","href":"/cli/headless-mode"},{"group":"Commands","pages":[{"group":"auth","pages":[{"title":"auth login","sidebarTitle":"login","href":"/cli/auth/login"},{"title":"auth logout","sidebarTitle":"logout","href":"/cli/auth/logout"},{"title":"auth signup","sidebarTitle":"signup","href":"/cli/auth/signup"},{"title":"auth token","sidebarTitle":"token","href":"/cli/auth/token"},{"title":"auth whoami","sidebarTitle":"whoami","description":null,"href":"/cli/auth/whoami"},{"group":"api-tokens","pages":[{"title":"auth api-tokens mint","sidebarTitle":"mint","href":"/cli/auth/api-tokens/mint"},{"title":"auth api-tokens list","sidebarTitle":"list","description":null,"href":"/cli/auth/api-tokens/list"},{"title":"auth api-tokens revoke","sidebarTitle":"revoke","href":"/cli/auth/api-tokens/revoke"}]}]},{"group":"contact","pages":[{"title":"contact bookmeeting","sidebarTitle":"bookmeeting","href":"/cli/contact/bookmeeting"},{"title":"contact feedback","sidebarTitle":"feedback","href":"/cli/contact/feedback"}]},{"group":"db","pages":[{"title":"db list","sidebarTitle":"list","href":"/cli/db/list"},{"title":"db create","sidebarTitle":"create","href":"/cli/db/create"},{"title":"db import","sidebarTitle":"import","href":"/cli/db/import"},{"title":"db show","sidebarTitle":"show","href":"/cli/db/show"},{"title":"db export","sidebarTitle":"export","href":"/cli/db/export"},{"title":"db destroy","sidebarTitle":"destroy","href":"/cli/db/destroy"},{"title":"db inspect","sidebarTitle":"inspect","href":"/cli/db/inspect"},{"title":"db shell","sidebarTitle":"shell","href":"/cli/db/shell"},{"title":"db locations","sidebarTitle":"locations","href":"/cli/db/locations"},{"group":"tokens","pages":[{"title":"db tokens create","sidebarTitle":"create","href":"/cli/db/tokens/create"},{"title":"db tokens invalidate","sidebarTitle":"invalidate","href":"/cli/db/tokens/invalidate"}]},{"group":"config allow-rules","pages":[{"title":"db config allow-rules show","sidebarTitle":"show","href":"/cli/db/config/allow-rules/show"},{"title":"db config allow-rules set","sidebarTitle":"set","href":"/cli/db/config/allow-rules/set"},{"title":"db config allow-rules clear","sidebarTitle":"clear","href":"/cli/db/config/allow-rules/clear"}]}]},{"title":"dev","url":"/local-development#turso-cli","href":"/cli/dev"},{"group":"group","pages":[{"title":"group list","sidebarTitle":"list","href":"/cli/group/list"},{"title":"group create","sidebarTitle":"create","href":"/cli/group/create"},{"title":"group update","sidebarTitle":"update","href":"/cli/group/update"},{"title":"group destroy","sidebarTitle":"destroy","href":"/cli/group/destroy"},{"title":"group transfer","sidebarTitle":"transfer","href":"/cli/group/transfer"},{"group":"tokens","pages":[{"title":"group tokens create","sidebarTitle":"create","href":"/cli/group/tokens/create"},{"title":"group tokens invalidate","sidebarTitle":"invalidate","href":"/cli/group/tokens/invalidate"}]},{"title":"group unarchive","sidebarTitle":"unarchive","href":"/cli/group/unarchive"},{"group":"aws-migration","pages":[{"title":"group aws-migration start","sidebarTitle":"start","href":"/cli/group/aws-migration/start"},{"title":"group aws-migration info","sidebarTitle":"info","href":"/cli/group/aws-migration/info"},{"title":"group aws-migration abort","sidebarTitle":"abort","href":"/cli/group/aws-migration/abort"}]}]},{"group":"org","pages":[{"title":"org switch","sidebarTitle":"switch","href":"/cli/org/switch"},{"title":"org list","sidebarTitle":"list","href":"/cli/org/list"},{"title":"org create","sidebarTitle":"create","href":"/cli/org/create"},{"title":"org billing","sidebarTitle":"billing","href":"/cli/org/billing"},{"group":"members","pages":[{"title":"org members list","sidebarTitle":"list","href":"/cli/org/members/list"},{"title":"org members invite","sidebarTitle":"invite","href":"/cli/org/members/invite"},{"title":"org members add","sidebarTitle":"add","href":"/cli/org/members/add"},{"title":"org members rm","sidebarTitle":"rm","href":"/cli/org/members/rm"}]},{"title":"destroy","href":"/cli/org/destroy"}]},{"group":"plan","pages":[{"title":"plan show","sidebarTitle":"show","href":"/cli/plan/show"},{"title":"plan select","sidebarTitle":"select","href":"/cli/plan/select"},{"title":"plan upgrade","sidebarTitle":"upgrade","href":"/cli/plan/upgrade"},{"group":"overages","pages":[{"title":"plan overages disable","sidebarTitle":"disable","href":"/cli/plan/overages/disable"},{"title":"plan overages enable","sidebarTitle":"enable","href":"/cli/plan/overages/enable"}]}]}]}]},{"group":"API Reference","pages":[{"sidebarTitle":"Introduction","title":"Turso Platform API","href":"/api-reference/introduction"},{"title":"Quickstart","href":"/api-reference/quickstart"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Errors","href":"/api-reference/response-codes"},{"group":"Resources","pages":[{"group":"Databases","icon":"database","pages":[{"sidebarTitle":"List","openapi":"GET /v1/organizations/{organizationSlug}/databases","title":"List Databases","href":"/api-reference/databases/list"},{"sidebarTitle":"Create","openapi":"POST /v1/organizations/{organizationSlug}/databases","title":"Create Database","href":"/api-reference/databases/create"},{"title":"Upload Database","sidebarTitle":"Upload","api":"POST https://{database_hostname}/v1/upload","href":"/api-reference/databases/upload"},{"sidebarTitle":"Retrieve","openapi":"GET /v1/organizations/{organizationSlug}/databases/{databaseName}","title":"Retrieve Database","href":"/api-reference/databases/retrieve"},{"sidebarTitle":"Retrieve Configuration","openapi":"GET /v1/organizations/{organizationSlug}/databases/{databaseName}/configuration","title":"Retrieve Database Configuration","href":"/api-reference/databases/configuration"},{"sidebarTitle":"Update Configuration","openapi":"PATCH /v1/organizations/{organizationSlug}/databases/{databaseName}/configuration","title":"Update Database Configuration","href":"/api-reference/databases/update-configuration"},{"sidebarTitle":"Usage","openapi":"GET /v1/organizations/{organizationSlug}/databases/{databaseName}/usage","title":"Retrieve Database Usage","href":"/api-reference/databases/usage"},{"sidebarTitle":"Stats","openapi":"GET /v1/organizations/{organizationSlug}/databases/{databaseName}/stats","title":"Retrieve Database Stats","href":"/api-reference/databases/stats"},{"sidebarTitle":"Delete","openapi":"DELETE /v1/organizations/{organizationSlug}/databases/{databaseName}","title":"Delete Database","href":"/api-reference/databases/delete"},{"sidebarTitle":"List Deleted","openapi":"GET /v3/organizations/{organizationId}/databases","title":"List Deleted Databases","href":"/api-reference/databases/list-deleted"},{"sidebarTitle":"Restore","openapi":"POST /v3/organizations/{organizationId}/databases/{databaseId}/restore","title":"Restore Database","href":"/api-reference/databases/restore"},{"sidebarTitle":"List Instances","openapi":"GET /v1/organizations/{organizationSlug}/databases/{databaseName}/instances","title":"List Database Instances","href":"/api-reference/databases/list-instances"},{"sidebarTitle":"Retrieve Instance","openapi":"GET /v1/organizations/{organizationSlug}/databases/{databaseName}/instances/{instanceName}","title":"Retrieve Database Instance","href":"/api-reference/databases/retrieve-instance"},{"sidebarTitle":"Create Token","openapi":"POST /v1/organizations/{organizationSlug}/databases/{databaseName}/auth/tokens","title":"Generate Database Auth Token","href":"/api-reference/databases/create-token"},{"sidebarTitle":"Invalidate Tokens","openapi":"POST /v1/organizations/{organizationSlug}/databases/{databaseName}/auth/rotate","title":"Invalidate All Database Auth Tokens","href":"/api-reference/databases/invalidate-tokens"}]},{"group":"Groups","icon":"sitemap","pages":[{"sidebarTitle":"List","openapi":"GET /v1/organizations/{organizationSlug}/groups","title":"List Groups","href":"/api-reference/groups/list"},{"sidebarTitle":"Create","openapi":"POST /v1/organizations/{organizationSlug}/groups","title":"Create Group","href":"/api-reference/groups/create"},{"sidebarTitle":"Retrieve","openapi":"GET /v1/organizations/{organizationSlug}/groups/{groupName}","title":"Retrieve Group","href":"/api-reference/groups/retrieve"},{"sidebarTitle":"Retrieve Configuration","openapi":"GET /v1/organizations/{organizationSlug}/groups/{groupName}/configuration","title":"Retrieve Group Configuration","href":"/api-reference/groups/configuration"},{"sidebarTitle":"Update Configuration","openapi":"PATCH /v1/organizations/{organizationSlug}/groups/{groupName}/configuration","title":"Update Group Configuration","href":"/api-reference/groups/update-configuration"},{"sidebarTitle":"Delete","openapi":"DELETE /v1/organizations/{organizationSlug}/groups/{groupName}","title":"Delete Group","href":"/api-reference/groups/delete"},{"sidebarTitle":"List Deleted","openapi":"GET /v3/organizations/{organizationId}/deleted-groups","title":"List Deleted Groups","href":"/api-reference/groups/list-deleted"},{"sidebarTitle":"Restore","openapi":"POST /v3/organizations/{organizationId}/groups/{groupId}/restore","title":"Restore Group","href":"/api-reference/groups/restore"},{"sidebarTitle":"Transfer","openapi":"POST /v1/organizations/{organizationSlug}/groups/{groupName}/transfer","title":"Transfer Group","href":"/api-reference/groups/transfer"},{"sidebarTitle":"Unarchive","openapi":"POST /v1/organizations/{organizationSlug}/groups/{groupName}/unarchive","title":"Unarchive Group","href":"/api-reference/groups/unarchive"},{"sidebarTitle":"Create Token","openapi":"POST /v1/organizations/{organizationSlug}/groups/{groupName}/auth/tokens","title":"Create Group Auth Token","href":"/api-reference/groups/create-token"},{"sidebarTitle":"Invalidate Tokens","openapi":"POST /v1/organizations/{organizationSlug}/groups/{groupName}/auth/rotate","title":"Invalidate All Group Auth Tokens","href":"/api-reference/groups/invalidate-tokens"}]},{"group":"Locations","icon":"location-dot","pages":[{"sidebarTitle":"List","openapi":"GET /v1/locations","title":"List Locations","href":"/api-reference/locations/list"},{"title":"Closest Region","sidebarTitle":"Closest Region","api":"GET https://region.turso.io","href":"/api-reference/locations/closest-region"}]},{"group":"Organizations","icon":"user-group","pages":[{"sidebarTitle":"List","openapi":"GET /v1/organizations","title":"List Organizations","href":"/api-reference/organizations/list"},{"sidebarTitle":"Retrieve","openapi":"GET /v1/organizations/{organizationSlug}","title":"Retrieve Organization","href":"/api-reference/organizations/retrieve"},{"sidebarTitle":"Update","openapi":"PATCH /v1/organizations/{organizationSlug}","title":"Update Organization","href":"/api-reference/organizations/update"},{"sidebarTitle":"Plans","openapi":"GET /v1/organizations/{organizationSlug}/plans","title":"List Plans","href":"/api-reference/organizations/plans"},{"sidebarTitle":"Current Subscription","openapi":"GET /v1/organizations/{organizationSlug}/subscription","title":"Current Subscription","href":"/api-reference/organizations/subscription"},{"sidebarTitle":"Invoices","openapi":"GET /v1/organizations/{organizationSlug}/invoices","title":"List Invoices","href":"/api-reference/organizations/invoices"},{"sidebarTitle":"Current Usage","openapi":"GET /v1/organizations/{organizationSlug}/usage","title":"Organization Usage","href":"/api-reference/organizations/usage"}]},{"group":"User","icon":"circle-user","pages":[{"sidebarTitle":"Get Current User","openapi":"GET /v1/user","title":"Get Current User","href":"/api-reference/user/get-current"}]},{"group":"Members","icon":"user","pages":[{"sidebarTitle":"List","openapi":"GET /v1/organizations/{organizationSlug}/members","title":"List Members","href":"/api-reference/organizations/members/list"},{"sidebarTitle":"Retrieve","openapi":"GET /v1/organizations/{organizationSlug}/members/{username}","title":"Retrieve Member","href":"/api-reference/organizations/members/retrieve"},{"sidebarTitle":"Add","openapi":"POST /v1/organizations/{organizationSlug}/members","title":"Add Member","href":"/api-reference/organizations/members/add"},{"sidebarTitle":"Update","openapi":"PATCH /v1/organizations/{organizationSlug}/members/{username}","title":"Update Member Role","href":"/api-reference/organizations/members/update"},{"sidebarTitle":"Remove","openapi":"DELETE /v1/organizations/{organizationSlug}/members/{username}","title":"Remove Member","href":"/api-reference/organizations/members/remove"}]},{"group":"Invites","icon":"envelope","pages":[{"sidebarTitle":"List","openapi":"GET /v2/organizations/{organizationSlug}/invites","title":"List Invites","href":"/api-reference/organizations/invites/list-v2"},{"title":"Create Invite","openapi":"POST /v2/organizations/{organizationSlug}/invites","href":"/api-reference/organizations/invites/create-v2"},{"sidebarTitle":"Delete Invite","openapi":"DELETE /v2/organizations/{organizationSlug}/invites/{email}","title":"Delete Invite","href":"/api-reference/organizations/invites/delete-v2"}]},{"group":"Audit Logs","icon":"list","pages":[{"sidebarTitle":"List","openapi":"GET /v1/organizations/{organizationSlug}/audit-logs","title":"List Audit Logs","href":"/api-reference/audit-logs/list"}]},{"group":"API Tokens","icon":"key","pages":[{"sidebarTitle":"Create","openapi":"POST /v1/auth/api-tokens/{tokenName}","title":"Create API Token","href":"/api-reference/tokens/create"},{"sidebarTitle":"Validate","openapi":"GET /v1/auth/validate","title":"Validate API Token","href":"/api-reference/tokens/validate"},{"sidebarTitle":"List","openapi":"GET /v1/auth/api-tokens","title":"List API Tokens","href":"/api-reference/tokens/list"},{"sidebarTitle":"Revoke","openapi":"DELETE /v1/auth/api-tokens/{tokenName}","title":"Revoke API Token","href":"/api-reference/tokens/revoke"},{"sidebarTitle":"List (Organization)","openapi":"GET /v1/organizations/{organizationSlug}/api-tokens","title":"List Organization API Tokens","href":"/api-reference/tokens/list-organization"},{"sidebarTitle":"Revoke (Organization)","openapi":"DELETE /v1/organizations/{organizationSlug}/api-tokens/{tokenId}","title":"Revoke Organization API Token","href":"/api-reference/tokens/revoke-organization"}]}]}]},{"group":"Integrations","pages":[{"title":"MCP (AI agents)","href":"/integrations/mcp"},{"title":"Vercel","href":"/integrations/vercel"}]}]},{"tab":"AgentFS (beta)","pages":[{"title":"AgentFS (beta)","href":"/agentfs/introduction"}]}]},"basePath":"","title":"auth api-tokens mint - Turso","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}