Skip to content

Get Knowledge ​

GEThttps://api.repliz.com/public/knowledge

Retrieve every knowledge of the account owner, newest first. A knowledge is information about your business, such as products, prices, shipping, or answers to common questions, that the AI reads before it writes a reply. Set it up once and put its _id in knowledgeIds of any AI reply, on any account, content automation, or template. See Limit and Knowledge.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): knowledge:read
  • Access Tier: Standard+

Knowledge Object ​

FieldTypeDescription
_idstringID of the knowledge, used in knowledgeIds.
namestringName of the knowledge.
descriptionstringWhat it is about, "" when not set.
charsnumberCharacters of its sources that are ready.
sourceCountnumberHow many sources it has, in any status.
createdAtstringWhen it was created.
updatedAtstringWhen it or one of its sources last changed.

An account can have up to 100 knowledge, and all of them together hold up to 5,000,000 characters.

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/knowledge" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const response = await axios.get('https://api.repliz.com/public/knowledge', {
  auth: {
    username: 'YOUR_ACCESS_KEY',
    password: 'YOUR_SECRET_KEY',
  },
});

console.log(response.data);
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');

const response = await fetch('https://api.repliz.com/public/knowledge', {
  headers: {
    Authorization: `Basic ${credentials}`,
  },
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "docs": [
    {
      "_id": "680affa5ce12f2f72916f67e",
      "name": "Product catalog",
      "description": "Prices, stock and shipping",
      "chars": 18250,
      "sourceCount": 3,
      "userId": "680affa5ce12f2f72916f600",
      "createdAt": "2026-11-14T03:00:00.000Z",
      "updatedAt": "2026-11-14T03:05:00.000Z",
      "__v": 0
    }
  ]
}
json
{
  "code": 401,
  "message": "unauthorized"
}