Runs
List runs
Lists your organization’s runs, newest first. Requires runs_read.
Rows are stored runs: each carries replayed: true and no verdict, decision, usage or cost. Retrieve a run for its answer. Paging is by limit and offset; there is no cursor. See Pagination.
GET
/
v1
/
runs
List runs
curl --request GET \
--url https://api.opentype.dev/v1/runs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opentype.dev/v1/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.opentype.dev/v1/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"runs": [
{
"run_id": "<string>",
"kind": "verdict",
"state": "pending",
"input_digest": "<string>",
"replayed": true,
"output_digest": "<string>",
"verdict": "<unknown>",
"decision": {
"answers": "<unknown>",
"draws": 1,
"read": "slot_constrained",
"model": "neon-1.1",
"stages": [
[
"<string>"
]
],
"thought_tokens": 1,
"thought_closed": true
},
"usage": {
"input_tokens": 1,
"output_tokens": 1
},
"cost_micros": 1,
"cost_basis": "provider_reported",
"schema_enforcement": "unconstrained"
}
],
"limit": 1,
"offset": 1
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}Authorizations
bearerbearer
An API key (otsk_ + 64 hex) or a console session token.
Path Parameters
Required range:
x >= 0Required range:
x >= 0List runs
curl --request GET \
--url https://api.opentype.dev/v1/runs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opentype.dev/v1/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.opentype.dev/v1/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"runs": [
{
"run_id": "<string>",
"kind": "verdict",
"state": "pending",
"input_digest": "<string>",
"replayed": true,
"output_digest": "<string>",
"verdict": "<unknown>",
"decision": {
"answers": "<unknown>",
"draws": 1,
"read": "slot_constrained",
"model": "neon-1.1",
"stages": [
[
"<string>"
]
],
"thought_tokens": 1,
"thought_closed": true
},
"usage": {
"input_tokens": 1,
"output_tokens": 1
},
"cost_micros": 1,
"cost_basis": "provider_reported",
"schema_enforcement": "unconstrained"
}
],
"limit": 1,
"offset": 1
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"violations": [
"<string>"
]
}
}