cURL
curl --request GET \ --url https://app.baseplate.ai/endpoints/{id}/logs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "page": 123, "page_size": 123 }'
Lists logs, sorted by most recent.
[ { "id": "1ab444b6-adff-4347-967a-fa86590ec61f", "user_id": "20af31df-3a61-419a-ac46-2678561a761e", "endpoint_id": "a99d0cec-4f4d-4ea5-9ba2-0bf818e71ac0", "timestamp": { "value": "2023-04-05T21:16:08.338Z" }, "model": "gpt-3.5-turbo", "prompt": "[{\"role\":\"user\",\"content\":\"Hello.\"}]", "completion": "Hi!", "positive_rating": null, "values": null, "search_results": "[{\"confidence\":0.729523659,\"data\":{\"text\":\"embedding\"},\"embedding\":\"changed embedding\",\"image_paths\":null,\"metadata\":{\"documentId\":\"text\",\"rowId\":218963,\"url\":\"/5274962e-04c3-4a23-b3d5-1d7e1ea6a230/test.pdf\"},\"query\":\"Hello.\",\"variable\":\"context_2\"}]", "status": "{\"status\":200}", "deployment_id": 27, "latency": null } ]