DA7: APIs and webhooks

Lesson 1 of 5 · reading 15–25 minutes; practice and project time is on the module page

Reading API documentation

🎯You'll be able to

Find the base URL, endpoints, methods, sign-in, limits and error codes in API documentation before building.

🏠The everyday picture

A railway timetable tells you the station, the train number, the platform and the rules: which ticket you need and when the train runs. API documentation is a timetable for data: where to go, what to bring and what you'll get back.

📘What it really is

📝A worked example

Sharma Textiles uses a regional courier, ShipFast (an example), with no n8n node. Its API card:

Item Value
Base URL https://api.shipfast.example/v2
Auth API key in header X-Api-Key
Create shipment POST /shipments with name, phone, address, pin code, weight in grams
Track GET /shipments/{awb} returns status and scans
Limits 60 calls per minute; test mode with a separate key
Errors 422 means a field failed validation; the reply lists the field

With this card you can plan the workflow before writing a single request.

🌍Where it's used

📝Case scenario

A client asks you to connect their accounting tool, and the salesperson says "it has an API". Reading the docs, you find it only allows reading invoices, not creating them, and only on the top plan. You tell the client before agreeing a price, and suggest a CSV import as a cheaper first step.

🖱️Try it

Pick one app you use that has public API documentation. Make an API card for it with base URL, authentication, two endpoints, limits and whether it has a test mode.

⚠️Common mistakes

🛠️For your project

Write an API card for each simulator service from the starter README.md: base URL, endpoints, sign-in, errors. Real projects need the same card from the provider's docs.

✅Quick check

Which HTTP method is usually used to create a new record?

Show the answer

POST.

Why look for a sandbox or test mode first?

Show the answer

So you can try calls without changing real data or moving real money.

← BackDA7
ProLearners Assist