/api/v1/runsList recent runs
Authentication
Send Authorization: Bearer using a key with scope READ. Create a temporary key in Try it.
Parameters
qquery · stringOptionalRun name or ID substring
runIdquery · stringOptionalExact run ID
projectIdquery · stringOptionalExact project ID
environmentIdquery · stringOptionalExact environment ID
statusquery · string · RUNNING | SUCCEEDED | FAILEDOptionalRun status
isTestquery · string · true | falseOptionalFilter synthetic test runs
servicequery · stringOptionalService name substring
toolquery · stringOptionalTool name substring
handlerVersionquery · stringOptionalExact handler version
idempotencyKeyquery · stringOptionalExact step idempotency key
fromquery · stringOptionalInclusive ISO date or timestamp
toquery · stringOptionalInclusive ISO date or timestamp
cursorquery · stringOptionalLast run ID from the previous page
limitquery · integerOptionalPage size; default 25
Example request
Examples use the values from Try it. The key is read from an environment variable.
curl --request GET 'https://getratchet.app/api/v1/runs' \
--header "Authorization: Bearer $GETRATCHET_API_KEY"const response = await fetch("https://getratchet.app/api/v1/runs", {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.GETRATCHET_API_KEY}` },
});
console.log(response.status, await response.text());import os, urllib.request, urllib.error
request = urllib.request.Request(
"https://getratchet.app/api/v1/runs", method='GET',
headers={'Authorization': 'Bearer ' + os.environ['GETRATCHET_API_KEY']},
)
try:
with urllib.request.urlopen(request) as response:
print(response.status, response.read().decode())
except urllib.error.HTTPError as error:
print(error.code, error.read().decode())No request body
Illustrative examples with representative fields. Actual IDs and results depend on your data.
200 · Success
{
"runs": [],
"nextCursor": null
}Key stays in memory in this tab. This operation requires READ.
Your actual response will appear here after sending.