Your question is REST vs SOAP APIs. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Describe the differences between REST and SOAP API architectures.
Compare their communication models, message formats, contracts, transport assumptions, error handling, security options, and typical use cases. Include one concrete request or integration example and explain when you would choose each approach.