Google Cloud Firestore Document

A Firestore document resource representing a single entity stored in a Firestore collection.

DatabaseDocumentsGoogle CloudNoSQLReal-Time

Properties

Name Type Description
name string The resource name of the document in the format projects/{project}/databases/{database}/documents/{collection}/{documentId}.
fields object The document's fields as a map of field names to values.
createTime string The time at which the document was created.
updateTime string The time at which the document was last changed.
View JSON Schema on GitHub

JSON Schema

document-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-cloud-firestore/refs/heads/main/json-schema/document-schema.json",
  "title": "Google Cloud Firestore Document",
  "description": "A Firestore document resource representing a single entity stored in a Firestore collection.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The resource name of the document in the format projects/{project}/databases/{database}/documents/{collection}/{documentId}.",
      "pattern": "^projects/[^/]+/databases/[^/]+/documents/.+$"
    },
    "fields": {
      "type": "object",
      "description": "The document's fields as a map of field names to values.",
      "additionalProperties": {
        "$ref": "#/$defs/Value"
      }
    },
    "createTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the document was created."
    },
    "updateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the document was last changed."
    }
  },
  "$defs": {
    "Value": {
      "type": "object",
      "description": "A Firestore value that represents a typed field value.",
      "properties": {
        "nullValue": {
          "type": "string",
          "const": "NULL_VALUE",
          "description": "A null value."
        },
        "booleanValue": {
          "type": "boolean",
          "description": "A boolean value."
        },
        "integerValue": {
          "type": "string",
          "description": "An integer value (as a string for 64-bit precision)."
        },
        "doubleValue": {
          "type": "number",
          "description": "A double value."
        },
        "timestampValue": {
          "type": "string",
          "format": "date-time",
          "description": "A timestamp value."
        },
        "stringValue": {
          "type": "string",
          "description": "A string value."
        },
        "bytesValue": {
          "type": "string",
          "contentEncoding": "base64",
          "description": "A bytes value (base64-encoded)."
        },
        "referenceValue": {
          "type": "string",
          "description": "A reference to a document."
        },
        "geoPointValue": {
          "type": "object",
          "properties": {
            "latitude": {
              "type": "number",
              "minimum": -90,
              "maximum": 90
            },
            "longitude": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            }
          },
          "description": "A geo point value."
        },
        "arrayValue": {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Value"
              }
            }
          },
          "description": "An array value."
        },
        "mapValue": {
          "type": "object",
          "properties": {
            "fields": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/$defs/Value"
              }
            }
          },
          "description": "A map value."
        }
      }
    }
  }
}

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/document"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.