Send a message to API