Skip to content
CommCare logo

Connectors / Operations · HTTP Connector

Automate CommCare with Tray.ai

Run a bulk form action and create a mobile worker in CommCare. Connect CommCare to the rest of your operations stack with Tray.ai.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.

See all connectors

What can you do with CommCare on Tray.ai?

CommCare is a mobile data collection and case management platform from Dimagi, used by frontline teams to run offline forms, track cases, and manage field workers. Tray.ai connects to CommCare through the HTTP Connector, so your workflows can call the CommCare API alongside the rest of your stack.

  • Download report data each week and load it into your data warehouse for program reporting.
  • Create a mobile worker when a new field staff member is added to your HR system.
  • Get form data from field visits and update the matching records in your case database.
  • Delete a mobile worker when your HR system marks a field worker as having left.
Connects through
HTTP Connector
Authentication
An API key in a request header or basic authentication
Base URL
https://www.commcarehq.org/a/{domain}/api

Set it up

Connect CommCare to Tray.ai

Each step uses CommCare's own API details, from its documentation.

Step 1

Save CommCare's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://www.commcarehq.org/a/{domain}/api as the base URL. Or paste a cURL example from CommCare's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List cases”

It's one of 18 documented actions, under Cases. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “Get case data” and “Bulk upload case data” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

What the CommCare API covers

6 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Cases

  • List cases
  • Get case data
  • Bulk upload case data

Forms

  • List forms
  • Get form data
  • Get form attachments
  • Run a bulk form action

Mobile workers

  • List mobile workers
  • Create a mobile worker
  • Edit a mobile worker
  • Delete a mobile worker
  • Send a password reset email

Locations

  • List locations
  • List location types

Lookup tables

  • Bulk upload lookup tables
  • Get lookup table rows

Reports

  • List reports
  • Download report data

Checked against CommCare's own documentation on 2026-10-22

commcare-hq.readthedocs.io/api

Frequently asked questions

What can a Tray.ai workflow do in CommCare?

+

The CommCare API documents 18 actions across 6 resources (Cases, Forms, Mobile workers, Locations, Lookup tables, Reports). For example: List cases; List forms; List mobile workers. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with CommCare?

+

The CommCare API uses an API key in a request header and basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See CommCare working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.