Partner apps that Hardal registers can now read your analytics through OAuth. When a partner requests access, you see the Hardal consent screen, choose which workspaces they can read, and confirm. The partner receives a scoped token and can call the public Reports API. If you want to end the connection, open Connected Apps and click Disconnect.
This post covers what changed, how the flow works for customers, and how partners use the token they receive.
What changed
The Hardal OAuth server now accepts Reports API access requests from preregistered partner apps. These are OAuth clients that Hardal has registered on behalf of partner companies, such as analytics dashboards, data connectors or workflow tools that need to read your Hardal data.
Before this change, there were two ways to get data out of Hardal: create an API key on the Connections page, or connect an MCP client like Claude or ChatGPT through Hardal MCP. API keys require sharing a secret. MCP clients have shorter token lifetimes and cannot call the Reports API directly.
Preregistered partners get a third option. They use the same OAuth consent screen you already see when connecting Claude or ChatGPT, but their token grants Reports API access instead of MCP-only access.
How it works for customers
When a partner app wants to read your analytics, it redirects you to the Hardal OAuth consent screen. The screen shows the partner's name and which permissions it is requesting.
Choosing workspaces: You pick which workspaces (tenants) the partner can access. If you have three workspaces and only want to share data from one, select that one. The partner's token is scoped to your selection.
Confirming: Click Approve. Hardal issues an access token and refresh token to the partner. The partner can now call Reports API endpoints for the workspaces you selected.
What the partner can read: The same aggregate data available through the /v1 Reports API. Overview metrics, breakdowns by dimension, period comparisons, event counts and funnel data. No visitor-level records. No write access.
Disconnecting: Open Beacon, go to the Connections page, find the partner under Connected Apps, and click Disconnect. The partner's tokens are revoked immediately. If the partner tries to use a revoked token, the request fails.
Token lifetimes
Partner connections are designed to stay signed in. Refresh tokens expire after 90 days without use and after one year at most. As long as the partner refreshes the token within 90 days, the connection continues.
If a partner tries to reuse a refresh token that has already been exchanged, the entire connection is revoked. This prevents token replay attacks.
For comparison, dynamically registered clients (Claude, ChatGPT and other MCP clients) have shorter lifetimes: 7-day idle expiry and 30-day maximum. Those clients also cannot call the Reports API directly. They use the MCP tools instead.
How it works for partners
Partners connect using OAuth 2.1 with PKCE. No client secret is required, which makes browser-based and mobile apps possible.
The flow:
- The partner redirects the user to
GET /oauth/authorizewith the Reports API resource in the request. - The user signs in to Hardal, selects workspaces, and approves.
- Hardal redirects back with an authorization code.
- The partner exchanges the code at
POST /oauth/tokenfor an access token and refresh token. - The partner calls Reports API endpoints at
api.usehardal.com/v1with the access token in the Authorization header. - When the access token expires, the partner exchanges the refresh token for a new one.
The access token carries a reports:read scope tied to the workspaces the user selected. Requests for other workspaces return an error.
Partners that want to integrate should contact Hardal to discuss registration. Partner registration is not self-serve.
Why this matters
Sharing analytics with a partner used to mean one of two things: hand over an API key, or export data manually.
Handing over an API key works, but keys are hard to scope and hard to revoke. If you give a partner a key and later want to end the relationship, you have to rotate the key, which affects everything else using it.
OAuth solves that. The partner gets its own token, scoped to the workspaces you chose. Disconnecting the partner revokes only that token. Your API keys and other integrations continue to work.
For partners, OAuth is simpler than asking customers to create and share API keys. The consent screen handles authentication and authorization. The partner never sees the customer's password or touches their account settings.
Security details
Partner apps are public OAuth clients. They use PKCE (Proof Key for Code Exchange) instead of a client secret to protect the authorization code exchange. This is the same pattern Claude and ChatGPT use to connect.
Tokens are scoped to the workspaces the user selected. If a user selected one workspace out of three, the token cannot read the other two.
Refresh token reuse triggers revocation. If the same refresh token is presented twice, all tokens for that connection are revoked. The partner must reconnect from scratch. This prevents attackers who intercept a refresh token from maintaining access after the legitimate partner has already used it.
What comes next
Partner registration is handled by Hardal. If you are building a tool that would benefit from reading customer analytics with their consent, contact us to discuss becoming a registered partner.
For customers, there is nothing to set up. When a partner you work with integrates with Hardal, you will see the consent screen the first time they request access. Until then, your existing API keys and MCP connections work exactly as before.
Learn more
For background on how the Reports API and MCP work together, see Hardal MCP and the Reports API. The API key creation flow and the Connections page are covered in A Simpler Way to Manage Sources. For a broader look at MCP servers in marketing analytics, see MCP Servers for Marketing Analytics.
Hardal is the first-party data and agentic analytics platform. We help enterprises send accurate signals to their ad platforms and grow revenue, using server-side data from their websites, mobile apps and AI agents.