List independently editable scenarios in a Test draft
GET
/v1/tests/{testPlanId}/scenariosHow to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| testPlanId | path | string | Yes | — |
Query parameters
None.
Body schema
This endpoint does not require a request body.
None.
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Ordered Test scenariosapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | list | Yes | — |
| data | object[] | Yes | — |
| data[].id | string | Yes | Unique identifier. |
| data[].name | string | Yes | Human-readable name. |
| data[].description | string | Yes | Human-readable description. |
| data[].kind | command | contract | integration | browser | agent | security | custom | Yes | — |
| data[].command | string | Yes | — |
| data[].workingDirectory | string | Yes | — |
| data[].timeoutMs | integer | Yes | — |
| data[].retries | integer | Yes | — |
| data[].env | object | Yes | — |
| data[].secretRefs | string[] | Yes | — |
| data[].request | object | Yes | Kind-specific structured request. Secrets must be referenced through `secretRefs`. |
| data[].assertions | object[] | Yes | — |
| data[].agentId | string | Yes | Agent ID. |
| data[].enabled | boolean | Yes | — |
| data[].tags | string[] | Yes | — |
| scenarios | object[] | Yes | — |
| scenarios[].id | string | Yes | Unique identifier. |
| scenarios[].name | string | Yes | Human-readable name. |
| scenarios[].description | string | Yes | Human-readable description. |
| scenarios[].kind | command | contract | integration | browser | agent | security | custom | Yes | — |
| scenarios[].command | string | Yes | — |
| scenarios[].workingDirectory | string | Yes | — |
| scenarios[].timeoutMs | integer | Yes | — |
| scenarios[].retries | integer | Yes | — |
| scenarios[].env | object | Yes | — |
| scenarios[].secretRefs | string[] | Yes | — |
| scenarios[].request | object | Yes | Kind-specific structured request. Secrets must be referenced through `secretRefs`. |
| scenarios[].assertions | object[] | Yes | — |
| scenarios[].agentId | string | Yes | Agent ID. |
| scenarios[].enabled | boolean | Yes | — |
| scenarios[].tags | string[] | Yes | — |
| updatedAt | string | No | ISO 8601 timestamp. |
List independently editable scenarios in a Test draft
Loading...
Response 200
Loading...