Skip to main content
POST
Run a task

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

taskName
string
required

The name of the task.

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9_\-\.]+$

Body

application/json

inputs must match the task's inputSchema from GET /tasks/{taskName}. The task's examples show sample inputs to start from.

e.g., for POST /tasks/predict_mosaic_geometries_recipe/runs: { "region": "aws-us-west-2", "inputs": { "aoi_uri": "s3://wherobots-examples/rasterflow/aois/collegepark.parquet", "start": "2023-01-01T00:00:00Z", "end": "2024-01-01T00:00:00Z", "model_recipe": "sam3-text-geometry", "text_prompt": ["roofs"], "confidence_threshold": 0.3, "target_crs": "EPSG:3857" }, "name": "College Park roofs, 2023" }

region
string | null
inputs
Inputs · object
name
string | null
Maximum string length: 255

Response

Successful Response

e.g. { "taskRunId": "npqy9q19q4wlm3", "taskName": "predict_mosaic_geometries_recipe", "state": "SUBMITTED", "region": "aws-us-west-2", "submittedAt": "2026-06-04T18:00:00Z" }

taskRunId
string
required
taskName
string
required

Current mutable Task display metadata, not historical identity.

state
enum<string>
required
Available options:
PENDING,
SUBMITTED,
RUNNING,
SUCCEEDED,
FAILED,
TIMED_OUT,
CANCELLING,
CANCELLED,
UNKNOWN,
SKIPPED,
MISSED,
REJECTED
region
string
required
submittedAt
string<date-time>
required
taskId
string | null
taskTriggerId
string | null
type
enum<string> | null

Concrete task polymorphic identities.

Available options:
uniontask,
scripttask
runSource
enum<string>
default:manual

Origin of a run, independent of its backend.

Available options:
manual,
schedule,
rerun
batchTime
string<date-time> | null
rerunOfId
string | null

The task run this one reran, when runSource is rerun. Null otherwise.

batchKind
enum<string> | null

What batchTime means: tick for a nominal schedule time, gap for a journal boundary such as a pause or schedule edit. Null when batchTime is null.

Available options:
tick,
gap
windowStart
string<date-time> | null
windowEnd
string<date-time> | null
noComputeReason

Journal outcomes that deliberately launch no workload.

Available options:
cancelled,
overlap,
epoch_gap,
inputs_rejected
failureClass
enum<string> | null

Terminal dispatch and execution failure categories.

Available options:
QUOTA_REJECTED,
CONFIG_REJECTED,
USER_CODE,
PLATFORM,
TIMEOUT
runAsId
string | null
requestedById
string | null
workload
TaskRunWorkload · object | null

Recorded execution identity; absent before launch, never inferred from Task Run ID.

cancelRequestedAt
string<date-time> | null
startedAt
string<date-time> | null
endedAt
string<date-time> | null
durationSeconds
integer | null

How long the backend executed the run, from its start to its end (or to now, while running). 0 if it never started there. A cached run executes nothing, so this is the moment it took to return the stored result, not how long the result took to produce.