Runs
Ingest run events
This endpoint is for reporting data from platforms not supported by our SDKs.
You can use either your project's Public or Private Key as the Bearer token in the Authorization header.
The expected body is an array of Event objects.
For model calls, you would first track a start event with the input data. Once your model call succeeds, you would need to send an end event to the API endpoint with the output data from the model call.
For a full step-by-step guide on sending LLM data to the Lunary API, see the Custom Integration guide.
post/v1/runs/ingest
Request
- Base URLhttps://api.lunary.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"events": {
"type": "llm",
"event": "start",
"runId": "some-unique-id",
"name": "gpt-4",
"timestamp": "2022-01-01T00:00:00Z",
"input": [
{
"role": "user",
"content": "Hello world!"
}
],
"tags": [
"tag1"
],
"extra": {
"temperature": 0.5,
"max_tokens": 100
}
}
}Response
Successful ingestion
Example response
{
"results": [
{
"id": "some-unique-id",
"success": true
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.