Agent SwarmAgent Swarm

ApprovalRequests

ApprovalRequests API endpoints

GET
/api/approval-requests

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

status?string
workflowRunId?string
limit?|

Response Body

curl -X GET "http://localhost:3013/api/approval-requests"
Empty
POST
/api/approval-requests

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/approval-requests" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "questions": [      {        "id": "string",        "type": "approval",        "label": "string"      }    ],    "approvers": {      "policy": "any"    }  }'
Empty
Empty
GET
/api/approval-requests/{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/approval-requests/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
Empty
POST
/api/approval-requests/{id}/respond

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/approval-requests/497f6eca-6276-4993-bfeb-53cbbbba6f08/respond" \  -H "Content-Type: application/json" \  -d '{    "responses": {      "property1": null,      "property2": null    }  }'
Empty
Empty
Empty
Empty