Skip to main content

Upload Agent from Directory

Uploads an agent from a local filesystem path. Useful for server-side automation.

POST /api/v1/agents/upload-directory — 🔒 Requires Auth

Request Body

FieldTypeRequiredDescription
directory_pathstringAbsolute path to the agent directory
agent_namestringOverride the agent name

Examples

curl -X POST https://nasiko.dev/api/v1/agents/upload-directory \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"directory_path": "/home/user/agents/my-agent",
"agent_name": "my-agent"
}'