GET Get Notifications¶
Endpoint¶
GET /notify/list
Description¶
Returns notifications for the authenticated client account.
Available to SESSION_USER (including guest sessions) and SESSION_CUSTOMER.
An account or guest token can request only its own login; a customer token can
request only an account linked to that customer. Other logins return HTTP 403.
Guest sessions can read, mark read, and delete notifications belonging to their own account.
Important behavior:
- only notifications with
user_id = current account loginare returned - legacy records with
user_id = 0are not returned here - filtering is applied against the notification message payload
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
| login | int | Yes | Account login; must belong to the authenticated session |
| limit | int | Yes | Maximum number of rows to return |
| offset | int | Yes | Pagination offset |
| filter | string | No | Text filter applied to notification message |
| where | array | No | SQL filter conditions |
| orWhere | array | No | Alternative SQL filter conditions |
| whereNot | array | No | Negated filter conditions |
| whereIn | array | No | Field and allowed-value lists |
| whereNotIn | array | No | Field and excluded-value lists |
| whereBetween | array | No | Inclusive field ranges |
| whereNotBetween | array | No | Excluded field ranges |
| orderBy | array | No | Sort field and direction, e.g. ["id", "DESC"] |
Request Example¶
GET /notify/list?login=7778016&limit=20&offset=0&filter=margin
Authorization: Bearer <JWT_TOKEN>
Response Parameters¶
| Name | Type | Description |
|---|---|---|
| structure | array | Ordered field list used in each row |
| rows | array | Notification rows |
| total | int | Number of matching notifications before pagination |
Each row contains:
idtokenmessagecreate_timeopen_timeexp_timetypestatusleveldescriptiondata
Response Example¶
{
"structure": ["id", "token", "message", "create_time", "open_time", "exp_time", "type", "status", "level", "description", "data"],
"total": 1,
"rows": [
[
101,
"MARGIN_CALL",
"Margin call: Your margin level is below threshold",
1734312345,
0,
0,
2,
1,
1,
"Margin threshold warning",
{ "level": 87.2 }
]
]
}