SebBase — Document database
Schemaless collections of JSON documents. Create a collection once, then write documents of any shape into it.
Create a collection
bash
curl -X POST https://seb-auth.lovable.app/api/public/v1/base/collections \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"name":"orders","description":"Customer orders"}'Insert a document
bash
curl -X POST https://seb-auth.lovable.app/api/public/v1/base/orders \
-H "Authorization: Bearer sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"sku":"SEB-1","quantity":2,"paid":true}'List documents
bash
curl "https://seb-auth.lovable.app/api/public/v1/base/orders?limit=50" \
-H "Authorization: Bearer sk_live_your_key"Documents come back newest first as { "documents": [{ "id", "data", "created_at" }] }.
Delete a document
bash
curl -X DELETE https://seb-auth.lovable.app/api/public/v1/base/orders?id=DOCUMENT_ID \
-H "Authorization: Bearer sk_live_your_key"