PagesProjectScenario
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/organizations/{organization_id}/verification/projects/{project_id}/pages/scenarios |
list |
ProjectScenariosPage |
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:
pages_project_scenarios, err := client.PagesProjectScenario(nil).List(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(pages_project_scenarios)
Lua
Construct client as shown in the Lua setup, then call the operations:
local pages_project_scenarios, err = client:PagesProjectScenario():list({ organization_id = "example", project_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$pages_project_scenarios = $client->PagesProjectScenario()->list(["organization_id" => "example", "project_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
pages_project_scenarios = client.PagesProjectScenario().list({"organization_id": "example", "project_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
pages_project_scenarios = client.PagesProjectScenario.list({ "organization_id" => "example", "project_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const pages_project_scenarios = await client.PagesProjectScenario().list({ organization_id: "example", project_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
base_url |
one,string,null |
Yes | Base Url |
id |
string |
Yes | Id |
kind |
one,string,null |
Yes | Kind |
name |
string |
Yes | Name |
list
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/pages/scenarios
Operation ID: api_v1_verification_project_pages_scenarios.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
sort |
query |
enum: name, last_run, recently_added |
No | Name by default; last_run puts the most recently run first and never-run last |
limit |
query |
integer |
No | List at most this many scenarios; state counts then cover only those |
Responses
200: ProjectScenariosPage
application/json
| Property | Type | Required | Description |
|---|---|---|---|
environments |
array of object |
Yes | |
environments[].base_url |
string |
Yes | |
environments[].id |
string |
Yes | |
environments[].kind |
string |
Yes | |
environments[].name |
string |
Yes | |
permissions |
object |
Yes | |
permissions.manage |
boolean |
Yes | |
personas |
array of object |
Yes | |
personas[].access_mode |
enum: anonymous, account, signup |
Yes | |
personas[].archived_at |
string,null (date-time) |
Yes | |
personas[].capabilities |
string,null |
Yes | |
personas[].created_at |
string (date-time) |
Yes | |
personas[].credential_id |
string,null |
Yes | The credential this persona signs in with. Without one, a run chooses from the project's credentials. |
personas[].goals |
string,null |
Yes | |
personas[].id |
string |
Yes | |
personas[].lock_version |
integer |
Yes | |
personas[].name |
string |
Yes | |
personas[].project_id |
string |
Yes | |
personas[].role |
string |
Yes | |
personas[].updated_at |
string (date-time) |
Yes | |
project |
object |
Yes | |
project.archived_at |
string,null |
Yes | |
project.demo |
boolean |
Yes | A signup's demo project, copied from the Acme Notes template. Archiving removes it. |
project.execution_mode |
enum: website, computer_use |
Yes | |
project.icon_url |
string,null |
Yes | |
project.id |
string |
Yes | |
project.lock_version |
integer |
Yes | |
project.name |
string |
Yes | |
project.slug |
string |
Yes | |
scenario_states |
object |
Yes | Scenarios by the state of their latest execution. Timeouts count as failing. |
scenario_states.blocked |
integer |
Yes | |
scenario_states.cancelled |
integer |
Yes | |
scenario_states.failing |
integer |
Yes | |
scenario_states.not_run |
integer |
Yes | |
scenario_states.passing |
integer |
Yes | |
scenario_states.running |
integer |
Yes | |
scenario_states.total |
integer |
Yes | |
scenarios |
array of object |
Yes | |
scenarios[].actor_count |
integer |
Yes | |
scenarios[].dependency_count |
integer |
Yes | |
scenarios[].health |
object |
Yes | |
scenarios[].health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
scenarios[].health.failed |
integer |
Yes | |
scenarios[].health.latest |
object or null |
Yes | |
scenarios[].health.passed |
integer |
Yes | |
scenarios[].health.recent |
array of object |
Yes | |
scenarios[].health.recent[].created_at |
string |
Yes | |
scenarios[].health.recent[].finished_at |
string,null |
Yes | |
scenarios[].health.recent[].id |
string |
Yes | |
scenarios[].health.recent[].pull_request_label |
string,null |
Yes | |
scenarios[].health.recent[].pull_request_url |
string,null |
Yes | |
scenarios[].health.recent[].run_id |
string |
Yes | |
scenarios[].health.recent[].started_at |
string,null |
Yes | |
scenarios[].health.recent[].state |
string |
Yes | |
scenarios[].health.success_rate |
number,null |
Yes | |
scenarios[].id |
string |
Yes | |
scenarios[].labels |
array of string |
Yes | |
scenarios[].name |
string |
Yes | |
scenarios[].persona_id |
string |
Yes | |
scenarios[].selectable_for_run |
boolean |
Yes | |
scenarios[].step_count |
integer |
Yes |