A target is what an evaluation is shown on or a monitor watches: an agent, a skill, an applet or an Evals workflow. These endpoints list the live ones a page at a time, with the IDs to pass as targetId. Listing Evals workflows needs Workflows turned on for the organization and a key with evals:write whose owner is an organization owner or admin.
List targets
The organization's live agents, skills or applets (kind), by name: exactly what a monitor or an Evaluation accepts as a target. Workflows are GET /targets/workflows.
query Parameters
kindWhich kind of target to list; workflows are monitor.listWorkflows, and traces has no id
workspaceScopeWhich workspace to read. When omitted: every workspace for an organization admin; your one workspace if your Evals access covers exactly one; otherwise 403 asking you to name a workspace.
searchCase-insensitive substring of the name
cursorThe nextCursor of the previous page, for the same kind and search
limitList targets › Responses
Success
The live agents, skills or applets of the organization, by name: exactly what an evaluation accepts as a target
nextCursorSet while more remain: pass it back, or narrow by searching
List workflow targets
The organization's active workflows, by id order: what a monitor or an Evaluation accepts as a workflow target. Needs Workflows on for the organization, and, as the app's Workflows pages do, a key with evals:write whose owner is an organization owner or admin.
query Parameters
searchafterlimitList workflow targets › Responses
Success
nextCursor