All operations on this page use GET at https://app.datumforms.com/api/developer-api. Send a server integration key in the bearer header. In Project Settings → API keys, select the individual reporting permissions the job needs. Existing presets and saved keys retain their permissions.
Recruitment stage
Call recruitment.status with the study UUID from recruitment.list. A project-wide recruitment:read or recruitment:manage key can use this operation. After starting a study, poll this read for its current stage. A replay of the launch request returns the original acknowledgement.
curl --fail-with-body --get 'https://app.datumforms.com/api/developer-api' \
-H "Authorization: Bearer $DATUMFORMS_API_KEY" \
--data-urlencode 'operation=recruitment.status' \
--data-urlencode "study_id=$DATUMFORMS_STUDY_ID"
Example response while the panel team has a current questionnaire submission:
{
"success": true,
"recruitment_status": {
"study_id": "11111111-1111-4111-8111-111111111111",
"survey_version_id": 18,
"status": "draft",
"review_phase": "Review",
"launch_version_ready": true,
"review_needs_resubmission": false,
"funding_ready": true,
"contact_approval_status": null,
"latest_submission": {
"id": 37, "subject": "questionnaire", "status": "pending",
"submitted_at": "2026-12-05T09:00:00.000Z", "decided_at": null, "decision_source": null
},
"next_action": "await_questionnaire_review"
}
}
| Next action | What the integration can display |
|---|---|
publish_questionnaire |
Publish the intended questionnaire and check the attached version. |
submit_contact_request / await_contact_review |
The researcher must submit or update the research follow-up purpose, or wait for human approval. |
revise_and_resubmit |
The saved review is stale or changes were requested. |
await_questionnaire_review |
DatumForms has the submission and a decision is pending. There is no timestamp showing that an individual reviewer has opened it. |
review_funding |
Review the existing funding or purchase requirements in the project. |
submit_for_review / start_recruitment / resume_when_ready |
The researcher can proceed to the launch workflow. The launch still rechecks its conditions. |
monitor_recruitment |
The study is recruiting. Use recruitment.get for counts and quota progress. Paid-ad approval and actual delivery have their own workflow. |
null |
No further action is suggested, including for completed or cancelled studies. |
funding_ready is the result of the existing funding gate for draft or paused studies and is null in other states. latest_submission describes the latest recorded review for the study, even after the study changes; it can be null for older studies. Its subject is questionnaire or contact, its status is pending, changes, approved or superseded, and its decision source is human, automated or null. Use the readiness fields and next action to interpret its current relevance. A contact approval by itself does not activate recruitment.
Enumerator applications
Prepare the optional enumerator question in Audience setup and publish the screener. For that questionnaire, recruitment.create accepts data.enumerator_project_id and, when the question names a group, data.enumerator_group_id. They must match the published consent. The ordinary creation request continues to work for studies without this question. Choose either direct-contact sharing or enumerator recruitment for a study.
Use a project-wide server key created by the current owner of the destination offline project, with enumerators:read. enumerators.applications.list accepts optional study_id, status (received, approved or declined), limit and after. An approved application can have an assignment ID and an assigned fieldwork group. A screening response, assignment and field visit each have a different purpose.
curl --fail-with-body --get 'https://app.datumforms.com/api/developer-api' \
-H "Authorization: Bearer $DATUMFORMS_API_KEY" \
--data-urlencode 'operation=enumerators.applications.list' \
--data-urlencode 'status=received'
The result contains applications and next_cursor. Each row includes application_id, study_id, status, applied_at, approved_at, declined_at, assignment_id and assigned_group_id. Undecided timestamps and unassigned IDs are null. Pass the opaque application ID to enumerators.applications.get to read one application. For its original questionnaire answers, explicitly add include_answers=true and grant enumerators:answers:read alongside the application permission. Treat returned prompt/answer pairs as sensitive applicant data. Uploaded files and registered account contact details are outside this projection. Access is rechecked when reading, including after withdrawal. Applicant decisions still take place in the project.
Fieldwork visit reviews
A server key with fieldwork:review:read can use fieldwork.visits.list and fieldwork.visits.get in an offline project. A collection-restricted key must send an allowed group_id on every read. The list accepts review_state, optional inclusive UTC calendar dates received_from and received_to, limit and after. Get one visit using visit_id. These reads cover completed field visits eligible for the fieldwork review view and exclude recruited panel responses.
curl --fail-with-body --get 'https://app.datumforms.com/api/developer-api' \
-H "Authorization: Bearer $DATUMFORMS_API_KEY" \
--data-urlencode 'operation=fieldwork.visits.list' \
--data-urlencode "group_id=$DATUMFORMS_GROUP_ID" \
--data-urlencode 'review_state=open'
The list returns visits and next_cursor. Detail returns visit. Each row reports the group, visit, revision, submission time, server receipt time and review deadline. A device can sync days after the interview. The review clock uses the server receipt; missing-receipt rows have no deadline and cannot match a receipt-date filter.
| Review state | Meaning |
|---|---|
open |
The project can flag the visit in the app before the 72-hour deadline. |
flagged |
DatumForms must decide the flag. The hold continues beyond the original deadline. |
approved |
The visit passed review. Check its payout separately. |
rejected |
A rejection decision was recorded. |
missing_receipt |
A reliable deadline is unavailable. |
Rows include flagged_at, flag_reason, decided_at, decision_reason and decision_source when available. The source can be window_expired, datumforms_review or recorded_quality_decision; older decisions may have an unknown timestamp. interview_verified reports a verified upload under the current recording policy and is null for anonymous projects. Playback and transcripts retain their existing access controls.
Rates, funding and enumerator payouts
Use a server key with fieldwork:finance:read. Amounts are integers in GHS minor units (pesewas).
| Operation | Inputs and result |
|---|---|
fieldwork.rates.get |
Requires group_id. Returns currency, active approved terms and the latest request; either can be null. price_minor is the customer visit price. A new pending or declined request can coexist with an active approved rate. |
fieldwork.funding.get |
Project-wide keys only. Omit group_id. Returns funding with net funding, headroom, paid and outstanding rewards, approved cost, open/flagged reserves, forecast, shortfall and forecast gap. States are inactive, covered, low and insufficient. The seven-day forecast is an estimate. |
fieldwork.payouts.list |
Returns payouts and next_cursor, one row per reviewed field visit. Accepts the same group, review-state, receipt-date and pagination filters as the visit list. |
fieldwork.payouts.get |
Requires visit_id; returns one payout. Include an allowed group_id when using a collection-restricted key. |
A payout row includes review_state, allocation_state, rate_id, customer_price_minor, worker_reward_minor, batch_id, transfer_status and transfer_updated_at. Before allocation, amounts use the applicable historical rate and can be null. Once allocated, amounts come from the saved visit allocation. Multiple visits can share a batch ID. The amounts on each row belong to that visit.
| Allocation state | How to interpret it |
|---|---|
awaiting_review / rejected |
Review is unresolved, or this visit was rejected. |
no_assigned_worker |
The visit has no worker to pay. |
no_applicable_rate |
No approved group rate applied at collection and receipt. |
awaiting_pay_period |
The applicable daily, weekly or monthly UTC pay period has not closed. |
awaiting_recording |
The applicable collection policy requires a verified recording. |
awaiting_processing |
No allocation has been recorded. Funding and worker payment-account checks still apply. |
allocated |
Inspect the latest allocation’s transfer status: created, pending, success, failed or reversed. An allocation can exist for a failed attempt. |
For example, a visit can have customer_price_minor: 1400 and worker_reward_minor: 1000. A verified success represents GHS 10.00 to the worker and a GHS 14.00 project charge. An earlier approval or pending transfer is insufficient to mark a visit paid. Refresh recent visits to catch later settlement or reversal. To reconcile by enumerator, join visit_id to the response ID from responses.list, then join its authorized participant_id to members.list in the same project. This requires both responses:read and members:read on a server key. Anonymous visits have no roster join. See the offline roster charge fields
.
Pagination and polling
The new lists default to 50 records and accept 1–100. Pass next_cursor back as after with the same project, group and filters. A null cursor ends that scan. Application cursors are opaque strings; visit and payout cursors use visit IDs. A later decision or transfer can change an existing row behind a saved cursor. Use detail reads for outstanding items or rescan a recent receipt window. The existing responses.list and members.list pagination conventions still apply to those operations.
A 400 indicates invalid input. A 403 can mean wrong project type, insufficient key permissions, a restricted group, or an application read by someone other than the destination owner. A 404 means the requested scoped record is unavailable. See authentication and safe retries .