API

JSON document store API with optional encryption

Store JSON documents in your own collections. Search them, add indexes, and choose your encryption.

Problems we solve

Does any of this sound like your week?

I need a database for one small thing.

Make a collection with a name and a slug. You are writing JSON documents in a minute, with no new table or service.

Our notes must be encrypted but nobody wants to manage keys.

Pick managed encryption. Takelan makes the key and keeps it in the Secrets service, and indexed fields keep working.

Importing our old records is slow.

The bulk endpoint takes up to 500 documents per request. Then search by date and tag to check the import.

Who read this data?

The access log lists who read or changed each entry, and when.

What it does

  • The Data Warehouse Collections API is a place to keep your app data as JSON. Make a collection. Add documents. Search by title, tags, dates or your own indexed fields. Then read them back. Every collection belongs to your tenant and nobody else can see it.
  • It solves the "we need a database for this one thing" problem. Settings, form submissions, audit snapshots, customer notes and import results all need a home, but a new table and a new service for each is too much. A collection takes a name and a slug, and you are writing documents in a minute.
  • You choose how each collection is protected, once, when you create it. With no encryption, documents are kept as plain JSON. You can search all of it. With managed encryption, Takelan makes a key and keeps it in the Secrets service. The server encrypts your documents. You never handle keys, and indexed fields still work. With client-side encryption, your app locks each document before it sends it. The server only ever stores scrambled data (ciphertext). Client-side mode is the zero-knowledge option. In return, the server cannot read your content. The mode cannot be changed later. Managed collections have a key-rotation call. It locks your documents again with a new key.
  • Each document has a data id, an optional sub-id, a title, a description, tags, a public flag and a schema version. Add up to 500 records per bulk request. Large bodies move to object storage for you. You set the size limit for each collection. Or you can attach a file you uploaded earlier.
  • Search is a POST. You can filter by title, description, tags, dates and indexed fields. You can also page and sort. You can add indexes to a collection. You can retry an index that failed. A summary tells you what to index.
  • The older Data Warehouse endpoints are still here. They hold JSON entries with schemas and checks. An access log shows who touched what.
  • Sign in with an X-API-Key header or a Bearer token from Takelan SSO. Over the limit you get a 429 with a Retry-After header. Exact numbers vary by environment, so none are quoted.
  • Pricing that stays affordable. Start free*. *Free test level; past the limits, non-critical calls slow or pause and nothing is charged unless you turn overage on. Connected ShadowCradle organizations can switch on Takelan SSO and these base-included services with one switch. Airgap licences work without any Takelan connection.

See how it works

One collection, three ways to protect it

You pick the protection once, when you create the collection. You cannot change it later. Client-side mode is zero-knowledge. The server cannot read the content.
Example use cases6 examples

App settings and customer records

A developer keeps customer settings as JSON documents in a "customer-settings" collection. They find them by tag or indexed field. No schema migration is needed.

Sensitive notes the server cannot read

A support team stores private notes in a client-encrypted collection. The server holds ciphertext only. Each user unlocks the key with the vault passphrase.

Encryption without key handling

A small business wants its data encrypted at rest. Nobody there wants to manage keys. It picks managed encryption, and indexed fields keep working.

Bulk import from an old system

An IT admin loads exported records 500 at a time with the bulk endpoint. Then they search by date and tag to check the import.

Attach large files to a record

A form app saves each submission as a small JSON document. It points to an uploaded PDF. Big files stay in object storage.

Who looked at this data

A team that cares about compliance reads the access log. It shows who read or changed each entry, and when.

Try it

Create a managed-encryption collection and add a document

curl -X POST https://app.takelan.com/api/v1/data/collections \
  -H "X-API-Key: $TAKELAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": "my-app",
    "slug": "customer-notes",
    "name": "Customer notes",
    "encryption_mode": "managed"
  }'

# Response (abridged, fictional)
# { "id": "0a9c...42", "slug": "customer-notes", "encryption_mode": "managed", "is_active": true }

curl -X POST https://app.takelan.com/api/v1/data/collections/0a9c...42/documents \
  -H "X-API-Key: $TAKELAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "data_id": "cust-1042", "title": "Renewal call", "tags": ["renewal"],
        "data": { "note": "Wants a 3-year term", "owner": "alex" } }'

Encryption mode is set at creation and is immutable. Slugs use lowercase letters, digits and single hyphens.

Search a collection

curl -X POST https://app.takelan.com/api/v1/data/collections/0a9c...42/documents/search \
  -H "X-API-Key: $TAKELAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "tags": ["renewal"], "created_after": "2026-10-01T00:00:00Z", "page": 1, "page_size": 20 }'
Endpoints23 endpoints
  • POST /api/v1/data/collections Create a collection. Set encryption_mode to none, managed or client.
  • GET /api/v1/data/collections List collections.
  • GET /api/v1/data/collections/{collection_id} One collection.
  • PUT /api/v1/data/collections/{collection_id} Rename, change the large-body threshold or deactivate.
  • DELETE /api/v1/data/collections/{collection_id} Delete a collection.
  • POST /api/v1/data/collections/{collection_id}/documents Add a document. Use inline JSON, a ciphertext envelope or a file reference.
  • POST /api/v1/data/collections/{collection_id}/documents/bulk Add up to 500 documents at once.
  • GET /api/v1/data/collections/{collection_id}/documents/{document_id} Read a document.
  • PUT /api/v1/data/collections/{collection_id}/documents/{document_id} Replace a document.
  • DELETE /api/v1/data/collections/{collection_id}/documents/{document_id} Delete a document.
  • POST /api/v1/data/collections/{collection_id}/documents/search Search by title, tags, dates and indexed fields, with paging.
  • POST /api/v1/data/collections/{collection_id}/indexes Add an index.
  • GET /api/v1/data/collections/{collection_id}/indexes List indexes and their build state.
  • POST /api/v1/data/collections/{collection_id}/indexes/{index_id}/retry Retry an index that failed.
  • GET /api/v1/data/collections/{collection_id}/optimization/summary Index suggestions from your search patterns.
  • POST /api/v1/data/collections/{collection_id}/encryption/register-key Client mode: register the wrapped collection key once.
  • POST /api/v1/data/collections/{collection_id}/encryption/unlock Client mode: recover the key with the vault passphrase part.
  • POST /api/v1/data/collections/{collection_id}/encryption/rotate Managed mode: rotate the key and re-encrypt documents.
  • POST /api/v1/data/entries Schema-checked JSON entry (older warehouse API).
  • POST /api/v1/data/schemas Define a schema.
  • POST /api/v1/data/validate Validate data against a schema.
  • POST /api/v1/data/search Search entries.
  • GET /api/v1/data/access-logs Who accessed which entry, and when.

MCP

Available as tools through /mcp/utils. Listing and searching collections and documents works with a read-only key. Creating, changing and deleting are writes, so they are off by default. They need the writes switch for your account and a key that is not read-only. Key setup, unlock and rotation are marked sensitive. Raw document downloads are not offered as tools. About MCP

Common questions

how to store json documents with an api

Create a collection with POST /api/v1/data/collections, then POST documents to /collections/{id}/documents with a data_id and a JSON data object. Search them later by tags, dates or indexed fields.

what is the difference between managed and client-side encryption

In managed mode, Takelan makes the key and keeps it in the Secrets service. The server encrypts for you, so indexed fields still work. In client mode, your app encrypts first. The server stores ciphertext only. That is the zero-knowledge option. The choice is fixed when you create the collection.

is client-side encrypted data readable by Takelan

Not in client mode. The server only gets and stores ciphertext made by your app. This applies only to client-mode collections. The service can read managed and unencrypted collections.

can I bulk import records into a collection

Yes. The bulk endpoint takes up to 500 documents per request.

how do I search documents by field

Add an index on the field. Send indexed_values when you write. Then use indexed_filters in the search request. The summary suggests indexes worth adding.

can I change a collection's encryption later

No. You cannot change the encryption mode or the zero-knowledge flag after you create a collection. Need a different mode? Make a new collection and move the documents. Managed collections can have their key rotated.

can I see who read my data

Yes. The access-logs endpoint lists access events for warehouse entries. The user-activity API shows what one person did lately.

is there a free tier for the data warehouse api

It is negotiable on price: start free*. *Free test level; past the limits, non-critical calls slow or pause and nothing is charged unless you turn overage on.

Analytics & Cookies

We use self-hosted Matomo analytics. By default we measure anonymously with no cookies. Enable cookies to help us improve your experience. You can change this anytime.