Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Finding Feedback API

Finding feedback records a thumbs-up or thumbs-down opinion on a single finding. Feedback never changes the finding, its status or its priority; it is kept as a separate record that Nullify uses to evaluate its own results.

There are two ways feedback arrives:

  • Signed-in users vote through the authenticated endpoints, using your normal bearer token.

  • Anyone who can see a pull request comment can vote through a signed link in that comment, with no Nullify login and no bearer token. The three /public operations serve this flow.

Authenticated feedback

List feedback on a finding

Returns the feedback recorded on one finding, newest first, up to 100 entries. findingId is the id of a finding from any of the findings list operations. Each entry has the verdict, the axis it belongs to, its source (comment_link or ui_action), and raterKind: nullify_user for signed-in votes or anonymous_link for votes cast from a pull request comment. Anonymous votes are a lower trust tier, so do not weigh them the same as signed-in ones. Requires the finding-read permission. Returns 404 if the finding does not exist for your tenant, or is outside your team scope.

List feedback on a finding

get

Returns the recorded thumbs on a finding, newest first.

Path parameters
findingIdstringRequired
Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Responses
200

OK

application/json
get/findings/{findingId}/feedback
GET /findings/{findingId}/feedback HTTP/1.1
Host: api.<TENANT>.nullify.ai
Accept: */*
{
  "feedback": [
    {
      "axis": "text",
      "commentText": "text",
      "createdAt": "text",
      "id": "text",
      "raterKind": "text",
      "raterUserId": "text",
      "source": "text",
      "verdict": "up"
    }
  ]
}

Record feedback on a finding

Records one vote against a finding as the authenticated user, and returns the stored entry. Send verdict and an optional commentText. The accepted verdicts are up, down, helpful, wrong, noisy, fix_good, fix_bad, worth_fixing, explanation_clear, explanation_unclear, severity_right and severity_wrong; any other value returns 400. The finding type is derived from the finding itself, and the findingType field in the body is deprecated and ignored.

It requires only the finding-read permission, because recording an opinion cannot modify a finding. Each call adds a new entry rather than replacing an earlier one. The request needs an identified user, so a token with no user behind it is rejected with 401.

Record feedback on a finding

post

Records a thumbs-up or thumbs-down against a finding. Never changes the finding.

Path parameters
findingIdstringRequired
Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Body
commentTextstring · nullableOptional
findingTypestringOptionalDeprecated

Compatibility hint; the server derives the finding type from the authorized finding

verdictstring · enumRequiredPossible values:
Responses
200

OK

application/json
post/findings/{findingId}/feedback
POST /findings/{findingId}/feedback HTTP/1.1
Host: api.<TENANT>.nullify.ai
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "commentText": "text",
  "verdict": "up"
}
{
  "feedback": {
    "axis": "text",
    "commentText": "text",
    "createdAt": "text",
    "id": "text",
    "raterKind": "text",
    "raterUserId": "text",
    "source": "text",
    "verdict": "up"
  }
}

Anonymous feedback from pull request comments

When Nullify posts a finding in a pull request comment, it can add a footer with a thumbs-up and a thumbs-down link. Each link opens a feedback page on your tenant's Nullify app (/feedback?a=<apiHost>&k=<keyId>&t=<token>&v=<up|down>). The a value is the host of your tenant's API. The page sends the calls below to that host when the app is shared between tenants, and to its own API otherwise. A link can come without a. The token is a signed value created when the comment is posted; it authorizes feedback for exactly one finding and nothing else. Delivery is the comment itself, so anyone who can read the pull request can use it. The token is not something you request from the API.

The feedback page reads the token from the link and calls the operations below from the browser after it loads. The calls need no Authorization header. If you build your own client for this flow, send the keyId from the link in the body, and do not add a bearer token. Because the link is the credential, treat the links in your pull request comments as capabilities scoped to a single finding.

By design these operations reveal nothing about the finding. They return only an acknowledgement, and every failure (an unknown token, a forged token, or being rate limited) returns the same 404, so the endpoints cannot be used to probe for valid tokens. A 404 therefore does not tell you which of these happened.

Record anonymous feedback on a finding

Records a vote from a signed pull request comment link. The token in the path and the keyId in the body both come from the link. Send a verdict (the same values as the authenticated call), a dedupKey of up to 256 bytes that identifies the voting browser, and an optional commentText. The dedupKey is required: repeats of an identical answer with the same key collapse into one entry, while a different answer from the same browser is stored as a new entry. At most 20 anonymous votes per finding are accepted per hour, after which the call returns 404.

Set interactionUnconfirmed to true when the vote was cast on page load rather than from a click. Link scanners that render pages can cast such votes, so this flag lets consumers separate them from deliberate ones. The response contains recorded and a feedbackId, which you need for the confirm call below.

Record anonymous feedback on a finding

post

Records a thumbs-up or thumbs-down from a signed link in a pull request comment. Returns an acknowledgement only — never any finding content.

Path parameters
tokenstringRequired
Body
commentTextstring · nullableOptional
dedupKeystringRequired
interactionUnconfirmedbooleanOptional
keyIdstringRequired
verdictstring · enumRequiredPossible values:
Responses
200

OK

application/json
feedbackIdstringRequired
recordedbooleanRequired
post/public/findings/feedback/{token}
POST /public/findings/feedback/{token} HTTP/1.1
Host: api.<TENANT>.nullify.ai
Content-Type: application/json
Accept: */*
Content-Length: 100

{
  "commentText": "text",
  "dedupKey": "text",
  "interactionUnconfirmed": true,
  "keyId": "text",
  "verdict": "up"
}
{
  "feedbackId": "text",
  "recorded": true
}

Attach a note to anonymous feedback

Follows up a vote already recorded with the call above. Send the same keyId, the feedbackId returned by the vote, and an optional commentText. It attaches the note to that vote and marks the vote as one a person was present for, clearing the interactionUnconfirmed flag. A note is written only if none was recorded before. It cannot create votes, so it has no rate limit of its own. A feedbackId that does not belong to the finding the token authorizes returns 404.

Attach a note to anonymous feedback on a finding

post

Attaches an optional note to a vote already recorded from a signed link in a pull request comment, and marks that vote as one a human was present for. Returns an acknowledgement only — never any finding content.

Path parameters
tokenstringRequired
Body
commentTextstring · nullableOptional
feedbackIdstringRequired
keyIdstringRequired
Responses
200

OK

application/json
confirmedbooleanRequired
post/public/findings/feedback/{token}/confirm
POST /public/findings/feedback/{token}/confirm HTTP/1.1
Host: api.<TENANT>.nullify.ai
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "commentText": "text",
  "feedbackId": "text",
  "keyId": "text"
}
{
  "confirmed": true
}

Last updated