{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create event summaries for a user. Event summaries are used to track the number of times an event has occurred, the first time it occurred and the last time it occurred.\n\nIdentify the user with one of `id`, `user_id` or `email`. If more than one is sent, `id` is used first, then `user_id`, then `email`.\n\nRequires the `write_events` OAuth scope.\n","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/create_data_event_summaries_request"}},"required":[],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]},"create_data_event_summaries_request":{"description":"You can send a list of event summaries for a user. Each event summary should contain the event name, the time the event occurred, and the number of times the event occurred. The event name should be a past tense \"verb-noun\" combination, to improve readability, for example `updated-plan`.","type":"object","title":"Create Data Event Summaries Request","anyOf":[{"title":"id required","required":["id"]},{"title":"user_id required","required":["user_id"]},{"title":"email required","required":["email"]}],"properties":{"user_id":{"type":"string","description":"Your identifier for the user.","examples":["314159"]},"id":{"type":"string","description":"The Intercom defined id of the user. Takes precedence over `user_id` and `email`.","examples":["63a0979a5eeebeaf28dd56ba"]},"email":{"type":"string","description":"The user's email address. Only used when neither `id` nor `user_id` is supplied.","examples":["frodo.baggins@example.com"]},"event_summaries":{"type":"array","description":"A list of event summaries for the user. Each event summary should contain the event name, the time the event occurred, and the number of times the event occurred. The event name should be a past tense 'verb-noun' combination, to improve readability, for example `updated-plan`.","items":{"type":"object","required":["event_name","count","first","last"],"properties":{"event_name":{"type":"string","description":"The name of the event that occurred. A good event name is typically a past tense 'verb-noun' combination, to improve readability, for example `updated-plan`.","examples":["invited-friend"]},"count":{"type":"integer","description":"The number of times the event occurred.","examples":[1]},"first":{"type":"integer","format":"date-time","description":"The first time the event was sent","examples":[1671028894]},"last":{"type":"integer","format":"date-time","description":"The last time the event was sent","examples":[1671028894]}}}}},"required":["event_summaries"]}}},"name":"Create event summaries","id":"intercom.dataeventsummaries","example":{},"maxRequests":1,"summary":false}}