Hubspot API Endpoint for Files Uploaded by Form Stopped Working Suddenly

  Kiến thức lập trình

The Hubspot API endpoint for “Get a file uploaded via form” stopped working for me all of a sudden after a long time of usage.

It now returns the HTML body of a login page, not an API response. You can re-create the error even using the cURL example on their page which should return an error due to the truncated key at the very least.

curl -H "Authorization: Bearer CKKW1...o1hpIM" -L ""

This instead the long HTML…

<!DOCTYPE html><html><head><meta charSet="UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><link rel="preconnect" href="" crossorigin="anonymous" /><title>HubSpot Login and Sign in</title><meta name="description" content="Sign into your HubSpot account through HubSpot's login page. No login? Signup for a free account." /><link id="canonical-link" rel="canonical" /><script>document.getElementById("canonical-link").href = location.protocol + '//' + + location.pathname</script><script>window.I18N_RENDERED_LANG = "en";  ....

I assume they changed something about authentication? But this “Bearer” auth method still works for other legacy endpoints.

Anyone have any clues where to start?