Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Tests and incidents

List tests

The workspace's tests, most recently changed first. Filters: status (proposed, active or paused), a tag, smoke (the tests of the main path) and words in the title. Get one for its steps.

get/api/v1/tests

Authorization

HeaderAuthorization: Bearer <API key>
Or the headerX-API-Key: <API key>
API keyMake one in Troopy under Settings > API keys. It acts as you, in its workspace.

Other ways to call it

CLItroopy tests list
MCP tooltroopy_list_tests
Rate limit120 calls in 60 seconds, for each key

Query parameters

pageinteger

1-based page number

Default 1 · At least 1

limitinteger

Items per page, at most 100

Default 20 · At least 1 · At most 100

statusenum<string>

proposedactivepaused

tagstring

At least 1 characters · At most 30 characters

smokeboolean | enum<string>

true: only the tests of the main path

truefalse

qstring

Words in the title

At least 1 characters · At most 100 characters

Response

200 · application/json
data*array<object>
13 properties
id*string

A 24-character id

title*string
steps*array<object>
3 properties
id*string

s1, s2 and so on, in order

kind*enum<string>

do: an action. check: what must show. picture: a picture to take

docheckpicture

text*string
tags*array<string>
smoke*boolean

On the main path: it runs after each release

production*boolean

Safe for Production: no step changes data

account*string | null

The label of the test account that it signs in with. null when it signs in with none

status*enum<string>

A teammate's test is proposed until a person makes it active. A paused test does not run

proposedactivepaused

createdBy*object

Who wrote it

3 properties
type*enum<string>

personagentapi

id*string
name*string
updatedBy*object

Who wrote it

3 properties
type*enum<string>

personagentapi

id*string
name*string
version*integer
createdAt*string

ISO 8601 date and time

updatedAt*string

ISO 8601 date and time

pagination*object
4 properties
page*integer
limit*integer
total*integer
pages*integer

Errors

400 invalid_inputFix the field named in detail. Each operation's schema is in /api/v1/openapi.json.
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
429 rate_limitedWait the number of seconds in Retry-After, then retry.