curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/getevents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    "<string>"
  ],
  "authTokens": [
    {
      "accessToken": "123abc",
      "datasource": "gmail",
      "scope": "email profile https://www.googleapis.com/auth/gmail.readonly",
      "tokenType": "Bearer",
      "authUser": "1"
    }
  ],
  "datasource": "<string>",
  "annotate": true
}'
{
  "events": [
    {
      "category": "DOCUMENT_SUGGESTION",
      "primaryEntry": {
        "entryId": "<string>",
        "title": "<string>",
        "thumbnail": {
          "photoId": "<string>",
          "url": "<string>"
        },
        "createdBy": {
          "name": "George Clooney",
          "obfuscatedId": "abc123"
        },
        "uiConfig": {
          "format": "LIST",
          "additionalFlags": {
            "showNewIndicator": true
          }
        },
        "justificationType": "FREQUENTLY_ACCESSED",
        "justification": "<string>",
        "trackingToken": "<string>",
        "viewUrl": "<string>",
        "document": {
          "id": "<string>",
          "datasource": "<string>",
          "connectorType": "API_CRAWL",
          "docType": "<string>",
          "content": {
            "fullTextList": [
              "<string>"
            ]
          },
          "containerDocument": {},
          "parentDocument": {},
          "title": "<string>",
          "url": "<string>",
          "metadata": {
            "container": "container",
            "parentId": "JIRA_EN-1337",
            "createTime": "2000-01-23T04:56:07.000Z",
            "datasource": "datasource",
            "author": {
              "name": "name"
            },
            "documentId": "documentId",
            "updateTime": "2000-01-23T04:56:07.000Z",
            "mimeType": "mimeType",
            "objectType": "Feature Request",
            "components": [
              "Backend",
              "Networking"
            ],
            "status": [
              "Done"
            ],
            "customData": {
              "someCustomField": "someCustomValue"
            }
          },
          "sections": [
            {
              "title": "<string>",
              "url": "<string>"
            }
          ]
        },
        "event": {
          "time": {
            "start": "<string>",
            "end": "<string>"
          },
          "eventType": "DEFAULT",
          "id": "<string>",
          "url": "<string>",
          "attendees": {
            "people": [
              {
                "isOrganizer": true,
                "isInGroup": true,
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "groupAttendees": [
                  {}
                ],
                "responseStatus": "ACCEPTED"
              }
            ],
            "isLimit": true,
            "total": 123,
            "numAccepted": 123,
            "numDeclined": 123,
            "numNoResponse": 123,
            "numTentative": 123
          },
          "location": "<string>",
          "conferenceData": {
            "provider": "ZOOM",
            "uri": "<string>",
            "source": "NATIVE_CONFERENCE"
          },
          "description": "<string>",
          "datasource": "<string>",
          "hasTranscript": true,
          "classifications": [
            {
              "name": "External Event",
              "strategies": [
                "customerCard"
              ]
            }
          ],
          "generatedAttachments": [
            {
              "strategyName": "customerCard",
              "documents": [
                {
                  "id": "<string>",
                  "datasource": "<string>",
                  "connectorType": "API_CRAWL",
                  "docType": "<string>",
                  "content": {
                    "fullTextList": [
                      "<string>"
                    ]
                  },
                  "containerDocument": {},
                  "parentDocument": {},
                  "title": "<string>",
                  "url": "<string>",
                  "metadata": {
                    "container": "container",
                    "parentId": "JIRA_EN-1337",
                    "createTime": "2000-01-23T04:56:07.000Z",
                    "datasource": "datasource",
                    "author": {
                      "name": "name"
                    },
                    "documentId": "documentId",
                    "updateTime": "2000-01-23T04:56:07.000Z",
                    "mimeType": "mimeType",
                    "objectType": "Feature Request",
                    "components": [
                      "Backend",
                      "Networking"
                    ],
                    "status": [
                      "Done"
                    ],
                    "customData": {
                      "someCustomField": "someCustomValue"
                    }
                  },
                  "sections": [
                    {
                      "title": "<string>",
                      "url": "<string>"
                    }
                  ]
                }
              ],
              "person": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "customer": {
                "id": "<string>",
                "domains": [
                  "<string>"
                ],
                "company": {
                  "name": "<string>",
                  "profileUrl": "<string>",
                  "websiteUrls": [
                    "<string>"
                  ],
                  "logoUrl": "<string>",
                  "location": "New York City",
                  "phone": "<string>",
                  "fax": "<string>",
                  "industry": "Finances",
                  "annualRevenue": 123,
                  "numberOfEmployees": 123,
                  "stockSymbol": "<string>",
                  "foundedDate": "2023-12-25",
                  "about": "Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"
                },
                "documentCounts": {},
                "poc": [
                  {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  }
                ],
                "metadata": {
                  "datasourceId": "<string>",
                  "customData": {}
                },
                "mergedCustomers": [
                  {}
                ],
                "startDate": "2023-12-25",
                "contractAnnualRevenue": 123,
                "notes": "CIO is interested in trying out the product."
              },
              "externalLinks": [
                {
                  "name": "<string>",
                  "url": "<string>",
                  "iconConfig": {
                    "color": "#343CED",
                    "key": "person_icon",
                    "iconType": "GLYPH",
                    "name": "user"
                  }
                }
              ],
              "content": [
                {
                  "displayHeader": "Action Items",
                  "content": "You said you'd send over the design document after the meeting."
                }
              ]
            }
          ]
        },
        "announcement": {
          "draftId": 342
        },
        "collection": {
          "name": "<string>",
          "description": "<string>",
          "addedRoles": [
            {
              "sourceDocumentSpec": {
                "url": "<string>"
              },
              "person": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "group": {
                "type": "DEPARTMENT",
                "id": "<string>",
                "name": "<string>"
              },
              "role": "OWNER"
            }
          ],
          "removedRoles": [
            {
              "sourceDocumentSpec": {
                "url": "<string>"
              },
              "person": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "group": {
                "type": "DEPARTMENT",
                "id": "<string>",
                "name": "<string>"
              },
              "role": "OWNER"
            }
          ],
          "audienceFilters": [
            {
              "fieldName": "type",
              "values": [
                {
                  "value": "Spreadsheet",
                  "relationType": "EQUALS"
                },
                {
                  "value": "Presentation",
                  "relationType": "EQUALS"
                }
              ]
            }
          ],
          "icon": "<string>",
          "adminLocked": true,
          "parentId": 123,
          "thumbnail": {
            "photoId": "<string>",
            "url": "<string>"
          },
          "allowedDatasource": "<string>",
          "permissions": {
            "write": {
              "scopeType": "GLOBAL",
              "create": true,
              "update": true,
              "delete": true
            }
          },
          "id": 123,
          "createTime": "2023-11-07T05:31:56Z",
          "updateTime": "2023-11-07T05:31:56Z",
          "creator": {
            "name": "George Clooney",
            "obfuscatedId": "abc123"
          },
          "updatedBy": {
            "name": "George Clooney",
            "obfuscatedId": "abc123"
          },
          "itemCount": 123,
          "childCount": 123,
          "items": [
            {
              "name": "<string>",
              "description": "<string>",
              "icon": "<string>",
              "collectionId": 123,
              "documentId": "<string>",
              "url": "<string>",
              "itemId": "<string>",
              "createdBy": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "createdAt": "2023-11-07T05:31:56Z",
              "document": {},
              "shortcut": {
                "id": 123,
                "inputAlias": "<string>",
                "destinationUrl": "<string>",
                "destinationDocumentId": "<string>",
                "description": "<string>",
                "unlisted": true,
                "urlTemplate": "<string>",
                "addedRoles": [
                  {
                    "sourceDocumentSpec": {
                      "url": "<string>"
                    },
                    "person": {
                      "name": "George Clooney",
                      "obfuscatedId": "abc123"
                    },
                    "group": {
                      "type": "DEPARTMENT",
                      "id": "<string>",
                      "name": "<string>"
                    },
                    "role": "OWNER"
                  }
                ],
                "removedRoles": [
                  {
                    "sourceDocumentSpec": {
                      "url": "<string>"
                    },
                    "person": {
                      "name": "George Clooney",
                      "obfuscatedId": "abc123"
                    },
                    "group": {
                      "type": "DEPARTMENT",
                      "id": "<string>",
                      "name": "<string>"
                    },
                    "role": "OWNER"
                  }
                ],
                "permissions": {
                  "write": {
                    "scopeType": "GLOBAL",
                    "create": true,
                    "update": true,
                    "delete": true
                  }
                },
                "createdBy": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "createTime": "2023-11-07T05:31:56Z",
                "updatedBy": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "updateTime": "2023-11-07T05:31:56Z",
                "destinationDocument": {},
                "intermediateUrl": "<string>",
                "viewPrefix": "<string>",
                "isExternal": true,
                "editUrl": "<string>",
                "alias": "<string>",
                "title": "<string>",
                "roles": [
                  {
                    "sourceDocumentSpec": {
                      "url": "<string>"
                    },
                    "person": {
                      "name": "George Clooney",
                      "obfuscatedId": "abc123"
                    },
                    "group": {
                      "type": "DEPARTMENT",
                      "id": "<string>",
                      "name": "<string>"
                    },
                    "role": "OWNER"
                  }
                ]
              },
              "collection": "<any>",
              "itemType": "DOCUMENT"
            }
          ],
          "pinMetadata": {
            "existingPins": [
              {
                "category": "COMPANY_RESOURCE",
                "value": "<string>",
                "target": "RESOURCE_CARD"
              }
            ],
            "eligiblePins": [
              {
                "id": 123,
                "target": {
                  "category": "COMPANY_RESOURCE",
                  "value": "<string>",
                  "target": "RESOURCE_CARD"
                }
              }
            ]
          },
          "shortcuts": [
            "<string>"
          ],
          "children": [
            "<any>"
          ],
          "roles": [
            {
              "sourceDocumentSpec": {
                "url": "<string>"
              },
              "person": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "group": {
                "type": "DEPARTMENT",
                "id": "<string>",
                "name": "<string>"
              },
              "role": "OWNER"
            }
          ]
        },
        "collectionItem": {
          "name": "<string>",
          "description": "<string>",
          "icon": "<string>",
          "collectionId": 123,
          "documentId": "<string>",
          "url": "<string>",
          "itemId": "<string>",
          "createdBy": {
            "name": "George Clooney",
            "obfuscatedId": "abc123"
          },
          "createdAt": "2023-11-07T05:31:56Z",
          "document": {},
          "shortcut": {
            "id": 123,
            "inputAlias": "<string>",
            "destinationUrl": "<string>",
            "destinationDocumentId": "<string>",
            "description": "<string>",
            "unlisted": true,
            "urlTemplate": "<string>",
            "addedRoles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ],
            "removedRoles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ],
            "permissions": {
              "write": {
                "scopeType": "GLOBAL",
                "create": true,
                "update": true,
                "delete": true
              }
            },
            "createdBy": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "createTime": "2023-11-07T05:31:56Z",
            "updatedBy": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "updateTime": "2023-11-07T05:31:56Z",
            "destinationDocument": {},
            "intermediateUrl": "<string>",
            "viewPrefix": "<string>",
            "isExternal": true,
            "editUrl": "<string>",
            "alias": "<string>",
            "title": "<string>",
            "roles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ]
          },
          "collection": "<any>",
          "itemType": "DOCUMENT"
        },
        "person": {
          "name": "George Clooney",
          "obfuscatedId": "abc123"
        },
        "app": {
          "datasource": "<string>",
          "docType": "<string>",
          "mimeType": "<string>",
          "iconUrl": "<string>"
        },
        "promptTemplate": {
          "promptTemplate": {
            "name": "<string>",
            "template": "<string>",
            "applicationId": "<string>",
            "inclusions": {
              "containerSpecs": [
                {
                  "url": "<string>"
                }
              ],
              "documentSpecs": [
                {
                  "url": "<string>"
                }
              ],
              "datasourceInstances": [
                "<string>"
              ]
            },
            "addedRoles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ],
            "removedRoles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ],
            "permissions": {
              "write": {
                "scopeType": "GLOBAL",
                "create": true,
                "update": true,
                "delete": true
              }
            },
            "id": "<string>",
            "author": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "createTimestamp": 123,
            "lastUpdateTimestamp": 123,
            "lastUpdatedBy": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "roles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ]
          },
          "trackingToken": "<string>",
          "favoriteInfo": {
            "ugcType": "ANNOUNCEMENTS_TYPE",
            "id": "<string>",
            "count": 123,
            "favoritedByUser": true
          },
          "runCount": {
            "count": 123,
            "period": {
              "minDaysFromNow": 123,
              "maxDaysFromNow": 123,
              "start": {
                "epochSeconds": 123,
                "daysFromNow": 123
              },
              "end": {
                "epochSeconds": 123,
                "daysFromNow": 123
              }
            },
            "org": "<string>"
          }
        },
        "workflow": {
          "workflow": {
            "permissions": {
              "write": {
                "scopeType": "GLOBAL",
                "create": true,
                "update": true,
                "delete": true
              }
            },
            "name": "<string>",
            "author": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "createTimestamp": 123,
            "lastUpdateTimestamp": 123,
            "lastUpdatedBy": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "id": "<string>"
          }
        },
        "activities": [
          {
            "actor": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "timestamp": 123,
            "action": "ADD",
            "aggregateVisitCount": {
              "count": 123,
              "period": {
                "minDaysFromNow": 123,
                "maxDaysFromNow": 123,
                "start": {
                  "epochSeconds": 123,
                  "daysFromNow": 123
                },
                "end": {
                  "epochSeconds": 123,
                  "daysFromNow": 123
                }
              },
              "org": "<string>"
            }
          }
        ],
        "documentVisitorCount": {
          "count": 123,
          "period": {
            "minDaysFromNow": 123,
            "maxDaysFromNow": 123,
            "start": {
              "epochSeconds": 123,
              "daysFromNow": 123
            },
            "end": {
              "epochSeconds": 123,
              "daysFromNow": 123
            }
          },
          "org": "<string>"
        }
      },
      "secondaryEntries": [
        {
          "entryId": "<string>",
          "title": "<string>",
          "thumbnail": {
            "photoId": "<string>",
            "url": "<string>"
          },
          "createdBy": {
            "name": "George Clooney",
            "obfuscatedId": "abc123"
          },
          "uiConfig": {
            "format": "LIST",
            "additionalFlags": {
              "showNewIndicator": true
            }
          },
          "justificationType": "FREQUENTLY_ACCESSED",
          "justification": "<string>",
          "trackingToken": "<string>",
          "viewUrl": "<string>",
          "document": {
            "id": "<string>",
            "datasource": "<string>",
            "connectorType": "API_CRAWL",
            "docType": "<string>",
            "content": {
              "fullTextList": [
                "<string>"
              ]
            },
            "containerDocument": {},
            "parentDocument": {},
            "title": "<string>",
            "url": "<string>",
            "metadata": {
              "container": "container",
              "parentId": "JIRA_EN-1337",
              "createTime": "2000-01-23T04:56:07.000Z",
              "datasource": "datasource",
              "author": {
                "name": "name"
              },
              "documentId": "documentId",
              "updateTime": "2000-01-23T04:56:07.000Z",
              "mimeType": "mimeType",
              "objectType": "Feature Request",
              "components": [
                "Backend",
                "Networking"
              ],
              "status": [
                "Done"
              ],
              "customData": {
                "someCustomField": "someCustomValue"
              }
            },
            "sections": [
              {
                "title": "<string>",
                "url": "<string>"
              }
            ]
          },
          "event": {
            "time": {
              "start": "<string>",
              "end": "<string>"
            },
            "eventType": "DEFAULT",
            "id": "<string>",
            "url": "<string>",
            "attendees": {
              "people": [
                {
                  "isOrganizer": true,
                  "isInGroup": true,
                  "person": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "groupAttendees": [
                    {}
                  ],
                  "responseStatus": "ACCEPTED"
                }
              ],
              "isLimit": true,
              "total": 123,
              "numAccepted": 123,
              "numDeclined": 123,
              "numNoResponse": 123,
              "numTentative": 123
            },
            "location": "<string>",
            "conferenceData": {
              "provider": "ZOOM",
              "uri": "<string>",
              "source": "NATIVE_CONFERENCE"
            },
            "description": "<string>",
            "datasource": "<string>",
            "hasTranscript": true,
            "classifications": [
              {
                "name": "External Event",
                "strategies": [
                  "customerCard"
                ]
              }
            ],
            "generatedAttachments": [
              {
                "strategyName": "customerCard",
                "documents": [
                  {
                    "id": "<string>",
                    "datasource": "<string>",
                    "connectorType": "API_CRAWL",
                    "docType": "<string>",
                    "content": {
                      "fullTextList": [
                        "<string>"
                      ]
                    },
                    "containerDocument": {},
                    "parentDocument": {},
                    "title": "<string>",
                    "url": "<string>",
                    "metadata": {
                      "container": "container",
                      "parentId": "JIRA_EN-1337",
                      "createTime": "2000-01-23T04:56:07.000Z",
                      "datasource": "datasource",
                      "author": {
                        "name": "name"
                      },
                      "documentId": "documentId",
                      "updateTime": "2000-01-23T04:56:07.000Z",
                      "mimeType": "mimeType",
                      "objectType": "Feature Request",
                      "components": [
                        "Backend",
                        "Networking"
                      ],
                      "status": [
                        "Done"
                      ],
                      "customData": {
                        "someCustomField": "someCustomValue"
                      }
                    },
                    "sections": [
                      {
                        "title": "<string>",
                        "url": "<string>"
                      }
                    ]
                  }
                ],
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "customer": {
                  "id": "<string>",
                  "domains": [
                    "<string>"
                  ],
                  "company": {
                    "name": "<string>",
                    "profileUrl": "<string>",
                    "websiteUrls": [
                      "<string>"
                    ],
                    "logoUrl": "<string>",
                    "location": "New York City",
                    "phone": "<string>",
                    "fax": "<string>",
                    "industry": "Finances",
                    "annualRevenue": 123,
                    "numberOfEmployees": 123,
                    "stockSymbol": "<string>",
                    "foundedDate": "2023-12-25",
                    "about": "Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"
                  },
                  "documentCounts": {},
                  "poc": [
                    {
                      "name": "George Clooney",
                      "obfuscatedId": "abc123"
                    }
                  ],
                  "metadata": {
                    "datasourceId": "<string>",
                    "customData": {}
                  },
                  "mergedCustomers": [
                    {}
                  ],
                  "startDate": "2023-12-25",
                  "contractAnnualRevenue": 123,
                  "notes": "CIO is interested in trying out the product."
                },
                "externalLinks": [
                  {
                    "name": "<string>",
                    "url": "<string>",
                    "iconConfig": {
                      "color": "#343CED",
                      "key": "person_icon",
                      "iconType": "GLYPH",
                      "name": "user"
                    }
                  }
                ],
                "content": [
                  {
                    "displayHeader": "Action Items",
                    "content": "You said you'd send over the design document after the meeting."
                  }
                ]
              }
            ]
          },
          "announcement": {
            "draftId": 342
          },
          "collection": {
            "name": "<string>",
            "description": "<string>",
            "addedRoles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ],
            "removedRoles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ],
            "audienceFilters": [
              {
                "fieldName": "type",
                "values": [
                  {
                    "value": "Spreadsheet",
                    "relationType": "EQUALS"
                  },
                  {
                    "value": "Presentation",
                    "relationType": "EQUALS"
                  }
                ]
              }
            ],
            "icon": "<string>",
            "adminLocked": true,
            "parentId": 123,
            "thumbnail": {
              "photoId": "<string>",
              "url": "<string>"
            },
            "allowedDatasource": "<string>",
            "permissions": {
              "write": {
                "scopeType": "GLOBAL",
                "create": true,
                "update": true,
                "delete": true
              }
            },
            "id": 123,
            "createTime": "2023-11-07T05:31:56Z",
            "updateTime": "2023-11-07T05:31:56Z",
            "creator": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "updatedBy": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "itemCount": 123,
            "childCount": 123,
            "items": [
              {
                "name": "<string>",
                "description": "<string>",
                "icon": "<string>",
                "collectionId": 123,
                "documentId": "<string>",
                "url": "<string>",
                "itemId": "<string>",
                "createdBy": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "createdAt": "2023-11-07T05:31:56Z",
                "document": {},
                "shortcut": {
                  "id": 123,
                  "inputAlias": "<string>",
                  "destinationUrl": "<string>",
                  "destinationDocumentId": "<string>",
                  "description": "<string>",
                  "unlisted": true,
                  "urlTemplate": "<string>",
                  "addedRoles": [
                    {
                      "sourceDocumentSpec": {
                        "url": "<string>"
                      },
                      "person": {
                        "name": "George Clooney",
                        "obfuscatedId": "abc123"
                      },
                      "group": {
                        "type": "DEPARTMENT",
                        "id": "<string>",
                        "name": "<string>"
                      },
                      "role": "OWNER"
                    }
                  ],
                  "removedRoles": [
                    {
                      "sourceDocumentSpec": {
                        "url": "<string>"
                      },
                      "person": {
                        "name": "George Clooney",
                        "obfuscatedId": "abc123"
                      },
                      "group": {
                        "type": "DEPARTMENT",
                        "id": "<string>",
                        "name": "<string>"
                      },
                      "role": "OWNER"
                    }
                  ],
                  "permissions": {
                    "write": {
                      "scopeType": "GLOBAL",
                      "create": true,
                      "update": true,
                      "delete": true
                    }
                  },
                  "createdBy": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "createTime": "2023-11-07T05:31:56Z",
                  "updatedBy": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "updateTime": "2023-11-07T05:31:56Z",
                  "destinationDocument": {},
                  "intermediateUrl": "<string>",
                  "viewPrefix": "<string>",
                  "isExternal": true,
                  "editUrl": "<string>",
                  "alias": "<string>",
                  "title": "<string>",
                  "roles": [
                    {
                      "sourceDocumentSpec": {
                        "url": "<string>"
                      },
                      "person": {
                        "name": "George Clooney",
                        "obfuscatedId": "abc123"
                      },
                      "group": {
                        "type": "DEPARTMENT",
                        "id": "<string>",
                        "name": "<string>"
                      },
                      "role": "OWNER"
                    }
                  ]
                },
                "collection": "<any>",
                "itemType": "DOCUMENT"
              }
            ],
            "pinMetadata": {
              "existingPins": [
                {
                  "category": "COMPANY_RESOURCE",
                  "value": "<string>",
                  "target": "RESOURCE_CARD"
                }
              ],
              "eligiblePins": [
                {
                  "id": 123,
                  "target": {
                    "category": "COMPANY_RESOURCE",
                    "value": "<string>",
                    "target": "RESOURCE_CARD"
                  }
                }
              ]
            },
            "shortcuts": [
              "<string>"
            ],
            "children": [
              "<any>"
            ],
            "roles": [
              {
                "sourceDocumentSpec": {
                  "url": "<string>"
                },
                "person": {
                  "name": "George Clooney",
                  "obfuscatedId": "abc123"
                },
                "group": {
                  "type": "DEPARTMENT",
                  "id": "<string>",
                  "name": "<string>"
                },
                "role": "OWNER"
              }
            ]
          },
          "collectionItem": {
            "name": "<string>",
            "description": "<string>",
            "icon": "<string>",
            "collectionId": 123,
            "documentId": "<string>",
            "url": "<string>",
            "itemId": "<string>",
            "createdBy": {
              "name": "George Clooney",
              "obfuscatedId": "abc123"
            },
            "createdAt": "2023-11-07T05:31:56Z",
            "document": {},
            "shortcut": {
              "id": 123,
              "inputAlias": "<string>",
              "destinationUrl": "<string>",
              "destinationDocumentId": "<string>",
              "description": "<string>",
              "unlisted": true,
              "urlTemplate": "<string>",
              "addedRoles": [
                {
                  "sourceDocumentSpec": {
                    "url": "<string>"
                  },
                  "person": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "group": {
                    "type": "DEPARTMENT",
                    "id": "<string>",
                    "name": "<string>"
                  },
                  "role": "OWNER"
                }
              ],
              "removedRoles": [
                {
                  "sourceDocumentSpec": {
                    "url": "<string>"
                  },
                  "person": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "group": {
                    "type": "DEPARTMENT",
                    "id": "<string>",
                    "name": "<string>"
                  },
                  "role": "OWNER"
                }
              ],
              "permissions": {
                "write": {
                  "scopeType": "GLOBAL",
                  "create": true,
                  "update": true,
                  "delete": true
                }
              },
              "createdBy": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "createTime": "2023-11-07T05:31:56Z",
              "updatedBy": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "updateTime": "2023-11-07T05:31:56Z",
              "destinationDocument": {},
              "intermediateUrl": "<string>",
              "viewPrefix": "<string>",
              "isExternal": true,
              "editUrl": "<string>",
              "alias": "<string>",
              "title": "<string>",
              "roles": [
                {
                  "sourceDocumentSpec": {
                    "url": "<string>"
                  },
                  "person": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "group": {
                    "type": "DEPARTMENT",
                    "id": "<string>",
                    "name": "<string>"
                  },
                  "role": "OWNER"
                }
              ]
            },
            "collection": "<any>",
            "itemType": "DOCUMENT"
          },
          "person": {
            "name": "George Clooney",
            "obfuscatedId": "abc123"
          },
          "app": {
            "datasource": "<string>",
            "docType": "<string>",
            "mimeType": "<string>",
            "iconUrl": "<string>"
          },
          "promptTemplate": {
            "promptTemplate": {
              "name": "<string>",
              "template": "<string>",
              "applicationId": "<string>",
              "inclusions": {
                "containerSpecs": [
                  {
                    "url": "<string>"
                  }
                ],
                "documentSpecs": [
                  {
                    "url": "<string>"
                  }
                ],
                "datasourceInstances": [
                  "<string>"
                ]
              },
              "addedRoles": [
                {
                  "sourceDocumentSpec": {
                    "url": "<string>"
                  },
                  "person": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "group": {
                    "type": "DEPARTMENT",
                    "id": "<string>",
                    "name": "<string>"
                  },
                  "role": "OWNER"
                }
              ],
              "removedRoles": [
                {
                  "sourceDocumentSpec": {
                    "url": "<string>"
                  },
                  "person": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "group": {
                    "type": "DEPARTMENT",
                    "id": "<string>",
                    "name": "<string>"
                  },
                  "role": "OWNER"
                }
              ],
              "permissions": {
                "write": {
                  "scopeType": "GLOBAL",
                  "create": true,
                  "update": true,
                  "delete": true
                }
              },
              "id": "<string>",
              "author": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "createTimestamp": 123,
              "lastUpdateTimestamp": 123,
              "lastUpdatedBy": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "roles": [
                {
                  "sourceDocumentSpec": {
                    "url": "<string>"
                  },
                  "person": {
                    "name": "George Clooney",
                    "obfuscatedId": "abc123"
                  },
                  "group": {
                    "type": "DEPARTMENT",
                    "id": "<string>",
                    "name": "<string>"
                  },
                  "role": "OWNER"
                }
              ]
            },
            "trackingToken": "<string>",
            "favoriteInfo": {
              "ugcType": "ANNOUNCEMENTS_TYPE",
              "id": "<string>",
              "count": 123,
              "favoritedByUser": true
            },
            "runCount": {
              "count": 123,
              "period": {
                "minDaysFromNow": 123,
                "maxDaysFromNow": 123,
                "start": {
                  "epochSeconds": 123,
                  "daysFromNow": 123
                },
                "end": {
                  "epochSeconds": 123,
                  "daysFromNow": 123
                }
              },
              "org": "<string>"
            }
          },
          "workflow": {
            "workflow": {
              "permissions": {
                "write": {
                  "scopeType": "GLOBAL",
                  "create": true,
                  "update": true,
                  "delete": true
                }
              },
              "name": "<string>",
              "author": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "createTimestamp": 123,
              "lastUpdateTimestamp": 123,
              "lastUpdatedBy": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "id": "<string>"
            }
          },
          "activities": [
            {
              "actor": {
                "name": "George Clooney",
                "obfuscatedId": "abc123"
              },
              "timestamp": 123,
              "action": "ADD",
              "aggregateVisitCount": {
                "count": 123,
                "period": {
                  "minDaysFromNow": 123,
                  "maxDaysFromNow": 123,
                  "start": {
                    "epochSeconds": 123,
                    "daysFromNow": 123
                  },
                  "end": {
                    "epochSeconds": 123,
                    "daysFromNow": 123
                  }
                },
                "org": "<string>"
              }
            }
          ],
          "documentVisitorCount": {
            "count": 123,
            "period": {
              "minDaysFromNow": 123,
              "maxDaysFromNow": 123,
              "start": {
                "epochSeconds": 123,
                "daysFromNow": 123
              },
              "end": {
                "epochSeconds": 123,
                "daysFromNow": 123
              }
            },
            "org": "<string>"
          }
        }
      ],
      "rank": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Scio-Actas
string

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

Body

application/json
GetEvents request
ids
string[]
required

The ids of the calendar events to be retrieved.

authTokens
object[]

Auth tokens if client-side authentication.

datasource
string

The app or other repository type from which the event was extracted

annotate
boolean

Whether relevant content and documents, via GeneratedAttachments, should be attached to the events.

Response

200
application/json
OK
events
object[]

The requested events. Uses a FeedResult for now as a Calendar Event doesn't have all event info such as attachments.