Push API

1. List all pushes

GET /pushes

Request

Headers

Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
X-Synapse-Data: {"account":{"id":"uuid","role_key":"root"}}
Host: example.org
Cookie: 

Route

GET /pushes

Query Parameters

{
}: 

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/vnd.api+json; charset=utf-8
ETag: W/"44fb0d0c450362d9f5b8b1392d691f9c"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 8729196e-2418-4f36-abdd-f8da482f7095
X-Runtime: 0.020845
Content-Length: 1430

Status

200 OK

Body

{
  "data": [
    {
      "id": "d600a8c8-1ebd-46d3-b2a2-12c24ec604c7",
      "type": "pushes",
      "attributes": {
        "owner_id": null,
        "app_id": "50bd1ee5-94f7-4cd6-bb0d-55bc0fb51df3",
        "created_at": "2017-11-14T10:47:35.715Z",
        "updated_at": "2017-11-14T10:47:35.715Z"
      },
      "meta": {
        "total": 0,
        "sent": 0,
        "failed": 0,
        "received": 0,
        "opened": 0
      }
    },
    {
      "id": "1b6a960f-d17b-430b-b9f2-a6fc1f9d0594",
      "type": "pushes",
      "attributes": {
        "owner_id": null,
        "app_id": "dc60afa5-e97a-4111-bde2-c79616a4c0fb",
        "created_at": "2017-11-14T10:47:35.718Z",
        "updated_at": "2017-11-14T10:47:35.718Z"
      },
      "meta": {
        "total": 0,
        "sent": 0,
        "failed": 0,
        "received": 0,
        "opened": 0
      }
    },
    {
      "id": "9c242371-fd3c-4bf0-b306-eb3ad3cdb427",
      "type": "pushes",
      "attributes": {
        "owner_id": null,
        "app_id": "b6c02577-b7d1-44ce-8026-5902ac808bc1",
        "created_at": "2017-11-14T10:47:36.324Z",
        "updated_at": "2017-11-14T10:47:36.324Z"
      },
      "meta": {
        "total": 0,
        "sent": 0,
        "failed": 0,
        "received": 0,
        "opened": 0
      }
    },
    {
      "id": "45fc18d0-f39d-46ec-bcb6-bd339aa2ebd0",
      "type": "pushes",
      "attributes": {
        "owner_id": null,
        "app_id": "b6c02577-b7d1-44ce-8026-5902ac808bc1",
        "created_at": "2017-11-14T10:47:36.325Z",
        "updated_at": "2017-11-14T10:47:36.325Z"
      },
      "meta": {
        "total": 0,
        "sent": 0,
        "failed": 0,
        "received": 0,
        "opened": 0
      }
    },
    {
      "id": "92bc6815-8f5d-4460-ac62-638c64fe120c",
      "type": "pushes",
      "attributes": {
        "owner_id": null,
        "app_id": "b6c02577-b7d1-44ce-8026-5902ac808bc1",
        "created_at": "2017-11-14T10:47:36.327Z",
        "updated_at": "2017-11-14T10:47:36.327Z"
      },
      "meta": {
        "total": 0,
        "sent": 0,
        "failed": 0,
        "received": 0,
        "opened": 0
      }
    }
  ]
}