Control Image Content
Quick Guide
Prerequisites
- In the Playground, sign in to Dot and select Authorize. In a script, use a personal API key or an OAuth access token as a Bearer token.
- Get the serial number for a device you can control.
- Make sure your device is connected to power;
- Make sure your device is connected to the network;
- Use add device content to add
mindreset.image_apito the device’s loop or fixed list. You can leave the Dot API key field empty when adding the item.
What Image API is for
Image API sends posters, screenshots, dashboards, or a favorite image to your device. It is best when you already have a complete visual and want the device to show that image directly.
Choose a content list and display timing
Choose the loop list or fixed list; the loop list is used by default. A task identifier targets an item only in the selected list. Without an identifier, the first Image API item in that list is updated.
Enable immediate display for loop content to request a screen update while the device is online. A sleeping device on battery retrieves saved content after automatic wake. Fixed content follows the times configured in Dot. App: even the item currently on screen waits for the next scheduled refresh. The API preserves its time settings. Read Timing for details.
About image input
Send an image as PNG Base64 data or a full HTTP(S) image URL. PNG Base64 may be bare Base64 or include the data:image/png;base64, prefix; the decoded payload must be no larger than 3MB. Remote image URLs must be anonymously accessible, require no authentication or special Referer, be no longer than 2048 characters, return a response body no larger than 3MB, and return image/* content directly.
Test image URLs for debugging
The following URLs are currently anonymously accessible and return image content that can be used with the Image API:
https://placehold.co/600x400/pnghttps://httpbin.org/image/png
If you want to verify your own image URL first, run:
curl -I 'https://your-image-url'In most cases, you should confirm at least:
- The HTTP status code is
200 - The
Content-Typeisimage/*, such asimage/pngorimage/jpeg
Each device accepts one immediate refresh request every 2 seconds. If you receive a 429, wait the number of seconds in Retry-After. See API rate limits.
Request Examples
/api/authV2/open/device/:deviceId/imageGenerated Code
Before running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1// Generating...Update content in the fixed list
In the List device content Playground, select the device and its fixed list. Find the item with contentId set to mindreset.image_api and copy its taskKey.
In the Playground on this page, select the same device and the fixed list (taskType: "fixed"). Enter the taskKey and the new content. The device shows the saved content at the next scheduled refresh. refreshNow applies only to the loop list.
Response Example
This is an example response for immediate display of loop content.
{
"message": "Device ABCD1234ABCD Image API content switched."
}Troubleshooting
Endpoint
/api/authV2/open/device/:deviceId/image
Method
POST
Path Parameters
Prop
Type
Request Schema
Prop
Type
Default
loop
Default
true
Default
0
Default
DIFFUSION
Default
FLOYD_STEINBERG
Response Schema
The endpoint uses the HTTP status code to indicate the request result. The JSON response body only contains message.
Prop
Type
Status Codes
| HTTP status | Meaning | Description |
|---|---|---|
200 | Success | Image API content switched / Data updated but content not switched |
400 | Invalid parameters | Invalid content list type Missing or invalid device ID Invalid image format Invalid screen border color Invalid dither type Invalid dither algorithm |
403 | Forbidden | You do not have permission to operate this device |
404 | Not found | Device not found or not registered Matching API content is missing from the selected list, or the task identifier does not match an Image API item in that list |
500 | Device response failure | Failed to switch Image API content |
Troubleshoot list selection and display timing
400: use onlylooporfixedfortaskType.404: ensure the request uses the sametaskTypeas the list query and ataskKeyfrom a matching API item in that list. OmittingtaskTypeselects the loop list.- Fixed content was saved but the screen did not change: check its time settings in Dot. App and wait for the next scheduled refresh.
refreshNow: truedoes not immediately refresh fixed content.
Reference Usage
- Simple image without immediate display
Enter an image URL or PNG Base64 data in image in the Playground. Set refreshNow to false and border to 0 (white). To add a tap link, fill in link.
- Complex image
Enter an image URL or PNG Base64 data in image in the Playground and set border to 1 (black).
- Text image
Use common image tools (e.g., Figma, Sketch, Adobe Photoshop) to convert text to PNG, then convert it to base64 data.
Enter the generated PNG URL or Base64 data in image in the Playground and set ditherType to NONE for sharper text.
Image Dithering
Image dithering uses specific algorithms to reduce visual noise caused by color quantization, making images appear smoother. Common algorithms include Floyd–Steinberg, Atkinson, and Sierra. On e‑ink displays, dithering can further optimize black-and-white rendering so gray-level transitions look more natural.
When using the Image API, if you do not pass the ditherType parameter, the default is the error-diffusion Floyd–Steinberg algorithm. You can also disable it or adjust the dithering type and algorithm via parameters.
Enable Dithering
Error Diffusion (default)
Error diffusion distributes each pixel’s quantization error to neighboring pixels to reduce visual noise. It handles high-contrast areas effectively, yielding rich details and smooth gray transitions. Visually, it tends to look natural with no obvious grid and smooth gradients.
In the Playground, set ditherType to DIFFUSION and use the default ditherKernel, FLOYD_STEINBERG.
Supported Error-Diffusion Kernels
Different error-diffusion kernels produce different visual results. Pass the algorithm via "ditherKernel": "{{dither algorithm}}".
Ordered Dithering
Ordered dithering applies a fixed, periodic threshold matrix to image pixels, unlike error diffusion which propagates the error dynamically. It helps reduce large color patches and banding, creating a visually uniform dot pattern. Due to periodicity, ordered dithered images often show a noticeable regular grid.
In the Playground, set ditherType to ORDERED.
Disable Dithering
If you primarily display text images via the Image API, we recommend disabling dithering to achieve sharper text.
In the Playground, set ditherType to NONE.
Did this solve your problem?
Join our community