JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ee.connectors.getAuthStatus('connector_type');
console.log(response.is_authenticated);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/auth_status \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"is_authenticated": true,
"message": "<string>",
"auth_url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}EE - Connectors
Get Auth Status For Connector
Checks the current authentication status for the given connector type.
GET
/
ee
/
connectors
/
{connector_type}
/
auth_status
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ee.connectors.getAuthStatus('connector_type');
console.log(response.is_authenticated);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/auth_status \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"is_authenticated": true,
"message": "<string>",
"auth_url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

