Appcloud
Device API / Reference

Errors and retries

Use the HTTP status and response body to decide what to do next.

Response codes

400
Invalid JSON, action or value. Check the command reference.
401
The API key is missing, invalid or revoked. Check the Authorization header.
404
The device ID does not resolve to a phone on this account.
409
The rental is inactive or expired. Check canControl before retrying.
413
The action payload exceeds the request size limit.
415
Use Content-Type: application/json for actions.
502
Submission failed or could not be confirmed. Inspect the phone before resending.

Retrying commands

Read requests can be repeated. If an action times out or returns unconfirmed, it may already have reached the phone. Check the device first, especially before repeating text input or rebooting.