View as Markdown

Mark Notifications Read

POST/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.

Body parameters

  • idsstring[]optional

    The notifications to mark read (24-hex ids). Send this or all: true, not both.

    Example
    {
      "ids": [
        "6ac35b5ffe3fe40ea209b07e"
      ]
    }
  • allbooleanoptional

    true marks every unread notification visible to the caller. false counts as absent. Send this or ids, not both.

Responses

  • 200 How many notifications this call marked read, and the unread count after it.
  • 400 Invalid request (VALIDATION_ERROR; payload.code says which kind of mistake).
  • 401 Missing, unknown, expired or inactive credentials (UNAUTHORIZED).
  • 500 Unexpected server error.

For error handling see Errors. Response objects are described in Person object and Company object.