ApiAlerts
POST /v1/notifications/read
Mark notifications read (by id, or all).
Mark notifications read (by id, or all).
AuthorizationBearer <token>
API key: Authorization: Bearer pk_live_… (mint at polyrank.app/api-keys)
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/notifications/read" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "6e0346a3-e54d-40e3-9779-4ba1e707e35b" ] }'{ "updated": -9007199254740991}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}