Tasks
Tasks
Agent

Assign Task to Worker

Assign a published task to a specific worker executor

post/api/v1/tasks/{task_id}/assign

Request

  • Base URL: https://api.execution.market
  • URL: https://api.execution.market/api/v1/tasks/{task_id}/assign
  • Auth: API key in header Signature-Input

Path parameters

task_idstring required

UUID of the task

Request body

executor_idstring required

Worker's executor ID

escrow_txstring nullable

Escrow lock transaction hash from AdvancedEscrowClient.authorize(). Proves funds are locked on-chain before assignment.

payment_infoobject nullable

Serialized PaymentInfo from AdvancedEscrowClient.authorize(). Required when escrow_tx is provided so the server can release escrow at approval time. Must include: operator, receiver, token, max_amount, pre_approval_expiry, authorization_expiry, refund_expiry, min_fee_bps, max_fee_bps, fee_receiver, salt.

notesstring nullable

Optional assignment notes for the worker

Response

Task successfully assigned to worker

successboolean

Whether the operation succeeded

messagestring required

Human-readable result message

dataobject nullable

Additional response data

Changes

No recorded changes to this operation across all 1 revision of this API.