English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/knowledge/{knowledgeId}/source/{sourceId}Retrieve a source with its full text or faqs, and its status. Use it to check a new source until it is ready or error.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizknowledge:read| Parameter | Type | Required | Description |
|---|---|---|---|
knowledgeId | string | Yes | ID of the knowledge, the _id from Get Knowledge. |
sourceId | string | Yes | ID of the source, the _id of an item in sources from Get One Knowledge. |
| Field | Type | Description |
|---|---|---|
_id | string | ID of the source. |
type | string | text, faq, url, or file. |
name | string | Name of the source. |
text | string | The text of a text source. Only in Get One Knowledge Source. |
faqs | array | The { question, answer } pairs of a faq source. |
url | string | The page of a url source. |
file | object | The name, mimetype, and size of a file source. file.url is emptied once the file has been read. |
status | string | process while it is being read, then ready or error. |
chars | number | Characters read from the source, 0 until it is ready. |
errorMessage | string | Why reading failed, when status is error, for example website answered with status 404 or no text found. |
processedAt | string | When it was last read. |
knowledgeId | string | ID of the knowledge it belongs to. |
curl -X GET "https://api.repliz.com/public/knowledge/680affa5ce12f2f72916f67e/source/680affa5ce12f2f72916f67f" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const knowledgeId = '680affa5ce12f2f72916f67e';
const sourceId = '680affa5ce12f2f72916f67f';
const response = await axios.get(`https://api.repliz.com/public/knowledge/${knowledgeId}/source/${sourceId}`, {
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
});
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const knowledgeId = '680affa5ce12f2f72916f67e';
const sourceId = '680affa5ce12f2f72916f67f';
const response = await fetch(`https://api.repliz.com/public/knowledge/${knowledgeId}/source/${sourceId}`, {
headers: {
Authorization: `Basic ${credentials}`,
},
});
const data = await response.json();
console.log(data);{
"_id": "680affa5ce12f2f72916f67f",
"type": "text",
"name": "Shipping",
"status": "ready",
"chars": 62,
"processedAt": "2026-11-14T03:05:00.000Z",
"knowledgeId": "680affa5ce12f2f72916f67e",
"userId": "680affa5ce12f2f72916f600",
"createdAt": "2026-11-14T03:04:00.000Z",
"updatedAt": "2026-11-14T03:05:00.000Z",
"__v": 0,
"text": "We ship every weekday. Orders before 2 PM go out the same day."
}{
"code": 404,
"message": "knowledge not found"
}
{
"code": 404,
"message": "knowledge source not found"
}{
"code": 401,
"message": "unauthorized"
}