> For the complete documentation index, see [llms.txt](https://docs.ibexa.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ibexa.ai/developers/rest-api/agents/get-agent-evaluation-target.md).

# Get Agent Evaluation Target

Get one evaluation target and every per-metric result computed for it.

404s when the target doesn't exist or doesn't belong to `agent_id` (including a target that belongs to a different organisation's agent).

Requires platform administration role (admin or owner).

```json
{"openapi":"3.1.0","info":{"title":"Ibexa Agentic Marketing Platform","version":"0.1.0"},"security":[{"OAuth2PasswordBearer":[]}],"components":{"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/login/access-token"}}}},"schemas":{"EvaluationTargetDetailResponseSchema":{"properties":{"id":{"type":"integer","title":"Id"},"target_type":{"$ref":"#/components/schemas/EvaluationTargetType"},"execution_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Execution Id"},"message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Id"},"conversation_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Conversation Id"},"overall_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score","description":"Weighted average across every computed metric, or null until evaluation finishes."},"outcome":{"$ref":"#/components/schemas/EvaluationOutcome"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"results":{"items":{"$ref":"#/components/schemas/EvaluationMetricResultSchema"},"type":"array","title":"Results","description":"Every metric computed for this target, in no particular order."}},"type":"object","required":["id","target_type","execution_id","message_id","conversation_id","overall_score","outcome","created_at","results"],"title":"EvaluationTargetDetailResponseSchema","description":"Evaluation-target detail: the list item plus every per-metric result."},"EvaluationTargetType":{"type":"string","enum":["execution","message","conversation"],"title":"EvaluationTargetType","description":"What kind of thing a metric is being computed for."},"EvaluationOutcome":{"type":"string","enum":["passed","failed","not_evaluated"],"title":"EvaluationOutcome","description":"An evaluation target's run-level result, derived from `eval_passed`.\n\n`NOT_EVALUATED` maps to `eval_passed IS NULL` (evaluation not finished\nyet, e.g. still queued or skipped by sampling before this target was\ncreated). This is deliberately the run-level aggregate only — per-metric\npass/fail is tracked separately (`EvaluationResultRecord.passed`), so\nfiltering/grouping by this enum still can't distinguish \"which metric\nfailed\"; use the per-metric results for that."},"EvaluationMetricResultSchema":{"properties":{"metric_id":{"type":"string","title":"Metric Id"},"value":{"type":"number","title":"Value"},"unit":{"type":"string","title":"Unit"},"passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Passed","description":"Whether this metric individually passed its configured threshold, or null if not yet evaluated."},"computed_at":{"type":"string","format":"date-time","title":"Computed At"}},"type":"object","required":["metric_id","value","unit","passed","computed_at"],"title":"EvaluationMetricResultSchema","description":"One metric's computed value for an evaluation target."}}},"paths":{"/api/v1/agents/{agent_id}/evaluations/targets/{target_id}":{"get":{"tags":["agents","public"],"summary":"Get Agent Evaluation Target","description":"Get one evaluation target and every per-metric result computed for it.\n\n404s when the target doesn't exist or doesn't belong to `agent_id`\n(including a target that belongs to a different organisation's agent).\n\nRequires platform administration role (admin or owner).","operationId":"agents-get_agent_evaluation_target","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"organisation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Organisation ID. Defaults to the caller's own organisation. Superusers may specify any organisation.","title":"Organisation Id"},"description":"Organisation ID. Defaults to the caller's own organisation. Superusers may specify any organisation."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationTargetDetailResponseSchema"}}}},"401":{"description":"User not authenticated","content":{"application/json":{}}},"403":{"description":"User lacks permission","content":{"application/json":{}}},"404":{"description":"Resource not found or user has no permission to access it","content":{"application/json":{}}}}}}}}
```
