Skip to main content
GET
List test cases

Authorizations

Authorization
string
header
required

An org API key (gh_live_…) from Settings → API keys in the console.

Query Parameters

tag
string

Only cases with this tag.

category
string

Only cases in this category.

object
string

Only test cases that exercise this object of the AI ontology (a type's or a kind's id, post_warranty). The ontology fills objects in a minute after a case is made: from the procedure it is tied to, else by reading the case.

test_set_id
string

Only cases in this test set.

q
string

Search: only cases whose name, key or prompt has the text containing this text (case-insensitive, up to 100 characters).

Maximum string length: 100
limit
integer
default:20

How many to return, 1 to 100.

Required range: 1 <= x <= 100
cursor
string

next_cursor from the previous page.

include
string

Comma-separated: total_count adds how many match across every page; facets adds facets: every category and tag the org’s test cases use, with how many cases have each (whatever the filters).

Example:

"total_count"

procedure_id
string

Only the cases tied to this procedure.

agent_id
string

Only an agent's cases: those tied to one of its procedures, and those tied to none. With include=facets, the facets are of these cases too.

Response

OK

data
object[]
required
has_more
boolean
required
next_cursor
string | null
required

Pass as cursor to get the next page.

total_count
integer

How many match the filters across every page. Only with include=total_count.

facets
object

Only with include=facets: every category and tag the org’s test cases use, by name, with how many cases have each.