## Find Files `RetrievalFindPage beta().retrieval().find(RetrievalFindParamsparams, RequestOptionsrequestOptions = RequestOptions.none())` **post** `/api/v1/retrieval/files/find` Search for files by name. ### Parameters - `RetrievalFindParams params` - `Optional organizationId` - `Optional projectId` - `String indexId` ID of the index to search within. - `Optional fileName` Exact file name to match. - `Optional fileNameContains` Substring match on file name (case-insensitive). - `Optional pageSize` The maximum number of items to return. The service may return fewer than this value. If unspecified, a default page size will be used. The maximum value is typically 1000; values above this will be coerced to the maximum. - `Optional pageToken` A page token, received from a previous list call. Provide this to retrieve the subsequent page. ### Returns - `class RetrievalFindResponse:` A file returned by find. - `String fileId` ID of the file. - `String fileName` Display name of the file. ### Example ```java package com.llamacloud_prod.api.example; import com.llamacloud_prod.api.client.LlamaCloudClient; import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient; import com.llamacloud_prod.api.models.beta.retrieval.RetrievalFindPage; import com.llamacloud_prod.api.models.beta.retrieval.RetrievalFindParams; public final class Main { private Main() {} public static void main(String[] args) { LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv(); RetrievalFindParams params = RetrievalFindParams.builder() .indexId("idx-abc123") .build(); RetrievalFindPage page = client.beta().retrieval().find(params); } } ``` #### Response ```json { "items": [ { "file_id": "file_id", "file_name": "file_name" } ], "next_page_token": "next_page_token", "total_size": 0 } ```