GET
/v2/gen-ai/scenario_library/{library_scenario_uuid}/scenariosList Scenarios In Library Entry
To list the scenarios inside a Common Scenario & Goal Library entry without creating a team-owned scenario set, send a GET request to /v2/gen-ai/scenario_library/{library_scenario_uuid}/scenarios.
library_scenario_uuidstringrequired
UUID of the library entry to read.
pageintegeroptional
Page number.
per_pageintegeroptional
Items per page.
searchstringoptional
Free-text search across name, description, and user_persona
(case-insensitive substring match). Empty means no search.
sort_bystringoptional
Field to sort by. Defaults to original file order when unspecified.
- SCENARIO_SORT_FIELD_FILE_ORDER: Preserve original file order. Default.
- SCENARIO_SORT_FIELD_NAME: Sort by scenario name (case-insensitive). Empty names sort last.
- SCENARIO_SORT_FIELD_DESCRIPTION: Sort by scenario description (case-insensitive).
sort_directionstringoptional
Sort direction. Defaults to ascending when unspecified.
200A successful response.
available_sort_byarray<string>optional
Sort-by values available for this list request.
available_sort_directionsarray<string>optional
Sort-direction values available for this list request.
linksobjectoptional
Links to other pages
metaobjectoptional
Meta information about the data set
scenariosarray<object>optional
The scenarios for the current page.
401Authentication failed due to invalid credentials.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
404The resource was not found.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
429The API rate limit has been exceeded.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
500There was a server error.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
defaultThere was an unexpected error.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
Error handling
A 401 is returned: Authentication failed due to invalid credentials. A 404 is returned: The resource was not found. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.