dots.v2.genAi.scenario_sets.get()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.genAi.scenario_sets.get(requestConfiguration?: RequestConfiguration<Scenario_setsRequestBuilderGetQueryParameters>): Promise<undefined | ApiListScenarioSetsOutput>Description
To list scenario sets, send a GET request to /v2/gen-ai/scenario_sets.
Parameters
pageinteger optionalExample:
1Page number.
perPageinteger optionalExample:
1Items per page.
statusesarray of strings optionalExample:
["SCENARIO_SET_STATUS_READY"]Filter by one or more statuses. Empty means no status filter.
- SCENARIO_SET_STATUS_GENERATING: Generation is in progress. The scenarios are not ready yet.
- SCENARIO_SET_STATUS_READY: The scenario set is ready to use.
- SCENARIO_SET_STATUS_FAILED: Generation failed. The scenario set has no readable scenarios.
- SCENARIO_SET_STATUS_CANCELLED: Generation was cancelled before completion.sourceKindsarray of strings optionalExample:
["SCENARIO_SET_SOURCE_KIND_USER_UPLOAD"]Filter by one or more source kinds. Empty means no source-kind filter.
- SCENARIO_SET_SOURCE_KIND_USER_UPLOAD: Created from uploaded or inline scenarios.
- SCENARIO_SET_SOURCE_KIND_GOAL_GENERATED: Produced by goal-driven generation.
- SCENARIO_SET_SOURCE_KIND_LIBRARY: Copied from a platform-curated library entry.
- SCENARIO_SET_SOURCE_KIND_SIGNAL_GENERATED: Produced from a completed Signals export.searchstring optionalExample:
example stringFree-text search across name and description
(case-insensitive substring match). Empty means no search.sortBystring optionalField to sort by. Defaults to creation date when unspecified.
- SCENARIO_SET_SORT_FIELD_CREATED_AT: Sort by creation date. Default.
- SCENARIO_SET_SORT_FIELD_NAME: Sort by customer-supplied name (case-insensitive).
- SCENARIO_SET_SORT_FIELD_STATUS: Sort by status using lifecycle order (generating → ready → terminal).
- SCENARIO_SET_SORT_FIELD_SCENARIO_COUNT: Sort by scenario_count.
- SCENARIO_SET_SORT_FIELD_UPDATED_AT: Sort by last update date.sortDirectionstring optionalSort direction. Defaults to descending when unspecified.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.genAi.scenario_sets.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.genAi.scenario_sets.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/gen-ai/scenario_sets in the API reference for additional detail on responses, headers, parameters, and more.