For the complete documentation index, see llms.txt. This page is also available as Markdown.

Instances

Query spec file execution instances.

An instance represents a single spec file execution within a run. It contains detailed information about test results, duration, and machine that executed the spec file.

Get instance

get
/instances/{instanceId}

Get a single spec file execution instance by ID with full test results

Authorizations
AuthorizationstringRequired

An organization API key, sent as Authorization: Bearer <key>. A key carries one scope for the whole API: a read key reaches the GET endpoints, a write key reaches all of them.

Path parameters
instanceIdstringRequired

The instance ID

Example: inst_abc123
Responses
200

Successful response

application/json
statusstring · enumRequiredPossible values:
get/instances/{instanceId}
GET /v1/instances/{instanceId} HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "status": "OK",
  "data": {
    "instanceId": "text",
    "runId": "text",
    "groupId": "text",
    "spec": "text",
    "machineId": "text",
    "claimedAt": "2026-01-01T00:00:00.000Z",
    "completedAt": "2026-01-01T00:00:00.000Z",
    "results": {
      "stats": {
        "tests": 1,
        "passes": 1,
        "failures": 1,
        "pending": 1,
        "skipped": 1
      },
      "exception": "text",
      "flaky": 1,
      "tests": [
        {
          "testId": "text",
          "title": [
            "text"
          ],
          "state": "passed",
          "displayError": "text",
          "attempts": [
            {
              "attemptId": "text",
              "state": "text",
              "wallClockStartedAt": "2026-01-01T00:00:00.000Z",
              "wallClockDuration": 1,
              "error": {
                "message": "text",
                "stack": "text"
              }
            }
          ]
        }
      ]
    }
  }
}

Last updated

Was this helpful?