Report an Outcome
Report an Outcome to record what your product or review team did after reading a Decision. An Outcome sits next to the Decision. It never changes the Decision and never triggers an evaluation.
Use Outcomes for an audit trail of your team’s verdicts, and to compare them with Dockt’s results.
Prerequisites
Section titled “Prerequisites”You need the ID of the Decision your team acted on, and a credential with account:write.
Record the Outcome
Section titled “Record the Outcome”Send the action, your team’s verdict, who decided, and when. The command uses curl and jq. Replace dec_REPLACE_ME with the reviewed Decision ID, and include employment_registration only if it is a requirement in that Decision:
export DOCKT_API_BASE_URL='https://api.dockt.com'export DOCKT_API_TOKEN='REPLACE_WITH_BEARER_TOKEN'export DOCKT_DECISION_ID='dec_REPLACE_ME'
curl --fail-with-body --silent --show-error \ -X POST "$DOCKT_API_BASE_URL/v1/outcomes" \ -H "Authorization: Bearer $DOCKT_API_TOKEN" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: outcome-preannouncement-9031-review-1' \ --data "$(jq -n --arg decision "$DOCKT_DECISION_ID" '{ decision: { id: $decision }, action: "accepted", verdict: "compliant", requirement_verdicts: [ { rule_code: "employment_registration", verdict: "compliant", note: "Dimona checked in the portal." } ], reviewer: { name: "An De Smet", email: "an.desmet@example.com" }, source_system: "contractor-portal", observed_at: "2026-11-02T10:00:00Z", notes: "Cleared for start on 3 November." }')" | jq '.data | {id, target, action, verdict}'| Field | Required | Notes |
|---|---|---|
decision |
Yes | The Decision your team acted on. The Outcome’s target, the Assignment or Engagement, follows from it. |
action |
Yes | accepted, rejected, follow_up_requested, manual_review or unknown. |
verdict |
No | Your team’s overall result in Dockt’s terms: compliant, incomplete, review_required or non_compliant. |
requirement_verdicts |
No | A verdict per rule, with an optional note. Each rule_code must be a requirement of the Decision. |
reviewer |
No | The person who decided: name and an optional email. |
source_system |
No | A stable name for the system that recorded it. |
observed_at |
No | When the decision was made, not when you send the request. |
notes |
No | Free text for the audit trail. |
The response is 201 Created. A rule_code that isn’t a requirement of the Decision returns 422.
Report against the right Decision
Section titled “Report against the right Decision”Report the Outcome against the exact Decision your team read. A newer Decision may exist by the time you report. Keep the Decision ID with the review in your system, and don’t replace it with the work’s current latest_decision.
When a later Decision arrives, read it before deciding whether an earlier review still applies. The event’s changed_requirements and changed_findings summarize selected changes, not every field. Compare the requirement’s status, evidence, accepted document types, and explanation, together with the findings. Your application decides whether to request another review; Dockt does not carry an Outcome forward to another Decision.
Correct an Outcome
Section titled “Correct an Outcome”Outcomes are append-only. To correct one, record a new Outcome against the same Decision. Read the history with:
curl --fail-with-body --silent --show-error \ -H "Authorization: Bearer $DOCKT_API_TOKEN" \ "$DOCKT_API_BASE_URL/v1/outcomes?decision=$DOCKT_DECISION_ID" | jq '.data'Filter by assignment or engagement to see every Outcome for a piece of work.
Personal data
Section titled “Personal data”Reviewer names and notes are personal data. Erasing a Person removes the notes and reviewer names of the Outcomes about their work. Keep notes factual and free of data you don’t need.