Getting 403 from cloudflare while trying to fetch utm analytics reports. The scopes are present
We are integrations provider, not sure of the reason for the block in this case.
HubSpot denied access (403) while
utm_analytics_monthly_report — the connected app is missing a required OAuth scope.
Response: <!DOCTYPE html> ... <title>Attention Required! | Cloudflare</title> ...
Sorry, you have been blocked / You are unable to access hubapi.com
Cloudflare Ray ID: a302d4ff6f27ff0d / Your IP: 44.241.236.118 ...
Hi @HDevelopers and welcome back to the HubSpot Community!
Thanks for reaching out!
The endpoint you’re using requires the business-intelligence scope, so it’s worth double-checking that specific scope is granted, but the 403 itself is coming from Cloudflare’s edge, not HubSpot’s app, since the response body is Cloudflare’s own “Attention Required / Sorry, you have been blocked” page rather than a HubSpot JSON error. That means the request is being blocked before it reaches HubSpot’s servers, likely due to IP/traffic pattern flagging at Cloudflare, not your OAuth scopes.
Here is an article on the topic: Analytics API breakdown by time period
I’ll reach out via DM to look into this further.
Also, I’d love to hear from our Top experts: Hi @Anton, @zach_threadint and @SteveHTM have you already encountered something similar, please? Do you have any insights to share?
Thanks so much and have a wonderful day!
Bérangère
Hi @HDevelopers
Could you please try disconnecting and reconnecting the integration? When prompted, ensure you approve all requested permissions. This should resolve the issue.
Thanks!