> ## AI Agent Context > Get the complete documentation index at: https://aistudio.google.com/llms.txt > Use this file to discover all available pages. > For the full documentation in a single file, fetch: https://aistudio.google.com/llms-full.txt # Getting an upload operation {% mark class="http-get" %}{% icon name="south_west" /%}`GET`{% /mark %} `https://generativelanguage.googleapis.com/v1beta/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}` 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. {% two-column-layout %} {% left-column %} ## Parameters {% class="hide-from-toc" id="parameters" %} {% section class="api-ref-property-list" %} **fileSearchStoresId**: {% mark %}required{% /mark %} `string` The file search store ID. Forms the resource name `fileSearchStores/{fileSearchStoresId}`. {% hr /%} **operationsId**: {% mark %}required{% /mark %} `string` The operation ID. {% /section %} {% /left-column %} {% right-column class="sticky" %} **Example request** {% class="example-heading" %} {% tabs %} {% tab label="REST" %} ```sh curl -X GET "https://generativelanguage.googleapis.com/v1beta/fileSearchStores/$FILE_SEARCH_STORE_ID/upload/operations/$OPERATION_ID" \ -H "x-goog-api-key: $GEMINI_API_KEY" ``` {% /tab %} {% /tabs %} {% /right-column %} {% /two-column-layout %} {% two-column-layout %} {% left-column %} ## Response {% class="hide-from-toc" id="response" %} {% section class="api-ref-property-list" %} {% details %} {% summary %} **error**: `Status` The error result of the operation in case of failure or cancellation. {% /summary %} **code**: `integer` The status code, which should be an enum value of google.rpc.Code. **message**: `string` 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. **details**: `object array` A list of messages that carry the error details. There is a common set of message types for APIs to use. {% /details %} {% hr /%} **response**: `object` 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`. {% hr /%} **name**: `string` 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}`. {% hr /%} **metadata**: `object` 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. {% hr /%} **done**: `boolean` 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. {% /section %} {% /left-column %} {% right-column class="sticky" %} **Example response** {% class="example-heading" %} ```json { "error": { "code": 0, "message": "string", "details": [ {} ] }, "response": {}, "name": "string", "metadata": {}, "done": true } ``` {% /right-column %} {% /two-column-layout %}