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.handleOAuthCallback('connector_type');
console.log(response);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/oauth2callback \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}EE - Connectors
Connector Oauth Callback
Handles the OAuth 2.0 callback from the authentication provider. Validates state, finalizes authentication, and stores credentials.
GET
/
ee
/
connectors
/
{connector_type}
/
oauth2callback
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.handleOAuthCallback('connector_type');
console.log(response);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/oauth2callback \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

