Search…
⌃K
📊

Logs & Human Feedback

Use this API to update the rating for a completion log, or create logs directly.
patch
https://www.trybaseplate.io
/endpoints/{id}/logs
Updates the rating for a completion log
Updates the rating of a completion using human feedback from your users. If you surface a like/dislike or other rating system, you can track the feedback in Baseplate.
Parameters
Path
id*
Baseplate endpoint ID
Header
Authorization*
String
Baseplate API key. Must be in the format
"Bearer $BASEPLATE_API_KEY"
Content-Type*
Use application/json
Body
positive_rating
Boolean
True indicates a positive rating (thumbs up)
usage_id
The usage ID, which is returned when calling the completions endpoint
logs
Array
Array of logs to batch update. Each object should contain a positive_rating and usage_id. Either "logs" or "positive_rating + "usage_id" is required.
Responses
200: OK
401: Unauthorized
post
https://www.trybaseplate.io
/endpoints/{id}/logs/{log-id}/comments
Add a comment to a log