Scripts
Author, search, and run reusable TypeScript scripts — a shared automation catalog callable across swarm agents and workflows
Authorization
bearerAuth 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/mcp-bridge" \ -H "Content-Type: application/json" \ -d '{ "tool": "string" }'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
"global" | "agent""true" | "false"Response Body
curl -X GET "http://localhost:3013/api/scripts"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
curl -X GET "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
curl -X GET "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis" \ -H "Content-Type: application/json" \ -d '{}'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
curl -X DELETE "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis/string"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PATCH "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis/string" \ -H "Content-Type: application/json" \ -d '{}'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
curl -X POST "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis/string/rotate"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
curl -X GET "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis/string/secret"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
curl -X GET "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
1 <= length <= 200Query Parameters
"agent""global" | "agent"Response Body
curl -X DELETE "http://localhost:3013/api/scripts/string"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
1 <= length <= 200Query Parameters
"global" | "agent"Response Body
curl -X GET "http://localhost:3013/api/scripts/string/types"Authorization
bearerAuth 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 '{}'Authorization
bearerAuth 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 '{}'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
curl -X GET "http://localhost:3013/api/scripts/type-defs"Authorization
bearerAuth 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" }'