Skip to content

Published

Run a task on a cloud Android phone with one API call ​

Send a goal to one address. BenchFleet starts a cloud Android phone, an AI model looks at the screen and acts step by step, and you read the result as JSON. You run no phone and no model.

bash
curl https://benchfleet.com/api/v1/tasks \
  -H "Authorization: Bearer $BENCHFLEET_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: price-check-2026-11-26" \
  -d '{
    "goal": "Open the page and read the price of the first item",
    "link": "https://example.com/shop",
    "output": { "price": "the price with its currency" }
  }'

The answer has the task's id. Ask for it until its state is succeeded or failed:

bash
curl https://benchfleet.com/api/v1/tasks/tsk_... -H "Authorization: Bearer $BENCHFLEET_TOKEN"
json
{
  "task": {
    "state": "succeeded",
    "steps_used": 6,
    "result": { "success": true, "summary": "The first item costs $4.20.", "data": { "price": "$4.20" }, "unusual": [] },
    "cost": { "currency": "gbp", "unit": "pence", "ai_credit": 18, "phone_minutes": 10, "phone": 20 }
  }
}

Our first real task ​

On 26 November 2026 we sent this task to the live service: "Open the page and read its main heading", with the link https://example.com. Nothing was running for it beforehand.

Measured
A new phone ready and the task running1 minute 55 seconds after the request
The task itself44 seconds, in 6 steps
From the request to the result2 minutes 39 seconds
The result"heading": "Example Domain"
The steps, as the task lists themswipe, tap_point, swipe, swipe, swipe, finish_task
What it used6 steps of AI credit and 10 phone minutes (the minimum; the phone ran for under 3)

Most of the wait was the phone starting. The first swipe opened the phone's lock screen. Three of the later swipes changed nothing on the screen, so about half the steps were not needed. Since that run, a task is told when a step changed nothing.

What you need ​

  • A BenchFleet plan that includes AI assistance: Pro, Agents, CI 5, CI 15, Team, Team + Minutes or Business.
  • An API token from Account → API tokens (the same tokens that start cloud phones from CI).
  • Cloud phone minutes and AI credit. The phone costs $0.028 a minute while it runs, with the usual 10-minute minimum. Each step the AI takes costs 3p of AI credit on the Best model.

What you can send ​

FieldMeaning
goalWhat to do, in plain words (up to 2,000 characters)
linkAn address to open first (optional)
outputThe values you want back, by name, each with a short description (optional)
androidThe Android version (optional; the newest by default)
tierbest (the default)
max_stepsThe most steps the AI may take (30 by default, at most 60)
max_minutesThe most minutes the task may run once its phone is ready (10 by default, at most 30)
person_wait_minutesHow long the task waits for you at a screen only a person may pass (10 by default)
webhook_urlAn https address that is told when the task needs you and when it ends (optional)

Send an Idempotency-Key header and a repeated request answers the first task instead of starting a second one.

How a task ends ​

stateMeaning
succeededThe goal was reached. result has a summary and the values you asked for
failedIt was not. error.code says why: goal_not_reached, step_limit, person_timeout, no_credit, spending_limit, day_limit, phone_failed, model_unavailable, refused or token_revoked
cancelledYou cancelled it with POST /api/v1/tasks/{id}/cancel
timed_outIt ran for max_minutes

The phone stops as soon as the task ends, and everything on it is deleted. Steps already taken stay charged.

When a screen needs a person ​

Some screens are for a person only: a CAPTCHA, a sign-in, a one-time code, a payment form. The task stops there. Its state becomes needs_person, your webhook is told, and nothing more is sent to the phone. Open Account → Phones, open the phone, do that step yourself, then press Hand back to the assistant. The task carries on by itself. If nobody comes within person_wait_minutes, the task ends as failed with person_timeout. The phone's minutes run while it waits.

The AI never solves or skips such a screen, and it never types a password, a code or a card number.

What a task may not do ​

A task does what a person could do by hand on their own phone. It is not for making accounts in bulk, for reviews, likes or follows that are not a real person's own, for getting past checks meant for people, or for hiding that software is acting. The AI ends such a task as refused.

The webhook ​

Each call is a small JSON body: the event (task.needs_person, task.resumed, task.succeeded, task.failed, task.cancelled, task.timed_out) and the task as GET returns it, without its steps. It is signed: the header BenchFleet-Signature: t=<seconds>,v1=<signature> holds the HMAC-SHA256 of <t>.<body> with the webhook_secret you got once when you started the task. Check it before you trust the call.

What BenchFleet keeps ​

The goal, the result and each step by its action's name (for example "tap_point") are kept for 30 days so you can read them, then deleted. BenchFleet does not store the screens, what was typed or where it tapped. Each step's screen goes to the AI model's maker to work out the next step.

Limits ​

An account runs 3 tasks at once and starts up to 20 an hour. Your monthly spending limit covers the phone's minutes and the AI credit together. A screen recording of the task is not available yet.