CommCare HQ offers a way to see the exact data that is being sent to the phones in the form of the "restore" XML. This can often be useful for troubleshooting issues or when doing advanced app building off of lookup tables and other data structures.

Viewing the data

To view the OTA Restore data open[domain]/phone/restore and then enter [username]@[domain] and the user's commcare password.

Understanding the data format

The data that you will look exactly the same as a normal user registration response, but with a list of case blocks following the registration data (see Here is an example:

<OpenRosaResponse xmlns="">
    <message>Successfully restored account danny!</message>
    <Sync xmlns="">
    <Registration xmlns="">
    <!-- this is where fixtures (lookup tables, locations, groups, etc.) go-->

    <!-- this is where all the case blocks go-->


To understand the casexml spec, see; to understand the fixtures spec, see

When the phone receives the case blocks, for example, it applies them all in order to its internal database, thus reconstructing the case list.

Making the Request Programmatically

Assuming your domain is called "DEMO_DOMAIN", the request must be sent to using HTTP basic auth to supply the username and password of the CHW. In curl, the request would look something like this:

curl --basic -u

In this example, we are on domain "DEMO_DOMAIN", our CHW's username is "jason", and his password is 1988. You'll note that the username, instead of being just "jason" is the much longer "". This is to distinguish him from any other "jason"s on any other domain. The format for the full-length username is:




  • No labels