Product
Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing
Developers

GET STARTED

API DirectoryBrowse 10,000+ APIs Ready For AI Agent IntegrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI Readiness using our scorecardArazzo UIVisualize Arazzo Workflows As Interactive DocumentationArazzo EditorBuild And Edit Multi-Step API Workflows Visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
Resources
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
Resources
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

AICPA SOC for Service Organizations logoAICPA SOC for Service Organizations logo

SOC 2® Type 1 report

Audited by Prescient Assurance

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
2 Grattan Court East, Dublin, D02 VX86, Ireland
Switch to light modeSwitch to dark mode
APIs / Identity Auth / Hubapi / HubSpot OAuth API
HubSpot OAuth API logo

HubSpot OAuth API

Browse all Hubapi APIs
18
AI ReadinessNon-Ready (F)18/100
See full scorecard
Agent-ready OpenAPI document · curated by JenticIdentity AuthAuthenticationoauth24 EndpointsREST

Know of an official OpenAPI document? Contribute it →

For Agents

Exchange, inspect, and revoke HubSpot OAuth access and refresh tokens for installed apps.

Use for: I need to exchange an authorization code for HubSpot access and refresh tokens, Refresh a HubSpot access token using a refresh token, Inspect a HubSpot access token to see its scopes and account, Revoke a HubSpot refresh token when a user uninstalls

Not supported: Does not authenticate end users into the HubSpot UI, manage SSO, or call CRM data - use only for HubSpot OAuth token exchange, inspection, and revocation.

Jentic publishes the only available OpenAPI specification for HubSpot OAuth API, keeping it validated and agent-ready. This API exposes the token endpoints behind HubSpot's OAuth 2.0 flow - exchanging an authorization code or refresh token for an access token, inspecting an existing access or refresh token, and revoking a refresh token. It is the integration surface for any app that connects HubSpot accounts via OAuth instead of static keys.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the HubSpot OAuth API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the HubSpot OAuth API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fhubapi.com%2Fhubspot-auth-api" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fhubapi.com%2Fhubspot-auth-api" | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with HubSpot OAuth API.

Exchange an authorization code or refresh token for an access token via POST /oauth/v1/token

Inspect an access token's scopes, hub ID, and user via GET /oauth/v1/access-tokens/{token}

Look up a refresh token's account and expiry via GET /oauth/v1/refresh-tokens/{token}

Revoke a refresh token via DELETE /oauth/v1/refresh-tokens/{token}

Build the install + refresh + revoke lifecycle for HubSpot apps

Use Cases

Patterns agents use HubSpot OAuth API for, with concrete tasks.

★ Complete the HubSpot App Install OAuth Flow

After a user authorises a HubSpot app, exchange the authorization code at POST /oauth/v1/token to receive an access token and refresh token bound to their HubSpot account. The refresh token can then be stored to refresh access tokens on demand without re-prompting the user.

POST to /oauth/v1/token with grant_type=authorization_code, the client ID, secret, redirect URI, and code; store the returned refresh_token securely.

Refresh Expired Access Tokens

HubSpot access tokens are short-lived. Use POST /oauth/v1/token with grant_type=refresh_token to mint a fresh access token from the stored refresh token, keeping the integration online without prompting the user again.

POST to /oauth/v1/token with grant_type=refresh_token and the stored refresh_token to mint a new access_token.

Revoke Tokens on Uninstall

When a user uninstalls the app or revokes consent, call DELETE /oauth/v1/refresh-tokens/{token} to invalidate the refresh token cleanly. This prevents the integration from continuing to mint access tokens after consent has been withdrawn.

DELETE /oauth/v1/refresh-tokens/{token} as part of the uninstall webhook handler so the token is invalidated immediately.

AI Agent OAuth Automation via Jentic

An AI agent provisioning HubSpot integrations on a customer's behalf can use Jentic to drive the token exchange and refresh endpoints, keeping the OAuth client secret in your Jentic One instance and out of agent context.

Search Jentic for exchange a hubspot authorization code, load POST /oauth/v1/token, and execute with the stored client credentials and the user's code.

Key Endpoints

4 endpoints — jentic publishes the only available openapi specification for hubspot oauth api, keeping it validated and agent-ready.

METHOD

PATH

DESCRIPTION

POST

/oauth/v1/token

Exchange an authorization code or refresh token for an access token

GET

/oauth/v1/access-tokens/{token}

Inspect an access token

GET

/oauth/v1/refresh-tokens/{token}

Inspect a refresh token

DELETE

/oauth/v1/refresh-tokens/{token}

Revoke a refresh token

POST

/oauth/v1/token

Exchange an authorization code or refresh token for an access token

GET

/oauth/v1/access-tokens/{token}

Inspect an access token

GET

/oauth/v1/refresh-tokens/{token}

Inspect a refresh token

DELETE

/oauth/v1/refresh-tokens/{token}

Revoke a refresh token

Jentic AI Readiness Score

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- Non-Ready (F)
18/100
73
Foundational Compliance
64
Developer Experience & Jentic Compatibility
5
AI-Readiness & Agent Experience
94
Agent Usability
100
Security
100
AI Discoverability
Powered by JenticScoring Framework 1.0.0 | Scoring Engine 0.4.0
Show dimension breakdown
73

Foundational Compliance

Base layer of spec validity and structural soundness.

Grade: A-Signals: 4
94%

Lint Results

Aggregated quality score from linter diagnostics, weighted by severity.

100%

Resolution Completeness

Percentage of `$ref` references that resolve successfully.

0%

Specification Validity

Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).

100%

Structural Integrity

Structural correctness score based on schema issues using logarithmic dampening.

64

Developer Experience & Jentic Compatibility

Clarity, completeness, and ingestion readiness for developers and tooling.

Grade: BSignals: 4
7%

Example Density

How richly the API is illustrated with examples.

100%

Example Validity

Percentage of examples that conform to their schemas.

50%

Response Coverage

Percentage of operations with complete response definitions (success, client error, server error).

100%

Tooling Readiness

Health of API ingestion, bundling, and resolution within Jentic pipelines.

5

AI-Readiness & Agent Experience

Semantic breadth, depth, and agent comprehension for AI systems.

Grade: FSignals: 4
20%

Description Coverage

Coverage of descriptions across API elements.

0%

Error Standardization

Coverage of RFC 9457 Problem Details for error responses.

0%

OperationId Quality

Coverage, uniqueness, and casing consistency of operationIds for AI inference.

0%

Summary Coverage

Coverage of summaries across operations/tags/info.

94

Agent Usability

Functional utility, complexity comfort, and AI orchestration readiness.

Grade: A+Signals: 1
94%

Complexity Comfort

Agent comfort level based on API operational and structural complexity.

100

Security

Trust, risk posture, and security compliance.

Grade: A+Signals: 1
100%

Authentication Strength

Average quality of security schemes based on authentication method strength (weakest link for OAuth2).

100

AI Discoverability

Findability, semantic richness, and reasoning readiness.

Grade: A+Signals: 1
100%

Descriptive Richness

Clarity and depth of descriptions across API elements.

View full reportHow the score is calculatedMore about the dimensions

Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

Score your own APIScoring CLI agent skill
npx @jentic/api-scorecard-cli score <openapi-url>

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Wiring the HubSpot OAuth API by hand means running the token exchange yourself, holding the client id and secret, and tracking access and refresh tokens across the api.hubapi.com host. Through Jentic you install once, import the HubSpot OAuth API from the API Directory, store the client credentials once, and your agent calls it.

Permission scoping

This API covers token exchange, inspection, and revocation, so limit the agent to the operations it needs, such as exchanging an authorization code or inspecting an access token. You choose that set, so revoking a refresh token with DELETE /oauth/v1/refresh-tokens/{token} is not included unless you add it.

Credential isolation

Your HubSpot OAuth client id and secret are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.

Intent-based discovery

Agents search Jentic by intent such as 'exchange a hubspot authorization code' or 'refresh a hubspot access token', and Jentic returns the matching /oauth/v1 operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Complementary

HubSpot CRM API

→

The CRM API that the freshly-minted access tokens authorise calls against

Pair after the OAuth flow completes - use the access token to call CRM operations on behalf of the connected user.

Alternative

Auth0

→

Identity provider that can broker HubSpot OAuth alongside many other connections

Choose Auth0 when the application needs to manage many providers' OAuth flows behind a single identity layer.

Alternative

Okta

→

Enterprise IdP that integrates HubSpot logins via SAML or OAuth

Choose Okta when enterprise SSO and lifecycle workflows around HubSpot accounts matter more than direct OAuth handling.

FAQs

Specific to using HubSpot OAuth API through Jentic.

Why is there no official OpenAPI spec for HubSpot OAuth?

HubSpot does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call HubSpot OAuth via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

What authentication does the HubSpot OAuth API itself require?

POST /oauth/v1/token uses the OAuth client_id and client_secret of your HubSpot app rather than a bearer token. The token-inspection and revocation endpoints take the token in the URL path and are protected by knowledge of the token itself. Through Jentic, the client secret is held in the encrypted vault.

Can I refresh a HubSpot access token without prompting the user?

Yes. POST to /oauth/v1/token with grant_type=refresh_token and the stored refresh_token. HubSpot returns a new short-lived access_token without requiring a new user consent.

What are the rate limits for the HubSpot OAuth API?

OAuth endpoints share HubSpot's standard rate limits but are typically called only on install, refresh, and revoke - well below per-hapikey ceilings. Cache access tokens until they near expiry to keep the call rate low.

How do I revoke a refresh token through Jentic?

Search Jentic for revoke a hubspot refresh token, load DELETE /oauth/v1/refresh-tokens/{token}, and execute with the token to invalidate. Jentic injects the OAuth client credentials from the vault.

How can I tell which HubSpot account a token belongs to?

GET /oauth/v1/access-tokens/{token} returns the hub ID, user, and scopes attached to the access token. GET /oauth/v1/refresh-tokens/{token} returns equivalent metadata for refresh tokens.

Can I limit what my agent is allowed to do with the HubSpot OAuth API?

Yes. Because you run Jentic One yourself, you decide which of this API's operations your agent may call, so you can grant only token exchange via POST /oauth/v1/token and inspection via GET /oauth/v1/access-tokens/{token} while withholding others. Revoking a refresh token with DELETE /oauth/v1/refresh-tokens/{token} is not available to the agent unless you add it to the allowed set. Your HubSpot OAuth client id and secret stay stored by your own instance and are injected only at execution time, never in the agent's context.

GET STARTED

Start building with HubSpot OAuth API

Explore with Jentic One
View OpenAPI Document