{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"**This endpoint allows you to retrieve the monthly email statistics for all subusers over the given date range.**\n\nWhen using the `sort_by_metric` to sort your stats by a specific metric, you can not sort by the following metrics:\n`bounce_drops`, `deferred`, `invalid_emails`, `processed`, `spam_report_drops`, `spam_reports`, or `unsubscribe_drops`.","properties":{"query":{"type":"object","properties":{"date":{"type":"string","description":"The date of the month to retrieve statistics for. Must be formatted YYYY-MM-DD"},"subuser":{"type":"string","description":"A substring search of your subusers."},"sort_by_metric":{"allOf":[{"$ref":"#/definitions/SortByMetric"},{"type":"string","default":"delivered"}],"description":"The metric that you want to sort by. Metrics that you can sort by are: `blocks`, `bounces`, `clicks`, `delivered`, `opens`, `requests`, `unique_clicks`, `unique_opens`, and `unsubscribes`.'"},"sort_by_direction":{"allOf":[{"$ref":"#/definitions/SortByDirection1"},{"type":"string","default":"desc"}],"description":"The direction you want to sort."},"limit":{"type":"integer","default":5,"description":"Optional field to limit the number of results returned."},"offset":{"type":"integer","default":0,"description":"Optional beginning point in the list to retrieve from."}},"required":["date"],"additionalProperties":false}},"required":["query"],"additionalProperties":false,"definitions":{"SortByMetric":{"type":"string","enum":["blocks","bounces","clicks","delivered","opens","requests","unique_clicks","unique_opens","unsubscribes"]},"SortByDirection1":{"type":"string","enum":["desc","asc"]}}},"name":"Retrieve monthly stats for all subusers","id":"sendgrid.subusers.listmonthlystat","example":{"query":{"date":"example"}},"maxRequests":1,"summary":false}}