Canonical page: https://docs.singlebase.io/

Singlebase documentation

# Give your agents a data foundation.

Singlebase is a backend platform for applications and AI agents. It brings your data, files, users, and AI together through one JSON API.

[&gt;_ Make your first request Connect a project and use the REST API from your backend.](/quickstart)
[{ } Connect an agent Give an agent access to the collections and operations it needs.](/agents)

## One platform, shared context

Singlebase provides a JSON document database with VectorDB embeddings, vector search, FTS5 full-text search, and hybrid retrieval, plus file storage, user authentication and account management, AI generation and embeddings, and chat with retrieval from your knowledge sources. Your application and agents use these services through the same API, with access controlled by API keys and user permissions.

### Database
Store JSON documents, compute totals, and find context with VectorDB embeddings, vector search, FTS5 full-text search, and hybrid retrieval.

[DocumentDB reference →](/data)

### Agents & retrieval
Scope agent keys by collection and operation, or connect over MCP. Ground chat answers in named docsets using vector, FTS5 keyword, or hybrid retrieval with access rules.

[Agent access →](/agents) · [MCP →](/mcp-guide) · [Docsets →](/chat#docsets)

### Intelligence
Generate and summarize content, extract structured JSON, create embeddings, and keep conversations.

[LLM reference →](/llm) · [Chat reference →](/chat)

### Identity & storage
Sign users in, manage their accounts, upload files, and convert documents to Markdown.

[Authentication →](/auth) · [Files →](/files)

## One endpoint, one request shape

Send a `POST` request to your project's endpoint with `X-API-KEY` and a JSON body:

```json
{
  "operation": "data.query",
  "payload": {
    "collection": "product_catalog",
    "filter": { "category": "bags" },
    "per_page": 5
  }
}
```

Use a server key from your backend, or an agent key with `read` permission on `product_catalog`. A web key needs a signed-in user's bearer token for this query and returns that user's documents. See [API keys and access](/api.md#api-keys).

## Choose your next step

- [Quickstart](/quickstart.md): create a document and query it from server code.
- [API overview](/api.md): request headers, key types, responses, errors, and batches.
- [API reference](/api-reference.md): operations grouped by service.
- [JavaScript SDK](/sdk-javascript.md): connect with `sbc.data`, `sbc.llm`, and `sbc.chat`; see the quickstart for JavaScript and Python.
- [Data](/data.md) and [Query syntax](/queries.md): find and update your records.
- [Agents](/agents.md): give an agent its own scoped access.
- [MCP](/mcp-guide): connect agent runtimes with scoped discovery, document tools, and answers with sources.
- [Conversation](/chat.md): use knowledge sources, attachments, and persisted chats.
- [LLM](/llm.md): generate text, extract JSON, and create embeddings.
- [Authentication](/auth.md), [Users](/users.md), and [Files](/files.md): build the application around your data.

## Documentation for AI tools

Use [llms.txt](/llms.txt) for a compact reading guide, [llms-full.txt](/llms-full.txt) for the complete reference, or the Markdown link on each page for its plain-text source. Examples use placeholders and illustrative values; resource names must exist in your project.
