Skip to main content

Upload Agent from Zip

Uploads a .zip file containing agent code. Nasiko validates the package, extracts capabilities, and triggers the build pipeline.

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

Content-Type: multipart/form-data

Request Fields

FieldTypeRequiredDescription
filebinaryThe .zip archive
agent_namestringOverride the agent name

Examples

curl -X POST https://nasiko.dev/api/v1/agents/upload \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-F "file=@my-agent.zip"

Response

{
"data": {
"success": true,
"agent_name": "my-agent",
"status": "uploading",
"capabilities_generated": true,
"orchestration_triggered": true,
"version": "1.0.0"
},
"status_code": 200,
"message": "Agent upload initiated"
}

Package Requirements

Your .zip must contain a valid agent package at the root level. Nasiko inspects the package to auto-generate capabilities.