Creates an agent from your repo and makes it available through a stable agent URL.
Bearer token using your Dari API key, for example Bearer $DARI_API_KEY
Request Body
Human-readable agent name.
Parsed contents of dari.yml.
Uploaded repo contents and publish input metadata.
Response Fields
Agent ID. This value is returned as id.
Stable URL for this agent.
Currently active agent version.
ISO 8601 creation timestamp.
curl -X POST https://api.dari.dev/v1/agents \
-H "Authorization: Bearer $DARI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "support-agent",
"manifest": {
"name": "support-agent",
"sdk": "openai-agents",
"entrypoint": "agent.py:agent"
},
"source": {
"type": "upload"
}
}'
{
"id": "agt_123",
"name": "support-agent",
"agent_url": "https://api.dari.dev/v1/agents/agt_123",
"active_version_id": "ver_9",
"created_at": "2026-03-31T18:20:00Z"
}