API will now be sent to the server correctly.