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.auth.getInitiateAuthURL('connector_type');
console.log(response);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/auth/initiate_url \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"auth_type": "<string>",
"required_fields": [
{
"name": "<string>",
"label": "<string>",
"description": "<string>",
"type": "<string>",
"required": true,
"options": [
{
"value": "<string>",
"label": "<string>"
}
]
}
],
"instructions": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}EE - Connectors
Get Initiate Auth Url
Return the provider’s authorization_url for the given connector.
The method mirrors the logic of the /auth/initiate endpoint but sends a
JSON payload instead of a redirect so that browsers can stay on the same
origin until they intentionally navigate away.
For OAuth-based connectors, this returns authorization_url. For manual credential connectors, this returns the credential form specification.
GET
/
ee
/
connectors
/
{connector_type}
/
auth
/
initiate_url
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.auth.getInitiateAuthURL('connector_type');
console.log(response);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/auth/initiate_url \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"auth_type": "<string>",
"required_fields": [
{
"name": "<string>",
"label": "<string>",
"description": "<string>",
"type": "<string>",
"required": true,
"options": [
{
"value": "<string>",
"label": "<string>"
}
]
}
],
"instructions": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Path Parameters
Query Parameters
Was this page helpful?

