# Connect to OAuth API

**URL:** <https://community.hubspot.com/t/connect-to-oauth-api/98715>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [January 25, 2024, 11:41pm UTC](https://community.hubspot.com/t/connect-to-oauth-api/98715 "2024-01-25T23:41:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CWolfinger](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@CWolfinger](https://community.hubspot.com/u/CWolfinger)\
**Post date:** [January 25, 2024, 11:41pm UTC](https://community.hubspot.com/t/connect-to-oauth-api/98715/1 "2024-01-25T23:41:30Z")

</div>

I’m not able to find any documentation on how to connect to an API that requires OAuth rather than a token from my HubSpot app. Are there any examples or docs that I’m just not finding?

---

<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:** [January 26, 2024, 5:49pm UTC](https://community.hubspot.com/t/connect-to-oauth-api/98715/2 "2024-01-26T17:49:05Z")

</div>

Hey, @CWolfinger. Thanks for your question. I have a few questions of my own to help give our community more context.

- Could you specify which API you are connecting to? Are you using a specific HubSpot API, or is it an external API you’re integrating with HubSpot?
- What is the primary purpose of your connection? Are you building an app or integration for personal use within your HubSpot portal, or is it something you’re developing for customers to use?
- Could you describe what you’ve achieved so far and where exactly you’re facing challenges?

Knowing more about what you are building and what you’ve already tried helps our community to give you targeted advice.

Thanks for the additional information. —Jaycee

---

<div class="post-metadata">

**Author:** ![CWolfinger](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@CWolfinger](https://community.hubspot.com/u/CWolfinger)\
**Post date:** [January 26, 2024, 5:57pm UTC](https://community.hubspot.com/t/connect-to-oauth-api/98715/3 "2024-01-26T17:57:21Z")

</div>

I’m trying to connect to Linear. I’m building an integration for our personal use in our HubSpot portal. Currently I auth using an API key, but I need features that require OAuth on the Linear side.

Effectively what I need is a place to receive a callback from Linear and then exchange the code for a token to use for auth for the actual calls to the API.
