# Problems with auth requests

**URL:** <https://community.hubspot.com/t/problems-with-auth-requests/109732>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [June 20, 2024, 8:24am UTC](https://community.hubspot.com/t/problems-with-auth-requests/109732 "2024-06-20T08:24:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NLingeman](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@NLingeman](https://community.hubspot.com/u/NLingeman)\
**Post date:** [June 20, 2024, 8:24am UTC](https://community.hubspot.com/t/problems-with-auth-requests/109732/1 "2024-06-20T08:24:59Z")

</div>

So i am trying to automate getting engagement from 1 hub to another hub, and in the new hub i have contact from my old hubs. But it was not possible to get the activities out. But what i found out is that i can get the engagement via http request, but then i only have a deal id, so i am trying to get the information that is associated with the deal. Only the problem i am facing is that the auth token keeps getting expired.

So i can get the contact e-mail. If i have found the contact e-mail, i can get the contact information from the new hub and update the engagement there so i can know what the activities where.

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [June 20, 2024, 12:20pm UTC](https://community.hubspot.com/t/problems-with-auth-requests/109732/2 "2024-06-20T12:20:14Z")

</div>

Hi @NLingeman

Please consider the following guide:

> **[Working with OAuth | OAuth Quickstart Guide - HubSpot docs](https://developers.hubspot.com/docs/apps/legacy-apps/authentication/oauth-quickstart-guide)**
>
> Learn how set up OAuth for your app using this quickstart Guide and sample Node.js app.

“I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!”
