Search

Submit Search Feedback

POST
Submit end-user feedback on a search result to be persisted on the audit log

Request

This endpoint expects an object.
searchId
UUIDRequired
UUID of the search response that this feedback is for
feedback
enumRequired
Allowed values: THUMBS_UPTHUMBS_DOWN
userEmail
stringOptional
comments
stringOptional

Response

This endpoint returns an object
auditLogId
UUID
POST
$curl -X POST https://api.credal.ai/api/v0/search/submitSearchFeedback \
> -H "Authorization: Bearer <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "searchId": "82e4b12a-6990-45d4-8ebd-85c00e030c24",
> "feedback": "THUMBS_UP",
> "userEmail": "ben@credal.ai",
> "comments": "There\'s something relevant about 2FA in the document that wasn\'t included in the search results"
>}'
Response
1{
2 "auditLogId": "13c18750-5bc1-11ee-a8d5-733be8e2f38c"
3}