{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"**This endpoint allows you to retrieve stats for a single Automation using its ID.**\n\nMultiple Automation IDs can be retrieved using the \"Get All Automation Stats\" endpoint. Once you have an ID, this endpoint will return detailed stats for the single automation specified.\n\nYou may constrain the stats returned using the `start_date` and `end_date` query string parameters. You can also use the `group_by` and `aggregated_by` query string parameters to further refine the stats returned.","properties":{"path":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Automation for which you want to retrieve statistics. "}},"required":["id"],"additionalProperties":false},"query":{"type":"object","properties":{"group_by":{"type":"array","items":{"allOf":[{"$ref":"#/definitions/Items"},{"type":"string"}]},"description":"Automations can have multiple steps. Including `step_id` as a `group_by` metric allows further granularity of stats."},"step_ids":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true,"description":"Comma-separated list of `step_ids` that you want the link stats for."},"aggregated_by":{"allOf":[{"$ref":"#/definitions/AggregatedBy"},{"type":"string","default":"total"}],"description":"Dictates how the stats are time-sliced. Currently, `\"total\"` and `\"day\"` are supported."},"start_date":{"type":"string","format":"date","default":"2021-01-01","description":"Format: `YYYY-MM-DD`. If this parameter is included, the stats' start date is included in the search."},"end_date":{"type":"string","format":"date","default":"2021-12-31","description":"Format: `YYYY-MM-DD`.If this parameter is included, the stats' end date is included in the search."},"timezone":{"type":"string","default":"UTC","description":"[IANA Area/Region](https://en.wikipedia.org/wiki/Tz_database#Names_of_timezones) string representing the timezone in which the stats are to be presented, e.g., \"America/Chicago\"."},"page_size":{"type":"integer","minimum":1,"maximum":50,"default":25,"description":"The number of elements you want returned on each page."},"page_token":{"type":"string","description":"The stats endpoints are paginated. To get the next page, call the passed `_metadata.next` URL. If `_metadata.prev` doesn't exist, you're at the first page. Similarly, if `_metadata.next` is not present, you're at the last page."}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false,"definitions":{"Items":{"type":"string","enum":["step_id"]},"AggregatedBy":{"type":"string","enum":["day","total"]}}},"name":"Get Automation Stats by ID","id":"sendgrid.mc_stats.getautomationstat","example":{"path":{"id":"example"}},"maxRequests":1,"summary":false}}