Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Purpose: look up list of domains that the authenticated web user is a member of.

Authentication:  For more information, please review CommCare's API Authentication Documentationhttps://dimagi.atlassian.net/wiki/x/LwXKfw.

URL: https://www.commcarehq.org/api/v0.5/user_domains/ 

Sample Response:

Code Block
{
  "meta": {
    "limit": 20,
    "next": null,
    "offset": 0,
    "previous": null,
    "total_count": 16
  },
  "objects": [
    {
      "domain_name": "dimagi",
      "project_name": "dimagi"
    },
    {
      "domain_name": "commcare",
      "project_name": "commcare"
    },
    {
      "domain_name": "demo",
      "project_name": "My Demo Project"
    }
  ]
}

...