Skip to content
AI Exercises
–points–day streak

What is an API?

An API is a messenger with fixed rules: it carries your request to the backend and brings the answer back.

In real life

In a restaurant, the waiter is the API. You don't walk into the kitchen; you tell the waiter, using the menu, and the waiter brings the food back.

Try it yourself

Choose an order
  1. Menu

    the frontend

  2. This lesson

    Waiter

    the API

  3. Kitchen

    the backend

  4. Pantry

    the database

Choose an order above, then follow it step by step through the restaurant.

Where you will use this

  • Track 2, lesson 8: Connect your app to SupabaseComing soon
  • Track 3: Automation with webhooksComing soon
  • Module 5: API keys for AI toolsComing soon

Quick check: API

Question 1 of 3

Who plays the API in the restaurant?

Who plays the API in the restaurant?