add api for add card