Script Runs
Script Runs API endpoints
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/internal/raw-llm" \ -H "Content-Type: application/json" \ -d '{ "prompt": "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 POST "http://localhost:3013/api/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent-task" \ -H "Content-Type: application/json" \ -d '{ "stepKey": "string" }'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
curl -X POST "http://localhost:3013/api/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/heartbeat"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/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/status" \ -H "Content-Type: application/json" \ -d '{ "status": "completed" }'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/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/steps" \ -H "Content-Type: application/json" \ -d '{ "stepKey": "string", "stepType": "string", "status": "completed" }'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuid1 <= lengthResponse Body
curl -X GET "http://localhost:3013/api/internal/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/steps/string"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
"running" | "paused" | "completed" | "failed" | "cancelled" | "aborted_limit"1 <= value <= 5000 <= valueResponse Body
curl -X GET "http://localhost:3013/api/script-runs"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/script-runs" \ -H "Content-Type: application/json" \ -d '{ "source": "string" }'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
curl -X DELETE "http://localhost:3013/api/script-runs/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/script-runs/497f6eca-6276-4993-bfeb-53cbbbba6f08"