Fetch Violation Findings

Fetch violation findings

Get findings for a specific violation

GEThttps://api.nightfall.ai/dlp/v1/violations/{violationId}/findings
Path parameters
violationId*string (uuid)

The UUID of the violation

Query parameters
Response

Successful response

Headers
Body
findingsarray of Finding (object)
nextPageTokenstring

Next page cursor, omitted if end of results reached

Request
const response = await fetch('https://api.nightfall.ai/dlp/v1/violations/{violationId}/findings', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "findings": [
    {
      "id": "text",
      "detectorUUID": "text",
      "subDetectorUUID": "text",
      "confidence": "text",
      "redactedSensitiveText": "text",
      "redactedContext": {
        "beforeContext": "text",
        "afterContext": "text"
      },
      "redactedLocation": {
        "byteRange": {
          "start": 0,
          "end": 0
        },
        "lineRange": {
          "start": 0,
          "end": 0
        }
      },
      "metadata": {
        "apiKeyMetaData": {
          "status": "UNVERIFIED",
          "kind": "UNSPECIFIED",
          "description": "text"
        }
      },
      "subLocation": "text",
      "annotationUUID": "text"
    }
  ],
  "nextPageToken": "text"
}

Last updated