Scripts
Author, search, and run reusable TypeScript scripts — a shared automation catalog callable across swarm agents and workflows
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
name*string
Length
1 <= length <= 200Query Parameters
scope?string
Default
"agent"Value in
"global" | "agent"Response Body
curl -X DELETE "http://localhost:3013/api/scripts/string"Empty
Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
name*string
Length
1 <= length <= 200Query Parameters
scope?string
Value in
"global" | "agent"Response Body
curl -X GET "http://localhost:3013/api/scripts/string/types"Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/scripts/run" \ -H "Content-Type: application/json" \ -d '{}'Empty
Empty
Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/scripts/search" \ -H "Content-Type: application/json" \ -d '{}'Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/scripts/upsert" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "source": "string" }'Empty
Empty
Empty