curl -X POST https://agentgate.mynewapi.com/v1/work-orders \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskPrompt": "Add input validation to the user registration endpoint",
"workspaceSource": {
"type": "git",
"repository": "https://github.com/your-org/your-repo",
"branch": "main"
},
"maxIterations": 5,
"tenantContext": {
"tenantId": "acme-corp",
"tenantUserId": "user_123"
}
}'