# Turso

Turso is a fully managed database platform built on libSQL, offering serverless SQLite databases with global replication and low-latency access.

- **Category:** databases
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 3
- **Triggers:** 0
- **Slug:** `TURSO`
- **Version:** 20260407_00

## Tools

### Closest Region

**Slug:** `TURSO_CLOSEST_REGION`

Tool to get the closest Turso region based on client location. Use when you need to minimize latency by selecting the nearest deployment region.

### Listen To Changes

**Slug:** `TURSO_LISTEN_TO_CHANGES`

Listen to committed table changes in a Turso database via the /beta/listen endpoint. This tool streams real-time insert/update/delete events for a specific table. IMPORTANT: Requires a database-specific URL (e.g., 'https://mydb-myorg.turso.io'), NOT the platform API URL (api.turso.tech). Note: The /beta/listen endpoint is NOT available on AWS regions for Free, Developer, and Scaler plans. When unavailable, the action falls back to a /v2/pipeline health check.

### Validate API Token

**Slug:** `TURSO_VALIDATE_API_TOKEN`

Validates a Turso API token and retrieves its expiration time. Use this action to verify that an API token is valid and check when it expires. Returns the token's expiration timestamp, or -1 if the token has no expiration.
