Skip to main content
In this guide you build a small Tasks API: one collection, a few records, and real API calls from curl and JavaScript.

What you'll build

Before you start

You need a Bludia account and an HTTP client such as curl, Postman, or a JavaScript runtime. You don’t need to install a database or a backend framework.

Build the backend

1

Create a project

In the Bludia dashboard, select Create Project and name it Task Manager. Open the project when it’s ready.
Create one project per independent app. Everything in this guide lives inside this project.
2

Create the tasks collection

Go to Collections → Create Collection and name it tasks. The collection’s slug (tasks) is the name you use in API URLs.
3

Add fields

Add these fields to tasks:Every record also gets system fields automatically: id, slug, created_at, updated_at, and published_at.
4

Add a record in the dashboard

Open the collection’s Records view, select Add record, and fill in:
5

Create an API key

Go to API → API Keys → Create key:
  • Name: Quickstart
  • Auth type: platform (server-side key with full project access, good for this test)
  • Environment: development
Copy the key. It looks like bludia_development_ab12cd_… and is shown only once.
A platform key can read and write every collection. Use it only on servers and in scripts, never in browser or mobile code. See API keys.
6

List your records

Find your API base URL in the collection’s API Endpoints panel. It ends in /ext/api/v1. Then run:
Response:
7

Create a record over the API

Send field names as JSON keys:
Bludia validates the body against your fields and returns 201 Created with the new record in data.
8

Filter, update, and delete

Updates are partial: fields you leave out keep their values. Deletes are soft deletes; you can restore records from the dashboard trash.
You now have a working backend with a validated data model and a REST API.

Call it from JavaScript

Run this on a server (Node.js, a Next.js route handler, or a serverless function), where the key stays secret:
For browser and mobile apps, use an end_users key with signed-in users instead. See Frontend integration.

Next steps

Add user login

Let people register and log in, then call the API as themselves.

Lock down access

Give roles per-collection permissions and limit rows per user.

Add business logic

Validate and react to changes with hooks.

Build a CRM

Follow a complete, multi-collection example.