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.disconnect({ connector_type: 'connector_type' });
console.log(response);curl https://api.morphik.ai/ee/connectors/disconnect \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"connector_type": "connector_type"
}'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}EE - Connectors
Disconnect
Disconnect from a connector and remove credentials.
POST
/
ee
/
connectors
/
disconnect
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.disconnect({ connector_type: 'connector_type' });
console.log(response);curl https://api.morphik.ai/ee/connectors/disconnect \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"connector_type": "connector_type"
}'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I

