v2
latestOpenAPI 3.0.02026-08-0688139156.5 KBAgents
Get the versions of a path
get/v1/agent/{agent_id}/file-search/version
Path parameters
agent_idstring required
ID of an agent
Example:a_0123456789ab
Query parameters
offsetinteger
Starting index for pagination
limitinteger
Number of items to return for pagination
sort_by'created_time' | 'last_modified' | 'file_size'
Sort by a specific field:
- created_time - the snapshot's creation time
- last_modified - when the file was last modified
- file_size - the file size
sort_ascboolean
Sort in ascending order
pathstring required
The path of the file to get versions for. Must be URL encoded.
Response
OK
Example response
{
"data": [
{
"modified_time": "2024-08-23T01:40:08Z",
"size": 614352,
"snapshot_id": "s_0123456789ab"
}
],
"pagination": {
"next_offset": 10
}
}