curl --request PUT \
--url https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider} \
--header 'Content-Type: application/json' \
--data '
{
"config": {},
"credential": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({config: {}, credential: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider}"
payload = {
"config": {},
"credential": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){}Connect a knowledge source
Mirrors Notion pages, a Google Drive folder, Confluence spaces or a public website into the project’s brain, with the customer’s own credential. Needs a project or workspace admin; refused to connected agents (agent_not_permitted). The credential and settings are checked with the provider first (connector_credential_rejected when refused), the credential is encrypted and never returned, and the first sync runs. Pages become documents with source connector; a page that changes is re-indexed with its earlier text kept as a version, and a page that is deleted, trashed or no longer shared leaves the brain. A daily sync keeps it current. One connector per provider per project, up to 500 pages each.
curl --request PUT \
--url https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider} \
--header 'Content-Type: application/json' \
--data '
{
"config": {},
"credential": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({config: {}, credential: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider}"
payload = {
"config": {},
"credential": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){}Path Parameters
Body
The source's settings. notion: {} (every page shared with your own Notion integration). gdrive: {folder_id} (a folder id or its URL, shared with your own service account). confluence: {site, email, space_keys} (site is your-site.atlassian.net; email is the Atlassian account the API token belongs to; up to 20 space keys). web: {url} (an https start page; pages under the same origin and path are read, robots.txt is honoured).
Response
Successful operation
The response is of type object.