Get your API key

Beginner · 5 lessons · 40 min

APIs and databases, explained by building

The mental model behind every app: requests, responses, webhooks and tables. Enough to direct your AI agent and catch its mistakes.

Who it's for

Students, freelancers and office workers who know Excel but have never written code, and want to build apps with an AI agent without blindly trusting it.

What you'll build

A working Pincode finder page that calls a real API, a reviewed table design for a tuition centre, a practice database you query yourself, and prompts that make the agent explain every API call and query.

Why this course

AI agents happily write the backend and database for you, and that is exactly where beginner apps break: a scan of 90 public Supabase apps built with AI tools found almost half exposed their database, and Lovable apps without proper database rules got their own CVE. 'What is an API, really?' is one of the most viewed questions on Stack Overflow. If you cannot read a request or a table design, you cannot spot the agent's mistakes.

Take first: Prompting for AI coding

Lessons in this course

  1. 1What an API is: requests, responses and status codesCall a real pincode API from your browser and terminal, read the JSON like a sheet row, and learn what 200, 401, 404, 429 and 500 tell you to do. 8 min Free
  2. 2Build a Pincode finder that calls a public APIRead the API docs first, make the agent show the raw response, build a page with loading, found, not-found and error screens, and keep keyed APIs behind your server. 8 min Log in to open
  3. 3Webhooks: when other apps call youPolling vs webhooks, and the four rules of a safe webhook: a public HTTPS URL, a signature check, a fast 2xx reply, and processing each event only once. 7 min Log in to open
  4. 4Design your tables: from one messy sheet to a clean databasePrimary keys, foreign keys, one-to-many and many-to-many for a tuition centre; money in paise, dates as dates, no passwords; and a schema review before any code. 8 min Log in to open
  5. 5Read and write data, and catch the agent's risky queriesCRUD, SQL and REST side by side, safe practice queries in a test database, and the data-layer mistakes AI makes: UPDATE without WHERE, trusting the browser, missing RLS, loading whole tables. 9 min Log in to open
Next upBuild a mobile app with ExpoBuild one app for Android and iPhone, test it on your own phone, and share an APK with friends.