# Serverless function Token Help

**URL:** <https://community.hubspot.com/t/serverless-function-token-help/114007>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [August 7, 2024, 7:43pm UTC](https://community.hubspot.com/t/serverless-function-token-help/114007 "2024-08-07T19:43:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BBoxler](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@BBoxler](https://community.hubspot.com/u/BBoxler)\
**Post date:** [August 7, 2024, 7:43pm UTC](https://community.hubspot.com/t/serverless-function-token-help/114007/1 "2024-08-07T19:43:31Z")

</div>

I’m trying to set up a button that will send users to a page that will allow them to make a payment to their account. In order to generate the link I have to first have an access token generated and then that token needs to be used to create the URL for the link. Does anyone know how I might be able to do this? Maybe an e

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 8, 2024, 4:40pm UTC](https://community.hubspot.com/t/serverless-function-token-help/114007/2 "2024-08-08T16:40:00Z")

</div>

Hey, @BBoxler 👋 Thanks for your post and welcome to our community.

It sounds like you have an interesting and challenging project. There isn’t an available endpoint to generate keys in the manner you are describing. You’d need to create a public app and utilize OAuth to generate tokens for your users.

While our community champions and experts are brilliant and very helpful, providing a custom solution would typically fall under paid work. My suggestion is to experiment a bit, build out a v1 and then loop back here with a specific question or challenge.

Here are some resources to get you started:

- [Build an app](https://developers.hubspot.com/docs/api/creating-an-app)
- [Serverless functions](https://developers.hubspot.com/docs/cms/data/serverless-functions)
- [Working with OAuth](https://developers.hubspot.com/docs/api/working-with-oauth)

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![BBoxler](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@BBoxler](https://community.hubspot.com/u/BBoxler)\
**Post date:** [August 8, 2024, 5:12pm UTC](https://community.hubspot.com/t/serverless-function-token-help/114007/3 "2024-08-08T17:12:00Z")

</div>

Thanks I’ll start going through that. Is there somewhere that I could go to see about hiring a developer for a short term project like this?
