API

LeaseVerifyDiagnostic

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/agent/swarms/{swarm_id}/tasks/{task_id}/leases/{id}/verify_diagnostics create Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.LeaseVerifyDiagnostic(nil).Create(map[string]any{"lease_id": "example", "swarm_id": "example", "task_id": "example", "browser_events": map[string]any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:LeaseVerifyDiagnostic():create({ lease_id = "example", swarm_id = "example", task_id = "example", browser_events = {} })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->LeaseVerifyDiagnostic()->create(["lease_id" => "example", "swarm_id" => "example", "task_id" => "example", "browser_events" => []]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.LeaseVerifyDiagnostic().create({ "lease_id": "example", "swarm_id": "example", "task_id": "example", "browser_events": {} })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.LeaseVerifyDiagnostic.create({ "lease_id" => "example", "swarm_id" => "example", "task_id" => "example", "browser_events" => {} })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.LeaseVerifyDiagnostic().create({ lease_id: "example", swarm_id: "example", task_id: "example", browser_events: {} })

Fields

Field Type Required Description
browser_events object Yes Browser Events
live_browser object No Live Browser
live_view object No The tester's read-only live stream for page viewers.
steps array No Steps

create

POST /api/v1/agent/swarms/{swarm_id}/tasks/{task_id}/leases/{id}/verify_diagnostics

Operation ID: verify_diagnostics_api_v1_swarm_task_lease.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
swarm_id path string Yes
task_id path string Yes
id path string Yes
X-Vex-Lease-Token header string Yes

Request body

application/json

Property Type Required Description
browser_events object Yes
live_browser object No
live_browser.action string Yes
live_browser.captured_at string (date-time) Yes
live_browser.completed_steps integer Yes
live_browser.image string Yes
live_browser.url string Yes
live_view object No The tester's read-only live stream for page viewers.
live_view.cdp_token string No Opens full Chrome DevTools on the tester; sent only when its runner serves DevTools, and shown only to people who may run tests.
live_view.token string Yes
live_view.url string (uri) Yes
steps array of object No
steps[].duration_ms integer Yes
steps[].id string Yes
steps[].safe_error string No
steps[].start_ms integer Yes
steps[].status enum: passed, failed, skipped, cancelled Yes

Responses

200: Success

application/json

The response is object.

204: Browser diagnostics checkpoint accepted
400: Invalid agent swarm request

application/json

Property Type Required Description
details array of string No
error string Yes
401: Invalid agent swarm request

application/json

Property Type Required Description
details array of string No
error string Yes
403: Forbidden
404: Invalid agent swarm request

application/json

Property Type Required Description
details array of string No
error string Yes
409: Invalid agent swarm request

application/json

Property Type Required Description
details array of string No
error string Yes
422: Invalid agent swarm request

application/json

Property Type Required Description
details array of string No
error string Yes
502: Bad gateway