Google · Schema
GmailUsersHistoryGetResponse
GmailUsersHistoryGetResponse schema
AdvertisingCloudDevelopersGooglePlatformSearchT1Agentic CommerceUniversal Commerce ProtocolAP2A2A
Properties
| Name | Type | Description |
|---|---|---|
| history | array | |
| nextPageToken | string | |
| historyId | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/google/main/json-schema/google-gmail-users-history-get-response-schema.json",
"title": "GmailUsersHistoryGetResponse",
"description": "GmailUsersHistoryGetResponse schema",
"x-generated": "2026-10-03",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-history-api-openapi.yml#/components/schemas/GmailUsersHistoryGetResponse",
"type": "object",
"properties": {
"history": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"threadId": {
"type": "string"
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
}
},
"snippet": {
"type": "string"
},
"historyId": {
"type": "string"
},
"internalDate": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"partId": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"filename": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"body": {
"type": "object",
"properties": {
"attachmentId": {
"type": "string"
},
"size": {
"type": "integer"
},
"data": {
"type": "string"
}
}
},
"parts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
}
}
}
}
},
"sizeEstimate": {
"type": "integer"
},
"raw": {
"type": "string"
}
}
}
},
"messagesAdded": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"threadId": {
"type": "string"
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
}
},
"snippet": {
"type": "string"
},
"historyId": {
"type": "string"
},
"internalDate": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"partId": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"filename": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"body": {
"type": "object",
"properties": {
"attachmentId": {
"type": "string"
},
"size": {
"type": "integer"
},
"data": {
"type": "string"
}
}
},
"parts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
}
}
}
}
},
"sizeEstimate": {
"type": "integer"
},
"raw": {
"type": "string"
}
}
}
}
}
},
"messagesDeleted": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"threadId": {
"type": "string"
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
}
},
"snippet": {
"type": "string"
},
"historyId": {
"type": "string"
},
"internalDate": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"partId": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"filename": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"body": {
"type": "object",
"properties": {
"attachmentId": {
"type": "string"
},
"size": {
"type": "integer"
},
"data": {
"type": "string"
}
}
},
"parts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
}
}
}
}
},
"sizeEstimate": {
"type": "integer"
},
"raw": {
"type": "string"
}
}
}
}
}
},
"labelsAdded": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"threadId": {
"type": "string"
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
}
},
"snippet": {
"type": "string"
},
"historyId": {
"type": "string"
},
"internalDate": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"partId": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"filename": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"body": {
"type": "object",
"properties": {
"attachmentId": {
"type": "string"
},
"size": {
"type": "integer"
},
"data": {
"type": "string"
}
}
},
"parts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
}
}
}
}
},
"sizeEstimate": {
"type": "integer"
},
"raw": {
"type": "string"
}
}
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"labelsRemoved": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"threadId": {
"type": "string"
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
}
},
"snippet": {
"type": "string"
},
"historyId": {
"type": "string"
},
"internalDate": {
"type": "string"
},
"payload": {
"type": "object",
"properties": {
"partId": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"filename": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"body": {
"type": "object",
"properties": {
"attachmentId": {
"type": "string"
},
"size": {
"type": "integer"
},
"data": {
"type": "string"
}
}
},
"parts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
}
}
}
}
},
"sizeEstimate": {
"type": "integer"
},
"raw": {
"type": "string"
}
}
},
"labelIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"nextPageToken": {
"type": "string"
},
"historyId": {
"type": "string"
}
}
}
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-gmail-users-history-get-response"
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.