“I have a manual review element to my onboarding flow, and need to send API results that match certain criteria to investigators in the UI for review.”
“I want to assign a specific API result to a user in the MinervaAI user interface for closer inspection.”
The sendAPIResultToUser endpoint allows you to direct specific API results into the investigation bins of users in the MinervaAI user interface. API results can be assigned after being completed using the Search and Search Status APIs. The response body of the Search Status API contains the required job and request IDs to perform this action.
The user’s email in the MinervaAI system is used to identify the user that should receive the API result. The user that you want to send the result to must be in the same organization as the API key that submitted the search. If the investigation does not exist, it will be created as a bin in that user’s account to hold the API result in.
The uuidv4 API key associated with the MinervaAI account making the request.
The unique identifier of the job that the result was run under. This will be the same ID that was used to query the API result via the Search Status API, and is also present in the Search Status API response body.
36"job-id-of-api-result"
The unique identifier of the request that the result was run under. In each result of the Search Status API batch, there is an id which is the unique identifier of that result in the job.
36"request-id-of-api-result"
If a previous investigation was generated by another call to /sendAPIResultToUser, then that investigationId can be provided to perform the investigation assignment. Either investigationName or investigationId must be provided.
36"existing-investigation-id"
The plain text label of the investigation that this result should be assigned under. If the investigation does not exist in the user's investigations list, then it will be created. Otherwise, the investigation matching this label will be used as the bin to place the result in. The investigation date will be the same as the date on which the API result was initially generated. It is recommended to use something easy to identify for the investigator that will receive the API result, such as a date and/or specific batch metadata.
1024"My Investigation Name"
The email address of the user that should receive the API result in one of their investigation bins. If not provided, the result will be assigned to the requesting user.
256"user@myorganization.com"
API result successfully cloned into user investigation.