Create Source
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/sources \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"source_type_id": "<string>",
"source_id": "<string>",
"domain": "<string>",
"additional_info": {},
"auto_sync_enabled": false
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/sources"
payload = {
"name": "<string>",
"source_type_id": "<string>",
"source_id": "<string>",
"domain": "<string>",
"additional_info": {},
"auto_sync_enabled": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
source_type_id: '<string>',
source_id: '<string>',
domain: '<string>',
additional_info: {},
auto_sync_enabled: false
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"object": "source",
"source_type": "<string>",
"source_id": "<string>",
"domain": "<string>",
"sync_status": "<string>",
"auto_sync_enabled": false,
"last_synced_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Sources
Create Source
Create a new knowledge source.
POST
/
api
/
v1
/
sources
Create Source
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/sources \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"source_type_id": "<string>",
"source_id": "<string>",
"domain": "<string>",
"additional_info": {},
"auto_sync_enabled": false
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/sources"
payload = {
"name": "<string>",
"source_type_id": "<string>",
"source_id": "<string>",
"domain": "<string>",
"additional_info": {},
"auto_sync_enabled": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
source_type_id: '<string>',
source_id: '<string>',
domain: '<string>',
additional_info: {},
auto_sync_enabled: false
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"object": "source",
"source_type": "<string>",
"source_id": "<string>",
"domain": "<string>",
"sync_status": "<string>",
"auto_sync_enabled": false,
"last_synced_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
Body
application/json
Response
201 - application/json
Created
Stripe-aligned source response.
