List runs - Spacefast Docs
List runs
Returns the team’s runs, newest first. status=awaiting_approval is the approvals inbox query.
GET /v1/connectors/runs
Authorization
AuthorizationBearer token · header required
`Authorization: Bearer sfa_ prefix), an OAuth access token, a session token, or a Space machine credential (sfm_ prefix).
AuthorizationOAuth2 access token · header required
OAuth 2.0 with Spacefast scopes. People use the authorization code flow; machines use client credentials.
Scopes: connectors:read
Query parameters
limitinteger required- min 1 · max 100 · default: 20
cursorstring- min length 1 · max length 4096
statusstring- Allowed:
running,awaiting_approval,succeeded,failed,expired
- Allowed:
connectionstring- min length 1
teamstring- min length 1 · max length 255
Responses
200 Response for status 200
$schemastring- Canonical JSON Schema URL for this response body.
dataobject[] required- Array of
objectidstring required- Run id (
cxr_).
- Run id (
inputobject required- What the run was asked to do, without echoing arguments that may carry customer data.
kindstring requiredtoolis one call;codeis a program that may make many. Same endpoint, same id space, same resume.- Allowed:
tool,code
addressstring | any required- Tool address for a
toolrun; null for acodeprogram.
- Tool address for a
digeststring required- Content digest of the submitted input, so a retry can be recognized without replaying it.
usageobject required- What this run has spent. Budgets are enforced against these numbers.
toolCallsinteger required- Tool calls made so far.
egressBytesinteger required- Bytes read from third-party APIs so far.
durationMsinteger required- Wall-clock time spent executing so far.
createdAtstringrequired statusstring required
- Array of
Pagination
nextCursorstring | any required- Opaque cursor for the next page; null when there are no more results.
hasMoreboolean required- Whether another page exists after this one.