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.finalizeAuth({
auth_response_data: { foo: 'bar' },
connector_type: 'connector_type',
});
console.log(response);curl https://api.morphik.ai/ee/connectors/finalize-auth \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"auth_response_data": {
"foo": "bar"
},
"connector_type": "connector_type"
}'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}EE - Connectors
Finalize Auth
Finalize the OAuth flow and exchange the code for a token.
POST
/
ee
/
connectors
/
finalize-auth
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.finalizeAuth({
auth_response_data: { foo: 'bar' },
connector_type: 'connector_type',
});
console.log(response);curl https://api.morphik.ai/ee/connectors/finalize-auth \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"auth_response_data": {
"foo": "bar"
},
"connector_type": "connector_type"
}'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

