
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.
Thanks — someone from our team will be in touch soon.
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
How Tray.ai makes this work
CommCare plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 6,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in CommCare — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose CommCare actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on CommCare data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More operations apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every operations connector →
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.
Thanks — someone from our team will be in touch soon.