# Spraay Robot Task Dispatch

> Spraay Robot Task Dispatch is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-20).

Dispatch a paid task to an RTP-registered robot with x402 payment held in escrow until task completion.

## Facts

- Endpoint: POST https://gateway.spraay.app/api/v1/robots/task?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spraay-robot-task-dispatch-dda05f25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__BmIJATBRpQ-j8w7pm40z

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability spraay-robot-task-dispatch-dda05f25 -d '<json body>'
```

Example prompt: Dispatch a task to robot R-2047 to scan and categorize the product inventory in warehouse zone B, with a 5-minute timeout and notify my callback at https://myapp.com/webhook when done.

## When to prefer this

Use this endpoint when you need to delegate a specific task to a known, RTP-registered robot with guaranteed payment-on-completion semantics via x402 escrow. Prefer this over generic compute APIs when the target executor is a physical or virtual robot agent with a registered ID, and when you need accountability through escrow release tied to task completion rather than upfront payment.

## Known failure modes

- Robot ID not found or not registered in RTP — returns 404 or robot-not-found error
- Insufficient USDC balance or x402 payment failure — task not dispatched
- Timeout exceeded before robot completes task — task marked failed, escrow may be refunded
- Invalid callback URL format — task dispatched but completion notification fails
- Missing required 'task' or 'robot_id' fields — returns 400 bad request
- Robot offline or unreachable — task queued or immediately rejected depending on implementation

## How this service works

Dispatch a paid task to an RTP-registered robot. x402 payment held in escrow until completion.

## Output

Returns a task confirmation with an escrow payment receipt; upon completion the robot reports back to the callback URL and escrow is released. Response typically includes task ID, status, and any result payload from the robot.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "task": {
   "type": "string"
  },
  "robot_id": {
   "type": "string"
  },
  "parameters": {
   "type": "object"
  },
  "callback_url": {
   "type": "string"
  },
  "timeout_seconds": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spraay-robot-task-dispatch-dda05f25/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
