cURL
curl --request POST \ --url https://api.agentpowers.ai/v1/agents/{slug}/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'file=<string>'
{ "slug": "<string>", "storage_key": "<string>", "message": "Package uploaded" }
Upload an agent package file to R2 storage.
Only the agent author can upload packages. Max 10 MB.
Provide a Clerk JWT or a long-lived CLI token (prefix ap_cli_). Pass as Authorization: Bearer <token>.
ap_cli_
Authorization: Bearer <token>
Successful Response
Was this page helpful?