Klaviyo interview question

how would you design this api from another obscure wireframe