<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/hubspot-has-the-oauth-but-not-the-onboarding-okwqcfgri" -->

---
title: HubSpot Has the OAuth, but Not the Onboarding | daily.dev
description: HubSpot has no API to programmatically create an app: public apps require clicking through a Developer Account UI to get a client_id/client_secret, and private...
canonical: https://daily.dev/posts/hubspot-has-the-oauth-but-not-the-onboarding-okwqcfgri
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: HubSpot Has the OAuth, but Not the Onboarding | daily.dev
og:description: HubSpot has no API to programmatically create an app: public apps require clicking through a Developer Account UI to get a client_id/client_secret, and private...
og:url: https://daily.dev/posts/hubspot-has-the-oauth-but-not-the-onboarding-okwqcfgri
og:image: https://api.daily.dev/og/posts/okWQCFGrI.png
og:image:alt: HubSpot Has the OAuth, but Not the Onboarding
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot Has the OAuth, but Not the Onboarding

**[API Evangelist](https://daily.dev/sources/apievangelist)** · 12 min read · 0 upvotes · 0 comments

## Summary

HubSpot has no API to programmatically create an app: public apps require clicking through a Developer Account UI to get a client_id/client_secret, and private apps require a super admin generating a pat- token through Settings. Once you have credentials, though, HubSpot's OAuth flow is clean: a confidential-client authorization-code grant (no PKCE) against app.hubspot.com/oauth/authorize and api.hubapi.com/oauth/v1/token, plus a token-info endpoint to verify scopes, hub_id, and app_id. A companion Node.js script, hubspot-api-auth.mjs, automates everything scriptable - the browser-based OAuth exchange or verifying a pat- token - while leaving app creation as the manual, dashboard-only step. The piece argues HubSpot should expose a scoped endpoint to register apps and mint credentials so agents could provision their own integrations end to end.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://apievangelist.com/2026/08/25/hubspot-oauth-but-create-the-app-by-hand>

## Questions this post answers

### Does HubSpot support PKCE for OAuth, or do I need a client secret?

HubSpot does not support PKCE. It uses the older confidential-client authorization-code flow, requiring both a client_id and a client_secret sent from your server during the token exchange at POST https://api.hubapi.com/oauth/v1/token, with the secret never exposed to the browser.

_Developers wiring up HubSpot OAuth flows compare confidential-client versus PKCE approaches on daily.dev before writing the integration._

### Is there an API to create a HubSpot app or register OAuth credentials programmatically?

No. HubSpot has no endpoint to create an application, no Dynamic Client Registration, and no POST /apps route. Public apps must be created manually in the Developer Account UI under Apps, and private apps must be created manually in portal Settings under Integrations, Private Apps, by a super admin, who then copies out a pat-na1- or pat-eu1- token.

_Teams scripting onboarding for CRM integrations track which providers still require manual app setup via daily.dev._

### How do I verify a HubSpot OAuth access token is valid and see what scopes it has?

Send a GET request to https://api.hubapi.com/oauth/v1/access-tokens/{token}, which returns the hub_id, hub_domain, the authorizing user, the granted scopes, and the app_id. Private-app pat- tokens are not documented to work against this endpoint; verify those instead against GET https://api.hubapi.com/account-info/v3/details.

_Developers building agent-driven HubSpot integrations reference token verification details like these on daily.dev._

## Similar posts on daily.dev

- [What Programmatic Onboarding Looks Like When Discord Won't Let You Register an App](https://daily.dev/posts/what-programmatic-onboarding-looks-like-when-discord-won-t-let-you-register-an-app-25e1jh5cb) · API Evangelist · 0 upvotes · 0 comments
- [Shopify Lets You Script the Token, Not the App](https://daily.dev/posts/shopify-lets-you-script-the-token-not-the-app-a6cr6ybdt) · API Evangelist · 0 upvotes · 0 comments
- [GitHub Quietly Built the Onboarding Flow Everyone Else Is Missing](https://daily.dev/posts/github-quietly-built-the-onboarding-flow-everyone-else-is-missing-gk4jwdvby) · API Evangelist · 0 upvotes · 0 comments
- [PayPal Lets You Mint a Token, But Not Register the App](https://daily.dev/posts/paypal-lets-you-mint-a-token-but-not-register-the-app-nq46w8zpd) · API Evangelist · 0 upvotes · 0 comments
- [How OAuth works: GitHub and Google login explained](https://daily.dev/posts/how-oauth-works-github-and-google-login-explained-z7bhexnib) · Flavio Copes · 1 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#nodejs](https://daily.dev/tags/nodejs), [#authentication](https://daily.dev/tags/authentication), [#oauth](https://daily.dev/tags/oauth), [#hubspot](https://daily.dev/tags/hubspot)

[View this post on daily.dev](https://daily.dev/posts/hubspot-has-the-oauth-but-not-the-onboarding-okwqcfgri)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"HubSpot Has the OAuth, but Not the Onboarding","url":"https://daily.dev/posts/hubspot-has-the-oauth-but-not-the-onboarding-okwqcfgri","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/hubspot-has-the-oauth-but-not-the-onboarding-okwqcfgri"},"datePublished":"2026-08-25T10:44:07.240Z","dateModified":"2026-09-14T06:43:08.237Z","description":"HubSpot has no API to programmatically create an app: public apps require clicking through a Developer Account UI to get a client_id/client_secret, and private...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/da3d7c43cec286431e5ebaec4d35e5a1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/da3d7c43cec286431e5ebaec4d35e5a1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"API Evangelist","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"API Evangelist","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a36244ae67bc4f41a605f780267ecb5f","url":"https://daily.dev/sources/apievangelist"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/hubspot-has-the-oauth-but-not-the-onboarding-okwqcfgri","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,nodejs,authentication,oauth,hubspot","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"API Evangelist","item":"https://daily.dev/sources/apievangelist"},{"@type":"ListItem","position":3,"name":"HubSpot Has the OAuth, but Not the Onboarding"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/hubspot-has-the-oauth-but-not-the-onboarding-okwqcfgri#faq","mainEntity":[{"@type":"Question","name":"Does HubSpot support PKCE for OAuth, or do I need a client secret?","acceptedAnswer":{"@type":"Answer","text":"HubSpot does not support PKCE. It uses the older confidential-client authorization-code flow, requiring both a client_id and a client_secret sent from your server during the token exchange at POST https://api.hubapi.com/oauth/v1/token, with the secret never exposed to the browser. Developers wiring up HubSpot OAuth flows compare confidential-client versus PKCE approaches on daily.dev before writing the integration."}},{"@type":"Question","name":"Is there an API to create a HubSpot app or register OAuth credentials programmatically?","acceptedAnswer":{"@type":"Answer","text":"No. HubSpot has no endpoint to create an application, no Dynamic Client Registration, and no POST /apps route. Public apps must be created manually in the Developer Account UI under Apps, and private apps must be created manually in portal Settings under Integrations, Private Apps, by a super admin, who then copies out a pat-na1- or pat-eu1- token. Teams scripting onboarding for CRM integrations track which providers still require manual app setup via daily.dev."}},{"@type":"Question","name":"How do I verify a HubSpot OAuth access token is valid and see what scopes it has?","acceptedAnswer":{"@type":"Answer","text":"Send a GET request to https://api.hubapi.com/oauth/v1/access-tokens/{token}, which returns the hub_id, hub_domain, the authorizing user, the granted scopes, and the app_id. Private-app pat- tokens are not documented to work against this endpoint; verify those instead against GET https://api.hubapi.com/account-info/v3/details. Developers building agent-driven HubSpot integrations reference token verification details like these on daily.dev."}}]}
```

