Codevisor Docs
Api reference

POST Agents Wait

POST/v1/agents/wait

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

agentIds*array<string>
until?array<>|null
timeoutMs?number||||null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/agents/wait" \  -H "Content-Type: application/json" \  -d '{    "agentIds": [      "string"    ]  }'
{  "items": [    {      "agentId": "string",      "state": "working",      "pendingQuestion": {        "sessionUpdate": "question",        "questionId": "string",        "message": "string",        "questions": [          {            "id": "string",            "header": "string",            "question": "string",            "options": [              {                "id": "string",                "label": "string",                "description": "string"              }            ],            "multiSelect": true,            "allowsOther": true,            "isSecret": true,            "isApproval": true,            "backOptionLabel": "string",            "presentation": "browserExtensionSetup",            "pluginSetup": {              "plugin": "string",              "catalogId": "string",              "serverId": "string",              "name": "string",              "publisher": "string",              "description": "string",              "reason": "string",              "auth": "none",              "capabilities": {                "tools": [                  {                    "name": "string",                    "description": "string",                    "effects": "read",                    "app": true                  }                ],                "events": [                  {                    "name": "string",                    "description": "string"                  }                ],                "skills": [                  {                    "name": "string",                    "description": "string"                  }                ],                "panes": [                  {                    "type": "string",                    "title": "string",                    "resourceUri": "string"                  }                ],                "ingress": [                  {                    "name": "string",                    "title": "string",                    "route": "string"                  }                ]              },              "machine": {                "id": "string",                "name": "string"              }            }          }        ],        "autoResolutionMs": 0      }    }  ],  "timedOut": true}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}