List agent sessions

List agent sessions

Lists the caller's agent sessions in a vault, newest first, with optional workflow, computer, space, status and title filters. Computer history requires read access and follows durable attached-computer membership, including unselected targets. hasMore is true when a further page exists. Page with offset, or send cursor (empty for the first page, then each response's nextCursor) for keyset paging, which returns every session once across pages and includes nextCursor, null on the last page.

GET/api/agent/sessions
Query parameters
vaultIdstringrequired
workflowIdobject
computerIdobject
spaceIdstring
statusenum
limitintegerrequireddefault: 50
offsetintegerdefault: 0
qstring
cursorstring
sharedenum

Request

curl
curl -X GET https://trickest.io/api/agent/sessions \
  -H "Authorization: Token $TRICKEST_TOKEN"

Responses

200Sessions
sessionsobject[]required

idstringrequired
vault_idstringrequired
user_idstringrequired
titlestring
statusenumrequired

One of: ACTIVE, ARCHIVED, DELETED

modelstring
created_atstringrequired
updated_atstringrequired
hasBlockedQueueboolean
lastRunStatusstring
lastRunIdstring
lastRunCreatedAtstring
lastRunUpdatedAtstring
hasMorebooleanrequired
nextCursorstring
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.