API is working as expected