Skip to main content
GET
List Library Scenarios

Overview

Returns the top-level scenario and auth nodes from the newest saved version of each agent in your organization, grouped per agent, with the full node payload inline so you can insert one into another agent’s graph and save it with Create Agent Version. Agents with no saved version or no scenarios are omitted from the results. For nodes you have retired from a canvas, see List Archived Nodes. By default the response is a single bounded page of up to 50 agents. To walk every agent in the organization, opt in to the paginated envelope with paginate=true and follow the returned next_cursor until it is null.

Headers

string
required
Your API key for authentication.

Query Parameters

string
Skip this agent’s scenarios, typically the agent you are currently editing. An empty value is ignored.
boolean
default:"false"
Set to true to receive { groups, next_cursor } instead of the bounded legacy array. Each page returns up to 50 agents.
string
Agent UUID cursor for the next page. Pass the next_cursor from the previous paginated response. Only used when paginate=true. Invalid UUIDs return 400 INVALID_CURSOR.

Response

array | object
Without paginate=true, an array of groups (one per agent that has at least one library scenario), ordered by agent ID. With paginate=true, an object with groups (same shape) and next_cursor (the agent ID to pass as after for the next page, or null when there are no more pages).
array
Scenario objects within a group.
null | array
null on success, or a list of error objects if the request failed.

Docs for agents: llms.txt