Knowledge Bases
Returns a list of Knowledge Bases.
Totoy Api
Explanation
Knowledge Bases
- GETReturns a list of Knowledge Bases.
- POSTCreates a Knowledge Base.
- GETRetrieves a Knowledge Base.
- DELDeletes a Knowledge Base.
- PATCHModifies a Knowledge Base.
- POSTCreates a Knowledge Base Chat Response for the given Messages.
- GETReturns a list of Knowledge Base Sources.
- POSTAdds Sources to a Knowledge Base.
- GETRetrieves a Knowledge Base Source.
- DELRemoves a Knowledge Base Source from a Knowledge Base.
Sources
Projects
Organization
Knowledge Bases
Returns a list of Knowledge Bases.
GET
/
knowledge-bases
curl --request GET \
--url https://api.totoy.ai/v1/knowledge-bases \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"knowledge_base_id": "kb_feMfJbeqbAEj4u8K5HqmKpUbY",
"name": "Totoy Customer Support Assistant",
"instructions": "You are a customer support assistant for the customers of the company Totoy.",
"project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9",
"created_at": "2023-07-05T12:00:00Z",
"updated_at": "2023-07-05T12:00:00Z"
},
{
"knowledge_base_id": "kb_kfjd34sfgsd2gfskijuh23zgt",
"name": "Totoy Internal Assistant",
"instructions": "You are an internal assistant for the employees of the company Totoy.",
"project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9",
"created_at": "2023-07-05T12:34:13Z",
"updated_at": "2023-07-05T12:34:13Z"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
OK
A list of Knowledge Bases
.
The unique identifier for the Knowledge Base
.
Maximum length:
28
The name for the Knowledge Base
.
Maximum length:
256
The date-time of when the Knowledge Base
was created, in ISO 8601 format.
The date-time of when the Knowledge Base
was last modified, in ISO 8601 format.
The instructions for the Knowledge Base
.
Maximum length:
4096
The unique identifier for the Project
that the Knowledge Base
is assigned to.
Maximum length:
28
curl --request GET \
--url https://api.totoy.ai/v1/knowledge-bases \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"knowledge_base_id": "kb_feMfJbeqbAEj4u8K5HqmKpUbY",
"name": "Totoy Customer Support Assistant",
"instructions": "You are a customer support assistant for the customers of the company Totoy.",
"project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9",
"created_at": "2023-07-05T12:00:00Z",
"updated_at": "2023-07-05T12:00:00Z"
},
{
"knowledge_base_id": "kb_kfjd34sfgsd2gfskijuh23zgt",
"name": "Totoy Internal Assistant",
"instructions": "You are an internal assistant for the employees of the company Totoy.",
"project_id": "pj_avX7imfLaPcQnv5ckvGlOEBA9",
"created_at": "2023-07-05T12:34:13Z",
"updated_at": "2023-07-05T12:34:13Z"
}
]
}