GET
/
knowledge
/
by-name
/
{knowledge_base_name}
import requests

url = "https://api.opper.ai/v2/knowledge/by-name/{knowledge_base_name}"

headers = {"Authorization": "Bearer <token>"}

response = requests.request("GET", url, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "embedding_model": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

knowledge_base_name
string
required

The name of the knowledge base to get

Response

200
application/json

Successful Response

The response is of type object.