Turso Platform API
API description here
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
API description here
Endpoints 53
- GETList Databases
/v1/organizations/:organizationSlug/databasesReturns a list of databases belonging to the organization or user. - POSTCreate Database
/v1/organizations/:organizationSlug/databasesCreates a new database in a group for the organization or user. - GETRetrieve Database
/v1/organizations/:organizationSlug/databases/:databaseNameReturns a database belonging to the organization or user. - DELETEDelete Database
/v1/organizations/:organizationSlug/databases/:databaseNameDelete a database belonging to the organization or user. - GETRetrieve Database Configuration
/v1/organizations/:organizationSlug/databases/:databaseName/configurationRetrieve an individual database configuration belonging to the organization or user. - PATCHUpdate Database Configuration
/v1/organizations/:organizationSlug/databases/:databaseName/configurationUpdate a database configuration belonging to the organization or user. - GETList Database Instances
/v1/organizations/:organizationSlug/databases/:databaseName/instancesReturns a list of instances of a database. Instances are the individual primary or replica databases in each region defined by the group. - GETRetrieve Database Instance
/v1/organizations/:organizationSlug/databases/:databaseName/instances/:instanceNameReturn the individual database instance by name. - POSTGenerate Database Auth Token
/v1/organizations/:organizationSlug/databases/:databaseName/auth/tokensGenerates an authorization token for the specified database. - GETRetrieve Database Usage
/v1/organizations/:organizationSlug/databases/:databaseName/usageFetch activity usage for a database in a given time period. - GETRetrieve Database Stats
/v1/organizations/:organizationSlug/databases/:databaseName/statsFetch the top queries of a database, including the count of rows read and written. - POSTInvalidate All Database Auth Tokens
/v1/organizations/:organizationSlug/databases/:databaseName/auth/rotateInvalidates all authorization tokens for the specified database. - GETList Groups
/v1/organizations/:organizationSlug/groupsReturns a list of groups belonging to the organization or user. - POSTCreate Group
/v1/organizations/:organizationSlug/groupsCreates a new group for the organization or user. - GETRetrieve Group
/v1/organizations/:organizationSlug/groups/:groupNameReturns a group belonging to the organization or user. - DELETEDelete Group
/v1/organizations/:organizationSlug/groups/:groupNameDelete a group belonging to the organization or user. - GETRetrieve Group Configuration
/v1/organizations/:organizationSlug/groups/:groupName/configurationRetrieve an individual group configuration belonging to the organization or user. - PATCHUpdate Group Configuration
/v1/organizations/:organizationSlug/groups/:groupName/configurationUpdate a group configuration belonging to the organization or user. - POSTTransfer Group
/v1/organizations/:organizationSlug/groups/:groupName/transferTransfer a group to another organization that you own or a member of. - POSTUnarchive Group
/v1/organizations/:organizationSlug/groups/:groupName/unarchiveUnarchive a group that has been archived due to inactivity. - POSTAdd Location to Group
/v1/organizations/:organizationSlug/groups/:groupName/locations/:locationAdds a location to the specified group. - DELETERemove Location from Group
/v1/organizations/:organizationSlug/groups/:groupName/locations/:locationRemoves a location from the specified group. - POSTUpdate Databases in a Group
/v1/organizations/:organizationSlug/groups/:groupName/updateUpdates all databases in the group to the latest libSQL version. - POSTCreate Group Auth Token
/v1/organizations/:organizationSlug/groups/:groupName/auth/tokensGenerates an authorization token for the specified group. - POSTInvalidate All Group Auth Tokens
/v1/organizations/:organizationSlug/groups/:groupName/auth/rotateInvalidates all authorization tokens for the specified group. - GETList Locations
/v1/locationsReturns a list of locations where you can create or replicate databases. - GETList Organizations
/v1/organizationsReturns a list of organizations the authenticated user owns or is a member of. - GETRetrieve Organization
/v1/organizations/:organizationSlugRetrieve details of a specific organization. - PATCHUpdate Organization
/v1/organizations/:organizationSlugUpdate an organization you own or are a member of. - GETList Plans
/v1/organizations/:organizationSlug/plansReturns a list of available plans and their quotas. - GETList Invoices
/v1/organizations/:organizationSlug/invoicesReturns a list of invoices for the organization. - GETCurrent Subscription
/v1/organizations/:organizationSlug/subscriptionReturns the current subscription details for the organization. - GETOrganization Usage
/v1/organizations/:organizationSlug/usageFetch current billing cycle usage for an organization. - GETList Members
/v1/organizations/:organizationSlug/membersReturns a list of members part of the organization. - POSTAdd Member
/v1/organizations/:organizationSlug/membersAdd an existing Turso user to an organization. - GETRetrieve Member
/v1/organizations/:organizationSlug/members/:usernameRetrieve details of a specific member in the organization. - DELETERemove Member
/v1/organizations/:organizationSlug/members/:usernameRemove a user from the organization by username. - PATCHUpdate Member Role
/v1/organizations/:organizationSlug/members/:usernameUpdate the role of an organization member. Only organization admins or owners can perform this action. - GETValidate API Token
/v1/auth/validateValidates an API token belonging to a user. - GETList API Tokens
/v1/auth/api-tokensReturns a list of API tokens belonging to a user. - POSTCreate API Token
/v1/auth/api-tokens/:tokenNameReturns a new API token belonging to a user. The token can be minted at three levels of restriction, in increasing order of narrowness: Organization-scoped —… - DELETERevoke API Token
/v1/auth/api-tokens/:tokenNameRevokes the provided API token belonging to a user. - GETList Organization API Tokens
/v1/organizations/:organizationSlug/api-tokensReturns the API tokens scoped to this organization (both organization-scoped and group-scoped). Unrestricted tokens are not returned here — manage those via… - DELETERevoke Organization API Token
/v1/organizations/:organizationSlug/api-tokens/:tokenIdRevokes a token scoped to this organization. The path takes a token ID, not a name, because names are unique per user but not across users — an admin revoking… - GETList Audit Logs
/v1/organizations/:organizationSlug/audit-logsReturn the audit logs for the given organization, ordered by the created_at field in descending order. - GETList Invites
/v2/organizations/:organizationSlug/invitesReturns a list of pending invites for the organization. - POSTInvite Organization Member
/v2/organizations/:organizationSlug/invitesInvite a user to an organization. If the user isn't already registered with Turso, they will receive a signup link. If an existing pending invite exists for… - DELETEDelete Invite
/v2/organizations/:organizationSlug/invites/:emailDelete a pending invite for the organization by email. - GETGet Current User
/v1/userReturns information about the currently authenticated user. - GETList Deleted Databases
/v3/organizations/:organizationId/databases?deleted=trueReturns databases deleted within the last five days, which can still be restored. Requires a paid plan. Available even while recovery is disabled for the… - POSTRestore Database
/v3/organizations/:organizationId/databases/:databaseId/restoreRestore a database deleted within the last five days, exactly as it was at the moment it was deleted. Requires a paid plan, an admin or owner of the… - GETList Deleted Groups
/v3/organizations/:organizationId/deleted-groupsReturns groups deleted within the last five days, including empty groups, which can still be restored. Requires a paid plan and an organization-level token.… - POSTRestore Group
/v3/organizations/:organizationId/groups/:groupId/restoreRestore a group deleted within the last five days, along with the member databases that were deleted with it. Requires a paid plan, an admin or owner of the…
API details
- Base URL
https://api.turso.tech- Authentication
- A bearer token in the Authorization header
- Operations
- 53 operations on 40 pathsGET 27POST 15DELETE 7PATCH 4
- Response formats
application/json- Description format
- OpenAPI 3.0.1, API version
0.1.0 - Links
- OpenAPI document
- Listed from
- Turso's published OpenAPI description (tursodatabase/turso-docs) (MIT)
How to test the Turso Platform API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Turso Platform API collection, without the publisher's secrets.
- Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “List Databases” (GET /v1/organizations/:organizationSlug/databases), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Turso Platform API?
API description here It is listed under Data & analytics and has 53 endpoints.
Who publishes the Turso Platform API?
It is listed from Turso's public API description (an OpenAPI document), not published by Turso on Swastik Codes. Anyone who controls turso.tech can claim the profile by adding a DNS TXT record.
What is the base URL of the Turso Platform API?
Requests go to https://api.turso.tech. Endpoint paths are added to this base URL.
How do I authenticate with the Turso Platform API?
With A bearer token in the Authorization header.
How many endpoints does the Turso Platform API have?
53 operations on 40 paths (27 GET, 15 POST, 7 DELETE, 4 PATCH).
Is forking the Turso Platform API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.