Skip to content
CommCare logo

Connectors / Operations · HTTP Connector

CommCare integration and API

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

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.

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.

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.

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.

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.

Workflows to build with CommCare

Connect CommCare with Snowflake and BambooHR

Each one uses actions and events from CommCare's own API documentation.

Load CommCare form data into Snowflake

When

On a schedule

Then

  1. List forms in CommCare
  2. Get form data for each new submission
  3. Load the submissions into Snowflake

With Snowflake

Create CommCare mobile workers for new BambooHR field staff

When

A new field employee is added in BambooHR

Then

  1. Create a mobile worker in CommCare
  2. Send a password reset email so they can sign in

With BambooHR

Apps you can build on CommCare data

Internal tools your team can build with an AI assistant, each one using CommCare calls from its API documentation.

Field worker roster

Lists mobile workers by location and lets a supervisor edit a worker or send a password reset.

Case progress view

Lists cases with their case data and submitted forms so a program manager can review progress.

Program report viewer

Lists reports and downloads report data for a monthly program review.

CommCare MCP server for AI agents

Build an MCP server on CommCare in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List cases
  • List forms
  • List mobile workers
  • List locations
  • Bulk upload lookup tables
  • List reports
  • Get case data
  • Bulk upload case data

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. New to APIs? Read what an API integration is.

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.