Brain
Search documents
Search for documents within a specific brain
GET
/
brain
/
{brain_id}
/
documents
/
search
curl --request GET \
--url https://api.isosceles.ai/brain/{brain_id}/documents/search \
--header 'Authorization: Basic <encoded-value>'
[
{
"brain_id": "e42b1e43-96d5-4769-ab71-afe26d3b6b19",
"created_at": "Sun, 20 Oct 2024 17:40:19 GMT",
"document_id": "944a2978-efbc-48a5-9656-7fecec32df4e",
"id": 5589,
"metadata": {
"language_code": "en",
"original_object": "https://athena-copilot.s3.ap-south-1.amazonaws.com/athena/34bcc94d68524e8c9877b7e99b5bfce8-TestCV%2020180412.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAXZ5NGMGNXDFENIAQ%2F20241020%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20241020T174020Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=cb8780481b622a91d6a50764d94d5ed56265686f0afdc672c7aecdd908456843",
"original_url": "",
"processed": false
},
"name": "TestCV 20180412.docx",
"status": "COMPLETE",
"type": "file",
"url": "https://athena-copilot.s3.ap-south-1.amazonaws.com/athena/34bcc94d68524e8c9877b7e99b5bfce8-TestCV%2020180412.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAXZ5NGMGNXDFENIAQ%2F20241020%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20241020T174020Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=cb8780481b622a91d6a50764d94d5ed56265686f0afdc672c7aecdd908456843"
}
]
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
ID of the brain to search in
Query Parameters
Optional search query to filter documents
Response
200 - application/json
The response is of type object[]
.
curl --request GET \
--url https://api.isosceles.ai/brain/{brain_id}/documents/search \
--header 'Authorization: Basic <encoded-value>'
[
{
"brain_id": "e42b1e43-96d5-4769-ab71-afe26d3b6b19",
"created_at": "Sun, 20 Oct 2024 17:40:19 GMT",
"document_id": "944a2978-efbc-48a5-9656-7fecec32df4e",
"id": 5589,
"metadata": {
"language_code": "en",
"original_object": "https://athena-copilot.s3.ap-south-1.amazonaws.com/athena/34bcc94d68524e8c9877b7e99b5bfce8-TestCV%2020180412.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAXZ5NGMGNXDFENIAQ%2F20241020%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20241020T174020Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=cb8780481b622a91d6a50764d94d5ed56265686f0afdc672c7aecdd908456843",
"original_url": "",
"processed": false
},
"name": "TestCV 20180412.docx",
"status": "COMPLETE",
"type": "file",
"url": "https://athena-copilot.s3.ap-south-1.amazonaws.com/athena/34bcc94d68524e8c9877b7e99b5bfce8-TestCV%2020180412.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAXZ5NGMGNXDFENIAQ%2F20241020%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20241020T174020Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=cb8780481b622a91d6a50764d94d5ed56265686f0afdc672c7aecdd908456843"
}
]
Assistant
Responses are generated using AI and may contain mistakes.