Skip to content
Context docs
Evals API

Targets

Serverhttps://context.example.com/api/v1/evals

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

GET
https://context.example.com/api/v1/evals
/targets
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

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.

List targets › query Parameters

kind
​string · enum · required

Which kind of target to list; workflows are monitor.listWorkflows, and traces has no id

Enum values:
agent
skill
applet
workspaceScope
​

Which 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.

search
​string · maxLength: 200

Case-insensitive substring of the name

cursor
​string · minLength: 1 · maxLength: 500

The nextCursor of the previous page, for the same kind and search

limit
​integer · min: 1 · max: 50
Default: 50

List targets › Responses

Success

​object[] · required

The live agents, skills or applets of the organization, by name: exactly what an evaluation accepts as a target

nextCursor
​string | null · required

Set while more remain: pass it back, or narrow by searching


List workflow targets

GET
https://context.example.com/api/v1/evals
/targets/workflows
Bearer (tsk_<prefix>_<secret>)
or
X-API-Key (header)

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.

List workflow targets › query Parameters

search
​string · maxLength: 200
Default:
after
​string | null · minLength: 1 · maxLength: 200
Default: null
limit
​integer · min: 1 · max: 100
Default: 25

List workflow targets › Responses

Success

Bounded workflow picker projection; the topic domain remains its lifecycle owner
​object[] · required
nextCursor
​string | null · minLength: 1 · maxLength: 200 · required