Get an OAuth app
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.getOAuthApp();console.log(data);{ "app": { "id": "string", "platform": "string", "label": "string", "clientId": "string", "scopeAreas": [ "posting" ], "status": "ok", "lastCheckedAt": "2019-08-24T14:15:22Z", "lastError": "string", "accountCount": 0, "redirectUri": "http://example.com", "webhook": { "callbackUrl": "http://example.com", "verifyToken": "string", "object": "page", "fields": [ "string" ] }, "createdAt": "2019-08-24T14:15:22Z" }}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`. Redirect the user to `authUrl`; after authorization, HubSpot returns the browser to Zernio's internal callback and 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`.
Get Webflow OAuth URL
Returns Webflow's consent URL for the Zernio Webflow app. The user picks exactly one site there; Webflow then returns the browser to Zernio's internal callback, which connects that site and redirects to `redirect_url` (or the dashboard when omitted). Picking several sites connects none and redirects with `error=webflow_pick_one_site`. Connecting a site already connected with a site token upgrades the same account. Only an OAuth connection can install tracking tags on the site (`installTrackingTagOnStore`); blogs work with either. The token does not expire.