Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/google-gemini:google-gemini-filesearchstores-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Gemini File Search Stores API
version: v1beta
description: Generated from Google's published Discovery document for Gemini API (generativelanguage v1beta, revision 20261111). 10 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
servers:
- url: https://generativelanguage.googleapis.com
tags:
- name: FileSearchStores
paths:
/v1beta/fileSearchStores/{fileSearchStoresId}:importFile:
post:
operationId: generativelanguage.fileSearchStores.importFile
summary: Import file fileSearchStores
description: Imports a `File` from File Service to a `FileSearchStore`.
parameters:
- name: fileSearchStoresId
in: path
required: true
description: Resource name segment (fileSearchStoresId).
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ImportFileRequest'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Operation'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/devstorage.read_only
- apiKey: []
tags:
- FileSearchStores
/v1beta/fileSearchStores/{fileSearchStoresId}:
get:
operationId: generativelanguage.fileSearchStores.get
summary: Get fileSearchStores
description: Gets information about a specific `FileSearchStore`.
parameters:
- name: fileSearchStoresId
in: path
required: true
description: Resource name segment (fileSearchStoresId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/FileSearchStore'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
delete:
operationId: generativelanguage.fileSearchStores.delete
summary: Delete fileSearchStores
description: Deletes a `FileSearchStore`.
parameters:
- name: fileSearchStoresId
in: path
required: true
description: Resource name segment (fileSearchStoresId).
schema:
type: string
- name: force
in: query
required: false
description: Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s.
schema:
type: boolean
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Empty'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
/v1beta/fileSearchStores:
get:
operationId: generativelanguage.fileSearchStores.list
summary: List fileSearchStores
description: Lists all `FileSearchStores` owned by the user.
parameters:
- name: pageSize
in: query
required: false
description: Optional. The maximum number of `FileSearchStores` to return (per page). The service may return fewer `FileSearchStores`. If unspecified, at most 10 `FileSearchStores` will be returned. The maximum size limit is 20 `FileSearchStores` per page.
schema:
type: integer
format: int32
- name: pageToken
in: query
required: false
description: Optional. A page token, received from a previous `ListFileSearchStores` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListFileSearchStores` must match the call that provided the page token.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListFileSearchStoresResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
post:
operationId: generativelanguage.fileSearchStores.create
summary: Create fileSearchStores
description: Creates an empty `FileSearchStore`.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/FileSearchStore'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/FileSearchStore'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
/v1beta/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}:
get:
operationId: generativelanguage.fileSearchStores.upload.operations.get
summary: Get operations
description: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
parameters:
- name: fileSearchStoresId
in: path
required: true
description: Resource name segment (fileSearchStoresId).
schema:
type: string
- name: operationsId
in: path
required: true
description: Resource name segment (operationsId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Operation'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
/v1beta/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}:
get:
operationId: generativelanguage.fileSearchStores.documents.get
summary: Get documents
description: Gets information about a specific `Document`.
parameters:
- name: fileSearchStoresId
in: path
required: true
description: Resource name segment (fileSearchStoresId).
schema:
type: string
- name: documentsId
in: path
required: true
description: Resource name segment (documentsId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Document'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
delete:
operationId: generativelanguage.fileSearchStores.documents.delete
summary: Delete documents
description: Deletes a `Document`.
parameters:
- name: fileSearchStoresId
in: path
required: true
description: Resource name segment (fileSearchStoresId).
schema:
type: string
- name: documentsId
in: path
required: true
description: Resource name segment (documentsId).
schema:
type: string
- name: force
in: query
required: false
description: Optional. If set to true, any `Chunk`s and objects related to this `Document` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Document` contains any `Chunk`s.
schema:
type: boolean
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Empty'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
/v1beta/fileSearchStores/{fileSearchStoresId}/documents:
get:
operationId: generativelanguage.fileSearchStores.documents.list
summary: List documents
description: Lists all `Document`s in a `Corpus`.
parameters:
- name: fileSearchStoresId
in: path
required: true
description: Resource name segment (fileSearchStoresId).
schema:
type: string
- name: pageSize
in: query
required: false
description: Optional. The maximum number of `Document`s to return (per page). The service may return fewer `Document`s. If unspecified, at most 10 `Document`s will be returned. The maximum size limit is 20 `Document`s per page.
schema:
format: int32
type: integer
- name: pageToken
in: query
required: false
description: Optional. A page token, received from a previous `ListDocuments` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListDocumentsResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
/v1beta/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}:
get:
operationId: generativelanguage.fileSearchStores.operations.get
summary: Get operations
description: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
parameters:
- name: fileSearchStoresId
in: path
required: true
description: Resource name segment (fileSearchStoresId).
schema:
type: string
- name: operationsId
in: path
required: true
description: Resource name segment (operationsId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Operation'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- FileSearchStores
components:
schemas:
StringList:
properties:
values:
items:
type: string
description: The string values of the metadata to store.
type: array
type: object
description: User provided string values assigned to a single metadata key.
ListFileSearchStoresResponse:
type: object
properties:
fileSearchStores:
description: The returned rag_stores.
type: array
items:
$ref: '#/components/schemas/FileSearchStore'
nextPageToken:
type: string
description: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.
description: Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.
FileSearchStore:
properties:
pendingDocumentsCount:
format: int64
description: Output only. The number of documents in the `FileSearchStore` that are being processed.
type: string
readOnly: true
updateTime:
type: string
description: Output only. The Timestamp of when the `FileSearchStore` was last updated.
format: google-datetime
readOnly: true
displayName:
description: 'Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever"'
type: string
sizeBytes:
description: Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
readOnly: true
format: int64
type: string
embeddingModel:
type: string
description: 'Optional. The embedding model to use for the `FileSearchStore`. The model''s resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used.'
name:
type: string
readOnly: true
description: 'Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the "fileSearchStores/" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.'
createTime:
readOnly: true
description: Output only. The Timestamp of when the `FileSearchStore` was created.
format: google-datetime
type: string
activeDocumentsCount:
description: Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
type: string
readOnly: true
format: int64
failedDocumentsCount:
format: int64
type: string
description: Output only. The number of documents in the `FileSearchStore` that have failed processing.
readOnly: true
description: A `FileSearchStore` is a collection of `Document`s.
type: object
ListDocumentsResponse:
description: Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`.
properties:
documents:
type: array
description: The returned `Document`s.
items:
$ref: '#/components/schemas/Document'
nextPageToken:
type: string
description: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.
type: object
Status:
properties:
details:
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
type: array
items:
type: object
additionalProperties:
description: Properties of the object. Contains field @type with type URL.
message:
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
type: string
code:
description: The status code, which should be an enum value of google.rpc.Code.
format: int32
type: integer
type: object
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
WhiteSpaceConfig:
description: Configuration for a white space chunking algorithm [white space delimited].
properties:
maxOverlapTokens:
format: int32
type: integer
description: Maximum number of overlapping tokens between two adjacent chunks.
maxTokensPerChunk:
type: integer
format: int32
description: 'Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow.'
type: object
CustomMetadata:
type: object
properties:
stringValue:
type: string
description: The string value of the metadata to store.
stringListValue:
$ref: '#/components/schemas/StringList'
description: The StringList value of the metadata to store.
key:
description: Required. The key of the metadata to store.
type: string
numericValue:
format: float
type: number
description: The numeric value of the metadata to store.
description: User provided metadata stored as key-value pairs.
Document:
type: object
description: A `Document` is a collection of `Chunk`s.
properties:
state:
description: Output only. Current state of the `Document`.
enum:
- STATE_UNSPECIFIED
- STATE_PENDING
- STATE_ACTIVE
- STATE_FAILED
readOnly: true
type: string
sizeBytes:
description: Output only. The size of raw bytes ingested into the Document.
format: int64
readOnly: true
type: string
updateTime:
format: google-datetime
type: string
description: Output only. The Timestamp of when the `Document` was last updated.
readOnly: true
displayName:
description: 'Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation"'
type: string
createTime:
readOnly: true
description: Output only. The Timestamp of when the `Document` was created.
type: string
format: google-datetime
name:
description: 'Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c`'
type: string
customMetadata:
items:
$ref: '#/components/schemas/CustomMetadata'
description: Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.
type: array
mimeType:
type: string
readOnly: true
description: Output only. The mime type of the Document.
Empty:
type: object
description: 'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }'
properties: {}
ImportFileRequest:
description: Request for `ImportFile` to import a File API file with a `FileSearchStore`.
properties:
customMetadata:
type: array
description: Custom metadata to be associated with the file.
items:
$ref: '#/components/schemas/CustomMetadata'
fileName:
type: string
description: 'Required. The name of the `File` to import. Example: `files/abc-123`'
chunkingConfig:
$ref: '#/components/schemas/ChunkingConfig'
description: Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters.
type: object
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
Operation:
description: This resource represents a long-running operation that is the result of a network API call.
type: object
properties:
metadata:
type: object
description: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
additionalProperties:
description: Properties of the object. Contains field @type with type URL.
name:
description: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
type: string
error:
$ref: '#/components/schemas/Status'
description: The error result of the operation in case of failure or cancellation.
done:
description: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
type: boolean
response:
description: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
additionalProperties:
description: Properties of the object. Contains field @type with type URL.
type: object
ChunkingConfig:
type: object
properties:
whiteSpaceConfig:
$ref: '#/components/schemas/WhiteSpaceConfig'
description: White space chunking configuration.
description: Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/devstorage.read_only: View your data in Google Cloud Storage
externalDocs:
url: https://developers.generativeai.google/api
x-provenance:
method: harvested
publisher: Google
source: https://generativelanguage.googleapis.com/$discovery/rest?version=v1beta
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)