GET
/
api
/
v1
/
agent-files
/
{agent_id}
/
files
/
search
Search Agent Files
curl --request GET \
  --url https://agent-studio.thena.ai/api/v1/agent-files/{agent_id}/files/search \
  --header 'x-api-key: <api-key>'
[
  {
    "file": {
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "bucket_path": "<string>",
      "size": 123,
      "mime_type": "<string>",
      "metadata": {}
    },
    "chunk_text": "<string>",
    "similarity": 123
  }
]

Authorizations

x-api-key
string
header
required

Path Parameters

agent_id
string<uuid> | null
required

Query Parameters

query
string
required

Search query text

Minimum length: 1
limit
integer
default:5

Maximum number of results to return

Required range: 1 <= x <= 20

Response

200
application/json

Successful Response

The response is of type FileSearchResult · object[].