# Mark Notifications Read `POST https://api.getprospect.com/v2/notifications/mark-read` Mark notifications read, by id or all at once. Send `ids` (1 to 100 notification ids) or `all: true`, not both: neither answers 400 `missing_field`, both 400 `conflicting_fields`, and a malformed id 400 `invalid_format`. Read state is shared by the workspace, and `read_at` keeps the first read. Ids that are already read, expired, of another workspace or not visible to you are skipped without an error and not counted in `updated_count`. Safe to retry. Free: no credits. ## Authentication Pass your API key in the `x-api-key` header. ## Body parameters - `ids` (string[], optional): The notifications to mark read (24-hex ids). Send this or `all: true`, not both. Example: `{"ids":["6ac35b5ffe3fe40ea209b07e"]}` - `all` (boolean, optional): `true` marks every unread notification visible to the caller. `false` counts as absent. Send this or `ids`, not both. ## Example request ```bash curl --request POST \ --url https://api.getprospect.com/v2/notifications/mark-read \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' \ --data ' { "ids": [ "6ac35b5ffe3fe40ea209b07e" ] } ' ``` ## Response 200 How many notifications this call marked read, and the unread count after it. ```json { "success": true, "data": { "updated_count": 3, "unread_count": 2 }, "metadata": { "timestamp": "2026-10-05T08:12:31.204Z" }, "errors": [] } ``` ## Response 400 Invalid request (`VALIDATION_ERROR`; `payload.code` says which kind of mistake). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-05T08:12:31.204Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "Send ids (the notifications to mark read) or all: true", "payload": { "field": "ids", "code": "missing_field", "constraints": { "selection": "Send ids (the notifications to mark read) or all: true" } } } ] } ``` ## Response 401 Missing, unknown, expired or inactive credentials (`UNAUTHORIZED`). ## Response 500 Unexpected server error.