Create workflow agent from a complete spec
POSThttps://platform.docana.com/api/v1/agents/
Creates one actual Docana workflow Agent record from a complete AgentSpec V2: create, build, or draft one new agent. Do not use saveArtifact or importAgents for this. Validate the complete spec first with validateAgentSpec; creation never publishes, so call publishAgent separately when the draft is ready.
Request
Responses
- 201
- 401
- 403
- 422
- 500
The new unpublished draft agent
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
The spec has blocking mustFix validation defects
Unexpected server error.