List your findings and triage them from a script, a CI job or an AI agent: review a label, accept a risk, or assign someone to fix it.
A finding is one label on one file, followed across scans. Its id is finding_id.
Before you start
| Base URL | https://classify.myrikeep.com/api/ |
|---|---|
| Header | Authorization: Api-Key YOUR_API_KEY |
| Body | JSON, with Content-Type: application/json |
| Key | Create it in Settings → API keys (owners and admins). |
Copy the key when you create it; it is shown once. The examples use synthetic ids (4821, 77) and a synthetic member, [email protected].
Key scopes
Pick the smallest scope that does the job. A key gets 403 on anything its scope does not allow.
| Scope | Name in the console | Read findings | Queue scans | Triage findings | Everything else |
|---|---|---|---|---|---|
read | Read only | Yes | No | No | No |
read_scan | Read and queue scans (for AI assistants) | Yes | Yes | No | No |
triage | Triage findings (review, accept risk, assign) | Yes | No | Yes | No |
full | Full access (agents, scripts) | Yes | Yes | Yes | Yes |
Scoped keys expire after 90 days by default. Each one has its own rate limit: 120 requests per minute.
Warning: Data leaves your network when an AI assistant uses the key: file paths, file names, labels and counts go to the assistant's provider. File contents never do.
Endpoints
- GET
/api/findings/ - List findings, with filters and pages.
- POST
/api/findings/{finding_id}/review/ - Accept or reject the finding's label.
- POST
/api/findings/{finding_id}/accept-risk/ - Accept the risk of exactly this finding.
- GET
/api/suppressions/ - List suppressions, accepted risks included.
- DELETE
/api/suppressions/{suppression_id}/ - Lift a suppression.
- POST
/api/findings/{finding_id}/assign/ - Assign a member to fix the finding.
- DELETE
/api/findings/{finding_id}/assign/ - Remove the assignment.
The full schema, with every field, is at /api/schema/.
List findings
GET /api/findings/ returns open findings, 100 per page.
curl -s "https://classify.myrikeep.com/api/findings/?labels=SSN&state=open&limit=50" \
-H "Authorization: Api-Key YOUR_API_KEY"| Filter | Example | Meaning |
|---|---|---|
labels | SSN,FINANCIAL | Any of these label codes |
levels | anyone_with_link | Who can open the file |
connection | 12 | One source |
state | new, open, resolved, suppressed, all | Default open |
path, q | hr/ | Path contains; search names and paths |
area | system | All files by default; system lists only files under /etc, /usr, /opt, /boot and /var/lib. Every row has a system_area flag. |
limit, offset | 50, 100 | Page size (max 500) and start |
Each row carries the triage state next to the inventory facts:
{
"finding_id": 4821,
"path": "hr/payroll.csv",
"label": "SSN",
"state": "open",
"review_state": "unreviewed",
"accepted_risk": null,
"assignment": {"assignee_email": "[email protected]", "due_date": "2026-12-01"}
}review_stateunreviewed,acceptedorrejected.nullwhen an older agent kept no label to review.accepted_risknull, orsuppression_id,reasonandexpires_atof the accepted risk on exactly this finding.assignmentnull, orassignee_emailanddue_date.
Rows never include file contents or match evidence.
Triage findings
Every triage call needs a triage or full key. Each change goes to the workspace audit log with the key's name and prefix, for example Triage agent (Ab12Cd34).
Review a finding
Accept or reject the label on the scan that last saw the finding. The answer is the finding's row plus that scan's new risk_score.
curl -s -X POST "https://classify.myrikeep.com/api/findings/4821/review/" \
-H "Authorization: Api-Key YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"review_state": "rejected"}'review_stateRequiredaccepted,rejectedorunreviewed. An accepted label counts toward risk, policies and reports; a rejected one stops counting.
Accept a risk
Hide exactly this file and label from Findings, risk and reports, with a reason. The answer, 201, is the new suppression.
curl -s -X POST "https://classify.myrikeep.com/api/findings/4821/accept-risk/" \
-H "Authorization: Api-Key YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"reason": "Synthetic test export, deleted after the audit", "expires_at": "2027-03-31T00:00:00Z"}'reasonRequired- Why you accept it. Trimmed, not empty, at most
1000characters. expires_atOptional- An ISO 8601 date and time in the future. Leave it out to never expire.
A finding has at most one accepted risk in force. A second request answers 409 with the existing one's suppression_id.
List and lift suppressions
GET /api/suppressions/ lists the rules in force. Add ?active=all to include lifted and expired ones.
curl -s "https://classify.myrikeep.com/api/suppressions/?active=all" \
-H "Authorization: Api-Key YOUR_API_KEY"An accepted risk has a finding_id. A broader rule made in the console, by source, label or path, has finding_id: null.
Lift one to show its findings again. The rule is switched off and kept for the audit trail.
curl -s -X DELETE "https://classify.myrikeep.com/api/suppressions/77/" \
-H "Authorization: Api-Key YOUR_API_KEY"The answer is 204, also when the rule had already ended.
Assign a finding
Make a workspace member responsible for fixing the finding. They get one email with the location and a console link, never the file's contents.
curl -s -X POST "https://classify.myrikeep.com/api/findings/4821/assign/" \
-H "Authorization: Api-Key YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"assignee_email": "[email protected]", "due_date": "2026-12-01", "note": "Move it to the HR vault"}'assignee_emailRequired- The email of an active member of this workspace.
due_dateOptionalYYYY-MM-DD; due at the end of that day.noteOptional- At most
500characters; it goes in the email.
Assigning again replaces the assignee. Remove the assignment with DELETE on the same path; the answer is 204.
curl -s -X DELETE "https://classify.myrikeep.com/api/findings/4821/assign/" \
-H "Authorization: Api-Key YOUR_API_KEY"Errors
| Status | Body | What to do |
|---|---|---|
400 | {"reason": ["Give a reason for accepting this risk."]} | Fix the named field and send it again. |
400 | {"assignee_email": ["assignee_not_a_member"]} | Use the email of an active member of this workspace. |
403 | {"detail": "The read key scope does not allow this request."} | Use a triage or full key. |
404 | {"detail": "Finding not found."} | The id is not in this workspace. List findings to get it. |
409 | {"detail": "risk_already_accepted", "suppression_id": 77} | The risk is already accepted. Lift it first to change it. |
409 | {"detail": "nothing_to_review"} | An older agent kept no label for this finding. Scan the source again. |
429 | {"detail": "Request was throttled. ..."} | Wait the Retry-After seconds, then retry. |
An id from another workspace gets the same 404 as an id that does not exist.