File search calls
UsageFileSearchCallsResponse admin().organization().usage().fileSearchCalls(UsageFileSearchCallsParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/organization/usage/file_search_calls
File search calls
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.admin.organization.usage.UsageFileSearchCallsParams;
import com.openai.models.admin.organization.usage.UsageFileSearchCallsResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
UsageFileSearchCallsParams params = UsageFileSearchCallsParams.builder()
.startTime(0L)
.build();
UsageFileSearchCallsResponse response = client.admin().organization().usage().fileSearchCalls(params);
}
}{
"object": "page",
"data": [
{
"object": "bucket",
"start_time": 1730419200,
"end_time": 1730505600,
"results": [
{
"object": "organization.usage.file_searches.result",
"num_requests": 2,
"project_id": null,
"user_id": null,
"api_key_id": null,
"vector_store_id": null
}
]
}
],
"has_more": false,
"next_page": null
}
Returns Examples
{
"object": "page",
"data": [
{
"object": "bucket",
"start_time": 1730419200,
"end_time": 1730505600,
"results": [
{
"object": "organization.usage.file_searches.result",
"num_requests": 2,
"project_id": null,
"user_id": null,
"api_key_id": null,
"vector_store_id": null
}
]
}
],
"has_more": false,
"next_page": null
}