Create Session
curl --request POST \
--url https://agentcell.live/api/sessionsimport requests
url = "https://agentcell.live/api/sessions"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://agentcell.live/api/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agentcell.live/api/sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://agentcell.live/api/sessions"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://agentcell.live/api/sessions")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentcell.live/api/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodySessions
Create Session
Spawn a new Android phone instance
POST
/
api
/
sessions
Create Session
curl --request POST \
--url https://agentcell.live/api/sessionsimport requests
url = "https://agentcell.live/api/sessions"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://agentcell.live/api/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agentcell.live/api/sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://agentcell.live/api/sessions"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://agentcell.live/api/sessions")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentcell.live/api/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyRequest
No body required. Send an empty JSON object:curl -X POST https://agentcell.live/api/sessions \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{}'
Response
{
"id": "abc123",
"status": "creating",
"stream_url": null,
"adb_serial": null,
"trial_expires_at": "2025-01-15T10:20:00Z",
"created_at": "2025-01-15T10:00:00Z",
"updated_at": "2025-01-15T10:00:00Z"
}
Session statuses
| Status | Meaning |
|---|---|
creating | Container is being created |
booting | Android is booting (~30 seconds) |
ready | Phone is ready for tasks |
stopping | Instance is shutting down |
stopped | Instance has been stopped |
failed | Boot failed |
Limits
- Free trial: 1 concurrent instance, 20-minute session
- Subscriber: Up to 3 concurrent instances
402 if you’ve exceeded your limits.⌘I
