Test a source connector's connection
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/sources/{source_id}/test \
--cookie hookie_session=const options = {method: 'POST', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/sources/{source_id}/test', 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}/sources/{source_id}/test"
headers = {"cookie": "hookie_session="}
response = requests.post(url, headers=headers)
print(response.text){
"ok": true,
"error": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"ok": false,
"error": "<string>"
}Sources
Test a source connector's connection
POST
/
admin
/
api
/
projects
/
{project_id}
/
sources
/
{source_id}
/
test
Test a source connector's connection
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/sources/{source_id}/test \
--cookie hookie_session=const options = {method: 'POST', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/sources/{source_id}/test', 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}/sources/{source_id}/test"
headers = {"cookie": "hookie_session="}
response = requests.post(url, headers=headers)
print(response.text){
"ok": true,
"error": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"ok": false,
"error": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.