Skip to main content
POST
/
agents
/
{id}
/
knowledge-bases
Link Knowledge Base
curl --request POST \
  --url https://api.revring.ai/v1/agents/{id}/knowledge-bases \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "knowledgeBaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "knowledgeBaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "knowledgeBase": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "sourceCount": 123
    }
  }
}

Authorizations

x-api-key
string
header
required

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

Path Parameters

id
string<uuid>
required

Agent ID

Body

application/json
knowledgeBaseId
string<uuid>
required

ID of the knowledge base to link

Response

Knowledge base linked

data
object

Link between an agent and a knowledge base