Automation
Cloud API and webhooks
Manage profiles from your own servers, open them on your computers, and get told when things happen.

The cloud API is for programs that run anywhere: your server, a scheduled job, an n8n or Zapier flow. With it you can create and change profiles, proxies and groups, read usage, and open or close profiles on computers that run DiceLogin.
The Local API runs only on the computer where DiceLogin is open, and is what you use to drive the browser itself (Puppeteer, Playwright, Selenium).
The API is in every paid plan. During the launch offer every account has it, free.
Quick start
- Create a key in Account → API and webhooks with the permissions
profiles:readandprofiles:write. - Create 50 profiles, each with its own fingerprint and a proxy from your list:
curl https://api.dicelogin.com/api/v1/profiles/bulk-create \
-H "Authorization: Bearer $DICELOGIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"count": 50,
"namePattern": "Shop {n}",
"settings": { "tags": ["shop"] },
"proxies": { "mode": "list", "list": "203.0.113.10:1080:user:pass\n203.0.113.11:1080:user:pass" }
}'const res = await fetch("https://api.dicelogin.com/api/v1/profiles/bulk-create", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DICELOGIN_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
count: 50,
namePattern: "Shop {n}",
settings: { tags: ["shop"] },
proxies: { mode: "list", list: "203.0.113.10:1080:user:pass\n203.0.113.11:1080:user:pass" },
}),
});
const { created, failed } = await res.json();
for (const p of created) console.log(p.id, p.name);import os, requests
r = requests.post(
"https://api.dicelogin.com/api/v1/profiles/bulk-create",
headers={"Authorization": f"Bearer {os.environ['DICELOGIN_KEY']}"},
json={
"count": 50,
"namePattern": "Shop {n}",
"settings": {"tags": ["shop"]},
"proxies": {"mode": "list", "list": "203.0.113.10:1080:user:pass\n203.0.113.11:1080:user:pass"},
},
)
r.raise_for_status()
for p in r.json()["created"]:
print(p["id"], p["name"])<?php
$ch = curl_init("https://api.dicelogin.com/api/v1/profiles/bulk-create");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("DICELOGIN_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"count" => 50,
"namePattern" => "Shop {n}",
"settings" => ["tags" => ["shop"]],
"proxies" => ["mode" => "list", "list" => "203.0.113.10:1080:user:pass\n203.0.113.11:1080:user:pass"],
]),
]);
$result = json_decode(curl_exec($ch), true);
foreach ($result["created"] as $p) {
echo $p["id"], " ", $p["name"], "\n";
}- List them with
GET /profiles.
Pick a language once and every example on the page switches to it.
To open the profiles and drive them with Puppeteer, Playwright or Selenium, use the Local API on the computer where DiceLogin runs.
API keys
In Account → API and webhooks, the team owner or an admin creates a key and picks its permissions. The key is shown once. Send it with every request:
Authorization: Bearer dl_live_…A key works in its team, with the owner's access, and only within its permissions:
| Permission | Allows |
|---|---|
profiles:read | list profiles, read one (with its cookies and passwords), activity, usage |
profiles:write | create, edit, duplicate, delete profiles and templates |
proxies:read / proxies:write | saved proxies (reading, checking an unsaved proxy / adding, changing, checking, deleting) |
groups:read / groups:write | groups |
launch | open and close profiles on your computers; runs, flows and schedules |
webhooks | manage webhooks |
Delete a key and it stops working at once. Every change made with a key shows in the audit log as owner@example.com (API key "name").
Limits: Starter 60, Pro 120, Team 300, Business 600 requests a minute per key (600 during the launch offer). Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit you get 429 with Retry-After.
Endpoints
Base URL: https://api.dicelogin.com/api/v1. The full description, for Postman, Insomnia or code generators, is at /api/v1/openapi.json.
| Method | Path | |
|---|---|---|
| GET | /profiles | all profiles (no passwords or cookies) |
| POST | /profiles | create a profile |
| GET | /profiles/{id} | one profile with its secrets |
| PATCH | /profiles/{id} | replace its settings |
| DELETE | /profiles/{id} | move to the trash |
| POST | /profiles/{id}/clone | duplicate |
| POST | /profiles/bulk-create | create up to 500 at once, from settings or a template |
| POST | /profiles/bulk-edit | change some settings of many |
| GET | /profiles/{id}/activity | opens, closes and failed opens |
| POST | /profiles/{id}/launch | open it on a computer |
| POST | /profiles/{id}/stop | close it |
| GET | /devices | computers you can open profiles on |
| GET, POST | /groups | groups |
| GET, POST | /proxies | saved proxies |
| POST | /proxies/check | check saved proxies |
| POST | /proxy/check-proxy | check a proxy that isn't saved |
| GET | /usage?days=30 | usage statistics |
| GET, POST | /webhooks | webhooks |
| GET, POST | /runs | runs: a flow, a script, open or close on many profiles (Automation) |
| GET | /runs/{id} | a run with each profile's result |
| POST | /runs/{id}/cancel | stop what hasn't started |
| GET, POST, PATCH, DELETE | /flows | flows |
| GET, POST, PUT, DELETE | /schedules | schedules |
Creating profiles
Send only what you want to choose — the rest is filled in. { "name": "Shop 12" } makes a Windows 11 profile with DiceCore and a matching user agent.
| Field | When left out |
|---|---|
os.type | windows (or mac, linux, android, ios) |
os.version | the usual one for that system (Windows 11, macOS 15 …) |
browser.type | chromium (DiceCore); firefox is DiceFox |
browser.version | a version the app ships: DiceCore 155–158, DiceFox 159–161 |
userAgent | built to match the system and browser |
proxy | no proxy |
groupId, tags, remark, tabs, cookie, fingerprint | none, or the app's defaults |
curl https://api.dicelogin.com/api/v1/profiles \
-H "Authorization: Bearer $DICELOGIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Shop 12",
"os": { "type": "windows" },
"browser": { "type": "chromium" },
"tags": ["shop"],
"tabs": ["https://example.com"],
"proxy": { "setting": "custom", "type": "socks5", "host": "203.0.113.10", "port": 1080, "username": "u", "password": "p" }
}'const res = await fetch("https://api.dicelogin.com/api/v1/profiles", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DICELOGIN_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Shop 12",
os: { type: "windows" },
browser: { type: "chromium" },
tags: ["shop"],
tabs: ["https://example.com"],
proxy: { setting: "custom", type: "socks5", host: "203.0.113.10", port: 1080, username: "u", password: "p" },
}),
});
const { profile } = await res.json();
console.log(profile.id, profile.userAgent);import os, requests
r = requests.post(
"https://api.dicelogin.com/api/v1/profiles",
headers={"Authorization": f"Bearer {os.environ['DICELOGIN_KEY']}"},
json={
"name": "Shop 12",
"os": {"type": "windows"},
"browser": {"type": "chromium"},
"tags": ["shop"],
"tabs": ["https://example.com"],
"proxy": {"setting": "custom", "type": "socks5", "host": "203.0.113.10", "port": 1080, "username": "u", "password": "p"},
},
)
r.raise_for_status()
profile = r.json()["profile"]
print(profile["id"], profile["userAgent"])<?php
$ch = curl_init("https://api.dicelogin.com/api/v1/profiles");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("DICELOGIN_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"name" => "Shop 12",
"os" => ["type" => "windows"],
"browser" => ["type" => "chromium"],
"tags" => ["shop"],
"tabs" => ["https://example.com"],
"proxy" => ["setting" => "custom", "type" => "socks5", "host" => "203.0.113.10", "port" => 1080, "username" => "u", "password" => "p"],
]),
]);
$profile = json_decode(curl_exec($ch), true)["profile"];
echo $profile["id"], " ", $profile["userAgent"], "\n";Many at once: POST /profiles/bulk-create with count (1–500), namePattern ({n} becomes 1, 2, 3 …), settings (the same fields as above) or a templateId, and proxies:
proxies.mode | Each profile gets |
|---|---|
none | no proxy |
base | the proxy in settings |
saved | the saved proxies in savedProxyIds, in turn |
list | the proxies in list, in turn — one per line: host:port, host:port:user:pass or socks5://user:pass@host:port |
When settings has no userAgent, every new profile gets its own. The answer lists created and failed (with the reason), and stops at the plan's profile limit.
Profiles with a PIN answer 423 PIN_REQUIRED. Unlock one with POST /profiles/{id}/pin/verify { "pin": "1234" }, then send the returned token as X-Profile-Unlock for the next 8 hours.
Opening profiles on your computers
The browser runs on a computer with DiceLogin, never on our servers. To let the API open profiles on a computer, turn on Settings → Automation → Allow remote control in the DiceLogin app there. While the app is open and signed in, it appears in GET /devices.
curl -X POST https://api.dicelogin.com/api/v1/profiles/$ID/launch \
-H "Authorization: Bearer $DICELOGIN_KEY" \
-H "Content-Type: application/json" \
-d '{ "device_id": "DEVICE_ID", "headless": false }'const res = await fetch(`https://api.dicelogin.com/api/v1/profiles/${profileId}/launch`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DICELOGIN_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ device_id: "DEVICE_ID", headless: false }),
});
console.log(res.status); // 202: the command was sentimport os, requests
r = requests.post(
f"https://api.dicelogin.com/api/v1/profiles/{profile_id}/launch",
headers={"Authorization": f"Bearer {os.environ['DICELOGIN_KEY']}"},
json={"device_id": "DEVICE_ID", "headless": False},
)
print(r.status_code) # 202: the command was sent<?php
$ch = curl_init("https://api.dicelogin.com/api/v1/profiles/$profileId/launch");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("DICELOGIN_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["device_id" => "DEVICE_ID", "headless" => false]),
]);
curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), "\n"; // 202: the command was sent- Without
device_id, DiceLogin picks the computer the profile is open on or was last opened on. If no such computer is connected and only one computer is, it uses that one. Otherwise you get409 CHOOSE_DEVICEwith the list. - The answer is
202: the command was sent. Whether the profile opened shows in its activity, and in theprofile.openedorlaunch.failedwebhooks. - The automation port stays on that computer (
127.0.0.1). To drive the browser with a script, run the script on that computer with the Local API.
Webhooks
Add a webhook in Account → API and webhooks (or POST /webhooks) with an https URL and the events you want:
| Event | When |
|---|---|
profile.created / profile.deleted | a profile is made (also by duplicate or create many) or moved to the trash |
profile.opened / profile.closed | a profile opens or closes on any computer (data.source: app, local-api, remote) |
launch.failed | a profile couldn't open (data.error) |
proxy.ip_changed | an open profile's proxy started using another IP |
snapshot.created | a cloud backup of a profile was saved |
invoice.paid | an invoice was paid |
run.finished | every profile of a run is done, failed or cancelled (data.counts) |
Each delivery is a POST with JSON:
{
"id": "evt_…",
"event": "profile.opened",
"createdAt": "2026-12-02T10:15:00.000Z",
"workspaceId": "…",
"data": { "profileId": "…", "profileName": "Shop 12", "source": "remote", "device": "OFFICE-PC", "by": "you@example.com" }
}Check the signature. The X-DiceLogin-Signature header looks like t=1764670500,v1=5f2c…. It is an HMAC-SHA256 of <t>.<raw body>, keyed with the webhook's secret:
import crypto from "node:crypto";
function verify(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // older than 5 minutes
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return v1?.length === expected.length && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}import hashlib, hmac, time
def verify(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
t, v1 = parts.get("t", "0"), parts.get("v1", "")
if abs(time.time() - int(t)) > 300: # older than 5 minutes
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, v1)<?php
function verify(string $rawBody, string $header, string $secret): bool {
parse_str(str_replace(",", "&", $header), $parts);
$t = $parts["t"] ?? "0";
$v1 = $parts["v1"] ?? "";
if (abs(time() - (int) $t) > 300) return false; // older than 5 minutes
$expected = hash_hmac("sha256", "$t.$rawBody", $secret);
return hash_equals($expected, $v1);
}Check the raw body exactly as it arrived — not JSON you parsed and wrote out again.
Answer with any 2xx within 10 seconds. If you don't, DiceLogin tries again after 30 seconds and again after 5 minutes. A webhook that fails 20 times in a row is turned off; turn it back on when your server is fixed. The last 50 deliveries of each webhook are listed in the portal.
Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | API_KEY_REQUIRED, INVALID_API_KEY, API_KEY_EXPIRED | no key, wrong key, or a deleted or expired key |
| 403 | MISSING_SCOPE | the key lacks that permission |
| 402 | PLAN_REQUIRED | no paid plan — opening profiles needs one |
| 403 | PLAN_NO_API | the team's plan doesn't include the API |
| 403 | PLAN_LIMIT_PROFILES | the plan's profile limit is reached |
| 404 | PROFILE_NOT_FOUND | no such profile in this team |
| 409 | NO_DEVICE, CHOOSE_DEVICE, DEVICE_NOT_CONNECTED | remote launch: no computer, or say which one |
| 423 | PIN_REQUIRED | the profile has a PIN |
| 429 | RATE_LIMITED | slow down (see Retry-After) |
