Get HubSpot OAuth connect URL
Initiates OAuth for a HubSpot portal. HubSpot is a connect-only CRM platform: the connected account does not post, read analytics or run ads.
One HubSpot portal can be connected per profile. Connecting a different portal to a profile that already has one redirects with error=hubspot_profile_has_portal.
Authentication
One of these
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
One of these
Short-lived connect token for API users during OAuth flows. Automatically generated when initiating OAuth without a browser session. Valid for 15 minutes. Connect tokens are scoped to the intended profile and platform and are accepted only by connection-flow endpoints that explicitly list this security scheme.
Query parameters
Your Zernio profile ID (get from /v1/profiles).
Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as myapp://callback; relative and unsafe URLs return 400.
Responses
Success· the request worked
Errors· the request failed
How it behaves
Flow
- Redirect the user to
authUrl. - After authorization, HubSpot returns the browser to Zernio's internal callback.
- Zernio redirects to
redirect_url(or the dashboard when omitted).
On success the redirect carries connected=hubspot, profileId, accountId and username (the portal domain). On failure it carries error, platform=hubspot and error_message.
Reconnecting the same portal and profile updates the stored connection in place and keeps its settings.
Requested scopes: oauth, crm.objects.contacts.read, crm.objects.contacts.write.
Connect a Shopify store with a custom-app Admin token
Token-paste alternative to the OAuth flow: connect a store using the Admin API access token of a custom app the merchant created in their own Shopify admin. The custom app is created under Settings → Apps and sales channels → Develop apps, with the `read_content`, `write_content`, `read_products` and `write_products` scopes. Use this when the one-click OAuth connect is unavailable or when your users prefer not to install a third-party app on their store. - The token is validated against the store before anything is saved. - Custom-app tokens do not expire. - Connecting the same profile to a store again replaces the stored token in place.
Admin-consent link for a Microsoft tenant
Returns the Microsoft Entra admin-consent link for the app, so a tenant administrator can grant mail or calendar access. Some Microsoft 365 tenants let no user grant mail or calendar access themselves. The API then answers 412 `admin_consent_required` with `details.adminConsentUrl`, a ready admin-consent link. This endpoint mints a fresh one (each is valid for one hour) and lets you choose `redirectUrl`. ### Flow 1. A tenant administrator opens the link and approves. 2. They are sent to `redirectUrl` with `adminConsent=granted&tenant=…` (or `adminConsent=denied&error=…`). 3. The grant is recorded on the account, and later requests succeed without a reconnect.