API overview
Last updated:Jul 18, 2026
Everything in the dashboard is available over a REST API.
Authentication
Create an API token in Settings → API tokens, then send it in the x-token header.
Example: create a device
curl -X POST https://waitpid.ai/api/cloudphone/envs \
-H "x-token: $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "tiktok-us-01", "skuId": 1, "proxyId": 12}'
Example: batch stop a group
curl -X POST https://waitpid.ai/api/cloudphone/envs/batch \
-H "x-token: $API_TOKEN" \
-d '{"action": "stop", "groupId": 3}'
Response envelope
All endpoints return {"code": 0, "data": ..., "msg": "ok"}. Non-zero codes carry a human-readable msg.
Rate limits
600 requests/minute per token. Batch endpoints count as one request.