Nurama Developers
Notifications

Get new notifications with pagination support

Retrieves new notifications with support for both cursor and index-based pagination, optionally updating last seen records. Note that if a cursor is submitted this is essentially the same as calling the /notifications endpoint. Also, if a cursor is submitted you probably want to set the updateLastSeen to false.

POST
/notifications/new

Retrieves new notifications with support for both cursor and index-based pagination, optionally updating last seen records. Note that if a cursor is submitted this is essentially the same as calling the /notifications endpoint. Also, if a cursor is submitted you probably want to set the updateLastSeen to false.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/notifications/new" \  -H "Content-Type: application/json" \  -d '{    "channels": [      "/project/[projectId]/creator"    ]  }'
{  "results": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "_id": "1f704bc5-5055-43eb-a851-c87b6b0bf7b9",      "type": "string",      "initiatorId": "b631b8d8-c217-4b56-82fc-36ea91cf342a",      "initiatorType": "user",      "initiator": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "firstName": "string",        "lastName": "string",        "displayName": "string",        "avatar": "01d8bd6c-6014-46aa-b5b1-14d337c9c779",        "color": "string",        "awards": [          "staff"        ],        "accountType": "standard"      },      "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",      "resourceType": "workspace",      "channels": [        "string"      ],      "tokens": {},      "changes": {        "create": [          {            "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",            "resourceType": "string",            "resource": {}          }        ],        "update": [          {            "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",            "resourceType": "string",            "oldResource": {},            "resource": {}          }        ],        "delete": [          {            "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",            "resourceType": "string"          }        ]      },      "scheduledSendAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string",  "prevCursor": "string",  "hasNextPage": true,  "hasPrevPage": true,  "totalResults": 0,  "totalPreviousResults": 0,  "totalNextResults": 0}