Google Pay · Schema
Media
A reference to data stored on the filesystem, on GFS or in blobstore.
Agentic CommerceCheckoutContactless PaymentsDigital WalletMerchantsMobile PaymentsPaymentsTokenization
Properties
| Name | Type | Description |
|---|---|---|
| crc32cHash | integer | For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data b |
| referenceType | string | Describes what the field reference contains. |
| diffChecksumsResponse | object | |
| diffUploadResponse | object | |
| diffVersionResponse | object | |
| sha512Hash | string | Scotty-provided SHA512 hash for an upload. |
| blobstore2Info | object | |
| compositeMedia | array | A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: Al |
| filename | string | Original file name |
| diffDownloadResponse | object | |
| mediaId | string | Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. |
| downloadParameters | object | |
| length | string | Size of the data, in bytes |
| blobRef | string | Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, a |
| bigstoreObjectRef | string | Use object_id instead. |
| diffUploadRequest | object | |
| token | string | A unique fingerprint/version id for the media data |
| algorithm | string | Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any tim |
| contentType | string | MIME type of the data |
| sha256Hash | string | Scotty-provided SHA256 hash for an upload. |
| timestamp | string | Time at which the media data was last updated, in milliseconds since UNIX epoch |
| sha1Hash | string | Scotty-provided SHA1 hash for an upload. |
| isPotentialRetry | boolean | |is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty canno |
| cosmoBinaryReference | string | A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it |
| objectId | object | |
| inline | string | Media data, set if reference_type is INLINE |
| path | string | Path to the data, set if reference_type is PATH |
| md5Hash | string | Scotty-provided MD5 hash for an upload. |
| hash | string | Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the Notif |
| contentTypeInfo | object | |
| hashVerified | boolean | For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and wil |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-pay/json-schema/google-pay-media-schema.json",
"title": "Media",
"description": "A reference to data stored on the filesystem, on GFS or in blobstore.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-pay-media-api-openapi.yml#/components/schemas/Media",
"type": "object",
"properties": {
"crc32cHash": {
"type": "integer",
"format": "uint32",
"description": "For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported."
},
"referenceType": {
"type": "string",
"description": "Describes what the field reference contains.",
"enum": [
"PATH",
"BLOB_REF",
"INLINE",
"GET_MEDIA",
"COMPOSITE_MEDIA",
"BIGSTORE_REF",
"DIFF_VERSION_RESPONSE",
"DIFF_CHECKSUMS_RESPONSE",
"DIFF_DOWNLOAD_RESPONSE",
"DIFF_UPLOAD_REQUEST",
"DIFF_UPLOAD_RESPONSE",
"COSMO_BINARY_REFERENCE",
"ARBITRARY_BYTES"
]
},
"diffChecksumsResponse": {
"$ref": "#/$defs/DiffChecksumsResponse"
},
"diffUploadResponse": {
"$ref": "#/$defs/DiffUploadResponse"
},
"diffVersionResponse": {
"$ref": "#/$defs/DiffVersionResponse"
},
"sha512Hash": {
"type": "string",
"format": "byte",
"description": "Scotty-provided SHA512 hash for an upload."
},
"blobstore2Info": {
"$ref": "#/$defs/Blobstore2Info"
},
"compositeMedia": {
"type": "array",
"description": "A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.",
"items": {
"$ref": "#/$defs/CompositeMedia"
}
},
"filename": {
"type": "string",
"description": "Original file name"
},
"diffDownloadResponse": {
"$ref": "#/$defs/DiffDownloadResponse"
},
"mediaId": {
"type": "string",
"format": "byte",
"description": "Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA."
},
"downloadParameters": {
"$ref": "#/$defs/DownloadParameters"
},
"length": {
"type": "string",
"format": "int64",
"description": "Size of the data, in bytes"
},
"blobRef": {
"type": "string",
"format": "byte",
"description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef."
},
"bigstoreObjectRef": {
"type": "string",
"format": "byte",
"description": "Use object_id instead."
},
"diffUploadRequest": {
"$ref": "#/$defs/DiffUploadRequest"
},
"token": {
"type": "string",
"description": "A unique fingerprint/version id for the media data"
},
"algorithm": {
"type": "string",
"description": "Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, \"MD5\" is the only possible value for this field. New values may be added at any time."
},
"contentType": {
"type": "string",
"description": "MIME type of the data"
},
"sha256Hash": {
"type": "string",
"format": "byte",
"description": "Scotty-provided SHA256 hash for an upload."
},
"timestamp": {
"type": "string",
"format": "int64",
"description": "Time at which the media data was last updated, in milliseconds since UNIX epoch"
},
"sha1Hash": {
"type": "string",
"format": "byte",
"description": "Scotty-provided SHA1 hash for an upload."
},
"isPotentialRetry": {
"type": "boolean",
"description": "|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence."
},
"cosmoBinaryReference": {
"type": "string",
"format": "byte",
"description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field."
},
"objectId": {
"$ref": "#/$defs/ObjectId"
},
"inline": {
"type": "string",
"format": "byte",
"description": "Media data, set if reference_type is INLINE"
},
"path": {
"type": "string",
"description": "Path to the data, set if reference_type is PATH"
},
"md5Hash": {
"type": "string",
"format": "byte",
"description": "Scotty-provided MD5 hash for an upload."
},
"hash": {
"type": "string",
"description": "Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media."
},
"contentTypeInfo": {
"$ref": "#/$defs/ContentTypeInfo"
},
"hashVerified": {
"type": "boolean",
"description": "For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification."
}
},
"$defs": {
"Blobstore2Info": {
"type": "object",
"description": "Information to read/write to blobstore2.",
"properties": {
"downloadReadHandle": {
"type": "string",
"format": "byte",
"description": "Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads."
},
"blobGeneration": {
"type": "string",
"format": "int64",
"description": "The blob generation id."
},
"blobId": {
"type": "string",
"description": "The blob id, e.g., /blobstore/prod/playground/scotty"
},
"uploadMetadataContainer": {
"type": "string",
"format": "byte",
"description": "Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads."
},
"uploadFragmentListCreationInfo": {
"type": "string",
"format": "byte",
"description": "A serialized Object Fragment List Creation Info passed from Bigstore -> Scotty for a GCS upload. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads."
},
"downloadExternalReadToken": {
"type": "string",
"format": "byte",
"description": "A serialized External Read Token passed from Bigstore -> Scotty for a GCS download. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads."
},
"readToken": {
"type": "string",
"description": "The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call."
}
}
},
"CompositeMedia": {
"type": "object",
"description": "A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.",
"properties": {
"inline": {
"type": "string",
"format": "byte",
"description": "Media data, set if reference_type is INLINE"
},
"path": {
"type": "string",
"description": "Path to the data, set if reference_type is PATH"
},
"crc32cHash": {
"type": "integer",
"format": "uint32",
"description": "crc32.c hash for the payload."
},
"objectId": {
"$ref": "#/$defs/ObjectId"
},
"md5Hash": {
"type": "string",
"format": "byte",
"description": "MD5 hash for the payload."
},
"length": {
"type": "string",
"format": "int64",
"description": "Size of the data, in bytes"
},
"blobstore2Info": {
"$ref": "#/$defs/Blobstore2Info"
},
"blobRef": {
"type": "string",
"format": "byte",
"description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef."
},
"referenceType": {
"type": "string",
"description": "Describes what the field reference contains.",
"enum": [
"PATH",
"BLOB_REF",
"INLINE",
"BIGSTORE_REF",
"COSMO_BINARY_REFERENCE"
]
},
"sha1Hash": {
"type": "string",
"format": "byte",
"description": "SHA-1 hash for the payload."
},
"cosmoBinaryReference": {
"type": "string",
"format": "byte",
"description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field."
}
}
},
"ContentTypeInfo": {
"type": "object",
"description": "Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.",
"properties": {
"fromBytes": {
"type": "string",
"description": "The content type of the file derived by looking at specific bytes (i.e. \"magic bytes\") of the actual file."
},
"fromHeader": {
"type": "string",
"description": "The content type of the file as specified in the request headers, multipart headers, or RUPIO start request."
},
"fromFileName": {
"type": "string",
"description": "The content type of the file derived from the file extension of the original file name used by the client."
},
"bestGuess": {
"type": "string",
"description": "Scotty's best guess of what the content type of the file is."
},
"fromUrlPath": {
"type": "string",
"description": "The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API)."
},
"fromFusionId": {
"type": "string",
"description": "The content type of the file detected by Fusion ID. go/fusionid"
},
"fusionIdDetectionMetadata": {
"type": "string",
"format": "byte",
"description": "Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only set if from_fusion_id is set."
}
}
},
"DiffChecksumsResponse": {
"type": "object",
"description": "Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
"properties": {
"objectVersion": {
"type": "string",
"description": "The object version of the object the checksums are being returned for."
},
"objectLocation": {
"$ref": "#/$defs/CompositeMedia"
},
"chunkSizeBytes": {
"type": "string",
"format": "int64",
"description": "The chunk size of checksums. Must be a multiple of 256KB."
},
"checksumsLocation": {
"$ref": "#/$defs/CompositeMedia"
},
"objectSizeBytes": {
"type": "string",
"format": "int64",
"description": "The total size of the server object."
}
}
},
"DiffDownloadResponse": {
"type": "object",
"description": "Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
"properties": {
"objectLocation": {
"$ref": "#/$defs/CompositeMedia"
}
}
},
"DiffUploadRequest": {
"type": "object",
"description": "A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
"properties": {
"objectVersion": {
"type": "string",
"description": "The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in."
},
"checksumsInfo": {
"$ref": "#/$defs/CompositeMedia"
},
"objectInfo": {
"$ref": "#/$defs/CompositeMedia"
}
}
},
"DiffUploadResponse": {
"type": "object",
"description": "Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
"properties": {
"objectVersion": {
"type": "string",
"description": "The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload."
},
"originalObject": {
"$ref": "#/$defs/CompositeMedia"
}
}
},
"DiffVersionResponse": {
"type": "object",
"description": "Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
"properties": {
"objectSizeBytes": {
"type": "string",
"format": "int64",
"description": "The total size of the server object."
},
"objectVersion": {
"type": "string",
"description": "The version of the object stored at the server."
}
}
},
"DownloadParameters": {
"type": "object",
"description": "Parameters specific to media downloads.",
"properties": {
"ignoreRange": {
"type": "boolean",
"description": "Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty."
},
"allowGzipCompression": {
"type": "boolean",
"description": "A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client."
}
}
},
"ObjectId": {
"type": "object",
"description": "This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763.",
"properties": {
"bucketName": {
"type": "string",
"description": "The name of the bucket to which this object belongs."
},
"objectName": {
"type": "string",
"description": "The name of the object."
},
"generation": {
"type": "string",
"format": "int64",
"description": "Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions"
}
}
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-pay-media"
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.