Pair many devices
This guide is for company-issued devices and device labs: a stack of phones or tablets that each need an address of their own. It follows the order the app is built for. Collect every device first, claim them together, then assign addresses together. The same steps are available over the API for teams that script them.
Devices are unlimited on every paid plan, and what the plan limits is addresses. Free pairs one device. See Plans and limits. Assigning several addresses to one device, device groups and bulk actions need the plans noted below.
1. Install the Worker app
Section titled “1. Install the Worker app”Install Mailcycle on each device from the App Store or Google Play, and open it. On the first screen choose Worker Device and Set up this device. The device shows a QR code and an 8-digit code. There is no account, name or password to enter on the device.
Leave each device on that screen until it has been claimed. A code nobody has looked up is dropped 15 minutes after it was shown, and the device then shows a new one. Once a code has been looked up it has no timer.
2. Pair them in one pass
Section titled “2. Pair them in one pass”On the account, open Devices and choose Pair a device (the Pair button on a phone). The screen is built for a batch:
- Choose Scan QR codes, Enter pairing codes or Upload pictures. Scanning holds the camera open and adds each device as its code comes into view. A code already in the list is ignored, so a camera lingering on one screen or two photos of the same desk cost nothing. Typing is for devices with no camera to point at; uploaded pictures are read for QR codes.
- Remove any device you added by mistake. Nothing is committed yet, and a batch you abandon leaves the account as it was.
- Choose Continue with N devices, check the list and choose Add to my account. The devices are claimed one after another. If some fail, Carry on with the N that worked moves on with the rest.
A device that leaves while you hold its code, for example by closing its pairing screen, drops out of the list and the app tells you. Scan it again once it shows a code.
Scan the QR code where you can. A QR code carries the device’s own wrapping secret, so the address keys are sealed to it without the secret crossing the network. A typed code carries none, so the account makes one and seals it to the key the device published, which the server relays. See How the keys get there.
Pairing the same install again replaces its old entry instead of adding a second device, so re-imaging or re-pairing a lab phone never inflates the count.
3. Give each device an address
Section titled “3. Give each device an address”After the claim, the app moves to Assign email addresses, a list of the devices you just paired.
- Choose New on a device, Existing to give it an address the account already holds, or tick several devices and choose New address in the bar. Later leaves a device without one.
- If your plan reaches more than one shared domain, pick an ending for the selected devices.
- Name style sets the look of the generated names (Neutral, Business, Team or Person), and Reroll all draws new ones.
- Add a label for the new addresses, such as
QAorWarehouse, if you want to find the batch later. It is sealed, so only you see it.
Choose Assign email address (or Assign N email addresses). The addresses are created, assigned and their keys handed over in one pass, and the Addresses on your plan meter shows what is left. A device that is open picks up its address at once, and otherwise at its next request. See Email addresses.
A device holds one address on Free, and Personal and above allow several per device. Every plan counts addresses whether or not a device holds them. On Scale and above you can choose the name before the @.
To change a device later, open it from Devices and use Email addresses on the device page to assign or unassign.
Name, tag and find devices
Section titled “Name, tag and find devices”Open a device to set its name, tags and notes. Names, tags and notes are sealed with the rest of the profile, so searching and filtering run in the app. The device list filters by status (online, offline, disabled) and tag, and sorts by last active or newest. Tags are on every plan.
Device groups, for a lab per site or a batch per customer, are on Fleet and up. See Devices.
Revoke one device
Section titled “Revoke one device”Open the device from Devices and choose Remove device. Its credential is revoked, and a device that is open is told at once. Its addresses stay on the account, unassigned, and can go to another device. Other devices are not affected, because each holds its own credential.
To stop a device without removing it, choose Disable device. It is refused with 403 device_disabled until you choose Enable device.
To act on many devices, tick them in the list and choose Disable, Enable or Remove from the bar. Bulk actions are on Operator and above. A device can also leave on its own with Unpair this device, which does the same as removing it from the account.
Doing it through the API
Section titled “Doing it through the API”Everything above is the account’s side of the pairing endpoints. Claiming, assigning, handing over keys and removing a device need a session, which you get by proving you hold the recovery phrase. An API key can list devices and read them, and gets 403 session_required on the rest. See Authentication.
For a script:
- Each device opens a pairing session and shows its code, as in Pairing devices.
- Look up each code with
POST /workers/pair/lookup, and hold the previews. Check the ones you hold withPOST /workers/pair/status(up to 90 at a time), and drop any that come backgone. - Claim them with
POST /workers/pair/batch, up to 50 per request. Each item is checked as a single claim would be, and one refusal does not stop the rest. - Give them addresses with
POST /workers/inboxes/batch, up to 50 per request. Each item creates an address (or uses one the account holds), assigns it and hands the device its sealed keys. If an item stopped after its address was created, retry it with that address asinboxIdrather than creating another. - List devices with
GET /workers, filtered bystatusandgroupand paged withcursor. Revoke one withDELETE /workers/:id, or up to 200 withPOST /workers/bulkand the actionremove.
The endpoints are listed in Devices. Each batch counts as one write for rate limits.
The SDKs wrap one device at a time. In TypeScript, mc.devices.pair() takes the 8 digits or the QR text, and mc.devices.assign() assigns an address and hands over the keys. See Pairing devices. Looping over a list of QR texts with those two calls is the simplest script for a few dozen devices.
Checking it worked
Section titled “Checking it worked”- Devices lists every device, with Online or Offline from its last activity in the past 15 minutes.
- Each device’s page lists its addresses, and Addresses on your plan shows the total against the plan.
- Send a message to one of the new addresses and open it from the device, or from Addresses. See Reading mail.
© Northlab Studios Ltd, trading as Mailcycle. Registered in England and Wales, company no. 17462734. Registered office: 167-169 Great Portland Street, London W1W 5PF.