HackNotice icon

HackNotice

Call the HackNotice extensions API (alerts, assessments, and more)

Actions85

Assessment → Get Assessment

AI-generated

Summary

Fetches a single HackNotice assessment by its document ID via GET /assessments/:docId and returns the record as one item.

Inputs

  • Document ID (required) — Mongo-style ID of the assessment, URL-encoded into the path. The source throws 'Document ID is required for this operation.' if it is empty, even though the UI doesn't mark it required.
  • Page Number — Shown in the UI but ignored. This route has no page segment.
  • Invite Code — Shown in the UI but ignored by this operation.
  • Request Body — Shown in the UI but ignored. GET requests send no body.

Output shape

One output item per input item, containing the assessment document returned by the API as JSON. If the API returns an array, each element becomes its own item.

Each output item is paired to its input item. Authentication uses the hackNoticeApi credential against https://extensionapi.hacknotice.com. API errors are raised as NodeApiError, and a missing Document ID raises NodeOperationError.

Examples

Example 1: Look up an assessment's details after receiving its ID from an earlier List Assessments step.

Resource: Assessment; Operation: Get Assessment; Document ID: {{ $json._id }}

Links

Discussion