Panargus

Reference

REST API

Endpoints for logging, querying, and managing your data.

The Panargus REST API is compatible with the Braintrust API, so existing clients work unchanged. Send an API key as Authorization: Bearer <key>. On your own server, the key is <user>:<password>.

EndpointPurpose
GET /v1/projectList projects
POST /v1/project_logs/{project_id}/insertLog events (spans) to a project
POST /v1/project_logs/{project_id}/fetchRead logged events
POST /v1/experimentCreate an experiment
POST /v1/dataset/{dataset_id}/insertAdd dataset records
POST /btqlQuery spans with BTQL or SQL

Log an event

1curl https://api.panargus.dev/v1/project_logs/$PROJECT_ID/insert \
2 -H "Authorization: Bearer $BRAINTRUST_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"events": [{"input": "Hi", "output": "Hello!", "scores": {"helpful": 1}}]}'