DiceLogin

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

  1. Create a key in Account → API and webhooks with the permissions profiles:read and profiles:write.
  2. 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" }
  }'
  1. 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:

HTTP
Authorization: Bearer dl_live_…

A key works in its team, with the owner's access, and only within its permissions:

PermissionAllows
profiles:readlist profiles, read one (with its cookies and passwords), activity, usage
profiles:writecreate, edit, duplicate, delete profiles and templates
proxies:read / proxies:writesaved proxies (reading, checking an unsaved proxy / adding, changing, checking, deleting)
groups:read / groups:writegroups
launchopen and close profiles on your computers; runs, flows and schedules
webhooksmanage 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.

MethodPath
GET/profilesall profiles (no passwords or cookies)
POST/profilescreate 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}/cloneduplicate
POST/profiles/bulk-createcreate up to 500 at once, from settings or a template
POST/profiles/bulk-editchange some settings of many
GET/profiles/{id}/activityopens, closes and failed opens
POST/profiles/{id}/launchopen it on a computer
POST/profiles/{id}/stopclose it
GET/devicescomputers you can open profiles on
GET, POST/groupsgroups
GET, POST/proxiessaved proxies
POST/proxies/checkcheck saved proxies
POST/proxy/check-proxycheck a proxy that isn't saved
GET/usage?days=30usage statistics
GET, POST/webhookswebhooks
GET, POST/runsruns: a flow, a script, open or close on many profiles (Automation)
GET/runs/{id}a run with each profile's result
POST/runs/{id}/cancelstop what hasn't started
GET, POST, PATCH, DELETE/flowsflows
GET, POST, PUT, DELETE/schedulesschedules

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.

FieldWhen left out
os.typewindows (or mac, linux, android, ios)
os.versionthe usual one for that system (Windows 11, macOS 15 …)
browser.typechromium (DiceCore); firefox is DiceFox
browser.versiona version the app ships: DiceCore 155–158, DiceFox 159–161
userAgentbuilt to match the system and browser
proxyno proxy
groupId, tags, remark, tabs, cookie, fingerprintnone, 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" }
  }'

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.modeEach profile gets
noneno proxy
basethe proxy in settings
savedthe saved proxies in savedProxyIds, in turn
listthe 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 }'
  • 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 get 409 CHOOSE_DEVICE with the list.
  • The answer is 202: the command was sent. Whether the profile opened shows in its activity, and in the profile.opened or launch.failed webhooks.
  • 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:

EventWhen
profile.created / profile.deleteda profile is made (also by duplicate or create many) or moved to the trash
profile.opened / profile.closeda profile opens or closes on any computer (data.source: app, local-api, remote)
launch.faileda profile couldn't open (data.error)
proxy.ip_changedan open profile's proxy started using another IP
snapshot.createda cloud backup of a profile was saved
invoice.paidan invoice was paid
run.finishedevery profile of a run is done, failed or cancelled (data.counts)

Each delivery is a POST with JSON:

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));
}

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

StatusCodeMeaning
401API_KEY_REQUIRED, INVALID_API_KEY, API_KEY_EXPIREDno key, wrong key, or a deleted or expired key
403MISSING_SCOPEthe key lacks that permission
402PLAN_REQUIREDno paid plan — opening profiles needs one
403PLAN_NO_APIthe team's plan doesn't include the API
403PLAN_LIMIT_PROFILESthe plan's profile limit is reached
404PROFILE_NOT_FOUNDno such profile in this team
409NO_DEVICE, CHOOSE_DEVICE, DEVICE_NOT_CONNECTEDremote launch: no computer, or say which one
423PIN_REQUIREDthe profile has a PIN
429RATE_LIMITEDslow down (see Retry-After)