VerificationProjectScenario
A user journey Verify tests in a project: list, write, import or export them.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
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:
verification_project_scenarios, err := client.VerificationProjectScenario(nil).List(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(verification_project_scenarios)
verification_project_scenario, err := client.VerificationProjectScenario(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(verification_project_scenario)
created, err := client.VerificationProjectScenario(nil).Create(map[string]any{"organization_id": "example", "project_id": "example", "name": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.VerificationProjectScenario(nil).Update(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.VerificationProjectScenario(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
Lua
Construct client as shown in the Lua setup, then call the operations:
local verification_project_scenarios, err = client:VerificationProjectScenario():list({ organization_id = "example", project_id = "example" })
local verification_project_scenario, err = client:VerificationProjectScenario():load({ id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:VerificationProjectScenario():create({ organization_id = "example", project_id = "example", name = "example" })
local updated, err = client:VerificationProjectScenario():update({ id = "example_id", organization_id = "example", project_id = "example" })
local patched, err = client:VerificationProjectScenario():patch({ id = "example_id", organization_id = "example", project_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$verification_project_scenarios = $client->VerificationProjectScenario()->list(["organization_id" => "example", "project_id" => "example"]);
$verification_project_scenario = $client->VerificationProjectScenario()->load(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->VerificationProjectScenario()->create(["organization_id" => "example", "project_id" => "example", "name" => "example"]);
$updated = $client->VerificationProjectScenario()->update(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$patched = $client->VerificationProjectScenario()->patch(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
verification_project_scenarios = client.VerificationProjectScenario().list({"organization_id": "example", "project_id": "example"})
verification_project_scenario = client.VerificationProjectScenario().load({"id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.VerificationProjectScenario().create({ "organization_id": "example", "project_id": "example", "name": "example" })
updated = client.VerificationProjectScenario().update({"id": "example_id", "organization_id": "example", "project_id": "example"})
patched = client.VerificationProjectScenario().patch({"id": "example_id", "organization_id": "example", "project_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
verification_project_scenarios = client.VerificationProjectScenario.list({ "organization_id" => "example", "project_id" => "example" })
verification_project_scenario = client.VerificationProjectScenario.load({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.VerificationProjectScenario.create({ "organization_id" => "example", "project_id" => "example", "name" => "example" })
updated = client.VerificationProjectScenario.update({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
patched = client.VerificationProjectScenario.patch({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const verification_project_scenarios = await client.VerificationProjectScenario().list({ organization_id: "example", project_id: "example" })
const verification_project_scenario = await client.VerificationProjectScenario().load({ id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.VerificationProjectScenario().create({ organization_id: "example", project_id: "example", name: "example" })
const updated = await client.VerificationProjectScenario().update({ id: "example_id", organization_id: "example", project_id: "example" })
const patched = await client.VerificationProjectScenario().patch({ id: "example_id", organization_id: "example", project_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | Actors |
allowed_actions |
string |
Yes | Allowed Actions |
archived_at |
one,string,null |
Yes | Archived At |
cleanup |
array |
No | Optional application cleanup instructions, attempted after checks pass or fail. |
created_at |
string |
Yes | Created At |
dependencies |
array |
Yes | Dependencies |
fixtures |
array |
No | Files upload steps choose, ordered by name. |
health |
object |
No | Health |
id |
string |
Yes | Id |
identity_probe |
any |
No | Identity Probe |
if |
one,string,null |
No | A documented subset of Actions expressions. |
labels |
array |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
any |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | Lock Version |
name |
string |
Yes | Name |
on |
any |
No | Explicit Actions-style automatic execution rules. |
outcomes |
array |
Yes | Outcomes |
persona_id |
string |
Yes | Persona Id |
primary_actor |
one,string,null |
No | Primary Actor |
project_id |
string |
Yes | Project Id |
selectable_for_run |
boolean |
Yes | Selectable For Run |
starting_conditions |
one,string,null |
Yes | Starting Conditions |
steps |
array |
Yes | Steps |
triggers |
array |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string |
Yes | Updated At |
version |
integer |
Yes | Version |
create
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/{id}/archive
Operation ID: archive_api_v1_verification_project_scenario.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
version |
integer |
Yes |
Responses
200: Scenario
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
Yes | |
archived_at |
string,null (date-time) |
Yes | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
created_at |
string (date-time) |
Yes | |
dependencies |
array of object |
Yes | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
fixtures[].content_type |
string |
Yes | |
fixtures[].name |
string |
Yes | The file name the page receives |
fixtures[].sha256 |
string |
Yes | |
health |
object |
No | |
health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
health.failed |
integer |
Yes | |
health.latest |
object or null |
Yes | |
health.passed |
integer |
Yes | |
health.recent |
array of object |
Yes | |
health.recent[].created_at |
string |
Yes | |
health.recent[].finished_at |
string,null |
Yes | |
health.recent[].id |
string |
Yes | |
health.recent[].pull_request_label |
string,null |
Yes | |
health.recent[].pull_request_url |
string,null |
Yes | |
health.recent[].run_id |
string |
Yes | |
health.recent[].started_at |
string,null |
Yes | |
health.recent[].state |
string |
Yes | |
health.success_rate |
number,null |
Yes | |
id |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
Yes | |
persona_id |
string |
Yes | |
primary_actor |
string,null |
No | |
project_id |
string |
Yes | |
selectable_for_run |
boolean |
Yes | |
starting_conditions |
string,null |
Yes | |
steps |
array of string or object |
Yes | |
triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/{id}/duplicate
Operation ID: duplicate_api_v1_verification_project_scenario.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
name |
string |
Yes | |
persona_id |
string |
No | |
version |
integer |
Yes |
Responses
200: Success
application/json
The response is object.
201: Scenario
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
Yes | |
archived_at |
string,null (date-time) |
Yes | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
created_at |
string (date-time) |
Yes | |
dependencies |
array of object |
Yes | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
fixtures[].content_type |
string |
Yes | |
fixtures[].name |
string |
Yes | The file name the page receives |
fixtures[].sha256 |
string |
Yes | |
health |
object |
No | |
health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
health.failed |
integer |
Yes | |
health.latest |
object or null |
Yes | |
health.passed |
integer |
Yes | |
health.recent |
array of object |
Yes | |
health.recent[].created_at |
string |
Yes | |
health.recent[].finished_at |
string,null |
Yes | |
health.recent[].id |
string |
Yes | |
health.recent[].pull_request_label |
string,null |
Yes | |
health.recent[].pull_request_url |
string,null |
Yes | |
health.recent[].run_id |
string |
Yes | |
health.recent[].started_at |
string,null |
Yes | |
health.recent[].state |
string |
Yes | |
health.success_rate |
number,null |
Yes | |
id |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
Yes | |
persona_id |
string |
Yes | |
primary_actor |
string,null |
No | |
project_id |
string |
Yes | |
selectable_for_run |
boolean |
Yes | |
starting_conditions |
string,null |
Yes | |
steps |
array of string or object |
Yes | |
triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios
Operation ID: post_api_v1_organizations_organization_id_verification_projects_project_id_scenarios.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
No | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
dependencies |
array of object |
No | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose. Each sha256 must already be uploaded to this project; a missing content_type is chosen from the name. |
fixtures[].content_type |
string |
No | |
fixtures[].name |
string |
Yes | |
fixtures[].sha256 |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
No | Short tags that group Scenarios, such as checkout or smoke |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
No | |
persona_id |
string |
No | |
primary_actor |
string,null |
No | |
starting_conditions |
string |
No | |
steps |
array of string or object |
No | |
triggers |
array of string |
No | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
Responses
200: Success
application/json
The response is object.
201: Scenario
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
Yes | |
archived_at |
string,null (date-time) |
Yes | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
created_at |
string (date-time) |
Yes | |
dependencies |
array of object |
Yes | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
fixtures[].content_type |
string |
Yes | |
fixtures[].name |
string |
Yes | The file name the page receives |
fixtures[].sha256 |
string |
Yes | |
health |
object |
No | |
health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
health.failed |
integer |
Yes | |
health.latest |
object or null |
Yes | |
health.passed |
integer |
Yes | |
health.recent |
array of object |
Yes | |
health.recent[].created_at |
string |
Yes | |
health.recent[].finished_at |
string,null |
Yes | |
health.recent[].id |
string |
Yes | |
health.recent[].pull_request_label |
string,null |
Yes | |
health.recent[].pull_request_url |
string,null |
Yes | |
health.recent[].run_id |
string |
Yes | |
health.recent[].started_at |
string,null |
Yes | |
health.recent[].state |
string |
Yes | |
health.success_rate |
number,null |
Yes | |
id |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
Yes | |
persona_id |
string |
Yes | |
primary_actor |
string,null |
No | |
project_id |
string |
Yes | |
selectable_for_run |
boolean |
Yes | |
starting_conditions |
string,null |
Yes | |
steps |
array of string or object |
Yes | |
triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/from_exploration
Operation ID: from_exploration_api_v1_verification_project_scenarios.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
agent_id |
string |
Yes | Id of the exploration agent that reported the check |
check_index |
integer |
Yes | Position of the check in that agent's report |
exploration_id |
string |
Yes | |
persona_id |
string |
Yes |
Responses
200: Scenario saved earlier from the same check
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
Yes | |
archived_at |
string,null (date-time) |
Yes | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
created_at |
string (date-time) |
Yes | |
dependencies |
array of object |
Yes | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
fixtures[].content_type |
string |
Yes | |
fixtures[].name |
string |
Yes | The file name the page receives |
fixtures[].sha256 |
string |
Yes | |
health |
object |
No | |
health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
health.failed |
integer |
Yes | |
health.latest |
object or null |
Yes | |
health.passed |
integer |
Yes | |
health.recent |
array of object |
Yes | |
health.recent[].created_at |
string |
Yes | |
health.recent[].finished_at |
string,null |
Yes | |
health.recent[].id |
string |
Yes | |
health.recent[].pull_request_label |
string,null |
Yes | |
health.recent[].pull_request_url |
string,null |
Yes | |
health.recent[].run_id |
string |
Yes | |
health.recent[].started_at |
string,null |
Yes | |
health.recent[].state |
string |
Yes | |
health.success_rate |
number,null |
Yes | |
id |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
Yes | |
persona_id |
string |
Yes | |
primary_actor |
string,null |
No | |
project_id |
string |
Yes | |
selectable_for_run |
boolean |
Yes | |
starting_conditions |
string,null |
Yes | |
steps |
array of string or object |
Yes | |
triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string (date-time) |
Yes |
201: Scenario
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
Yes | |
archived_at |
string,null (date-time) |
Yes | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
created_at |
string (date-time) |
Yes | |
dependencies |
array of object |
Yes | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
fixtures[].content_type |
string |
Yes | |
fixtures[].name |
string |
Yes | The file name the page receives |
fixtures[].sha256 |
string |
Yes | |
health |
object |
No | |
health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
health.failed |
integer |
Yes | |
health.latest |
object or null |
Yes | |
health.passed |
integer |
Yes | |
health.recent |
array of object |
Yes | |
health.recent[].created_at |
string |
Yes | |
health.recent[].finished_at |
string,null |
Yes | |
health.recent[].id |
string |
Yes | |
health.recent[].pull_request_label |
string,null |
Yes | |
health.recent[].pull_request_url |
string,null |
Yes | |
health.recent[].run_id |
string |
Yes | |
health.recent[].started_at |
string,null |
Yes | |
health.recent[].state |
string |
Yes | |
health.success_rate |
number,null |
Yes | |
id |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
Yes | |
persona_id |
string |
Yes | |
primary_actor |
string,null |
No | |
project_id |
string |
Yes | |
selectable_for_run |
boolean |
Yes | |
starting_conditions |
string,null |
Yes | |
steps |
array of string or object |
Yes | |
triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/import
Operation ID: import_api_v1_verification_project_scenarios.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
dry_run |
boolean |
No | |
scenarios |
array of object and object |
Yes |
Responses
200: Every file was accepted; nothing is saved on a dry run
application/json
| Property | Type | Required | Description |
|---|---|---|---|
results |
array of object |
Yes | |
results[].errors |
array of string |
Yes | |
results[].id |
string,null |
Yes | Null for a refused file or a Scenario that was not saved |
results[].outcome |
enum: created, updated, unchanged, refused |
Yes | |
results[].path |
string |
Yes | |
results[].version |
integer,null |
Yes | |
results[].warnings |
array of string |
Yes | Wording a run cannot check reliably, each with how to rewrite it. The file still saves. |
401: Unauthorized
403: Only organization administrators can import Scenarios
404: Not found
422: Nothing was saved. Either at least one file was refused and results lists every file, or scenarios was not a list and error says so
application/json
The response is object or object.
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios
Operation ID: api_v1_verification_project_scenarios.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes |
Responses
200: ScenarioCollection
application/json
| Property | Type | Required | Description |
|---|---|---|---|
permissions |
object |
Yes | |
permissions.manage |
boolean |
Yes | |
scenarios |
array of object |
Yes | |
scenarios[].actors |
object |
No | |
scenarios[].allowed_actions |
enum: read_only, writes |
Yes | |
scenarios[].archived_at |
string,null (date-time) |
Yes | |
scenarios[].cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
scenarios[].created_at |
string (date-time) |
Yes | |
scenarios[].dependencies |
array of object |
Yes | |
scenarios[].dependencies[].after_step |
integer |
Yes | |
scenarios[].dependencies[].before_step |
integer |
Yes | |
scenarios[].dependencies[].name |
string |
No | |
scenarios[].dependencies[].scenario_id |
string |
Yes | |
scenarios[].fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
scenarios[].fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
scenarios[].fixtures[].content_type |
string |
Yes | |
scenarios[].fixtures[].name |
string |
Yes | The file name the page receives |
scenarios[].fixtures[].sha256 |
string |
Yes | |
scenarios[].health |
object |
No | |
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[].identity_probe |
object or null |
No | |
scenarios[].if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
scenarios[].labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
scenarios[].last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
scenarios[].lock_version |
integer |
Yes | |
scenarios[].name |
string |
Yes | |
scenarios[].on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
scenarios[].outcomes |
array of string or object |
Yes | |
scenarios[].persona_id |
string |
Yes | |
scenarios[].primary_actor |
string,null |
No | |
scenarios[].project_id |
string |
Yes | |
scenarios[].selectable_for_run |
boolean |
Yes | |
scenarios[].starting_conditions |
string,null |
Yes | |
scenarios[].steps |
array of string or object |
Yes | |
scenarios[].triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
scenarios[].updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/{id}
Operation ID: api_v1_verification_project_scenario.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Scenario
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
Yes | |
archived_at |
string,null (date-time) |
Yes | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
created_at |
string (date-time) |
Yes | |
dependencies |
array of object |
Yes | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
fixtures[].content_type |
string |
Yes | |
fixtures[].name |
string |
Yes | The file name the page receives |
fixtures[].sha256 |
string |
Yes | |
health |
object |
No | |
health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
health.failed |
integer |
Yes | |
health.latest |
object or null |
Yes | |
health.passed |
integer |
Yes | |
health.recent |
array of object |
Yes | |
health.recent[].created_at |
string |
Yes | |
health.recent[].finished_at |
string,null |
Yes | |
health.recent[].id |
string |
Yes | |
health.recent[].pull_request_label |
string,null |
Yes | |
health.recent[].pull_request_url |
string,null |
Yes | |
health.recent[].run_id |
string |
Yes | |
health.recent[].started_at |
string,null |
Yes | |
health.recent[].state |
string |
Yes | |
health.success_rate |
number,null |
Yes | |
id |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
Yes | |
persona_id |
string |
Yes | |
primary_actor |
string,null |
No | |
project_id |
string |
Yes | |
selectable_for_run |
boolean |
Yes | |
starting_conditions |
string,null |
Yes | |
steps |
array of string or object |
Yes | |
triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/export
Operation ID: export_api_v1_verification_project_scenarios.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
file_schema_version |
query |
enum: 1, 2 |
No | Version 2 clients retain named actors; older clients refuse actor journeys. |
Responses
200: ScenarioFileExport
application/json
| Property | Type | Required | Description |
|---|---|---|---|
organization |
object |
Yes | |
organization.id |
string |
Yes | |
organization.slug |
string |
Yes | |
project |
object |
Yes | |
project.id |
string |
Yes | |
project.name |
string |
Yes | |
project.slug |
string |
Yes | |
scenarios |
array of object |
Yes | |
scenarios[].$schema |
enum: https://composal.ai/schema/verify/v1/scenario.json, https://composal.ai/schema/verify/v2/scenario.json |
Yes | |
scenarios[].actors |
object |
No | |
scenarios[].allowed_actions |
enum: read_only, writes |
No | |
scenarios[].dependencies |
array of object |
No | |
scenarios[].dependencies[].after_step |
integer |
Yes | |
scenarios[].dependencies[].before_step |
integer |
Yes | |
scenarios[].dependencies[].name |
string |
No | |
scenarios[].dependencies[].scenario_id |
string or string |
Yes | Saved Scenario ID or ./relative-file.yaml within the submitted batch, relative to the referring file. |
scenarios[].fixture_hashes |
object |
No | Each fixture path's sha256. Sent beside the file's fields and removed before the file is checked against its schema. |
scenarios[].fixtures |
array of object |
No | Omitted when the Scenario has none. On import, a missing key keeps the current fixtures and [] removes them. |
scenarios[].fixtures[].content_type |
string |
No | |
scenarios[].fixtures[].name |
string |
No | Defaults to the path's last part |
scenarios[].fixtures[].path |
string |
Yes | Relative to the Scenario file |
scenarios[].id |
string |
No | Absent on a new file |
scenarios[].identity_probe |
object |
No | Same-origin JSON identity endpoint. Required for two or more signed-in actors; optional for one signed-in actor or anonymous-only journeys. A supplied probe is always used. Responses stay private. |
scenarios[].identity_probe.email_pointer |
string |
Yes | |
scenarios[].identity_probe.path |
string |
Yes | |
scenarios[].identity_probe.subject_pointer |
string |
Yes | |
scenarios[].if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
scenarios[].key |
string |
No | Set on a new file so a retried import matches the Scenario it created |
scenarios[].labels |
array of string |
No | Omitted when the Scenario has none. On import, a missing key keeps the current labels and [] removes them. |
scenarios[].name |
string |
Yes | |
scenarios[].on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
scenarios[].outcomes |
array of string or object |
Yes | |
scenarios[].path |
string |
No | Submitted file location, used for result messages and resolving ./dependency.yaml relative to this file. Supply on each file object when using file references. The CLI supplies this metadata; do not add it to YAML file contents. |
scenarios[].persona |
string |
No | Active Persona name; omitted means the Signed-out visitor |
scenarios[].primary_actor |
string |
No | |
scenarios[].starting_conditions |
string,null |
No | |
scenarios[].steps |
array of string or object |
Yes | |
scenarios[].triggers |
array of string |
No | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
scenarios[].version |
integer |
No | The Scenario's lock_version; present exactly when id is |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/{id}
Operation ID: patch_api_v1_organizations_organization_id_verification_projects_project_id_scenarios_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
No | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
dependencies |
array of object |
No | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose. Each sha256 must already be uploaded to this project; a missing content_type is chosen from the name. |
fixtures[].content_type |
string |
No | |
fixtures[].name |
string |
Yes | |
fixtures[].sha256 |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
No | Short tags that group Scenarios, such as checkout or smoke |
name |
string |
No | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
No | |
persona_id |
string |
No | |
primary_actor |
string,null |
No | |
starting_conditions |
string |
No | |
steps |
array of string or object |
No | |
triggers |
array of string |
No | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
version |
integer |
Yes |
Responses
200: Scenario
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
Yes | |
archived_at |
string,null (date-time) |
Yes | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
created_at |
string (date-time) |
Yes | |
dependencies |
array of object |
Yes | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
fixtures[].content_type |
string |
Yes | |
fixtures[].name |
string |
Yes | The file name the page receives |
fixtures[].sha256 |
string |
Yes | |
health |
object |
No | |
health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
health.failed |
integer |
Yes | |
health.latest |
object or null |
Yes | |
health.passed |
integer |
Yes | |
health.recent |
array of object |
Yes | |
health.recent[].created_at |
string |
Yes | |
health.recent[].finished_at |
string,null |
Yes | |
health.recent[].id |
string |
Yes | |
health.recent[].pull_request_label |
string,null |
Yes | |
health.recent[].pull_request_url |
string,null |
Yes | |
health.recent[].run_id |
string |
Yes | |
health.recent[].started_at |
string,null |
Yes | |
health.recent[].state |
string |
Yes | |
health.success_rate |
number,null |
Yes | |
id |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
Yes | |
persona_id |
string |
Yes | |
primary_actor |
string,null |
No | |
project_id |
string |
Yes | |
selectable_for_run |
boolean |
Yes | |
starting_conditions |
string,null |
Yes | |
steps |
array of string or object |
Yes | |
triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/scenarios/{id}
Operation ID: put_api_v1_organizations_organization_id_verification_projects_project_id_scenarios_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
No | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
dependencies |
array of object |
No | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose. Each sha256 must already be uploaded to this project; a missing content_type is chosen from the name. |
fixtures[].content_type |
string |
No | |
fixtures[].name |
string |
Yes | |
fixtures[].sha256 |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
No | Short tags that group Scenarios, such as checkout or smoke |
name |
string |
No | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
No | |
persona_id |
string |
No | |
primary_actor |
string,null |
No | |
starting_conditions |
string |
No | |
steps |
array of string or object |
No | |
triggers |
array of string |
No | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
version |
integer |
Yes |
Responses
200: Scenario
application/json
| Property | Type | Required | Description |
|---|---|---|---|
actors |
object |
No | |
allowed_actions |
enum: read_only, writes |
Yes | |
archived_at |
string,null (date-time) |
Yes | |
cleanup |
array of string or object |
No | Optional application cleanup instructions, attempted after checks pass or fail. Omit on updates to preserve saved instructions; [] clears them. Results are separate from Scenario checks. |
created_at |
string (date-time) |
Yes | |
dependencies |
array of object |
Yes | |
dependencies[].after_step |
integer |
Yes | |
dependencies[].before_step |
integer |
Yes | |
dependencies[].name |
string |
No | |
dependencies[].scenario_id |
string |
Yes | |
fixtures |
array of object |
No | Files upload steps choose, ordered by name. Omitted when the Scenario has none. |
fixtures[].byte_size |
integer,null |
No | Present on the Scenario page; null when the project no longer holds the bytes |
fixtures[].content_type |
string |
Yes | |
fixtures[].name |
string |
Yes | The file name the page receives |
fixtures[].sha256 |
string |
Yes | |
health |
object |
No | |
health.current_state |
enum: passing, failing, blocked, cancelled, running, not_run |
Yes | Where the Scenario stands by its latest execution. Timeouts count as failing. |
health.failed |
integer |
Yes | |
health.latest |
object or null |
Yes | |
health.passed |
integer |
Yes | |
health.recent |
array of object |
Yes | |
health.recent[].created_at |
string |
Yes | |
health.recent[].finished_at |
string,null |
Yes | |
health.recent[].id |
string |
Yes | |
health.recent[].pull_request_label |
string,null |
Yes | |
health.recent[].pull_request_url |
string,null |
Yes | |
health.recent[].run_id |
string |
Yes | |
health.recent[].started_at |
string,null |
Yes | |
health.recent[].state |
string |
Yes | |
health.success_rate |
number,null |
Yes | |
id |
string |
Yes | |
identity_probe |
object or null |
No | |
if |
string,null |
No | A documented subset of Actions expressions. Supports comparisons, &&, ||, !, parentheses, contains, startsWith and endsWith over GitHub event metadata. Empty or null clears it. Applied to automatic execution. |
labels |
array of string |
Yes | Short tags that group Scenarios, such as checkout or smoke |
last_revision |
object or null |
Yes | The latest recorded save; null when the Scenario was last saved before revisions were recorded. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
on |
object or null |
No | Explicit Actions-style automatic execution rules. Omit to preserve existing rules; null restores relevance selection. An empty object disables automatic execution. |
outcomes |
array of string or object |
Yes | |
persona_id |
string |
Yes | |
primary_actor |
string,null |
No | |
project_id |
string |
Yes | |
selectable_for_run |
boolean |
Yes | |
starting_conditions |
string,null |
Yes | |
steps |
array of string or object |
Yes | |
triggers |
array of string |
Yes | Positive repository path patterns that force fresh PR verification, alongside automatic selection. |
updated_at |
string (date-time) |
Yes |