Advanced REST API design: async exports, Idempotency-Key and API documentation
Senior-level REST API design, part 2: exporting a 500 MB file with an async job (polling, signed webhooks, presigned URLs), handling duplicate payment requests with an Idempotency-Key, a response envelope with 6-digit error codes, and writing API docs plus an API map.