# notification

## Subscribe to notification

> Subscription to notification events for a specific user.

```json
{"openapi":"3.1.1","info":{"title":"Hyperliquid Subscription - notification","version":"1.0.0"},"tags":[{"name":"notification"}],"servers":[{"url":"wss://api.hyperliquid.xyz/ws","description":"Mainnet WebSocket"},{"url":"wss://api.hyperliquid-testnet.xyz/ws","description":"Testnet WebSocket"}],"paths":{"/":{"post":{"tags":["notification"],"summary":"Subscribe to notification","description":"Subscription to notification events for a specific user.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"description":"Type of subscription.","enum":["notification"]},"user":{"type":"string","pattern":"^0[xX][0-9a-fA-F]+$","minLength":42,"maxLength":42,"description":"User address."}},"required":["type","user"],"description":"Subscription to notification events for a specific user."}}},"required":true},"responses":{"200":{"description":"Event of user notification.","content":{"application/json":{"schema":{"type":"object","properties":{"notification":{"type":"string","description":"Notification content."}},"required":["notification"],"description":"Event of user notification."}}}}}}}}}
```
