Whenever you're ready, walk me through how you'd approach this.
Explain how you would implement a REST API that is both secure and developer-friendly.
Cover authentication, authorization, input validation, error handling, versioning, rate limiting, idempotency, and documentation. Explain how the design protects sensitive data while remaining easy for clients to integrate and operate.