Get scenarios for a test run

Lists scenarios for a test run.

GET https://api.futureagi.com/simulate/run-tests/{run_test_id}/scenarios/

Authentication

X-Api-Key API Key Required

Your Future AGI API key used to authenticate requests. You can find and manage your API keys in the Dashboard under Settings.

X-Secret-Key Secret Key Required

Your Future AGI secret key, used alongside the API key for request authentication. This is generated when you create an API key in the Dashboard.

Path parameters

run_test_id UUID Required

UUID of the test run whose scenarios to retrieve.

Query parameters

search string Optional

Case-insensitive partial match on scenario name, source, or type.

limit integer Optional

Number of records per page. Defaults to 10. Must be a positive integer.

page integer Optional

Page number to retrieve. Defaults to 1.

Response

200 OK
count integer

Total matching scenarios across all pages.

next string or null

URL to the next page, or null if on the last page.

previous string or null

URL to the previous page, or null if on the first page.

results array of objects

Array of scenario summary objects for the current page.

id string

UUID of the scenario.

name string

Display name of the scenario.

row_count integer

Number of data rows in the scenario. Each row generates a distinct test call.

Errors

401 Unauthorized Optional

Missing or invalid X-Api-Key or X-Secret-Key headers.

404 Not Found Optional

No test run found with the specified run_test_id.

500 Internal Server Error Optional

Unexpected server error. Contact support if it persists.

GET /
Authentication
REQUEST
 
RESPONSE