> ## Documentation Index
> Fetch the complete documentation index at: https://developers.zite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Zite Database REST API

> Read and manage your Zite databases, tables, and records over a REST API.

The Zite Database API gives you programmatic access to your databases, tables, fields, and records: the
same data your apps use. Base URL:

```text theme={"system"}
https://tables.zite.com/api/v1
```

> [!NOTE]
>
> If your workspace uses a custom deployment, use the base URL shown in your API dashboard instead.

Prefer a client library? Use the [JavaScript SDK](https://developers.zite.com/api/sdk.md). For value shapes, see [Field types](https://developers.zite.com/api/field-types.md).

## Authentication

Generate an API key in the [Developer settings](https://app.zite.com/home/settings/developer) (revoke or
regenerate any time), and send it as a Bearer token:

```bash theme={"system"}
Authorization: Bearer <your-api-key>
```

The same API key works across all Zite REST APIs, including the [Build API](https://developers.zite.com/build-api/overview.md).

![Generate an API key in the Developer settings tab](https://mintcdn.com/zite-js/jms34fXEIhS5q3-F/images/api-key.png?fit=max\&auto=format\&n=jms34fXEIhS5q3-F\&q=85\&s=7fe8620fb997d838313b88b240012368)

## Finding database & table IDs

Open a database in the [dashboard](https://app.zite.com); the IDs are in the URL:

```text theme={"system"}
app.zite.com/database/{databaseId}/{tableId}/...
```

For example, in `app.zite.com/database/67ef4d500c50cce9/t7nUTgYUjzF/vkuDPV6ZqBb` the database ID is
`67ef4d500c50cce9` and the table ID is `t7nUTgYUjzF`.

> [!WARNING]
>
> Accessing a database embedded in a Zite app? Open the database on its own and use that URL, not the editor URL.

## Rate limits

30 requests/second per database; responses carry `RateLimit-*` headers. A request over the limit returns
`429 Too Many Requests` with a `Retry-After` header. Contact [support@zite.com](mailto:support@zite.com) to raise it.

## Errors

Errors return `{ "error": { "code", "message" } }`. Two exceptions use `{ "statusCode", "error", "message" }`
instead: a `429` from the rate limit, and most errors from the [upload endpoints](https://developers.zite.com/api/uploads.md).

| Code | Meaning |
| - | - |
| `INVALID_RECORD_ID` | Record ID is not a valid UUID |
| `NOT_FOUND` | Resource doesn't exist |
| `BAD_REQUEST` | Invalid request data or validation failure |
| `VALIDATION_ERROR` | Bulk record request body failed validation (details in `error.details`) |
| `UNAUTHORIZED` | Invalid or missing API key |
| `FORBIDDEN` | The API key can't access this database |
| `CONFLICT` | The change conflicts with existing data, such as removing a select option that records still use |
| `NOT_IMPLEMENTED` | Feature not yet implemented |
| `INTERNAL_SERVER_ERROR` | Server-side error |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.