List Knowledge Files
curl --request GET \
--url https://api.bey.dev/v1/knowledge-files \
--header 'x-api-key: <api-key>'import requests
url = "https://api.bey.dev/v1/knowledge-files"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.bey.dev/v1/knowledge-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "01234567-89ab-cdef-0123-456789abcdef",
"name": "Hitchhiker's Guide to the Galaxy",
"format": "text",
"status": "to-upload"
}
],
"next_cursor": "<string>",
"has_more": true
}Agent Knowledge Files
List Knowledge Files
List your knowledge files.
Returns a cursor-paginated list of the knowledge files you own, along with their processing status.
GET
/
v1
/
knowledge-files
List Knowledge Files
curl --request GET \
--url https://api.bey.dev/v1/knowledge-files \
--header 'x-api-key: <api-key>'import requests
url = "https://api.bey.dev/v1/knowledge-files"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.bey.dev/v1/knowledge-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "01234567-89ab-cdef-0123-456789abcdef",
"name": "Hitchhiker's Guide to the Galaxy",
"format": "text",
"status": "to-upload"
}
],
"next_cursor": "<string>",
"has_more": true
}Authorizations
Your Beyond Presence API Key.
Query Parameters
Maximum number of objects to return.
Required range:
x <= 50Cursor for pagination.
Response
Paginated List of Knowledge Files
- HasMorePage[KnowledgeFileResponse]
- NoMorePage[KnowledgeFileResponse]
List of objects.
Response model for a knowledge file that is to be uploaded.
- ToUploadKnowledgeFileResponse
- AvailableKnowledgeFileResponse
Show child attributes
Show child attributes
The cursor for the next page of objects.
Whether there are more objects to fetch.
Was this page helpful?