---
updatedAt: 2025-06-04T21:28:32.000Z
agentTools:
  projectIndex: https://developer.simpplr.com/llms.txt
---

# News Letters

Use this API to get News Letters

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "simpplr-api-gateway",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.ec.simpplr.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/analytics/newsletter": {
      "get": {
        "summary": "News Letters",
        "description": "Use this API to get News Letters",
        "operationId": "news-letters",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Time from which the News Letters data need to be selected",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2020-12-27"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Time till which the News Letters data need to be selected",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2022-01-26"
            }
          },
          {
            "name": "group-by",
            "in": "query",
            "description": "Group the Result according to group-by value",
            "schema": {
              "type": "string",
              "enum": [
                "day",
                "week",
                "month"
              ],
              "default": "day"
            }
          },
          {
            "name": "x-user-email",
            "in": "header",
            "description": "User's email to login into Salesforce",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"statusCode\": 200,\n    \"status\": \"success\",\n    \"message\": \"\",\n    \"data\": {\n        \"data\": {\n            \"totalRecipientCount\": 0,\n            \"sentCount\": 0,\n            \"recentlysentCount\": 0,\n            \"averageOpenPercentage\": 0,\n            \"averageClickPercentage\": 0\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "example": ""
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "object",
                          "properties": {
                            "totalRecipientCount": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "sentCount": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "recentlysentCount": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "averageOpenPercentage": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "averageClickPercentage": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"statusCode\": 401,\n    \"status\": \"error\",\n    \"message\": \"SESSION_TIMEOUT\",\n    \"data\": {}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "SESSION_TIMEOUT"
                    },
                    "data": {
                      "type": "object",
                      "properties": {}
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```