Can I add custom headers to CRM cards in HubSpot?

Is it possible to add custom headers with a static value in the CRM cards? I need to pass ‘APP_NAME = HUBSPOT’ as a header in the data fetch URL. Can you anyone suggest any workaround for this.

For new implementations, use a UI Extension/App Card. hubspot.fetch() does not support arbitrary custom request headers (other than Authorization), so if the external API requires a header such as APP_NAME: HUBSPOT, route the request through your backend/proxy (or another supported server-side layer) and add the required header there.

You could write something like :

exports.main = async (context, sendResponse) => {
 const fetch = require('node-fetch');

 const url = 'https://actual-server.com/data'; // The actual server URL

 const response = await fetch(url, {
 headers: {
 'APP_NAME': 'HUBSPOT'
 }
 });

 const data = await response.json();

 sendResponse({
 statusCode: 200,
 body: JSON.stringify(data)
 });
};

I hope this helps.

Moderator Note: this post was reviewed for relevancy and optimized for clarity on September 30, 2026. Thank you for your contributions to the HubSpot Community!

Thanks @Danielle_J, for the workaround.