---
title: "Test agent in sandbox (Enterprise)"
method: POST
path: "/api/v1/agents/{id}/test"
tags: ["Agents"]
---

# Test agent in sandbox (Enterprise)

`POST /api/v1/agents/{id}/test`

## Request

- Base URL: `https://orchestrator.getaxonflow.com`
- URL: `https://orchestrator.getaxonflow.com/api/v1/agents/{id}/test`
- Auth: none declared
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/docs/api/v1/agents/:id/test/post.ts> (a function with typed inputs; its response is checked against the schema)

Test an agent configuration in a sandbox environment.
**Enterprise only** - requires database-backed storage.

Executes a test query against the agent without affecting production.

## Path parameters

- `id` string, uuid, required

## Request body

- TestAgentRequest
  - `query` string, required: Test query to execute
  - `context` object: Additional context for the query

## Response `200`

Test result

- TestAgentResponse
  - `success` boolean
  - `result` unknown
  - `execution_time_ms` integer
  - `tasks_executed` integer
  - `errors` string[]

## Other responses

- `404`: Agent not found

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/revisions/f408ef3ec9dd?raw)
