Agent SwarmAgent Swarm

Script Runs

Script Runs API endpoints

POST
/api/internal/raw-llm

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/internal/raw-llm" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string"  }'
Empty
Empty
POST
/api/internal/script-runs/{runId}/agent-task

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

runId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent-task" \  -H "Content-Type: application/json" \  -d '{    "stepKey": "string"  }'
Empty
Empty
Empty
POST
/api/internal/script-runs/{runId}/heartbeat

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

runId*string
Formatuuid

Response Body

curl -X POST "http://localhost:3013/api/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/heartbeat"
Empty
Empty
POST
/api/internal/script-runs/{runId}/status

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

runId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/status" \  -H "Content-Type: application/json" \  -d '{    "status": "completed"  }'
Empty
Empty
POST
/api/internal/script-runs/{runId}/steps

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

runId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/steps" \  -H "Content-Type: application/json" \  -d '{    "stepKey": "string",    "stepType": "string",    "status": "completed"  }'
Empty
Empty
GET
/api/internal/script-runs/{runId}/steps/{stepKey}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

runId*string
Formatuuid
stepKey*string
Length1 <= length

Response Body

curl -X GET "http://localhost:3013/api/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/steps/string"
Empty
Empty
GET
/api/script-runs

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

status?string
Value in"running" | "paused" | "completed" | "failed" | "cancelled" | "aborted_limit"
agentId?string
limit?integer
Range1 <= value <= 500
offset?|
Range0 <= value

Response Body

curl -X GET "http://localhost:3013/api/script-runs"
Empty
POST
/api/script-runs

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/script-runs" \  -H "Content-Type: application/json" \  -d '{    "source": "string"  }'
Empty
Empty
Empty
Empty
DELETE
/api/script-runs/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Response Body

curl -X DELETE "http://localhost:3013/api/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
Empty
GET
/api/script-runs/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Response Body

curl -X GET "http://localhost:3013/api/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
Empty