--- title: "Validate workflow for Agent Spec export" description: "Check if a FlowDrop workflow can be exported as Agent Spec.\nReturns validation errors and warnings without performing the export.\n\nChecks include:\n- Exactly one start node (terminal/trigger type)\n- At least one end node (terminal/output type)\n- Gateway nodes have branches defined\n- All nodes are reachable from start\n\nThis checks Agent Spec export compatibility only. For general workflow\nvalidation before execution, see `POST /workflows/validate` under\n**Validation**.\n" source: https://flowdrop.io/docs/api/agent-spec/validateWorkflowForAgentSpec site: FlowDrop documentation --- # Validate workflow for Agent Spec export `GET /workflows/{id}/validate/agentspec` Check if a FlowDrop workflow can be exported as Agent Spec. Returns validation errors and warnings without performing the export. Checks include: - Exactly one start node (terminal/trigger type) - At least one end node (terminal/output type) - Gateway nodes have branches defined - All nodes are reachable from start This checks Agent Spec export compatibility only. For general workflow validation before execution, see `POST /workflows/validate` under **Validation**. ## Parameters - `id` · in path · string · required — Workflow UUID ## Responses - `200` — Validation result (`application/json`: AgentSpecValidationResult) - `404` — Resource not found (`application/json`: ErrorResponse) - `500` — Internal server error (`application/json`: ErrorResponse) *Tags: Agent Spec*