Real time
WebSocket and real-time notification endpoints
Subscribe to a real-time channel (Legacy)
Authorization
HTTPBearer In: header
Request Body
application/json
Channel name to subscribe to
Optional channel filters
Response Body
application/json
application/json
curl -X POST "https://loading/api/realtime/subscribe" \ -H "Content-Type: application/json" \ -d '{ "channel": "string" }'{}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Unsubscribe from a real-time channel (Legacy)
Authorization
HTTPBearer In: header
Request Body
application/json
Channel name to unsubscribe from
Response Body
application/json
application/json
curl -X POST "https://loading/api/realtime/unsubscribe" \ -H "Content-Type: application/json" \ -d '{ "channel": "string" }'{}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}List available real-time channels (Legacy)
Authorization
HTTPBearer In: header
Response Body
application/json
curl -X GET "https://loading/api/realtime/channels"{}Send Notification
Request Body
application/json
Notification message text
Optional notification title
Target notification channel
"slack""slack" | "email" | "telegram" | "push" | "websocket" | "sms" | "webhook" | "discord"Notification priority level
"medium""low" | "medium" | "high" | "critical"Additional metadata
Response Body
application/json
application/json
curl -X POST "https://loading/api/notifications/send" \ -H "Content-Type: application/json" \ -d '{ "message": "string" }'{}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Send Trade Alert
Request Body
application/json
Type of trade (buy/sell)
Trading symbol (e.g., BTC/USDT)
Trade amount
Execution price
Profit/loss amount
List of channels to notify
Response Body
application/json
application/json
curl -X POST "https://loading/api/notifications/trade-alert" \ -H "Content-Type: application/json" \ -d '{ "trade_type": "string", "symbol": "string", "amount": 0, "price": 0 }'{}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Send System Alert
Request Body
application/json
Type of alert (error, warning, info)
Alert message
Alert severity level
"medium""low" | "medium" | "high" | "critical"List of channels to notify
Response Body
application/json
application/json
curl -X POST "https://loading/api/notifications/system-alert" \ -H "Content-Type: application/json" \ -d '{ "alert_type": "string", "message": "string" }'{}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl -X GET "https://loading/api/notifications/status"{}Get user notifications
Authorization
HTTPBearer In: header
Query Parameters
Maximum number of results
501 <= value <= 100Number of results to skip
00 <= valueFilter for unread notifications only
falseFilter by notification type
Response Body
application/json
application/json
curl -X GET "https://loading/api/notifications"{
"notifications": [
{
"type": "alert",
"title": "string",
"message": "string",
"notification_metadata": {},
"link": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"read_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z"
}
],
"total": 0,
"limit": 0,
"offset": 0,
"unread_count": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get unread notification count
Authorization
HTTPBearer In: header
Response Body
application/json
curl -X GET "https://loading/api/notifications/unread-count"{
"unread_count": 0
}Mark notification as read
Authorization
HTTPBearer In: header
Path Parameters
Response Body
application/json
application/json
curl -X PATCH "https://loading/api/notifications/string/read"{
"type": "alert",
"title": "string",
"message": "string",
"notification_metadata": {},
"link": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"read_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Mark all notifications as read
Authorization
HTTPBearer In: header
Response Body
application/json
curl -X POST "https://loading/api/notifications/mark-all-read"{
"marked_count": 0,
"message": "string"
}Send test notification to specific channel
Authorization
HTTPBearer In: header
Request Body
application/json
Channel to test (email, push, websocket, sms, webhook, slack, discord, telegram)
Response Body
application/json
application/json
curl -X POST "https://loading/api/notifications/test-channel" \ -H "Content-Type: application/json" \ -d '{ "channel": "string" }'{
"success": true,
"message": "string",
"channel": "string",
"details": {}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Subscribe to push notifications
Authorization
HTTPBearer In: header
Request Body
application/json
Push notification endpoint URL
Public key for encryption (p256dh)
Authentication secret
Browser user agent string
Device/browser name
Response Body
application/json
application/json
curl -X POST "https://loading/api/push/subscribe" \ -H "Content-Type: application/json" \ -d '{ "endpoint": "string", "keys.p256dh": "string", "keys.auth": "string" }'{
"success": true,
"message": "string",
"subscription": {
"endpoint": "string",
"p256dh_key": "string",
"auth_key": "string",
"user_agent": "string",
"device_name": "string",
"metadata": {},
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_used_at": "2019-08-24T14:15:22Z"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Unsubscribe from push notifications
Authorization
HTTPBearer In: header
Request Body
application/json
Push notification endpoint URL to remove
Response Body
application/json
application/json
curl -X DELETE "https://loading/api/push/unsubscribe" \ -H "Content-Type: application/json" \ -d '{ "endpoint": "string" }'{
"success": true,
"message": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get push subscription status
Authorization
HTTPBearer In: header
Response Body
application/json
curl -X GET "https://loading/api/push/status"{
"is_subscribed": true,
"subscription_count": 0,
"subscriptions": [
{
"endpoint": "string",
"p256dh_key": "string",
"auth_key": "string",
"user_agent": "string",
"device_name": "string",
"metadata": {},
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"last_used_at": "2019-08-24T14:15:22Z"
}
]
}Send test push notification
Authorization
HTTPBearer In: header
Response Body
application/json
curl -X POST "https://loading/api/push/test"{}