Google Gemini · Schema

Document

A `Document` is a collection of `Chunk`s.

AI AgentsArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage GenerationLLMMachine LearningMulti-ModalReal-TimeFoundation ModelsAgentsAudio UnderstandingBatch ProcessingDeep ResearchDocument UnderstandingFunction CallingStructured OutputText-to-SpeechVideo GenerationVideo Understanding

Properties

Name Type Description
state string Output only. Current state of the `Document`.
sizeBytes string Output only. The size of raw bytes ingested into the Document.
updateTime string Output only. The Timestamp of when the `Document` was last updated.
displayName string 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"
createTime string Output only. The Timestamp of when the `Document` was created.
name string 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 (-). T
customMetadata array Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.
mimeType string Output only. The mime type of the Document.
View JSON Schema on GitHub

JSON Schema

google-gemini-document-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-gemini/json-schema/google-gemini-document-schema.json",
  "title": "Document",
  "description": "A `Document` is a collection of `Chunk`s.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-gemini-file-search-stores-api-openapi.yml#/components/schemas/Document",
  "type": "object",
  "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": "#/$defs/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."
    }
  },
  "$defs": {
    "CustomMetadata": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "The string value of the metadata to store."
        },
        "stringListValue": {
          "$ref": "#/$defs/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."
    },
    "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."
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-gemini-document"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.