POST
/v1/notifications/{notification_id}/readMark notification read
Marks one notification as read and returns the updated unread count.
Authentication
Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
notification_id | string | Yes | Notification identifier. |
Response schema · 200
{
"read": true,
"unread_count": 3
}Response example
{
"read": true,
"unread_count": 3
}Code examples
curl https://api.tracklayer.com/v1/notifications/ntf_123/read \
-X POST \
-H "Authorization: Bearer ${API_KEY}"Try it out
Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.