Klaviyo Interview Question

how would you design this api from another obscure wireframe