Skip to content

Custom Agents API

Manage custom agent blueprints and tool permissions via REST.

Endpoints

  • GET /platform/v1/agents: List all workspace agents.
  • POST /platform/v1/agents: Create a new custom agent.
  • GET /platform/v1/agents/{agent_id}: Retrieve agent details.
  • PATCH /platform/v1/agents/{agent_id}: Update prompt, model, or tools.
  • DELETE /platform/v1/agents/{agent_id}: Archive an agent.

Create Agent Example

Terminal window
curl -X POST https://api.zonrad.com/platform/v1/agents \
-H "Authorization: Bearer zon_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "financial-guard",
"description": "Reviews invoices against Postgres ledger",
"model": "gpt-4o",
"system_prompt": "You are a financial controller. Cross-check all claims against the invoices table.",
"tool_whitelist": ["SQL_QUERY"]
}'