B2b Wholesale Headless - Allowing customers to add a credit card to vault via non checkout flow

I am reading this article: https://help.shopify.com/en/manual/b2b/vaulted-cards

And one sentence in particular stands out: "When checking out, B2B customers can click a checkbox to vault their credit card information, or they can log into their account to add a vaulted card. "

^^ How can this be done thru the APIs ? I dont see any documentation that allows us to do this. We are implementing a headless dedicated B2B store. I would think the new customer account API would give us this option but I dont see any solutions in the API documentation. Any insight would be greatly appreciated, thanks!