OverviewProductsPlatformsAPI ReferenceResources
Your Platform Apps

Check an OAuth app's keys

POSThttps://zernio.com/api/v1/connect/oauth-apps/{appId}/test

Checks the saved keys with the platform again and records the outcome in status and lastError.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

appIdstringRequired

Responses

Success· the request worked

Errors· the request failed

POST/v1/connect/oauth-apps/{appId}/test
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"      ]    },    "sharedWebhookUrl": "http://example.com",    "hasSlackSigningSecret": true,    "slackEvents": {      "requestUrl": "http://example.com",      "botEvents": [        "string"      ]    },    "createdAt": "2019-08-24T14:15:22Z"  }}
OpenAPI specification
Was this page helpful?