Check an OAuth app's keys
Checks the saved keys with the platform again and records the outcome in status and lastError.
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.testOAuthApp({ path: { appId: 'app_abc123', },});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" }}Admin-consent link for a Microsoft tenant
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`. It returns the Microsoft Entra admin-consent link for the app. A tenant administrator opens it, approves, and is sent to `redirectUrl` with `adminConsent=granted&tenant=…` (or `adminConsent=denied&error=…`); the grant is recorded on the account and later requests succeed without a reconnect.
Save the welcome screen
Replaces the workspace's welcome screen settings: a field left out is cleared. Only the account owner or a full-access team member can save, and not with a profile-scoped API key. Parameters sent on a connect call still win over these values for that call.