Menu
Gmail.users.history.list
Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing `historyId`).
GET
/gmail/v1/users/{userId}/historyUse it in a workflow
- Add a step and choose the Gmail connector.
- Pick the Gmail.users.history.list action (under users).
- Fill in the fields below, then reference the result from later steps as
{{gmailUsersHistoryList.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{gmailUsersHistoryList.response.data.<field>}}.
{
"history": [
{
"id": "string",
"labelsAdded": [
{
"labelIds": [
"string"
],
"message": {
"historyId": "string",
"id": "string",
"internalDate": "string",
"labelIds": [
null
],
"payload": {
"body": null,
"filename": null,
"headers": null,
"mimeType": null,
"partId": null,
"parts": null
},
"raw": "string",
"sizeEstimate": 0,
"snippet": "string",
"threadId": "string"
}
}
],
"labelsRemoved": [
{
"labelIds": [
"string"
],
"message": {
"historyId": "string",
"id": "string",
"internalDate": "string",
"labelIds": [
null
],
"payload": {
"body": null,
"filename": null,
"headers": null,
"mimeType": null,
"partId": null,
"parts": null
},
"raw": "string",
"sizeEstimate": 0,
"snippet": "string",
"threadId": "string"
}
}
],
"messages": [
{
"historyId": "string",
"id": "string",
"internalDate": "string",
"labelIds": [
"string"
],
"payload": {
"body": {
"attachmentId": null,
"data": null,
"size": null
},
"filename": "string",
"headers": [
null
],
"mimeType": "string",
"partId": "string",
"parts": [
null
]
},
"raw": "string",
"sizeEstimate": 0,
"snippet": "string",
"threadId": "string"
}
],
"messagesAdded": [
{
"message": {
"historyId": "string",
"id": "string",
"internalDate": "string",
"labelIds": [
null
],
"payload": {
"body": null,
"filename": null,
"headers": null,
"mimeType": null,
"partId": null,
"parts": null
},
"raw": "string",
"sizeEstimate": 0,
"snippet": "string",
"threadId": "string"
}
}
],
"messagesDeleted": [
{
"message": {
"historyId": "string",
"id": "string",
"internalDate": "string",
"labelIds": [
null
],
"payload": {
"body": null,
"filename": null,
"headers": null,
"mimeType": null,
"partId": null,
"parts": null
},
"raw": "string",
"sizeEstimate": 0,
"snippet": "string",
"threadId": "string"
}
}
]
}
],
"historyId": "string",
"nextPageToken": "string"
}
Need more? See the Gmail guide for connection setup and behaviour shared by every action.
Was this page helpful?