internal

Get Dismissed Risk Label Queue

Unlabeled dismissed marketing risks, most recently dismissed first.

A batch rather than a single row so the client can prefetch the next document and step backwards without a round trip. Already-labeled risks are excluded, so two people working the queue only collide on the row they are both holding — which the create route resolves with a 409.

exclude_risk_ids is what makes skipping work. A skip writes nothing, so the row stays eligible and every later request would return it again — a labeler who skipped a whole batch would cycle those rows forever and never reach the rest of the backlog. The caller therefore has to say what it has already passed over. Bounded by MAX_EXCLUDED_RISK_IDS because it travels in the URL; past that the client drops its oldest entries, so a session with more skips than the cap may be offered its earliest ones again.

get/internal/risk-labeling/queue

Query parameters

company_idstring uuid nullable

Restrict to one company; omit for every company

Restrict to one company; omit for every company

exclude_risk_idsstring[] nullable

Risks the caller has passed over this session; repeat the param per id. Skipping labels nothing, so without this the next batch is the same batch.

Risks the caller has passed over this session; repeat the param per id. Skipping labels nothing, so without this the next batch is the same batch.

limitinteger

Response

Successful Response

risk_idstring uuid required
run_idstring uuid required
upload_idstring uuid required
file_idstring uuid required
company_idstring uuid required
company_namestring required
filenamestring required
is_videoboolean required
short_textstring required
severity'low' | 'medium' | 'high' required
explanationstring required
remediationstring nullable required
document_clausestring nullable required
source_clausestring nullable required
status'reject' | 'allow' | 'flag' | 'dismissed' required
dismiss_reason'valid_ok' | 'already_met' | 'incorrect' | 'out_of_scope' | 'pre_approved' | 'other' required

Why a reviewer dismissed a marketing risk (status=dismissed).

dismiss_notestring nullable required
ignore_commentstring nullable required
notes_textstring nullable required
run_timestring date-time required
actioned_atstring date-time nullable required
is_disclosure_relatedboolean
disclosure_idstring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.