Validate an agent spec
POSThttps://platform.docana.com/api/v1/agents/schema/validate/
Validates an agent spec against the AgentSpec V2 JSON Schema (see GET /api/v1/agents/schema/) without persisting anything. Accepts either { "spec": <agent-spec> } or the spec object at the top level.
Request
Responses
- 200
- 400
- 401
- 403
- 500
The spec is valid (warnings/mustFix may be non-empty)
Malformed JSON or schema-invalid spec
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
Unexpected server error.