suckless.dev
  • Learn
  • Journey
  • Playground
  • Quiz
  • Badge
Start learning
The journey
01How the web works0 of 9 done
02Inside the browser0 of 17 done
03Building for everyone0 of 8 done
04Code that stays easy to change0 of 15 done
05Working as a team with Git0 of 7 done
06APIs and servers0 of 8 done
  1. 01What an API is
  2. 02REST and resources
  3. 03Designing good APIs
  4. 04Idempotency and retries
  5. 05Versioning and breaking changes
  6. 06Middleware
  7. 07Webhooks
  8. 08Securing webhooks
07Identity and login0 of 18 done
08Attacks and defenses0 of 20 done
09Shipping safely0 of 9 done
10Capstone0 of 4 done
Track 06 of 10APIs and servers
  1. 01What an API is
  2. 02REST and resources
  3. 03Designing good APIs
  4. 04Idempotency and retries
  5. 05Versioning and breaking changes
  6. 06Middleware
  7. 07Webhooks
  8. 08Securing webhooks
See the whole journey

Track 06 of 10

APIs and servers

How programs talk to each other: designing APIs, surviving retries, middleware, and webhooks you can trust.

8 lessons · about 54 minutes

Start this track
  1. 01What an API isOrder a pizza through a real-looking API, then break the request and read the errors.7 min
  2. 02REST and resourcesSix tasks, one pattern: pick the method and the URL for each.6 min
  3. 03Designing good APIsPage through a live feed with offsets and cursors, and give every error one shape.7 min
  4. 04Idempotency and retriesA lost response, a retry, a double charge. Then the one header that prevents it.6 min
  5. 05Versioning and breaking changesChange a response and watch whose code breaks, then ship it as /v2.6 min
  6. 06MiddlewarePut logging, CORS, rate limits and auth in order, then send requests through.8 min
  7. 07WebhooksPoll every minute or get told the moment it happens.6 min
  8. 08Securing webhooksForged, tampered, replayed, duplicated: real HMAC signatures sort them out.8 min
suckless.dev

The root of all knowledge, one clickable lesson at a time. Embrace the struggle.

Press D to switch light and dark.

The journey

  1. 01How the web works
  2. 02Inside the browser
  3. 03Building for everyone
  4. 04Code that stays easy to change
  5. 05Working as a team with Git
  6. 06APIs and servers
  7. 07Identity and login
  8. 08Attacks and defenses
  9. 09Shipping safely
  10. 10Capstone

© 2026 suckless.dev · Every attack demo runs in your browser and nothing is sent anywhere.