[URGENT] Marketplace App Cannot Call External APIs - hubspot.fetch() Not Available on Platform 2025.

TL;DR

Marketplace app UI extensions on platform 2025.2 cannot call external APIs. Despite following documentation that says to use hubspot.fetch(), this function is not available (hasFetch: false in props), and standard fetch() calls are intercepted by HubSpot’s proxy returning 400 errors.

Environment

  • Platform Version: 2025.2
  • App Distribution: marketplace
  • App ID: 22558790
  • Component: Card (UI Extension)
  • Location: crm.record.sidebar
  • Object Type: contacts

Problem Description

I’m building a marketplace app with a UI extension card that needs to call my external Vercel-hosted API. According to HubSpot documentation:

“With public apps, you must support your own REST-based backend and use the hubspot.fetch() method to fetch data.”

However, hubspot.fetch() is NOT available in the props provided to my UI extension.

Configuration

app-hsmeta.json:

{
 "uid": "revenue_growth_agent",
 "type": "app",
 "config": {
 "name": "Revenue Growth Agent",
 "distribution": "marketplace",
 "auth": {
 "type": "oauth"
 },
 "permittedUrls": {
 "fetch": [
 "https://api.hubapi.com",
 "https://www.revenuegrowthagent.com",
 "https://ai-sales-agent-v5.vercel.app",
 "https://ai-sales-agent-v5-c4v2xjatf-matt-oess-projects.vercel.app"
 ]
 }
 }
}

Card Component:

import { hubspot } from "@hubspot/ui-extensions";

hubspot.extend((props) => {
 console.log('Props:', {
 hasContext: !!props.context,
 hasFetch: !!props.fetch, // Shows: false
 hasActions: !!props.actions
 });
 return <MeetingPrepperCard {...props} />;
});

What Happens

Attempt 1: Using hubspot.fetch()

const response = await hubspot.fetch(API_URL, {...});

Result: hubspot.fetch is not a function (because hasFetch: false)

Attempt 2: Using standard fetch()

const response = await fetch(API_URL, {...});

Result: Request is intercepted by HubSpot’s internal proxy:

POST https://app-na2.hubspot.com/api/crm-extensibility/execution/internal/v3/proxy?appId=22558790&portalId=244192832
400 (Bad Request)

Error at: proxyRequest @ crm-extensibility.ts:60

Console Output

hubspot.extend() received props (v2025.2 PUBLIC APP): {
 keys: ['context', 'actions', 'runServerlessFunction'],
 hasContext: true,
 hasFetch: false, // hubspot.fetch() NOT available
 hasActions: true
}

What I’ve Verified

:white_check_mark: External API works perfectly (tested with curl/Postman) :white_check_mark: API has proper CORS headers configured :white_check_mark: URLs are correctly listed in permittedUrls.fetch :white_check_mark: App successfully deployed (Build #66) :white_check_mark: Card renders and displays correctly :white_check_mark: All other HubSpot API calls work fine

Documentation References

The “Navigating Serverless Functions on HubSpot’s New Developer Platform” blog post states:

“With public apps, you must support your own REST-based backend and use the hubspot.fetch() method to fetch data.”

But hubspot.fetch() is not provided in marketplace apps on platform 2025.2.

Questions

  1. Is hubspot.fetch() supposed to be available for marketplace apps on platform 2025.2?
  2. Why does the crm-extensibility proxy return 400 errors for URLs in permittedUrls?
  3. What is the correct way to call external APIs from marketplace app UI extensions?
  4. Is this a known platform limitation or bug?

Impact

This completely blocks marketplace app development for any app that needs to integrate with external services. We cannot:

  • Call our backend APIs
  • Integrate with third-party services
  • Complete workflows requiring external data

Additional Context

  • Card UI and all HubSpot-native features work perfectly
  • Props include runServerlessFunction, but serverless functions are deprecated in 2025.2
  • The external API endpoint is hosted on Vercel (same pattern as the example repos like hubspotdev/property-mapping-server)

Has anyone successfully called external APIs from a marketplace app UI extension on platform 2025.2? What am I missing?

Any help would be greatly appreciated! This has been blocking our development for days.

[Update] CONFIRMED ROOT CAUSE: Testing in a developer test account shows HubSpot’s CSP is set to ‘connect-src none’ despite permittedUrls.fetch being properly configured. This appears to be a platform bug in version 2025.2 where the permittedUrls configuration is not being applied to the Content Security Policy headers."

Hey, @mattoess :waving_hand: Thanks for your feedback. I’d report this in two places:

Best,

Jaycee

Hey, thanks for reporting this, is there any Update so far on a timeline for a fix?

Same issue here.

Portal ID: [portal]
App ID: 26129094
Region: EU
Platform Version: 2025.2

Key errors:
- CSP: “connect-src none” blocks ALL requests
- POST /api/crm-extensibility/execution/internal/v3/proxy → 403

All hubspot.fetch() calls fail, including relative paths to internal APIs.
The UI Extension is completely non-functional.
For information, the HubSpot Community is a public space. I have therefore edited your content for security & confidential reasons.

Hi @Catloff and thanks so much for flagging this!
For information, platform 2025.2 does NOT support serverless functions. The hubspot.fetch() API is the replacement for serverless functions in this version.

To make external API calls in Platform 2025.2:

- Add URLs to permittedUrls in your *-hsmeta.json configuration file:*
“permittedUrls”: {
“fetch”: [“https://api.example.com/”],
“img”: [],
“iframe”: []
}
- Use hubspot.fetch() in your React code to call your own backend service, which then handles external API calls.
- Host your own backend (Vercel, AWS, etc.) to handle the actual external API logic and authentication.

The CSP “connect-src none” error and 403 on the proxy endpoint suggest your permittedUrls configuration may be missing or the URLs aren’t properly allowlisted.

If you need serverless functions, you must use Platform 2025.1 instead.
Also, if you are still experiencing the bug, the best place to report this would be the HubSpot Developer Feedback Form.
Thanks and have a great day!
Bérangère
This post was created with the assistance of AI tools