curl --request POST \ --url https://api.getbasalt.ai/monitor/log \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "qa-chatbot", "slug": "qa", "version": "1.0.0", "tag": "production", "input": "What is the capital of France?", "output": "Paris", "idealOutput": "Paris", "variables": [ { "label": "question", "value": "What is the capital of France?" } ], "startTime": "2021-01-01T00:00:00Z", "endTime": "2021-01-01T00:00:00Z", "inputTokens": 100, "outputTokens": 100, "cost": 100, "organization": { "id": "123", "name": "ACME" }, "user": { "id": "123", "name": "John Doe" }, "metadata": { "sessionId": "456", "userType": "admin" }}'
Copy
Ask AI
{ "trace": { "id": "123" }, "log": { "id": "123" }, "warning": "No prompt found with the given slug or no production version found or no prompt found with the given version or tag (production version also missing)"}
curl --request POST \ --url https://api.getbasalt.ai/monitor/log \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "qa-chatbot", "slug": "qa", "version": "1.0.0", "tag": "production", "input": "What is the capital of France?", "output": "Paris", "idealOutput": "Paris", "variables": [ { "label": "question", "value": "What is the capital of France?" } ], "startTime": "2021-01-01T00:00:00Z", "endTime": "2021-01-01T00:00:00Z", "inputTokens": 100, "outputTokens": 100, "cost": 100, "organization": { "id": "123", "name": "ACME" }, "user": { "id": "123", "name": "John Doe" }, "metadata": { "sessionId": "456", "userType": "admin" }}'
Copy
Ask AI
{ "trace": { "id": "123" }, "log": { "id": "123" }, "warning": "No prompt found with the given slug or no production version found or no prompt found with the given version or tag (production version also missing)"}
Assistant
Responses are generated using AI and may contain mistakes.