splitting & sending the ID to the API