Added create_card to API.php