import requests
url = "https://app.langwatch.ai/api/v1/instant-evals"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Auth-Token': '<api-key>'}};
fetch('https://app.langwatch.ai/api/v1/instant-evals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/v1/instant-evals \
--header 'X-Auth-Token: <api-key>'{
"runs": [
{
"id": "<string>",
"name": "<string>",
"sql": "<string>",
"parameters": {},
"questions": [
{
"id": "<string>",
"function": "<string>",
"kind": "boolean",
"reads": "<string>",
"threshold": 123
}
],
"limit": 123,
"status": "queued",
"total": 123,
"progress": 123,
"matched": 123,
"matchedByQuestion": {},
"failed": 123,
"skipped": 123,
"tokens": 123,
"costUsd": 123,
"priceUsd": 123,
"error": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"startedAt": "<string>",
"finishedAt": "<string>"
}
]
}List the project's runs, newest first
List the project’s runs, newest first. The project comes from the credential, so a run of another project is never listed. Page through them with before, which takes the created time of the oldest run the previous page carried.
import requests
url = "https://app.langwatch.ai/api/v1/instant-evals"
headers = {"X-Auth-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Auth-Token': '<api-key>'}};
fetch('https://app.langwatch.ai/api/v1/instant-evals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.langwatch.ai/api/v1/instant-evals \
--header 'X-Auth-Token: <api-key>'{
"runs": [
{
"id": "<string>",
"name": "<string>",
"sql": "<string>",
"parameters": {},
"questions": [
{
"id": "<string>",
"function": "<string>",
"kind": "boolean",
"reads": "<string>",
"threshold": 123
}
],
"limit": 123,
"status": "queued",
"total": 123,
"progress": 123,
"matched": 123,
"matchedByQuestion": {},
"failed": 123,
"skipped": 123,
"tokens": 123,
"costUsd": 123,
"priceUsd": 123,
"error": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"startedAt": "<string>",
"finishedAt": "<string>"
}
]
}Authorizations
Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.
Query Parameters
Runs to list, at most one hundred.
1 <= x <= 100List runs accepted strictly before this instant, as an ISO 8601 timestamp. Half of the list's cursor: pass beforeId with it.
The id of the last run of the previous page. Two runs can share an instant, so this is what keeps a page from skipping the others written in the same millisecond.
1 - 200Response
Success
The project's runs, newest first.
Show child attributes
Show child attributes
Was this page helpful?