# Turso Platform API API

> Turso Platform API API on Apizie: 53 endpoints (List Databases, Create Database, Retrieve Database, Delete Database, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/cloud:turso/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:turso`
- Category: Cloud
- Status: byok
- Source: https://turso
- Page: https://apizie.tech/api/cloud/turso
- OpenAPI: https://apizie.tech/api/cloud/turso/openapi.json

API description here

## Endpoints

### List Databases
`GET https://apizie.tech/v1/cloud:turso/list-databases` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| group | string | no | Filter databases by group name. |
| schema | string | no | The schema database name that can be used to get databases that belong to that parent schema. |
| parent | string | no | Filter database branches by using their parent database ID. |

### Create Database
`POST https://apizie.tech/v1/cloud:turso/create-database` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| body | object | yes | JSON request body |

### Retrieve Database
`GET https://apizie.tech/v1/cloud:turso/get-database` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |

### Delete Database
`POST https://apizie.tech/v1/cloud:turso/delete-database` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |

### Retrieve Database Configuration
`GET https://apizie.tech/v1/cloud:turso/get-database-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |

### Update Database Configuration
`POST https://apizie.tech/v1/cloud:turso/update-database-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |
| body | object | yes | JSON request body |

### List Database Instances
`GET https://apizie.tech/v1/cloud:turso/list-database-instances` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |

### Retrieve Database Instance
`GET https://apizie.tech/v1/cloud:turso/get-database-instance` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |
| instanceName | string | yes | The name of the instance (location code). |

### Generate Database Auth Token
`POST https://apizie.tech/v1/cloud:turso/create-database-token` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |
| expiration | string | no | Expiration time for the token (e.g., 2w1d30m). |
| authorization | string | no | Authorization level for the token (full-access or read-only). |
| body | object | no | JSON request body |

### Retrieve Database Usage
`GET https://apizie.tech/v1/cloud:turso/get-database-usage` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |
| from | string | no | The datetime to retrieve usage **from** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar… |
| to | string | no | The datetime to retrieve usage **to** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month… |

### Retrieve Database Stats
`GET https://apizie.tech/v1/cloud:turso/get-database-stats` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |

### Invalidate All Database Auth Tokens
`POST https://apizie.tech/v1/cloud:turso/invalidate-database-tokens` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| databaseName | string | yes | The name of the database. |

### List Groups
`GET https://apizie.tech/v1/cloud:turso/list-groups` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |

### Create Group
`POST https://apizie.tech/v1/cloud:turso/create-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| body | object | yes | JSON request body |

### Retrieve Group
`GET https://apizie.tech/v1/cloud:turso/get-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |

### Delete Group
`POST https://apizie.tech/v1/cloud:turso/delete-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |

### Retrieve Group Configuration
`GET https://apizie.tech/v1/cloud:turso/get-group-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |

### Update Group Configuration
`POST https://apizie.tech/v1/cloud:turso/update-group-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |
| body | object | yes | JSON request body |

### Transfer Group
`POST https://apizie.tech/v1/cloud:turso/transfer-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |
| body | object | yes | JSON request body |

### Unarchive Group
`POST https://apizie.tech/v1/cloud:turso/unarchive-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |

### Add Location to Group
`POST https://apizie.tech/v1/cloud:turso/add-location-to-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |
| location | string | yes | The location code to add to the group. |

### Remove Location from Group
`POST https://apizie.tech/v1/cloud:turso/remove-location-from-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |
| location | string | yes | The location code to remove from the group. |

### Update Databases in a Group
`POST https://apizie.tech/v1/cloud:turso/update-group-databases` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |

### Create Group Auth Token
`POST https://apizie.tech/v1/cloud:turso/create-group-token` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |
| expiration | string | no | Expiration time for the token (e.g., 2w1d30m). |
| authorization | string | no | Authorization level for the token (full-access or read-only). |
| body | object | no | JSON request body |

### Invalidate All Group Auth Tokens
`POST https://apizie.tech/v1/cloud:turso/invalidate-group-tokens` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| groupName | string | yes | The name of the group. |

### List Locations
`GET https://apizie.tech/v1/cloud:turso/list-locations` (byok)

### List Organizations
`GET https://apizie.tech/v1/cloud:turso/list-organizations` (byok)

### Retrieve Organization
`GET https://apizie.tech/v1/cloud:turso/get-organization` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |

### Update Organization
`POST https://apizie.tech/v1/cloud:turso/update-organization` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| body | object | yes | JSON request body |

### List Plans
`GET https://apizie.tech/v1/cloud:turso/list-organization-plans` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |

### List Invoices
`GET https://apizie.tech/v1/cloud:turso/list-organization-invoices` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| type | string | no | The type of invoice to retrieve. |

### Current Subscription
`GET https://apizie.tech/v1/cloud:turso/get-organization-subscription` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |

### Organization Usage
`GET https://apizie.tech/v1/cloud:turso/get-organization-usage` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |

### List Members
`GET https://apizie.tech/v1/cloud:turso/list-organization-members` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |

### Add Member
`POST https://apizie.tech/v1/cloud:turso/add-organization-member` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| body | object | yes | JSON request body |

### Retrieve Member
`GET https://apizie.tech/v1/cloud:turso/get-organization-member` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| username | string | yes | The username of a Turso user or organization member. |

### Update Member Role
`POST https://apizie.tech/v1/cloud:turso/update-member-role` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| username | string | yes | The username of a Turso user or organization member. |
| body | object | yes | JSON request body |

### Remove Member
`POST https://apizie.tech/v1/cloud:turso/remove-organization-member` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| username | string | yes | The username of a Turso user or organization member. |

### Validate API Token
`GET https://apizie.tech/v1/cloud:turso/validate-apitoken` (byok)

### List API Tokens
`GET https://apizie.tech/v1/cloud:turso/list-apitokens` (byok)

### Create API Token
`POST https://apizie.tech/v1/cloud:turso/create-apitoken` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| tokenName | string | yes | The name of the api token. |
| body | object | no | JSON request body |

### Revoke API Token
`POST https://apizie.tech/v1/cloud:turso/revoke-apitoken` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| tokenName | string | yes | The name of the api token. |

### List Organization API Tokens
`GET https://apizie.tech/v1/cloud:turso/list-organization-apitokens` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |

### Revoke Organization API Token
`POST https://apizie.tech/v1/cloud:turso/revoke-organization-apitoken` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| tokenId | string | yes | The ID of the token to revoke (from the list endpoint). |

### List Audit Logs
`GET https://apizie.tech/v1/cloud:turso/list-organization-audit-logs` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| page_size | integer | no | The limit of items to return per page. Defaults to 100. |
| page | integer | no | The page number to return. Defaults to 1. |

### List Invites
`GET https://apizie.tech/v1/cloud:turso/list-organization-invites-v2` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |

### Invite Organization Member
`POST https://apizie.tech/v1/cloud:turso/invite-organization-member-v2` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| body | object | yes | JSON request body |

### Delete Invite
`POST https://apizie.tech/v1/cloud:turso/delete-organization-invite-by-email-v2` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationSlug | string | yes | The slug of the organization or user account. |
| email | string | yes | The email of the user invited. |

### Get Current User
`GET https://apizie.tech/v1/cloud:turso/get-current-user` (byok)

### List Deleted Databases
`GET https://apizie.tech/v1/cloud:turso/list-deleted-databases` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationId | string | yes | The UUID of the organization. Retrieve it with the Retrieve Organization endpoint (the `id` field). |
| deleted | boolean | yes | Must be `true` to list deleted databases. |
| search | string | no | Filter deleted databases by name. |
| limit | integer | no | Page size, from 1 to 1000. |
| cursor | string | no | Opaque pagination cursor from the previous page's `pagination.next`. |

### Restore Database
`POST https://apizie.tech/v1/cloud:turso/restore-database` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationId | string | yes | The UUID of the organization. Retrieve it with the Retrieve Organization endpoint (the `id` field). |
| databaseId | string | yes | The UUID of the database, as returned when listing deleted databases (the `DbId` field). |
| body | object | no | JSON request body |

### List Deleted Groups
`GET https://apizie.tech/v1/cloud:turso/list-deleted-groups` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationId | string | yes | The UUID of the organization. Retrieve it with the Retrieve Organization endpoint (the `id` field). |
| limit | integer | no | Page size, from 1 to 1000. |
| cursor | string | no | Opaque pagination cursor from the previous page's `pagination.next`. |

### Restore Group
`POST https://apizie.tech/v1/cloud:turso/restore-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| organizationId | string | yes | The UUID of the organization. Retrieve it with the Retrieve Organization endpoint (the `id` field). |
| groupId | string | yes | The UUID of the group, as returned when listing deleted groups (the `uuid` field). |

## Example
```
curl "https://apizie.tech/v1/cloud:turso/list-databases" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Turso Platform API API?
Create a free Apizie key, then send GET https://apizie.tech/v1/cloud:turso/list-databases with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Turso Platform API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Turso Platform API itself also needs your own key from turso.

### Can AI agents use the Turso Platform API API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:turso.

### What is the status of the Turso Platform API API?
Needs your own provider key (bring your own key)
