mailbadger/app

Campaign stats: complaints endpoint

FilipNikolovski opened this issue · 1 comments

API endpoint

/api/campaigns/{id}/complaints

Response object

{
  "total": 123,
  "per_page": 10,
  "links": {
    "previous": null,
    "next": "/api/campaigns/{id}/complaints?per_page=10&starting_after=11"
  },
  "collection": [
    {
      "id": 10,
      "campaign_id": 5,
      "user_agent": "Android",
      "recipient": "john@example.com",
      "type": "abuse",
      "feedback_id": "examplecode",
      "created_at": "2020-08-08T23:00:0000Z"
    }
  ]
}

spent 2h on this issue *edited from 1.30