New OAuth v3 API Endpoints and Standardized Error Responses

We are enhancing the security and compliance standards of our Developer Platform with the release of OAuth v3 API endpoints and updated error response formatting.

What’s Changing?

New Oauth v3 Token Endpoints

To align with OAuth 2.0 security best practices, we have introduced two new v3 OAuth API endpoints designed to keep sensitive credentials out of server logs and browser histories.

  • POST /v3/token: Handles authorization code and refresh token requests.
  • POST /v3/introspect: Performs token introspection, replacing the separate v1 path-based token metadata for access tokens and refresh tokens.

Standardized OAuth Error Responses

We are updating our OAuth error responses to comply with RFC 6749. This ensures better compatibility with third-party OAuth libraries and simplifies troubleshooting.

What’s changed? Previously, responses included HubSpot-specific fields (status and message). Responses now include the standard error and error_description fields.

Example Response:

// Example Response
{
 "error": "invalid_grant",
 "error_description": "refresh token is invalid, expired or revoked",
 "status": "BAD_REFRESH_TOKEN",
 "message": "refresh token is invalid, expired or revoked"
}

Existing fields (status, message) remain for backward compatibility, so existing error handling will continue to function as is.

Important Note: These responses will be reflected in both the v1 and v3 OAuth API endpoints.

What does this mean for developers?

  • Adopt v3: Start targeting /v3/token and /v3/introspect for all new developments.
  • Update Request Logic: Ensure your application sends credentials in the request body, never in the URL.
  • Error Handling: You can now update your client-side error handling to parse standard OAuth error fields.

Important note: There are no changes to the scope, app settings, or the OAuth install process.

Sunset Notice for v1 OAuth API Endpoints

The v1 OAuth API endpoints will remain operational for now, but they are officially deprecated. We will provide a detailed sunset timeline later in Q1 2026. Please subscribe to the HubSpot Developer Changelog to ensure you receive this update.

When is it happening?

The v3 OAuth API endpoints are now available for use, and the error standardization is now reflected in both the v3 and v1 OAuth API endpoints.

Questions or comments? Join us below in the developer forums for a peer-to-peer discussion.

Hi HubSpot team, thanks for the update. I’d like to clarify one point in “Apps must use OAuth v3 endpoints”.

The post says all new app listings, certification submissions and recertifications “must use the new OAuth v3 endpoints”, and lists these date-based paths:

  • POST /oauth/2026-03/token
  • POST /oauth/2026-03/token/introspect
  • POST /oauth/2026-03/token/revoke

Other official pages use different paths for what they call the v3 endpoints:

  • The Jan 27, 2026 changelog names POST /v3/token and POST /v3/introspect.
  • The API guide at /docs/api-reference/auth-oauth-v3/guide uses POST /oauth/v3/token and POST /oauth/v3/token/introspect.
  • The latest API guide uses POST /oauth/2026-09/token.

I checked with invalid credentials: /oauth/v3/token, /oauth/2026-03/token and /oauth/2026-09/token all exist and return the same 400 invalid_request, while /v3/token returns 404.

Questions:

  1. Does the requirement accept /oauth/v3/token (and /oauth/v3/token/introspect), or does the review expect the date-based paths such as /oauth/2026-03/token?
  2. If date-based paths are expected, should we use /oauth/2026-03/ as written in the post, or the latest version (currently /oauth/2026-09/)?
  3. Is there a published sunset date for /oauth/v1/token, and for /oauth/v3/… once date-based versions replace it?
  4. Are there any request or response differences between /oauth/v3/token and /oauth/2026-03/token that we should know about (for example, hub_id in the token response, or the field names in the introspect request)?

Thanks!

Hi @lining and welcome to the HubSpot Community! We are thrilled you’re here! :glowing_star:

Thanks for taking the time to flag this and for sharing your testing results!

I’ve raised these questions with our internal Team to get clarification on this.

I’ll follow up here once I have more information to share.

Thanks again for bringing this to our attention!

Bérangère, HubSpot Community Manager

@hseligson,

I checked with claude and the dev mcp server and there might be some discrepecy with the endpoints - can you give your thoughts?

Paths to use: POST /oauth/2026-09/token, /oauth/2026-09/token/introspect and /oauth/2026-09/token/revoke. The post says /v3/…, but I checked HubSpot’s current docs
today and they show these date-based paths. Credentials go in the request body, not the URL.

  • Path confusion: the /oauth/v3/… and /oauth/2026-03/… forms also work, but the bare /v3/token path from the announcement returns a 404. /oauth/v1 is deprecated, and
    HubSpot still hasn’t given a shut-off date.

Hi @lining and @dsmarion, I hope that you are well!

To get back to you on this, if you haven’t made any updates yet and wanted to be as forward-looking as possible, we’d recommend that you move to /2026-09.

I hope this helps! And please let us know if you have any additional questions!

Bérangère, HubSpot Community Manager

1 Like