Create a new agent, optionally from a template.
cURL
curl --request POST \ --url https://api.usehavoc.com/api/agents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "model": "anthropic/claude-sonnet-4-5", "templateId": "<string>" } '
Clerk JWT Token — obtained from the Havoc frontend via Clerk authentication.
Agent display name
Primary model identifier
"anthropic/claude-sonnet-4-5"
Optional template ID to base the agent on
Agent created successfully