Gamma API

List my notifications

GET
/api/account/inbox

The caller's in-app notifications, newest first, twenty at a time, with the unread count.

Who may call it: Any signed-in user, for their own account. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Query Parameters

before?string

The previous page's nextCursor.

Length1 <= length <= 64

Response Body

OK.

application/json
  1. response

A page of the caller's in-app notifications.

notifications*array<>

Newest first.

unread*integer

How many of all of them are unread.

Range-9007199254740991 <= value <= 9007199254740991
nextCursor*|

Pass as before for the next page; null on the last.

jobs*array<>

The caller's jobs still queued or running, newest first; on the first page only, empty with before.

Example Request
curl -X GET 'http://localhost:3000/api/account/inbox'
Example Response
{  "notifications": [    {      "id": "string",      "type": "string",      "data": {        "property1": null,        "property2": null      },      "path": "string",      "organizationId": "string",      "projectId": "string",      "readAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "unread": -9007199254740991,  "nextCursor": "string",  "jobs": [    {      "id": "string",      "type": "string",      "status": "queued",      "projectId": "string",      "projectName": "string",      "subject": "string",      "path": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}