GET
/
{resourceSlug}
/
task
/
{taskId}
.json
curl --request GET \
  --url https://app.agentcloud.dev/{resourceSlug}/task/{taskId}.json
{
  "_id": "<string>",
  "orgId": "<string>",
  "teamId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "agentId": "<string>",
  "expectedOutput": "<string>",
  "toolIds": [
    "<string>"
  ],
  "asyncExecution": true,
  "context": [
    "<string>"
  ],
  "outputJson": {},
  "outputPydantic": {},
  "outputFile": "<string>",
  "icon": {
    "id": {},
    "filename": "<string>"
  },
  "requiresHumanInput": true,
  "displayOnlyFinalOutput": true,
  "hidden": true,
  "formFields": [
    {
      "position": "<string>",
      "type": "string",
      "name": "<string>",
      "label": "<string>",
      "description": "<string>",
      "required": true,
      "options": [
        "<string>"
      ],
      "tooltip": "<string>"
    }
  ],
  "isStructuredOutput": true
}

Path Parameters

resourceSlug
string
required

The resourceSlug is a url parameter of the teamId associated with the user. Anywhere the resourceSlug is used can be interpreted as a teamId

taskId
object
required

Response

200
task.json

JSON object containing the retrieved task.

Represents a task within the system, including its configuration, expected output, and optional form fields.