Runs

Get runs

The Runs API endpoint allows you to retrieve data about specific runs from your Lunary application.

The most common run types are 'llm', 'agent', 'chain', 'tool', 'thread' and 'chat'.

It supports various filters to narrow down the results according to your needs.

This endpoint supports GET requests and expects query parameters for filtering the results.

GET
/v1/runs
curl --request GET \
  --url https://api.lunary.ai/v1/runs \
  --header 'Authorization: Bearer <api_key>' \
  --header 'Content-Type: application/json'

Parameters

NameLocated InRequiredSchema
typequeryNostring
searchqueryNostring
modelsqueryNoarray
tagsqueryNoarray
tokensqueryNostring
exportTypequeryNostring
minDurationqueryNostring
maxDurationqueryNostring
startTimequeryNostring
endTimequeryNostring
parentRunIdqueryNostring
limitqueryNostring
pagequeryNostring
orderqueryNostring
sortFieldqueryNostring
sortDirectionqueryNostring

Responses

200

Successful response

PropertyTypeDescription
totalnumber
pagenumber
limitnumber
dataarray

Questions? We're here to help.

Email