Create Document
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/documents \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"content": "<string>",
"source_id": "<string>",
"parent_id": "<string>",
"page_id": "<string>",
"position": 123,
"status": "<string>",
"default_language": "en"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents"
payload = {
"title": "<string>",
"content": "<string>",
"source_id": "<string>",
"parent_id": "<string>",
"page_id": "<string>",
"position": 123,
"status": "<string>",
"default_language": "en"
}
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({
title: '<string>',
content: '<string>',
source_id: '<string>',
parent_id: '<string>',
page_id: '<string>',
position: 123,
status: '<string>',
default_language: 'en'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"title": "<string>",
"object": "document",
"page_id": "<string>",
"content": "<string>",
"override_content": "<string>",
"related_questions": "<string>",
"status": "<string>",
"public_display": true,
"default_language": "en",
"source_id": "<string>",
"source_name": "<string>",
"parent_id": "<string>",
"position": 0,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Documents
Create Document
Create a new knowledge document.
POST
/
api
/
v1
/
documents
Create Document
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/documents \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"content": "<string>",
"source_id": "<string>",
"parent_id": "<string>",
"page_id": "<string>",
"position": 123,
"status": "<string>",
"default_language": "en"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/documents"
payload = {
"title": "<string>",
"content": "<string>",
"source_id": "<string>",
"parent_id": "<string>",
"page_id": "<string>",
"position": 123,
"status": "<string>",
"default_language": "en"
}
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({
title: '<string>',
content: '<string>',
source_id: '<string>',
parent_id: '<string>',
page_id: '<string>',
position: 123,
status: '<string>',
default_language: 'en'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"title": "<string>",
"object": "document",
"page_id": "<string>",
"content": "<string>",
"override_content": "<string>",
"related_questions": "<string>",
"status": "<string>",
"public_display": true,
"default_language": "en",
"source_id": "<string>",
"source_name": "<string>",
"parent_id": "<string>",
"position": 0,
"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 document response.
