# API to get card nonce without integrating the html

**URL:** <https://developer.squareup.com/forums/t/api-to-get-card-nonce-without-integrating-the-html/5517>\
**Category:** Questions\
**Tags:** sdk, cards-api\
**Created:** [March 25, 2022, 8:02am UTC](https://developer.squareup.com/forums/t/api-to-get-card-nonce-without-integrating-the-html/5517 "2022-03-25T08:02:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham3031](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/shubham3031/32/1079_2.png) [@Shubham3031](https://developer.squareup.com/forums/u/Shubham3031)\
**Post date:** [March 25, 2022, 8:02am UTC](https://developer.squareup.com/forums/t/api-to-get-card-nonce-without-integrating-the-html/5517/1 "2022-03-25T08:02:20Z")

</div>

Hello Team,

I have gone through the documentation and found if we need to add a card, we have to embed the HTML in our code-base. What I am looking for is to have an API in which I can send card details and get the card token.  
Please let me know if I’m missing something as I need to integrate asap.

Thanks!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [March 25, 2022, 5:34pm UTC](https://developer.squareup.com/forums/t/api-to-get-card-nonce-without-integrating-the-html/5517/2 "2022-03-25T17:34:58Z")

</div>

👋 With Square you’ll have to use the Web Payments SDK to generate a token that can be passed to the payment request. With Square [Web Payments SDK](https://developer.squareup.com/docs/web-payments/overview) it provides a secure buyer payment card entry method along with other secure payment methods. The SDK produces a secure one-time use payment token that your application web client sends to your backend, where it is processed as a payment with the [Payments API](https://developer.squareup.com/docs/payments-refunds). 🙂

---

<div class="post-metadata">

**Author:** ![Shubham3031](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/shubham3031/32/1079_2.png) [@Shubham3031](https://developer.squareup.com/forums/u/Shubham3031)\
**Post date:** [March 28, 2022, 4:41am UTC](https://developer.squareup.com/forums/t/api-to-get-card-nonce-without-integrating-the-html/5517/3 "2022-03-28T04:41:24Z")

</div>

Thanks a lot. I am marking the above response as a solution.
