Max redirect URIs in the Oauth Application

Hi all,

We hit what looks like an undocumented limit on the number of redirectUrls an app can have on the developer platform. We’d like to confirm it and learn whether it can be raised.

Setup

  • Developer projects (new platform), with the app defined in app/app-hsmeta.json
  • auth.type: oauth, distribution: marketplace
  • Deployed with hs project upload

What happens

  • With 20 redirectUrls, the build and deploy succeed.

  • With 21 redirectUrls, the build succeeds but the deploy fails with only this message:

    There was a problem creating or updating the app. Please reach out to the app developer, or contact HubSpot support.

  • The CLI debug log has no further detail. The upload is accepted and the build is created, so the failure happens at the deploy step.

What we checked

  • All URLs are HTTPS and unique.
  • The app configuration reference says only that redirectUrls needs at least one entry. It states no maximum.
  • We couldn’t find a documented limit in the OAuth docs, the legacy public apps docs, or the community.

Questions

  1. Is there a maximum number of redirect URLs per app? If so, is it 20, and can it be documented?
  2. Can the deploy return a specific validation error instead of the generic “problem creating or updating the app” message?
  3. Is there a way to raise the limit for marketplace apps that serve multiple regions or instances? If not, is there a recommended alternative, such as a single redirect endpoint that routes by state?

Thanks!

Hey @a.malysz,

Welcome to the Community and thanks for including the steps you’ve taken!

The App configuration reference only lists a minimum for redirectUrls, so a cap isn’t documented there. If you’d like to get this added to the dev docs, I’d suggest scrolling down to the bottom of the page in question and submitting your feedback there. You can also submit the developer feedback here: HubSpot Developer Feedback Form .

Thanks in advance!

I’ll also reach out to our internal team to see if we can confirm the behavior for you here. I’ll reach back out on this thread once I have any updates for you! :slight_smile:

Sam, Community Manager

Hi @a.malysz, I can’t confirm the cap officially, but your test (20 deploys, 21 fails with the generic error) is pretty strong evidence there’s a limit at 20 that the docs don’t mention yet.

For your third question, I’d stop adding redirect URLs and use one redirect endpoint. Register a single HTTPS callback, put the region or instance in the OAuth state parameter (signed or stored server-side, so it can’t be tampered with), and have that endpoint exchange the code and then forward the user to the right regional app. It’s the standard way to handle multi-tenant OAuth, it keeps your app config stable, and you never have to redeploy the app to add an environment.

I’d still send the generic deploy error through developer feedback so it gets a specific validation message.