Work Locations API's
Create client_id and client_secret to call the Work Locations list API from your own server. The secret is shown only once when generated.
| # | Name | Client ID | Created | Last Used | Action |
|---|---|---|---|---|---|
| No API credentials yet. Click Generate Credentials to create one. | |||||
List API Documentation
Endpoint: https://network.yakazi.com/api/work_locations/list
Method: GET or POST
Auth: send credentials in request headers (required):
Client-Id: YOUR_CLIENT_IDClient-Secret: YOUR_CLIENT_SECRET
Returns all of your non-deleted work locations with nested helpers, active jobs, shortlisted/hired/denied professionals, and assigned report forms.
Example (cURL)
curl -X POST "https://network.yakazi.com/api/work_locations/list" \ -H "Client-Id: YOUR_CLIENT_ID" \ -H "Client-Secret: YOUR_CLIENT_SECRET"
Success response (shape)
{
"status": 1,
"message": "",
"data": {
"locations": [
{
"id": 1,
"address": "Nairobi CBD",
"latitude": "-1.2921",
"longitude": "36.8219",
"location_type": { "id": 2, "name": "Office" },
"contact_phone": "",
"contact_email": "",
"contact_person": "",
"contact_person_position": "",
"helper_count": 1,
"job_count": 2,
"shortlisted_count": 0,
"hired_count": 1,
"denied_count": 0,
"helpers": [{ "id": 10, "name": "Jane Doe", "email": "", "phone": "", "image": "" }],
"jobs": [{ "id": 100, "title": "Site helper", "status": "OP", "hire_source": "H" }],
"shortlisted": [],
"hired": [],
"denied": [],
"report_forms": [{ "id": 1, "form_id": 5, "form_name": "Daily report", "scope": "all", "service_id": 0, "service_name": "" }]
}
]
}
}
Workforce Report API (JSON export)
Workforce integrations: CommCare · Salesforce · Workforce Report
Endpoint: https://network.yakazi.com/api/work_locations/workforce_report
Method: GET or POST
Auth: same Client-Id / Client-Secret headers as the list API.
Query/body params: filter_type (all_time, month_year, range), month, year, date_from, date_to.
Example (cURL)
curl -X GET "https://network.yakazi.com/api/work_locations/workforce_report?filter_type=all_time" \ -H "Client-Id: YOUR_CLIENT_ID" \ -H "Client-Secret: YOUR_CLIENT_SECRET"