oCoreoCore Docs
API Reference

Test Runs

List test runs

Returns paginated test runs for the specified environment.

GET
/environments/{envId}/test-runs

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

envIdRequiredstring

Environment ID (UUID)

Query Parameters

limitinteger

Max items to return (1-100)

Default: 20
offsetinteger

Offset for pagination

Default: 0
curl -X GET "//api.ocore.dev/api/environments/<string>/test-runs?limit=20&offset=0" \
  -H "Authorization: <token>"

OK

{
  "items": [
    {}
  ],
  "limit": 0,
  "offset": 0,
  "total": 0
}

Get test run

Returns details of a specific test run by ID.

GET
/test-runs/{runId}

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

runIdRequiredstring

Test Run ID (UUID)

curl -X GET "//api.ocore.dev/api/test-runs/<string>" \
  -H "Authorization: <token>"

OK

{}

Cancel test run

Cancels an in-progress test run.

POST
/test-runs/{runId}/cancel

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

runIdRequiredstring

Test Run ID (UUID)

curl -X POST "//api.ocore.dev/api/test-runs/<string>/cancel" \
  -H "Authorization: <token>"

OK

{
  "message": "string"
}

Stream test run logs (SSE)

Streams test run step logs as Server-Sent Events in real-time.

GET
/test-runs/{runId}/logs

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

runIdRequiredstring

Test Run ID (UUID)

curl -X GET "//api.ocore.dev/api/test-runs/<string>/logs" \
  -H "Authorization: <token>"

SSE stream

"string"

Get test run steps

Returns all steps for a completed test run.

GET
/test-runs/{runId}/steps

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

runIdRequiredstring

Test Run ID (UUID)

curl -X GET "//api.ocore.dev/api/test-runs/<string>/steps" \
  -H "Authorization: <token>"

OK

{
  "steps": [
    {
      "completedAt": "string",
      "durationMs": 0,
      "id": "string",
      "name": "string",
      "output": "string",
      "sortOrder": 0,
      "startedAt": "string",
      "status": "string",
      "version": 0
    }
  ],
  "total": 0
}

Was this page helpful?