Skip to content
Spacefolder Docs
Esc
↑↓navigate↵open⌘Jpreview

Get a Fold

Read one Fold run. event_count counts all submitted events, including duplicates. Find the batch in trace.request.events and its receipt in trace.response.

GET/fold/{id}
Authorization
AuthorizationBearer token · headerrequired

Workspace API key (sf-…). Keep it server-side.

Path parameters
idstringrequired
Query parameters
world_idstringrequired
Responses
200

Success

created_atstring<date-time>required
event_countinteger<uint>required
min 0
run_idstringrequired
statusExecutionStatusrequired
Allowed:completedfailedrunning
traceTracerequired
Show properties
completed_atstring<date-time> | null
duration_msnumber<double> | null
errorstring | null
operationstringrequired
spansCallSpan[]
Show properties
Array of CallSpan
attributesobject
completed_atstring<date-time> | null
duration_msnumber<double> | null
namestringrequired
span_idstringrequired
start_offset_msnumber<double>required
started_atstring<date-time>required
statusstringrequired
started_atstring<date-time>required
statusstringrequired
trace_idstringrequired
world_idstringrequired
requestanyrequired
responseany
world_idstringrequired
Request
curl -X GET 'https://api.spacefolder.com/v1/fold/string?world_id=string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "created_at": "2019-08-24T14:15:22Z",
  "event_count": 0,
  "run_id": "string",
  "status": "completed",
  "trace": {
    "completed_at": "2019-08-24T14:15:22Z",
    "duration_ms": 0,
    "error": "string",
    "operation": "string",
    "spans": [
      {
        "attributes": {},
        "completed_at": "2019-08-24T14:15:22Z",
        "duration_ms": 0,
        "name": "string",
        "span_id": "string",
        "start_offset_ms": 0.1,
        "started_at": "2019-08-24T14:15:22Z",
        "status": "string"
      }
    ],
    "started_at": "2019-08-24T14:15:22Z",
    "status": "string",
    "trace_id": "string",
    "world_id": "string",
    "request": {
      "world_id": "my_app"
    },
    "response": {
      "world_id": "my_app"
    }
  },
  "world_id": "string"
}