Skip to main content
Validate an agent configuration without creating it. This is useful for testing configurations before deployment.

Request Body

Send the complete agent configuration YAML or JSON to validate.
curl -X POST https://api-be.atthene.com/api/v1/agent/validate/ \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Test Agent",
    "agent_type": "llm_agent",
    "system_prompt": "You are a helpful assistant.",
    "llm_config": {
      "model": "gpt-4o",
      "temperature": 0.7
    }
  }'

Response

Valid Configuration

{
  "valid": true,
  "message": "Configuration is valid"
}

Invalid Configuration

{
  "valid": false,
  "errors": [
    {
      "field": "llm_config.model",
      "message": "Invalid model specified"
    }
  ]
}
Always validate your agent configurations before deploying them to production to catch configuration errors early.