---
title: "Web Task - Result"
method: GET
path: "/{workspaceId}/web-tasks/{webTaskId}/result"
tags: ["webTasks"]
---

# Web Task - Result

`GET /{workspaceId}/web-tasks/{webTaskId}/result`

## Request

- Base URL: `https://app.intuned.io/api/v1/workspace`
- URL: `https://app.intuned.io/api/v1/workspace/{workspaceId}/web-tasks/{webTaskId}/result`
- Auth: API key in header `x-api-key`

Get the status and result of a Web Task. The response is a discriminated union on `status`; the `completed` branch carries an `outcome` plus outcome-specific fields.

## Path parameters

- `workspaceId` string, uuid, required
- `webTaskId` string, required

## Response `200`

Web task status and (when terminal) result envelope.

- union: Polled status + result envelope for GET /web-tasks/result/{webTaskId}. Discriminated by status; the 'completed' branch carries outcome plus outcome-specific fields (result/resultUrl on success, error on failure).
  - object
    - `webTaskId` string, required: Unique web task id, prefixed nanoid (wt_...).
    - `createdAt` string, date-time, required
    - `title` string
    - `input` object: Task input as submitted by the user via POST /web-tasks/start.
      - `task` string, required: Natural-language description of what to do.
      - `startUrl` string, uri: URL the agent should start from.
      - `parameters` object: Free-form parameters substituted into the task at runtime.
      - `outputSchema` object: Schema describing the expected output shape. Accepts JSON-Schema-shaped objects as well as Intuned's extended type vocabulary (e.g. `{ type: 'attachment' }`).
      - `reuseKey` string: Caller-provided key that ties this task to a persisted code and resources tree.
      - `model` 'haiku' | 'sonnet' | 'opus': Anthropic model the agent should run with. Defaults to 'haiku' when omitted.
      - `proxy` string, uri: Proxy URL to use for all browser traffic in this task.
      - `auth` string: Id of a captured web task auth (recorder-based session). When set, the agent's browser is pre-loaded with that session's storage state so the task runs authenticated.
      - `sink` union: Sink the task was started with, returned partially obfuscated.
        - object: Configuration for the S3 sink.
          - `type` 's3', required
          - `bucket` string, required: The name of the S3 bucket where the data will be stored.
          - `accessKeyId` string, required: The access key ID for the S3 bucket.
          - `secretAccessKey` string, required: The secret access key for the S3 bucket.
          - `region` string, required: The region where the S3 bucket is located.
          - `prefix` string: Optional prefix for the S3 objects. This can be used to organize objects within the bucket.
          - `skipOnFail` boolean: If enabled, failed payload runs will ***not*** be written to the bucket.
          - `apisToSend` string[]: List of API names to be sent to the S3 bucket. If not provided, all APIs will be sent.
          - `endpoint` string: Optional custom endpoint for the S3 bucket. This can be used for S3-compatible services.
          - `forcePathStyle` boolean: If true, the S3 client will use path-style URLs instead of virtual-hosted-style URLs. This is useful for S3-compatible services that require path-style access.
        - object: Configuration for the webhook sink.
          - `type` 'webhook', required
          - `url` string, required: The URL to which the webhook will send the data.
          - `headers` object: Optional headers to be sent with the webhook request.
          - `skipOnFail` boolean: If true, the webhook will not be sent if the API execution fails.
          - `apisToSend` string[]: List of API names to be sent to the webhook. If not provided, all APIs will be sent.
    - `status` 'pending', required
  - object
    - `webTaskId` string, required: Unique web task id, prefixed nanoid (wt_...).
    - `createdAt` string, date-time, required
    - `title` string
    - `input` object: Task input as submitted by the user via POST /web-tasks/start.
      - `task` string, required: Natural-language description of what to do.
      - `startUrl` string, uri: URL the agent should start from.
      - `parameters` object: Free-form parameters substituted into the task at runtime.
      - `outputSchema` object: Schema describing the expected output shape. Accepts JSON-Schema-shaped objects as well as Intuned's extended type vocabulary (e.g. `{ type: 'attachment' }`).
      - `reuseKey` string: Caller-provided key that ties this task to a persisted code and resources tree.
      - `model` 'haiku' | 'sonnet' | 'opus': Anthropic model the agent should run with. Defaults to 'haiku' when omitted.
      - `proxy` string, uri: Proxy URL to use for all browser traffic in this task.
      - `auth` string: Id of a captured web task auth (recorder-based session). When set, the agent's browser is pre-loaded with that session's storage state so the task runs authenticated.
      - `sink` union: Sink the task was started with, returned partially obfuscated.
        - object: Configuration for the S3 sink.
          - `type` 's3', required
          - `bucket` string, required: The name of the S3 bucket where the data will be stored.
          - `accessKeyId` string, required: The access key ID for the S3 bucket.
          - `secretAccessKey` string, required: The secret access key for the S3 bucket.
          - `region` string, required: The region where the S3 bucket is located.
          - `prefix` string: Optional prefix for the S3 objects. This can be used to organize objects within the bucket.
          - `skipOnFail` boolean: If enabled, failed payload runs will ***not*** be written to the bucket.
          - `apisToSend` string[]: List of API names to be sent to the S3 bucket. If not provided, all APIs will be sent.
          - `endpoint` string: Optional custom endpoint for the S3 bucket. This can be used for S3-compatible services.
          - `forcePathStyle` boolean: If true, the S3 client will use path-style URLs instead of virtual-hosted-style URLs. This is useful for S3-compatible services that require path-style access.
        - object: Configuration for the webhook sink.
          - `type` 'webhook', required
          - `url` string, required: The URL to which the webhook will send the data.
          - `headers` object: Optional headers to be sent with the webhook request.
          - `skipOnFail` boolean: If true, the webhook will not be sent if the API execution fails.
          - `apisToSend` string[]: List of API names to be sent to the webhook. If not provided, all APIs will be sent.
    - `status` 'started', required
    - `startedAt` string, date-time, required
  - object
    - `webTaskId` string, required: Unique web task id, prefixed nanoid (wt_...).
    - `createdAt` string, date-time, required
    - `title` string
    - `input` object: Task input as submitted by the user via POST /web-tasks/start.
      - `task` string, required: Natural-language description of what to do.
      - `startUrl` string, uri: URL the agent should start from.
      - `parameters` object: Free-form parameters substituted into the task at runtime.
      - `outputSchema` object: Schema describing the expected output shape. Accepts JSON-Schema-shaped objects as well as Intuned's extended type vocabulary (e.g. `{ type: 'attachment' }`).
      - `reuseKey` string: Caller-provided key that ties this task to a persisted code and resources tree.
      - `model` 'haiku' | 'sonnet' | 'opus': Anthropic model the agent should run with. Defaults to 'haiku' when omitted.
      - `proxy` string, uri: Proxy URL to use for all browser traffic in this task.
      - `auth` string: Id of a captured web task auth (recorder-based session). When set, the agent's browser is pre-loaded with that session's storage state so the task runs authenticated.
      - `sink` union: Sink the task was started with, returned partially obfuscated.
        - object: Configuration for the S3 sink.
          - `type` 's3', required
          - `bucket` string, required: The name of the S3 bucket where the data will be stored.
          - `accessKeyId` string, required: The access key ID for the S3 bucket.
          - `secretAccessKey` string, required: The secret access key for the S3 bucket.
          - `region` string, required: The region where the S3 bucket is located.
          - `prefix` string: Optional prefix for the S3 objects. This can be used to organize objects within the bucket.
          - `skipOnFail` boolean: If enabled, failed payload runs will ***not*** be written to the bucket.
          - `apisToSend` string[]: List of API names to be sent to the S3 bucket. If not provided, all APIs will be sent.
          - `endpoint` string: Optional custom endpoint for the S3 bucket. This can be used for S3-compatible services.
          - `forcePathStyle` boolean: If true, the S3 client will use path-style URLs instead of virtual-hosted-style URLs. This is useful for S3-compatible services that require path-style access.
        - object: Configuration for the webhook sink.
          - `type` 'webhook', required
          - `url` string, required: The URL to which the webhook will send the data.
          - `headers` object: Optional headers to be sent with the webhook request.
          - `skipOnFail` boolean: If true, the webhook will not be sent if the API execution fails.
          - `apisToSend` string[]: List of API names to be sent to the webhook. If not provided, all APIs will be sent.
    - `status` 'completed', required
    - `outcome` 'success' | 'failed', required: Public-facing outcome (lowercase). Present only when status='completed'.
    - `startedAt` string, date-time, nullable, required
    - `completedAt` string, date-time, required
    - `reuse` object: Per-execution snapshot of reuse-key state. Records the web_task that produced the resource revision observed by this run, plus whether this run created or updated the resource.
      - `key` string, required
      - `used` boolean, required
      - `created` boolean
      - `updated` boolean, required
      - `revision_id` string, required
      - `revision_timestamp` string, date-time, required
    - `cost` object, required: Public-facing cost summary returned only on completed web tasks.
      - `aiUsd` number: AI spend for this task in USD.
      - `compute` object: Compute portion of the cost surfaced to the caller.
        - `unit` 'hours', required: Unit of `amount`. Always 'hours' for now.
        - `amount` number, required: Compute time consumed by the agent.
    - `result` union: Public result envelope returned on completed+success. Discriminated by `type`: 'inline' carries `data`, 'file' carries a signed-URL `file` block.
      - object: Inline result envelope — small payload returned directly.
        - `type` 'inline', required
        - `data` unknown
      - object: File result envelope — large payload offloaded to object storage and delivered via a signed URL.
        - `type` 'file', required
        - `file` object, required
          - `url` string, uri, required: Signed URL to download the result blob.
          - `contentType` string, required: MIME type of the blob (e.g. application/json).
          - `sizeBytes` integer, required: Size of the blob in bytes.
          - `expiresAt` string, date-time, required: Expiry of the signed URL (ISO-8601).
    - `error` object: Error info recorded for a FAILED web task.
      - `code` 'workspace-rate-limited' | 'unauthenticated' | 'no-ai-credits-left' | 'internal-error' | 'timeout' | 'rejected', required
      - `message` string, required
      - `details` unknown
  - object
    - `webTaskId` string, required: Unique web task id, prefixed nanoid (wt_...).
    - `createdAt` string, date-time, required
    - `title` string
    - `input` object: Task input as submitted by the user via POST /web-tasks/start.
      - `task` string, required: Natural-language description of what to do.
      - `startUrl` string, uri: URL the agent should start from.
      - `parameters` object: Free-form parameters substituted into the task at runtime.
      - `outputSchema` object: Schema describing the expected output shape. Accepts JSON-Schema-shaped objects as well as Intuned's extended type vocabulary (e.g. `{ type: 'attachment' }`).
      - `reuseKey` string: Caller-provided key that ties this task to a persisted code and resources tree.
      - `model` 'haiku' | 'sonnet' | 'opus': Anthropic model the agent should run with. Defaults to 'haiku' when omitted.
      - `proxy` string, uri: Proxy URL to use for all browser traffic in this task.
      - `auth` string: Id of a captured web task auth (recorder-based session). When set, the agent's browser is pre-loaded with that session's storage state so the task runs authenticated.
      - `sink` union: Sink the task was started with, returned partially obfuscated.
        - object: Configuration for the S3 sink.
          - `type` 's3', required
          - `bucket` string, required: The name of the S3 bucket where the data will be stored.
          - `accessKeyId` string, required: The access key ID for the S3 bucket.
          - `secretAccessKey` string, required: The secret access key for the S3 bucket.
          - `region` string, required: The region where the S3 bucket is located.
          - `prefix` string: Optional prefix for the S3 objects. This can be used to organize objects within the bucket.
          - `skipOnFail` boolean: If enabled, failed payload runs will ***not*** be written to the bucket.
          - `apisToSend` string[]: List of API names to be sent to the S3 bucket. If not provided, all APIs will be sent.
          - `endpoint` string: Optional custom endpoint for the S3 bucket. This can be used for S3-compatible services.
          - `forcePathStyle` boolean: If true, the S3 client will use path-style URLs instead of virtual-hosted-style URLs. This is useful for S3-compatible services that require path-style access.
        - object: Configuration for the webhook sink.
          - `type` 'webhook', required
          - `url` string, required: The URL to which the webhook will send the data.
          - `headers` object: Optional headers to be sent with the webhook request.
          - `skipOnFail` boolean: If true, the webhook will not be sent if the API execution fails.
          - `apisToSend` string[]: List of API names to be sent to the webhook. If not provided, all APIs will be sent.
    - `status` 'canceled', required
    - `startedAt` string, date-time, nullable, required
    - `completedAt` string, date-time, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/intunedhq/apis/intuned-client.md) - [All operations](https://skmtc.dev/intunedhq/apis/intuned-client/llms.txt) - [OpenAPI document](https://skmtc.dev/intunedhq/apis/intuned-client/revisions/9f87fec44145?raw)
