Switch to Next 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 the device is awake and connected to the network.
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/nextGenerated Code
Before running an example, replace placeholders such as {{VARIABLE}} with actual values and remove the surrounding double braces.
1// Generating...Response Example
{
"message": "Switch request sent to device ABCD1234ABCD."
}Troubleshooting
Endpoint
/api/authV2/open/device/:deviceId/next
Method
POST
Path Parameters
Prop
Type
Request Schema
Pass the device ID in the path and leave the request body empty.
Response Schema
The response includes a human-readable message. Some errors also include a machine-readable code.
Prop
Type
Status Codes
| HTTP status | Meaning | Description |
|---|---|---|
200 | Request sent | After receiving the request, the device still needs to fetch the content and update the screen. |
400 | Invalid params | Invalid device ID format |
401 | Unauthorized | Invalid or expired OAuth access token or expired Playground authorization |
403 | Forbidden | No permission to operate this device |
404 | Not found | Device not found or not registered |
409 | Device asleep | code is DEVICE_SLEEPING. Send a new request after the device wakes. |
409 | Device unavailable | code is DEVICE_UNAVAILABLE. Make sure the device is awake and connected, then try again. |
429 | Rate limit exceeded | Wait as indicated by Retry-After, then try again. |
500 | Publish failed | Try again later. |
Reference Usage
Use this API to request the next item in the content loop on an awake device. After the request is sent, the device still needs to fetch the content and update the screen.
- Remotely triggering content updates
- Testing content switching functionality
- Implementing custom content scheduling logic
If the device has gone to sleep automatically, you can wait for its scheduled wake time. Depending on the model, you can also wake it by connecting it to power or interacting with it. Send a new request once it is awake.
Did this solve your problem?
Join our community