Read one run - Spacefast Docs

Read one run

Returns one run: its result, the problem document that explains a failure, or the approval it is parked on.

GET /v1/connectors/runs/{runId}

Authorization

Authorization Bearer token · header required

Authorization: Bearer <token> with an API key (sfa_ prefix), an OAuth access token, a session token, or a Space machine credential (sfm_ prefix).

or

Authorization OAuth2 access token · header required

OAuth 2.0 with Spacefast scopes. People use the authorization code flow; machines use client credentials.

Scopes: connectors:read

Path parameters

runId string required

Query parameters

team string

Responses

200 Response for status 200

$schema string

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

data object required

One execution. A tool call and a code program are the same resource.

Show properties

Try it

Server

Base URL https://api.spacefast.com

Authorization

Bearer token

Parameters

runId path * team query

Send

Request

curl -X GET "https://api.spacefast.com/v1/connectors/runs/string" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200 default

{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "input": {
      "kind": "tool",
      "address": "string",
      "digest": "string"
    },
    "usage": {
      "toolCalls": -9007199254740991,
      "egressBytes": -9007199254740991,
      "durationMs": -9007199254740991
    },
    "createdAt": "2019-08-24T14:15:22Z",
    "status": "running"
  }
}
{
  "$schema": "http://example.com",
  "type": "string",
  "title": "string",
  "status": -9007199254740991,
  "detail": "string",
  "code": "string",
  "pointer": "string",
  "details": {
    "property1": null,
    "property2": null
  },
  "suggestions": [
    "string"
  ],
  "next": [
    "string"
  ],
  "requestId": "string"
}