Skip to Content
CosmicAC Logo
API referenceApp node API

Notification routes

User notifications and delivery channels.

GET
/auth/user/notification-channel

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Query Parameters

channels?string

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/auth/user/notification-channel' \  -H 'ttr-token: <session-token>'
Example Response200
Empty
POST
/auth/user/notification-channel

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Request Body

application/json
  1. body
channel*string
Value in"email""push"
conf?
action*string
Value in"set""remove"

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/auth/user/notification-channel' \  -H 'ttr-token: <session-token>' \  -H 'Content-Type: application/json' \  -d '{  "channel": "email",  "action": "set",  "conf": {}}'
Example Response200
Empty

/auth/user/notification

GET
/auth/user/notification

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Query Parameters

start_ts?integer
end_ts?integer

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/auth/user/notification' \  -H 'ttr-token: <session-token>'
Example Response200
Empty
POST
/auth/user/notification/{notificationId}/dismiss

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

notificationId*string

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/auth/user/notification/string/dismiss' \  -H 'ttr-token: <session-token>'
Example Response200
Empty
POST
/auth/user/notification/dismiss-all

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/auth/user/notification/dismiss-all' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/auth/user/vapid-key

GET
/auth/user/vapid-key

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/auth/user/vapid-key' \  -H 'ttr-token: <session-token>'
Example Response200
Empty
POST
/auth/user/push-notification-test

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/auth/user/push-notification-test' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/auth/user/activities

GET
/auth/user/activities

Requires team capability activities.read. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Query Parameters

start_ts?integer
end_ts?integer
limit?integer
Range1 <= value <= 100
Default10
cursor?string
type?string
team_id?string
sort?string
Default"desc"
Value in"asc""desc"

Header Parameters

x-team-id?string

Team to act on. Required only when the caller belongs to more than one team.

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/auth/user/activities' \  -H 'ttr-token: <session-token>'
Example Response200
Empty