Skip to main content
POST
/
knowledge-bases
/
{id}
/
sources
Add Source
curl --request POST \
  --url https://api.revring.ai/v1/knowledge-bases/{id}/sources \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "sourceType": "text",
  "displayName": "<string>",
  "content": "<string>"
}
'
{}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Path Parameters

id
string<uuid>
required

Knowledge base ID

Body

Create a text source

sourceType
enum<string>
required
Available options:
text
displayName
string
required

Display name

Maximum string length: 256
content
string
required

Text content

Maximum string length: 100000

Response

Source added

data
object

A source within a knowledge base