# For AI agents Source: https://api-docs.hellotracks.com/agents Which way into Hellotracks an AI agent should use, and how to start. If you are an AI agent (Claude Code, Codex, Cursor or another) acting for a Hellotracks customer, this page tells you what to use. ## What to use 1. **Use the `ht` command line.** It is made for agents: one command per task, `--json` output, JSON errors with stable exit codes, `--dry-run` for bulk changes, and confirmation before deletes. 2. **If you can't run commands and can only make HTTP requests, use the [REST API](/v1/overview)** at `https://api.hellotracks.com/v1`. It is what `ht` uses underneath. 3. **Use the [JSON API](/api-reference/overview) (`/api/...`) when you are working on an integration that already uses it,** or when a person asks for it. It is the main API for developers and it is fully supported; new agent work just fits better on the two above. ## Start with `ht` ```bash theme={null} curl -fsSL https://cli.hellotracks.org/install.sh | bash ht skills install # teaches Codex and Claude Code the rules below ``` Sign in with an existing account (a 6-digit code is emailed), or with an API key from the dashboard: ```bash theme={null} ht auth login --email person@example.com ht auth whoami ``` No account yet? `ht signup` creates a company; the person has to accept the terms of service, so ask them first. ## Rules that keep agents safe * Discover commands with `ht commands --json` instead of guessing. * Always pass `--json`. Output without it is for people and changes between releases. * Run `import` and `sync` with `--dry-run` first and show the plan to the person. * Don't pass `--yes` to deletes unless the person asked for that delete. * Pass `--no-input` in scripts so `ht` never waits for a prompt. * Never print the API key; let `ht` store it. See the [CLI overview](/cli/overview) and [command reference](/cli/commands) for the details. # Authentication Source: https://api-docs.hellotracks.com/api-reference/authentication Authenticating requests with API-Key Every request is validated and authenticated by the API-key header. You can view your API-Key when you are logged into the web-app in [https://live.hellotracks.com](https://live.hellotracks.com), open API & Integrations page under More in the main menu. Make sure to enable APIs in the API section. ```bash theme={null} curl -X POST https://api.hellotracks.com/api/getjobs \ --header 'API-Key: YOUR_KEY_ID.YOUR_SECRET' \ --header 'Content-Type: application/json' \ -d '{ "data": { "worker": "*" } }' ``` Parameters for `/api` endpoints are defined in the required `data` field. `/api` endpoints use the `POST` method; REST endpoints under `/v1` use the HTTP method documented for each route. # Archive Jobs Source: https://api-docs.hellotracks.com/api-reference/endpoint/archivejobs POST https://api.hellotracks.com/api/archivejobs Archive one or multiple jobs. You can archive one or multiple jobs via the `/archivejobs` endpoint. Archived jobs can easily be restored in the Hellotracks Dashboard or via the `/restorejobs` endpoint. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/archivejobs { data: { jobs: [ "", "", ... "" ] } } ``` **jobs** `array` *required* An array of job IDs to archive. Archived jobs are removed from active view but can be restored later. If successful, you'll get `status:0` and the archived job objects in the response. ### RESPONSE ```shell theme={null} { status: 0, jobs: [ { }, { } ] } ``` # Assign Job Source: https://api-docs.hellotracks.com/api-reference/endpoint/assignjob POST https://api.hellotracks.com/api/assignjob Move a job into a worker's route on a day, at a position. Puts one job into a worker's route on a day, at the position you choose. Use it to dispatch: unlike changing the worker with [Edit Jobs](/api-reference/endpoint/editjobs), it keeps both routes in order. The job leaves the previous worker's route, which closes the gap, and the jobs after it in the new route move down by one. The saved route of both days is recalculated. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/assignjob { data: { id: "", assignee: "", day: 20261102, index: 2, notify: true, push: true, webhook: true } } ``` **id** `string` *required* The job to move. **assignee** `string` *required* UID of the member who gets the job. An empty string takes the job off any worker. **day** `number` (default: 0) The day as YYYYMMDD. `0` leaves the job without a date; it is then not part of a route. **index** `number` (default: 0) Position in the worker's route on that day, starting at `0` for the first job. A position after the last job puts it at the end. **notify** `boolean` (default: false) Update open dashboards right away. **push** `boolean` (default: false) Update the jobs in both workers' apps. **webhook** `boolean` (default: false) Send the company's `job_updated` webhooks for every job that changed. ### RESPONSE ```shell theme={null} { status: 0, jobs: [ { }, { }, ... ] } ``` `jobs` lists the moved job and every job of both routes, with their new positions. An unknown job id changes nothing and returns an empty list. ```bash Example Request theme={null} curl -X POST https://api.hellotracks.com/api/assignjob \ --header 'API-Key: YOUR_KEY_ID.YOUR_SECRET' \ --header 'Content-Type: application/json' \ -d '{ "data": { "id": "650000000000000000000001", "assignee": "a1b2c3", "day": 20261102, "index": 0, "notify": true, "push": true } }' ``` # Auto-assign Jobs Source: https://api-docs.hellotracks.com/api-reference/endpoint/autoassign POST https://api.hellotracks.com/api/autoassign Use this endpoint to automatically assign jobs to workers. This API endpoint allows for the automated assignment of a set of jobs to a specified group of workers. ### REQUEST Initiate a POST request to auto-assign jobs based on specified criteria. ```shell theme={null} POST https://api.hellotracks.com/api/autoassign { "data": { "jobs": [ "", "" , "" ], "workers": [ "", "" , "" ], "method": (optional), "pickupCapacity": (optional), "dropoffCapacity": (optional), "day": (optional, YYYYMMDD, e.g. 20210701) } } ``` **jobs** `array` *required* Array of job IDs to be assigned. **workers** `array` *required* Array of worker usernames for job assignment. **method** `string` (default: distance) Assignment method: `distance`, `zones`, or `size`. **pickupCapacity** `integer` Pickup capacity constraint for assignment. **dropoffCapacity** `integer` Dropoff capacity constraint for assignment. **day** `integer` (default: 0) The specific day for assignment, format YYYYMMDD. Defaults to today when set to `0` or omitted. ### Configuration The auto-assignment algorithm considers: * **Working Hours:** Respects worker availability and shift times * **Capacity Constraints:** Honors pickup and dropoff capacity limits if specified * **Zones:** Considers assigned zones for workers (when using `zones` method) * **Distance:** Optimizes for minimal travel distance (when using `distance` method) ### RESPONSE Response detailing the assignment status of the jobs. ``` { "status": 0, "assignedJobs": [ "", "" ], "unassignedJobs": [ "", "" ], "jobs": [ { }, { }, ... { } ] } ``` **assignedJobs** `array` List of job IDs that were successfully assigned. **unassignedJobs** `array` List of job IDs that could not be assigned. **jobs** `array` A comprehensive list of all jobs considered during the assignment process. # Create Member Source: https://api-docs.hellotracks.com/api-reference/endpoint/createaccount POST https://api.hellotracks.com/api/createaccount Add a new member to your organization. Create a new member (user) in your organization. This endpoint handles account creation, role assignment, and invitation delivery via email or SMS. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/createaccount { "data": { "name": "John Doe", "username": "johndoe@example.com", "password": "TempPass123!", "role": "worker", "phone": "+14155551234" } } ``` **name** `string` *required* Full name of the user. **Required.** Example: `"John Doe"`, `"Sarah Johnson"` **username** `string` *required* Username for login, typically an email address. **Required.** Must be unique across the platform. If this username already exists in your company, the existing member will be reactivated instead of creating a duplicate. Example: `"worker@example.com"` **password** `string` Initial password for the account. **Optional.** * If provided: Member can log in immediately with this password * If omitted: Member receives an invitation via email or SMS to set their own password **Recommendation:** Leave empty and let users set their own password for better security. **role** `string` (default: worker) Role determines the user's permissions. **Optional, defaults to "worker".** Available roles: * `"worker"` - Field worker with basic permissions (default) * `"operator"` or `"dispatcher"` - Dispatcher with management capabilities * `"administrator"` or `"admin"` - Full administrative access See [Member Object - Role & Permissions](/api-reference/member-object#role--permissions) for details. **phone** `string` Phone number for the user. **Optional.** Used for SMS invitations (if password not set) and contact purposes. Format: Include country code, e.g., `"+14155551234"` ### Account Reactivation If you create a member with a `username` that already exists and was previously part of your company: * The existing account will be **reactivated** instead of creating a new one * Previous data and history are preserved * The member is automatically re-added to your organization This prevents duplicate accounts and maintains continuity. ### Automatic Invitation After creating a member: * An invitation is sent via email (if email username) or SMS (if phone provided) * If no `password` is provided, the account is created with a temporary password and the invitation lets the new member complete onboarding * Company members list is automatically updated via push notifications ### Permissions * The authenticated account must belong to a company and the company must be allowed to add another member * Account creation may fail if the company has reached plan or account limits ### RESPONSE ```shell theme={null} { "status": 0, "uid": "abc123", "account": { "uid": "abc123", "username": "johndoe@example.com", "name": "John Doe", "phone": "+14155551234", "role": "worker", "teams": [], // ... complete member object } } ``` **status** `integer` *required* Status code. `0` indicates success. **uid** `string` *required* Unique identifier of the newly created (or reactivated) member. Use this UID for subsequent API calls. **account** `object` *required* Complete member object with all properties initialized. See the [Member API Object](/api-reference/member-object) for full structure. ### Examples ```bash Create Worker with Invite theme={null} curl -X POST https://api.hellotracks.com/api/createaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "name": "Jane Smith", "username": "jane@example.com", "phone": "+14155559999" } }' ``` ```bash Create Dispatcher with Password theme={null} curl -X POST https://api.hellotracks.com/api/createaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "name": "Mike Johnson", "username": "mike@example.com", "password": "TempPass123!", "role": "dispatcher", "phone": "+14155558888" } }' ``` ```bash Create Administrator theme={null} curl -X POST https://api.hellotracks.com/api/createaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "name": "Admin User", "username": "admin@example.com", "role": "administrator" } }' ``` > [!NOTE] > > **Complete Field Reference:** See the [Member API Object](/api-reference/member-object) for documentation of all properties in the returned member object. > [!TIP] > > **Best Practice:** Don't set the `password` field. Let new members receive an invitation and set their own password for better security and user experience. ### Related Endpoints * [Get Members](/api-reference/endpoint/getaccounts) - Retrieve member information * [Edit Member](/api-reference/endpoint/editaccount) - Update member properties * [Delete Member](/api-reference/endpoint/deleteaccount) - Remove members # Create Jobs Source: https://api-docs.hellotracks.com/api-reference/endpoint/createjobs POST https://api.hellotracks.com/api/createjobs Create one or multiple jobs. ### Request ```shell theme={null} POST https://api.hellotracks.com/api/createjobs { data: { jobs: [ job_1, job_2, ... job_n ], sendRouteChange: , autoassign: , isTemplate: } } ``` > [!NOTE] > > See also [Job-API-Object](../job-object) to see properties of a job. > [!NOTE] > > To directly assign a user, set the `worker` property in the job to the worker's username. To get > the worker's username, retrieve the `username` in [Member-API-Object](../member-object), for > example via `/getaccounts`. ```bash Example Request theme={null} curl -X POST https://api.hellotracks.com/api/createjobs \ --header 'API-Key: ...' -d \ ' { "data": { "jobs": [ { "destinationLat": 37.7749, "destinationLng": -122.4194, "destinationName": "Job in San Francisco created via API", "worker": "username@example.com", "day": 20231110 } ] } } ' ``` **jobs** `array` *required* An array of objects, each object needs to confirm the Job API Object schema. **Important Notes:** * Do not set the `id` field, this will be set automatically upon creation. * You can optionally set the `uidSecondary` field as a custom external identifier. If a job with the same `uidSecondary` already exists for the company, the existing job will be updated instead of creating a new one. * To assign a job during creation, set the `worker` field to the worker's username or set `receiverUid` to the worker's UID. * For custom job fields, use either `customFields` as an array of `{ "key": "...", "val": "..." }` objects, or use `custom_` for single fields. **sendRouteChange** `boolean` (default: false) If true, assigned and day set to today, notifies assignee immediately of jobs being updated. The list of jobs will be updated automatically on their device. **autoassign** `boolean` (default: false) Indicates that the created jobs should automatically be assigned to a member. It will choose the nearest member that is available, taking the shift and day-route into account. **isTemplate** `boolean` (default: false) If set to `true`, creates jobs as templates rather than regular jobs. Job templates can be reused to create multiple jobs with the same configuration. ### Custom Fields in `jobs` Inside each job object, custom fields can be sent in the following format: * `customFields` array (recommended for multiple fields): ```json theme={null} "customFields": [ { "key": "PO_Number", "val": "PO-2026-1234" }, { "key": "Department", "val": "Facilities" } ] ``` ```bash Example Request (with customFields) theme={null} curl -X POST https://api.hellotracks.com/api/createjobs \ --header 'API-Key: ...' -d \ ' { "data": { "jobs": [ { "destinationName": "Create job with custom fields", "day": 20260224, "customFields": [ { "key": "PO_Number", "val": "PO-2026-1234" }, { "key": "Department", "val": "Facilities" } ] } ] } } ' ``` ### Response ```shell theme={null} { status: 0, jobs : [ job_1, job_2, ... job_n ] } ``` **status** `number` *required* Guaranteed to be set. Set to `0` if successful. **jobs** `array` *required* The array of all jobs created by this request. ```bash Example Request theme={null} curl -X POST https://api.hellotracks.com/api/createjobs --header 'API-Key: ...' -d ' { "data": { "jobs": [ { "destinationLat": 37.7749, "destinationLng": -122.4194, "destinationName": "This is a new job in San Francisco created via API" } ] } } ' ``` # Create Place Source: https://api-docs.hellotracks.com/api-reference/endpoint/createplace POST https://api.hellotracks.com/api/createplace Create a new place (location/site) in your organization. Create a new place to represent customer sites, warehouses, offices, or any fixed location. Places can have check-in radii, custom data fields, and be assigned to specific teams. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/createplace { "data": { "name": "Station 101", "radius": 200, "address": "Laguna Street 123", "city": "San Francisco", "postalcode": "94123", "state": "CA", "country_code": "US", "email": "station@email.com", "phone": "+14151234567", "color": "#22c328", "location": { "lat": 37.7578149, "lng": -122.5078122 }, "linkedForms": "", "teams": [1, 2], "extended_data": [ {"key": "manager", "val": "John Doe"}, {"key": "capacity", "val": "50"} ] } } ``` **name** `string` *required* Name of the place. This is the only required field. **location** `object` Location coordinates object with `lat` and `lng` properties. If not provided, the system will attempt to geocode based on the address fields. **radius** `integer` (default: 0) Check-in radius in meters. Determines how close a worker needs to be to check in at this location. **address** `string` Street address **city** `string` City name **postalcode** `string` Postal or ZIP code **state** `string` State, province, or region **country\_code** `string` ISO country code (e.g., "US", "GB", "DE") **email** `string` Contact email for this location **phone** `string` Contact phone number for this location **color** `string` Color code in hexadecimal format (e.g., "#22c328") **linkedForms** `string` Comma-separated form IDs to link to this place **teams** `array` Array of team numbers (integers) that can access this place. If you leave it out and the caller belongs to a company, the place goes to the caller's teams. **extended\_data** `array` Array of custom key-value pair objects for additional data. Each object should have `key` and `val` properties. Example: `[{"key": "manager", "val": "John Doe"}, {"key": "hours", "val": "9-5"}]` ### Permissions * **Company Members:** Can create places if they're not workers, or if `workers_create_places` setting is enabled * **Personal Accounts:** Can always create places * **Team Assignment:** Without `teams`, company callers' places go to the caller's teams ### Automatic Geocoding If you provide address fields without coordinates, the system will attempt to geocode the location automatically. For best results, provide at least: * address + city + country\_code, or * city + state + country\_code ### RESPONSE ```shell theme={null} { "status": 0, "uid": "", "place": { "uid": "", "name": "Station 101", "creator": "Acme Dispatch", "data": [] } } ``` **status** `integer` *required* Status code. `0` indicates success. **uid** `string` *required* Unique identifier of the newly created place. Use this UID to reference the place in other API calls. **place** `object` *required* Created place object. See the [Place API Object](/api-reference/place-object) for the complete structure. ### Example ```bash Create Place Example theme={null} curl -X POST https://api.hellotracks.com/api/createplace \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "name": "Downtown Office", "address": "123 Main Street", "city": "San Francisco", "state": "CA", "postalcode": "94105", "country_code": "US", "radius": 100, "phone": "+14155551234", "email": "office@example.com", "extended_data": [ {"key": "floor", "val": "5"}, {"key": "suite", "val": "500"} ] } }' ``` # Create Report Source: https://api-docs.hellotracks.com/api-reference/endpoint/createreport POST https://api.hellotracks.com/api/createreport Create a new report. You can create reports programmatically via an API request. Reports are generated based on specified date ranges, members, and places. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/createreport { data: { day: 20210428, accounts: [""], format: "xlsx", reporttype: "jobs", columns: [ {"key": "member"}, {"key": "title"}, {"key": "status"} ] } } ``` **reporttype** `string` *required* Type of report to generate. See [Report Types](#report-types) section below for available options. **format** `string` Output format for the report. Available formats depend on report type: * `xlsx` - Excel spreadsheet (most reports) * `csv` - Comma-separated values (most reports) * `pdf` - PDF document (most reports) * `geojson` - GeoJSON format (location-based reports) * `zip` - Compressed archive (GPX tracks, time allocation) **day** `number` Single day for the report in YYYYMMDD format (e.g., 20210428). Use this OR the `from`/`until` parameters. **from** `integer` Start day for the report in YYYYMMDD format. Use with `until` instead of `day` for multi-day reports. **until** `integer` End day for the report in YYYYMMDD format. Use with `from` instead of `day` for multi-day reports. **accounts** `array` *required* Array of member usernames or UIDs or array of place UIDs to include in the report. Required for most report types. **columns** `array` Optional array of column configurations to customize report output. Each column object can contain: * `key` (string, required): Column identifier (see report-specific columns below) * `rename` (string, optional): Custom column name in output If omitted, report uses default columns. **async** `boolean` (default: false) Make the report in the background. The answer comes right away with a report job instead of the file; see [Large reports](#large-reports). ## Report Types ### Job Reports #### `jobs` - Jobs Report Complete job information across multiple days. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Up to 10,000 days * **Requires:** `accounts` (members) * **Available Columns:** member, date, title, status, status\_ts, status\_response, address, place, contact\_name, contact\_phone, teams, orderid, type, scheduled\_window, check\_ins, check\_outs, onsite, priority, created, saved, accepted, pickup\_items, dropoff\_items, manual\_checks, notes, latitude, longitude, comments, signature, signature\_name, signature\_date, attachments, custom\_fields, form\_fields, public\_url #### `dayroute` - Day Route Report Single-day route with sequence and routing information. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Single day only * **Requires:** `accounts` (members) * **Available Columns:** number, member, date, title, status, status\_ts, status\_response, routeinfo, address, place, contact\_name, contact\_phone, teams, orderid, type, scheduled\_window, check\_ins, check\_outs, onsite, priority, created, saved, accepted, pickup\_items, dropoff\_items, manual\_checks, notes, latitude, longitude, signature, attachments, custom\_fields, form\_fields, public\_url ### Activity & Location Reports #### `activities` - Activities Report Member activity log and events. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Up to 30 days * **Requires:** `accounts` (members) #### `checkins` - Check-ins Report Place and job check-in records. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Up to 10,000 days * **Requires:** `accounts` (members) #### `gpx` - GPX Tracks Export GPS track data in GPX format (compressed). * **Formats:** zip (containing .gpx files) * **Date Range:** Up to 120 days * **Requires:** `accounts` (members) ### Time & Attendance Reports #### `timesheet` - Timesheet Report Working hours and time tracking. * **Formats:** xlsx, pdf * **Date Range:** Up to 120 days * **Requires:** `accounts` (members) #### `timeline` - Timeline Report Chronological activity timeline. * **Formats:** xlsx, csv * **Date Range:** Up to 14 days * **Requires:** `accounts` (members) #### `worksheet` - Worksheet Report Daily work summary. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Up to 14 days * **Requires:** `accounts` (members) #### `timeallocation` - Time Allocation Report Time spent on different activities. * **Formats:** xlsx, pdf, zip * **Date Range:** Up to 14 days * **Requires:** `accounts` (members) ### On-Site & Stop Reports #### `placeonsite` - Place On-Site Report Time spent at each place/location. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Up to 10,000 days * **Requires:** place UIDs in `accounts` #### `memberonsite` - Member On-Site Report Member time spent at locations. * **Formats:** xlsx, pdf * **Date Range:** Up to 120 days * **Requires:** `accounts` (members) #### `stopsreport` - Stops Report All stop locations with duration. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Up to 120 days * **Requires:** `accounts` (members) ### Distance & Mileage Reports #### `mileage` - Mileage Report Distance tracking and trip details. * **Formats:** xlsx * **Date Range:** Up to 10,000 days * **Requires:** `accounts` (members) * **Available Columns:** date, member, start, end, distance, duration, minutes, maxspeed, avgspeed, from, to, purpose, comment, approvalstatus, approvedby, placesheet ### Alerts & Statistics #### `alerts` - Alerts Report Alert events and notifications. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Up to 10,000 days * **Requires:** None (company-wide) #### `statistics` - Statistics Report Performance metrics and KPIs. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Up to 10,000 days * **Requires:** `accounts` (members) * **Available Columns:** member, distance, speed, maxspeed, tracks, jobs, ontime, delays, success, issues, engagement, totalJobOnsite, avgJobOnsite, totalPlaceOnsiteTime, avgPlaceOnsiteTime, totalPauseTime, avgPauseTime, totalTravelTime, avgTravelTime, totalTimeBetweenJobs, avgTimeBetweenJobs ### Directory Reports #### `members` - Members Report Member/user directory information. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Current data (no date filter) * **Requires:** `accounts` (members) #### `places` - Places Report Places/locations directory. * **Formats:** xlsx, csv, pdf, geojson * **Date Range:** Current data (no date filter) * **Requires:** place UIDs in `accounts` ### RESPONSE If the request is successful, the response output can be saved as the content of the specified format file. **Success Response:** * For structured formats (xlsx, csv, pdf): Binary file content * For geojson: JSON structure with GeoJSON features * For zip: Compressed archive binary **Error Response:** ```json theme={null} { "status": , "errorMsg": "Error message description" } ``` ### Large reports Reports over many members or days can take longer than a request may last. Send them with `"async": true`. The answer is a report job: ```json theme={null} { "status": 0, "job": { "id": "", "status": "queued", "reportType": "jobs", "format": "xlsx" } } ``` Then ask for the job with `/loadreportjob` until its `status` is `completed` or `failed`, for example every 5 seconds: ```bash theme={null} curl -X POST https://api.hellotracks.com/api/loadreportjob \ --header 'API-Key: YOUR_KEY_ID.YOUR_SECRET' \ --header 'Content-Type: application/json' \ -d '{ "data": { "jobId": "" } }' ``` The job's `status` goes from `queued` to `processing`, then `completed` or `failed`: * `completed`: `link` is the download link of the file; `filename`, `contentType` and `bytes` describe it. * `failed`: `errorCode` and `errorMessage` say why. A job id that isn't your company's answers status `-5`. ### Example Usage ```bash Jobs Report Example theme={null} curl -X POST https://api.hellotracks.com/api/createreport \ --header 'API-Key: ...' -d \ '{ "data": { "from": 20210428, "until": 20210430, "accounts": ["john@example.com", "jane@example.com"], "format": "xlsx", "reporttype": "jobs", "columns": [ {"key": "member"}, {"key": "title"}, {"key": "status"}, {"key": "address"} ] } }' > jobs-report.xlsx ``` ```bash Mileage Report Example theme={null} curl -X POST https://api.hellotracks.com/api/createreport \ --header 'API-Key: ...' -d \ '{ "data": { "day": 20231215, "accounts": ["driver1@example.com"], "format": "xlsx", "reporttype": "mileage", "columns": [ {"key": "date"}, {"key": "distance"}, {"key": "from"}, {"key": "to"} ] } }' > mileage-report.xlsx ``` ### Notes * Maximum date ranges vary by report type to ensure performance * Place-based reports need place UIDs in `accounts` * Column customization is optional; reports use sensible defaults * Binary formats (xlsx, pdf, zip) should be saved directly to files * GeoJSON format is useful for mapping and GIS applications # Delete Member Source: https://api-docs.hellotracks.com/api-reference/endpoint/deleteaccount POST https://api.hellotracks.com/api/deleteaccount Remove a member from your organization. Delete (deactivate) a member from your organization. This removes the member's access and marks their account as inactive. > [!WARNING] > > **Permanent Action:** Deleted members lose access to the organization. Their historical data (jobs, tracks, etc.) is preserved but the account is deactivated. Consider carefully before deleting. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/deleteaccount { "data": { "uid": "" } } ``` Alternatively, delete multiple members at once: ```shell theme={null} POST https://api.hellotracks.com/api/deleteaccount { "data": { "uids": ["", "", ""] } } ``` **uid** `string` UID of the member to delete. **Required** unless using `uids` for batch deletion. The member must not be a company account (cannot delete the company itself). **uids** `array` Array of member UIDs to delete multiple members at once. **Alternative to `uid`** for batch operations. Example: `["abc123", "def456", "ghi789"]` ### What Happens When You Delete a Member 1. **Account Deactivation:** The member's account is marked as inactive/deleted 2. **Access Removed:** The member loses access to the organization and mobile app 3. **Data Preserved:** Historical data (jobs, locations, reports) remains intact 4. **Reactivation Possible:** If you create a member with the same username later, the account can be reactivated ### Permissions * **Edit Permission Required:** You must have edit permissions for the member. This includes company owners/admins and dispatchers where their account relationship permits editing. * **Cannot Delete Company:** You cannot delete the company account itself ### Batch Deletion When using the `uids` array: * All specified members are deleted in a single operation * Members you don't have permission to delete are skipped (no error) * Useful for bulk cleanup or offboarding multiple employees ### RESPONSE ```shell theme={null} { "status": 0 } ``` **status** `integer` *required* Status code. `0` indicates success. ### Examples ```bash Delete Single Member theme={null} curl -X POST https://api.hellotracks.com/api/deleteaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "uid": "abc123" } }' ``` ```bash Delete Multiple Members theme={null} curl -X POST https://api.hellotracks.com/api/deleteaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "uids": ["worker1", "worker2", "worker3"] } }' ``` > [!NOTE] > > **Reactivation:** If you later create a member with the same username using [Create Member](/api-reference/endpoint/createaccount), the previously deleted account will be reactivated with its history intact. ### Related Endpoints * [Get Members](/api-reference/endpoint/getaccounts) - Retrieve member information * [Create Member](/api-reference/endpoint/createaccount) - Add new members (can reactivate deleted ones) * [Edit Member](/api-reference/endpoint/editaccount) - Update member properties # Delete Jobs Source: https://api-docs.hellotracks.com/api-reference/endpoint/deletejobs POST https://api.hellotracks.com/api/deletejobs This endpoint deletes existing jobs. You can delete one or multiple jobs via the `/deletejobs` endpoint. Deleted jobs no longer show up in `/getjobs`. Use `/restorejobs` to bring them back. Consider archiving jobs if you want to keep related data in the system. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/deletejobs { data: { jobs: [ "", "", ... "" ] } } ``` **jobs** `array` *required* An array of job IDs to delete. Jobs can be identified by their `id` or by using the template prefix (`tpl-`) for template jobs. > [!WARNING] > > **Deleting vs. archiving:** Both can be undone with `/restorejobs`. Archived jobs can still be listed with `includeArchived`; deleted jobs can't. > > **Permissions:** Only administrators and company owners can delete jobs. Dispatchers can only delete jobs if the `dispatcher_delete_jobs` setting is enabled. If successful, you'll get `status:0` and the deleted job objects in the response. ### RESPONSE ```shell theme={null} { status: 0, jobs: [ { }, { } ] } ``` # Delete Places Source: https://api-docs.hellotracks.com/api-reference/endpoint/deleteplaces POST https://api.hellotracks.com/api/deleteplaces Delete one or more places of your company. Deletes places for good; they can't be restored. Members and the company account itself are never deleted here. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/deleteplaces { data: { uids: [ "", "" ] } } ``` **uids** `array` *required* UIDs of the places to delete. UIDs that aren't places of your company are skipped. ### RESPONSE ```shell theme={null} { status: 0 } ``` ```bash Example Request theme={null} curl -X POST https://api.hellotracks.com/api/deleteplaces \ --header 'API-Key: YOUR_KEY_ID.YOUR_SECRET' \ --header 'Content-Type: application/json' \ -d '{ "data": { "uids": ["p1q2r3"] } }' ``` # Distribute Jobs Source: https://api-docs.hellotracks.com/api-reference/endpoint/distributejobs POST https://api.hellotracks.com/api/distributejobs You can distribute multiple jobs, e.g. 100 jobs, into a few regions/clusters, e.g. 10 clusters. This API endpoint is designed to distribute a set of jobs across specified regions or clusters. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/distributejobs { data: { jobs: [ "", "", ... "" ], "regions": 5, "max": 10, "method": "distance" } } ``` **jobs** `array` *required* Array of job ids. **regions** `number` *required* Number of regions/clusters to split all jobs ids into. **max** `number` (default: 28) The maximum number of jobs per cluster. **method** `string` (default: distance) Assignment method: `distance`, `zones`, or `size`. ### RESPONSE ```shell theme={null} { "status": 0, "clusters": [ { "id": , "name": "Cluster 1", "center_lat": , "center_lng": , "jobs": ["",...,""] }, ... { ... } ] } ``` **status** `number` Status code. `0` indicates success. **clusters** `array` An array of cluster objects, each containing: * `id` (number): Unique cluster identifier * `name` (string): Cluster name (e.g., "Cluster 1", "Cluster 2") * `center_lat` (double): Latitude of cluster center point * `center_lng` (double): Longitude of cluster center point * `jobs` (array): Array of job IDs assigned to this cluster ### Usage Notes * The clustering algorithm groups jobs geographically to minimize travel distance within each cluster * The `max` parameter prevents any single cluster from becoming too large * Empty clusters may be returned if the number of jobs is less than the requested regions * The algorithm uses the company location as the initial center point for all clusters # Edit Member Source: https://api-docs.hellotracks.com/api-reference/endpoint/editaccount POST https://api.hellotracks.com/api/editaccount Update properties of an existing member. Update one or more properties of an existing member. You can modify profile information, status, role, team assignments, working hours, preferences, and more. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/editaccount { "data": { "account": "worker@example.com", "status_label": "Available", "phone": "+14155551234", "email": "newemail@example.com", "name": "Updated Name", "role": "dispatcher", "teams": [1, 2, 3], "vehicle_capacity": 500, "color": "#FF5733" } } ``` ### Identifying the Member **account** `string` **One of `account` or `uid` is required** to identify which member to edit. The username (email) of the member to edit. Example: `"worker@example.com"` **uid** `string` **One of `account` or `uid` is required** to identify which member to edit. The unique identifier of the member to edit. Alternative to `account`. Example: `"abc123"` ### Editable Properties You can update writable fields from the [Member API Object](/api-reference/member-object). Common editable properties include: #### Core Information * `name` - Full name * `phone` - Phone number * `email` - Email address * `color` - Display color (hex format) #### Role & Permissions * `role` - User role: "worker", "operator"/"dispatcher", or "administrator" * `teams` - Array of team numbers (integers) #### Status & Availability * `status_label` - Custom status text (e.g., "Available", "On break") #### Vehicle & Capacity * `vehicle_capacity` - Vehicle capacity (weight/volume) * `travel_mode` - "car", "bicycle", "pedestrian", "truck", "van", "motorcycle" #### Working Hours * `working_hours` - Object with day-specific schedules. Include all seven day keys (`monday` through `sunday`) when updating. * `working_hours_overrides` - Date-specific working-hours overrides * `ignore_working_hours_until_ts` - Temporary availability override #### Route & Navigation * `route_start_lat`, `route_start_lng` - Daily route start location * `route_end_lat`, `route_end_lng` - Daily route end location * `route_start_time` - Daily start time as HHMM (e.g., 800 = 8:00 AM) #### Preferences * `unit_distance` - "SI" (metric) or "US" (imperial) * `unit_time` - "12" or "24" hour format * `unit_date` - Date format string (e.g., "dd.MM.yyyy", "MM/dd/yyyy") * `timezone` - Timezone string (e.g., "America/New\_York") * `language` - Language code (e.g., "en", "de", "fr") #### Skills & Capabilities * `skills` - Array of skill tags for job matching * `expertise` - Expertise level or specialty See the [Member API Object](/api-reference/member-object) for the complete list of 55+ properties and their descriptions. ### Permissions * **Administrators:** Can edit all members * **Dispatchers:** Can edit workers (limited permissions) * **Workers:** Can only edit their own profile (limited fields) * You must have appropriate permissions for the target member ### RESPONSE ```shell theme={null} { "status": 0, "account": { "uid": "abc123", "username": "worker@example.com", "name": "Updated Name", "status_label": "Available", // ... complete updated member object } } ``` **status** `integer` *required* Status code. `0` indicates success. **account** `object` Updated member object with all current properties. May be `null` if member was not found or no changes were made. See the [Member API Object](/api-reference/member-object) for complete structure. ### Examples ```bash Update Status Label theme={null} curl -X POST https://api.hellotracks.com/api/editaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "account": "worker@example.com", "status_label": "On Lunch Break" } }' ``` ```bash Assign to Teams theme={null} curl -X POST https://api.hellotracks.com/api/editaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "uid": "abc123", "teams": [1, 2, 5], "role": "worker" } }' ``` ```bash Update Contact Info theme={null} curl -X POST https://api.hellotracks.com/api/editaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "account": "worker@example.com", "name": "John Smith", "phone": "+14155559999", "email": "john.smith@example.com" } }' ``` ```bash Set Working Hours theme={null} curl -X POST https://api.hellotracks.com/api/editaccount \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "uid": "abc123", "working_hours": { "monday": {"start": 800, "end": 1700}, "tuesday": {"start": 800, "end": 1700}, "wednesday": {"start": 800, "end": 1700}, "thursday": {"start": 800, "end": 1700}, "friday": {"start": 800, "end": 1700}, "saturday": {"start": 0, "end": 0}, "sunday": {"start": 0, "end": 0} } } }' ``` > [!NOTE] > > **Partial Updates:** Only include the fields you want to change. Omitted fields will remain unchanged. > [!NOTE] > > **Complete Field Reference:** See the [Member API Object](/api-reference/member-object) for documentation of all editable properties, their types, valid values, and descriptions. ### Related Endpoints * [Get Members](/api-reference/endpoint/getaccounts) - Retrieve member information * [Create Member](/api-reference/endpoint/createaccount) - Add new members * [Delete Member](/api-reference/endpoint/deleteaccount) - Remove members # Edit Jobs Source: https://api-docs.hellotracks.com/api-reference/endpoint/editjobs POST https://api.hellotracks.com/api/editjobs Use this endpoint to update one or multiple jobs. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/editjobs { data: { jobs: { "" : { "" : value, ... "" : value, }, "" : job_2, ... "" : job_n }, notify: boolean, sendRouteChange: boolean (optional) } } ``` Compare [Job API Object](../job-object) to see all modifiable attributes (all which are marked as `RW`). You are not able to change the `id` of a job, but most job properties are modifiable. **Special Attributes:** * Use `worker` field with a username to assign/reassign a job * Use `receiverUid` field with a UID to assign/reassign a job * Set `receiverUid` to empty string `""` to unassign a job * Job templates can be edited using the `tpl-` prefix in the job ID * Use `customFields` to replace all custom fields on a job: `[{"key":"...","val":"..."}]` ### Body **jobs** `object` *required* Object, set field name to the id of the job to edit. The value is an object with one or multiple fields. Follow the schema of the Job API object for the value object. For custom fields inside each job object: * `customFields`: array of key/value objects, for example `[{ "key": "PO_Number", "val": "PO-2026-1234" }]` (this clears and replaces all existing custom fields for that job). ```bash Example Request (custom fields) theme={null} curl -X POST https://api.hellotracks.com/api/editjobs \ --header 'API-Key: ...' -d \ ' { "data": { "jobs": { "65e6d8f2abc1234567890001": { "customFields": [ { "key": "PO_Number", "val": "PO-2026-1234" }, { "key": "Department", "val": "Facilities" } ] } }, "notify": false } } ' ``` **notify** `boolean` (default: true) Set `notify:true` if you want to generate a notification in case the progress status of this job changed (e.g., job completion, rejection, check-in/out). To omit creating notifications for this job modification, set `notify:false`. The `notify` attribute is optional and defaults to `true`. **sendRouteChange** `boolean` (default: false) If true and the job is assigned with day set to today, notifies the assignee immediately of the route change. The list of jobs will be updated automatically on their device. > [!NOTE] > > **Permissions:** Workers can only edit jobs for today unless the `workers_edit_job` setting is enabled. Changes to the `day` field by workers require this permission. # Edit Place Source: https://api-docs.hellotracks.com/api-reference/endpoint/editplace POST https://api.hellotracks.com/api/editplace Update properties of an existing place. Update one or more properties of an existing place. You can update location details, contact information, radius, team assignments, and custom data. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/editplace { "data": { "uid": "p1q2r3", "name": "Updated Place Name", "radius": 100, "phone": "+14155551234", "email": "updated@example.com", "address": "456 New Street", "city": "San Francisco", "postalcode": "94105", "state": "CA", "country_code": "US", "color": "#FF5733", "linkedForms": "form1,form2", "teams": [1, 2, 3], "extended_data": [ {"key": "manager", "val": "Jane Smith"}, {"key": "notes", "val": "Updated location"} ] } } ``` Alternatively, you can edit multiple places at once using the `uids` array: ```shell theme={null} POST https://api.hellotracks.com/api/editplace { "data": { "uids": ["uid1", "uid2", "uid3"], "radius": 150, "teams": [1, 2] } } ``` **uid** `string` *required* UID of the place to edit. Required unless using `uids` for batch editing. **uids** `array` Array of place UIDs to edit multiple places with the same changes. Alternative to `uid` for batch operations. **name** `string` Update the place name **phone** `string` Update contact phone number **email** `string` Update contact email address **address** `string` Update street address **city** `string` Update city name **postalcode** `string` Update postal/ZIP code **state** `string` Update state/province/region **country\_code** `string` Update ISO country code (e.g., "US", "GB", "DE") **color** `string` Update color code in hexadecimal format (e.g., "#22c328") **radius** `integer` Update check-in radius in meters **linkedForms** `string` Update linked form IDs (comma-separated) **teams** `array` Update team assignments. Array of team numbers (integers). Replaces existing team assignments. **extended\_data** `array` Update or add custom data fields. Array of key-value pair objects. Example: `[{"key": "manager", "val": "John Doe"}, {"key": "capacity", "val": "100"}]` ### Permissions * You must have edit permissions for the place(s) you're modifying * Workers may have restricted editing capabilities depending on company settings * You can only edit places within your organization or network ### Batch Editing When using the `uids` array, all specified places will be updated with the same values. This is useful for: * Updating radius for multiple locations * Reassigning places to different teams * Bulk updates to any common property ### RESPONSE ```shell theme={null} { "status": 0 } ``` **status** `integer` *required* Status code. `0` indicates success. ### Examples ```bash Update Single Place theme={null} curl -X POST https://api.hellotracks.com/api/editplace \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "uid": "abc123", "name": "Main Warehouse", "radius": 150, "extended_data": [ {"key": "manager", "val": "John Smith"}, {"key": "hours", "val": "8AM-6PM"} ] } }' ``` ```bash Batch Update Multiple Places theme={null} curl -X POST https://api.hellotracks.com/api/editplace \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "uids": ["place1", "place2", "place3"], "teams": [1, 2], "radius": 100 } }' ``` > [!NOTE] > > **Tip:** Only include the fields you want to update. Omitted fields will remain unchanged. # Get Members Source: https://api-docs.hellotracks.com/api-reference/endpoint/getaccounts POST https://api.hellotracks.com/api/getaccounts Retrieve members (users) in your organization. Use this endpoint to retrieve member information for users in your organization. This returns the complete member object including profile details, location, status, role, and configuration. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/getaccounts { "data": { "uids": ["", "", ""] } } ``` **uids** `array` Optional array of specific member UIDs to retrieve. * If provided: Returns only the specified members (subject to permissions) * If omitted: Returns yourself + all members you have permission to view (your organization/network) ### Automatic Member Retrieval When no `uids` are specified: * **Personal accounts:** Returns your own account and visible linked people * **Company members:** Returns your account + all members in your organization * **Workers:** May have restricted visibility based on company settings ### Permissions * You can only retrieve members you have permission to view * Archived/suspended members can be retrieved if you have appropriate permissions * Workers may have limited access to other members based on company settings > [!NOTE] > > Member `teams` are returned as numeric team IDs. To retrieve team names, call [Get Company](/api-reference/endpoint/getcompany) and match these IDs against `company.teams_config[].id`. ### RESPONSE ```shell theme={null} { "status": 0, "accounts": [ { "uid": "abc123", "username": "worker@example.com", "name": "John Doe", "phone": "+14155551234", "email": "john@example.com", "role": "worker", "teams": [1, 2], "location": { "lat": 37.7749, "lng": -122.4194, "ts": 1634567890000, "accuracy": 10 }, "states": { "moving": "halted", "tracking_status": true }, "status_label": "Available", "color": "#22c328" // ... see Member Object for complete structure } ] } ``` **status** `integer` *required* Status code. `0` indicates success. **accounts** `array` *required* Array of member objects. Each member contains 55+ properties including: * Core identity (uid, username, name, phone, email) * Role and permissions (role, teams, active\_status) * Real-time location and status * Working hours and availability * Device information * Configuration and preferences See the [Member API Object](/api-reference/member-object) for complete field documentation. ### Common Use Cases **Get all organization members:** ```json theme={null} { "data": {} } ``` **Get specific members by UID:** ```json theme={null} { "data": { "uids": ["worker1uid", "worker2uid", "worker3uid"] } } ``` **Check member status and location:** Use this endpoint to get current location, battery level, and online status for field workers. > [!NOTE] > > **Complete Field Reference:** See the [Member API Object](/api-reference/member-object) for documentation of all 55+ properties returned in each member object, including nested structures for location, device info, working hours, and more. ```bash Get All Members theme={null} curl -X POST https://api.hellotracks.com/api/getaccounts \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": {} }' ``` ```bash Get Specific Members theme={null} curl -X POST https://api.hellotracks.com/api/getaccounts \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "uids": ["abc123", "def456"] } }' ``` ### Related Endpoints * [Create Member](/api-reference/endpoint/createaccount) - Add new members * [Get Company](/api-reference/endpoint/getcompany) - Retrieve company settings and team names * [Edit Member](/api-reference/endpoint/editaccount) - Update member properties * [Delete Member](/api-reference/endpoint/deleteaccount) - Remove members * [Locate](/api-reference/endpoint/locate) - Get real-time location only # Get Company Source: https://api-docs.hellotracks.com/api-reference/endpoint/getcompany POST https://api.hellotracks.com/api/getcompany Retrieve company settings and team configuration. Use this endpoint to retrieve the company account and organization-level configuration for the authenticated API key. This includes the team configuration used to map member team IDs to team names. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/getcompany { "data": {} } ``` This endpoint does not require request parameters. ### RESPONSE ```shell theme={null} { "status": 0, "company": { "uid": "company123", "username": "company@example.com", "type": "company", "name": "Example Company", "email": "ops@example.com", "phone": "+14155551234", "address": "1 Market St, San Francisco, CA", "teams_config": [ { "id": 1, "name": "North Team", "working_hours": { "monday": { "start": 800, "end": 1700 }, "tuesday": { "start": 800, "end": 1700 }, "wednesday": { "start": 800, "end": 1700 }, "thursday": { "start": 800, "end": 1700 }, "friday": { "start": 800, "end": 1700 }, "saturday": { "start": 0, "end": 0 }, "sunday": { "start": 0, "end": 0 }, "source": "team" } }, { "id": 2, "name": "South Team", "working_hours": { "monday": { "start": 800, "end": 1800 }, "tuesday": { "start": 800, "end": 1800 }, "wednesday": { "start": 800, "end": 1800 }, "thursday": { "start": 800, "end": 1800 }, "friday": { "start": 800, "end": 1800 }, "saturday": { "start": 0, "end": 0 }, "sunday": { "start": 0, "end": 0 }, "source": "team" } } ] } } ``` **status** `integer` *required* Status code. `0` indicates success. **company** `object` *required* Company account object with profile, location, settings, custom field definitions, and team configuration. **company.teams\_config** `array` Array of team configuration objects for the organization. Use this list to map team IDs returned by member, place, and job APIs to team names. **company.teams\_config\[].id** `integer` Team ID. This matches the numeric IDs returned in member `teams` arrays. **company.teams\_config\[].name** `string` Team display name. **company.teams\_config\[].working\_hours** `object` Team working hours configuration, when configured. **company.teams\_config\[].route** `object` Optional team route start configuration, when configured. ### Team ID Lookup The [Get Members](/api-reference/endpoint/getaccounts) endpoint returns each member's team assignments as numeric IDs: ```json theme={null} { "uid": "abc123", "name": "John Doe", "teams": [1, 2] } ``` To show team names, match each value in `teams` against `company.teams_config[].id` from this endpoint. ```json theme={null} { "teams_config": [ { "id": 1, "name": "North Team" }, { "id": 2, "name": "South Team" } ] } ``` In this example, member `abc123` belongs to "North Team" and "South Team". ```bash Get Company theme={null} curl -X POST https://api.hellotracks.com/api/getcompany \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": {} }' ``` ### Related Endpoints * [Get Members](/api-reference/endpoint/getaccounts) - Retrieve member information and member team IDs * [Edit Member](/api-reference/endpoint/editaccount) - Update member profile and team assignments * [Get Places](/api-reference/endpoint/getplaces) - Retrieve places and place team IDs # Get Jobs Source: https://api-docs.hellotracks.com/api-reference/endpoint/getjobs POST https://api.hellotracks.com/api/getjobs This endpoint retrieves jobs. ### Request ```shell theme={null} POST https://api.hellotracks.com/api/getjobs { data: { id: "", ids: [ "", "", "" ], uidSecondary: "" (optional), day: 20231105, worker: "", team: (optional), teamIds: [,,...] (optional), includeUnsetTeam: true (optional), orderId: (optional), orderIds: [,,...] (optional array of multiple orderIds), progressSuccess: 1 (optional), progressActive: 1 (optional), includeArchived: 1 (optional), omitSignatureSvg: true (optional), sort: { field: "", ascending: true/false, limit: , skip: , from: , until: , status: (optional) } (optional), query: { filterIds: ["updated"], updatedSince: , text: "", allDates: true } (optional) } } ``` **id** `string` Set this if you want to retrieve a specific job. **ids** `array` Use this field to retrieve multiple specific jobs. **uidSecondary** `string` Retrieve the job with this ID from your own system (the `uidSecondary` you set when creating it). Returns that one job, whatever its day and worker, or an empty `jobs` list. **day** `number` `day` is optional and defaults to today. To retrieve jobs with no date assigned, set `day:0`. To specifically ignore the `day` field, set `day:-1`. **worker** `string` To retrieve jobs that are not assigned to a worker, set `worker:""`. To request jobs assigned to any worker, set `worker:"+"`. To request all jobs, assigned and unassigned, for a specific date, set `worker:"*"`. Without `worker`, only jobs assigned to the caller are returned; with an API key the caller is the company account, so this is usually empty. **team** `number` `team` is an optional filter to only request jobs for a specific team. **teamIds** `array` Only jobs of these teams. Use instead of `team` for several teams. **includeUnsetTeam** `boolean` (default: false) With `teamIds`, also include jobs that have no team. **orderId** `number` Optional filter to request a specific job. **orderIds** `array` Optional filter to request multiple specific jobs. **progressSuccess** `number` (default: 0) `progressSuccess` is an optional filter to only retrieve jobs that are marked as successfully completed. For this, set the value to `1`, else set it either to `0` or do not set the field at all. **progressActive** `number` (default: 0) `progressActive` is an optional filter to only retrieve jobs that are not marked as completed (neither success nor issue). For this, set the value to `1`, else set it either to `0` or do not set the field at all. **includeArchived** `number` (default: 0) Set to `1` to include archived jobs in the results. Defaults to `0` (exclude archived jobs). Deleted jobs are never returned. **sort** `object` Optional sorting and pagination configuration object with the following properties: * `field` (string, required): Field name to sort by (e.g., "tsCreated", "priority", "number") * `ascending` (boolean, required): Sort direction - true for ascending, false for descending * `limit` (number, required): Maximum number of jobs to return * `skip` (number, required): Number of jobs to skip (for pagination) * `from` (long): Only jobs whose sort `field` is at or after this value (e.g. a timestamp in milliseconds when sorting by "tsCreated") * `until` (long): Only jobs whose sort `field` is at or before this value * `status` (number): `0` normal jobs only, `1` archived jobs only, `-1` (default) both When `sort` is provided, the `day` parameter defaults to undefined (all days) unless explicitly specified, and archived jobs are included. A missing required property returns status `-1`. **query** `object` Optional filters, mostly used together with `sort` for paging: * `filterIds` (array): `"updated"` keeps jobs changed at or after `updatedSince`, `"today"` jobs of today, `"nodate"` jobs without a date * `updatedSince` (long): timestamp in milliseconds for `"updated"`. Defaults to one hour ago. * `text` (string): jobs whose name, address or notes contain this text, ignoring case; a job id or order id also matches * `allDates` (boolean): search all dates instead of one day With `query` and `sort`, an empty sort `field` orders by the time the job was last saved. **omitSignatureSvg** `boolean` (default: false) Leave out `signatureSvg` to keep responses small. ### RESPONSE ```shell theme={null} { status: 0, jobs : [ { }, { }, ... { } ], totalCount: , hasMore: } ``` `totalCount` and `hasMore` come with `sort` or `query`: `totalCount` is the number of matching jobs, and `hasMore` is `true` when more pages follow. ### Keeping jobs in sync To copy changes into your own system, ask regularly for the jobs saved since your last run, oldest first, page by page: ```json theme={null} { "data": { "worker": "*", "sort": { "field": "tsSaved", "ascending": true, "limit": 200, "skip": 0 }, "query": { "filterIds": ["updated"], "updatedSince": 1793520000000 } } } ``` Increase `skip` by `limit` while `hasMore` is `true`. Next time, use the newest `tsSaved` you received as `updatedSince`. Archived jobs are included (their `status` is `archived`); deleted jobs are not returned. ```bash Example Request theme={null} curl -X POST https://api.hellotracks.com/api/getjobs --header 'API-Key: ...' -d ' { "data": { "worker":"*", "day": 20230813 } } ' ``` # Get Places Source: https://api-docs.hellotracks.com/api-reference/endpoint/getplaces POST https://api.hellotracks.com/api/getplaces Retrieve places (locations/sites) for your organization. Use this endpoint to retrieve places/locations associated with your organization. Places can represent customer sites, warehouses, offices, or any fixed locations relevant to your operations. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/getplaces { "data": { "query": "", "uids": [""], "max": 500 } } ``` **query** `string` Optional filter to search places by name. Case-insensitive substring match. Minimum 3 characters recommended. **uids** `array` Optional array of specific place UIDs to retrieve. When provided, only these places will be returned (subject to permissions). **max** `integer` (default: 500) Maximum number of places to return. Default is 500. Some accounts may have different limits. ### Permissions & Filtering * **Workers** with `workers_view_places` disabled can only see places from their assigned teams * Places are automatically filtered by distance from your location (closest first) * Only places you have permission to view will be returned ### RESPONSE ```shell theme={null} { "status": 0, "places": [ { "uid": "", "name": "Place name", "address": "Full address", "city": "City", "state": "State/Region", "postalcode": "Postal code", "country_code": "US", "phone": "+1234567890", "email": "email@example.com", "location": { "lat": 37.7749, "lng": -122.4194 }, "radius": 100, "color": "#22c328", "linkedForms": "", "creator": "Acme Dispatch", "data": [] } ] } ``` **status** `integer` *required* Status code. `0` indicates success. **places** `array` *required* Array of place objects. Each place contains: * `uid` (string): Unique place identifier * `name` (string): Place name * `address` (string): Street address * `city` (string): City name * `state` (string): State or region * `postalcode` (string): Postal/ZIP code * `country_code` (string): ISO country code * `phone` (string): Contact phone number * `email` (string): Contact email address * `location` (object): Coordinates with `lat` and `lng` * `radius` (integer): Check-in radius in meters * `color` (string): Color code in hex format * `linkedForms` (string): Linked form IDs * `creator` (string): Creator name when available * `data` (array): Extended custom data as single-key objects ```bash Example Request theme={null} curl -X POST https://api.hellotracks.com/api/getplaces --header 'API-Key: ...' -d ' { "data": {} } ' ``` ``` { "places":[ { "address":"1199 East Beach Road, San Francisco, California 94129, United States", "color":"", "creator":"Acme Dispatch", "data":[ ], "city":"San Francisco", "uid":"p1q2r3", "country_code":"US", "phone":"", "postalcode":"94129", "name":"East beach", "location":{ "lng":-122.449046, "lat":37.8059467 }, "state":"California", "radius":50, "email":"", "linkedForms":"" } ], "status":0 } ``` # Get Tracks Source: https://api-docs.hellotracks.com/api-reference/endpoint/gettracks POST https://api.hellotracks.com/api/gettracks Retrieve historical GPS track data and mileage information. Retrieve GPS track entries (recorded location history) for members over a specified time period. Each track entry represents a continuous movement segment with detailed statistics about distance, speed, altitude, and encoded path data. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/gettracks { "data": { "from": 1634567890000, "until": 1634654290000, "uids": [ "", "" ], "withCourse": false } } ``` **Legacy format (deprecated but still supported):** ```shell theme={null} POST https://api.hellotracks.com/api/gettracks { "data": { "from": 1634567890000, "until": 1634654290000, "accounts": [ "", "" ] } } ``` **from** `long` *required* Start timestamp in milliseconds (Unix epoch). **Required.** Defines the beginning of the time range for track retrieval. Example: `1634567890000` (October 18, 2021) **until** `long` *required* End timestamp in milliseconds (Unix epoch). **Required.** Defines the end of the time range for track retrieval. Example: `1634654290000` (October 19, 2021) **uids** `array` Array of member UIDs to retrieve tracks for. **Recommended format.** * If provided: Returns tracks for specified members only * If omitted: Uses legacy `accounts` parameter Example: `["abc123", "def456"]` **accounts** `array` **Legacy parameter.** Array of UIDs or usernames. Use `uids` instead for new integrations. Example: `["worker1@example.com", "worker2uid"]` **withCourse** `boolean` (default: false) Include detailed course/heading information in encoded format. * `true`: Adds `course_encoded` field with directional data * `false`: No course data (smaller response) ### Permissions * Must have view permissions for the requested members * Can only retrieve tracks for members in your organization or network * Company members can view employee tracks based on their role ### RESPONSE **Modern format (when using `uids`):** ```shell theme={null} { "status": 0, "tracks": [ { "id": 1000001, "owner_uid": "a1b2c3", "kind": "track_entry", "start_ts": 1447018045000, "end_ts": 1447021091000, "start_lat": 37.80146, "start_lng": -122.43145, "end_lat": 37.80122, "end_lng": -122.43148, "distance": 3503.1265, "waypoint_count": 275, "speed_avg": 4.140268, "speed_max": 12, "altitude_min": -44, "altitude_max": 0, "altitude_gain": 166, "altitude_loss": 159, "short_encoded": "cbveFpkgjVc...", "course_encoded": "cbveFpkgj...", "share_url": "https://live.hellotracks.com/!/@t/abc123/1000001", "labels": 0, "lat_min": 0, "lat_max": 0, "lng_min": 0, "lng_max": 0 } ] } ``` **Legacy format (when using `accounts`):** ```shell theme={null} { "status": 0, "accounts": { "worker@example.com": [ { // ... same track entry structure as above } ], "abc123": [ { // ... track entries for this member } ] } } ``` **status** `integer` *required* Status code. `0` indicates success. **tracks** `array` **(Modern format)** Flat array of all track entries from all requested members. **accounts** `object` **(Legacy format)** Object with keys as UIDs/usernames, values as arrays of track entries for that member. ### Track Entry Structure Each track entry contains: **Identity & Type:** * `id` (long): Unique track entry identifier * `owner_uid` (string): UID of the member who recorded this track * `kind` (string): Entry type, typically "track\_entry" **Time Range:** * `start_ts` (long): Track start timestamp in milliseconds * `end_ts` (long): Track end timestamp in milliseconds **Location:** * `start_lat` (double): Starting latitude * `start_lng` (double): Starting longitude * `end_lat` (double): Ending latitude * `end_lng` (double): Ending longitude **Distance & Movement:** * `distance` (double): Total distance traveled in meters * `waypoint_count` (integer): Number of GPS waypoints recorded **Speed:** * `speed_avg` (double): Average speed in km/h * `speed_max` (double): Maximum speed in km/h **Altitude:** * `altitude_min` (integer): Minimum altitude/elevation * `altitude_max` (integer): Maximum altitude/elevation * `altitude_gain` (integer): Total elevation gain in meters * `altitude_loss` (integer): Total elevation loss in meters **Encoded Path Data:** * `short_encoded` (string): Polyline-encoded GPS path (Google Polyline format) * `course_encoded` (string): Encoded heading/direction data (if `withCourse: true`) `labels`, `lat_min`, `lat_max`, `lng_min` and `lng_max` are currently always `0`; don't rely on them. **Sharing:** * `share_url` (string): Public shareable URL for this track ### Use Cases **Mileage Reporting:** Sum `distance` values across tracks for reimbursement or tax reporting. **Route Analysis:** Decode `short_encoded` polyline to visualize actual paths taken. **Performance Monitoring:** Analyze `speed_avg` and `distance` to evaluate worker efficiency. **GPS Breadcrumbs:** Use `waypoint_count` and encoded paths to replay historical movements. ### Examples ```bash Get Tracks for Date Range theme={null} curl -X POST https://api.hellotracks.com/api/gettracks \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "from": 1634567890000, "until": 1634654290000, "uids": ["worker1uid", "worker2uid"] } }' ``` ```bash Get Tracks with Course Data theme={null} curl -X POST https://api.hellotracks.com/api/gettracks \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "from": 1634567890000, "until": 1634654290000, "uids": ["abc123"], "withCourse": true } }' ``` > [!NOTE] > > **Timestamps:** All timestamps are in milliseconds since Unix epoch (January 1, 1970 UTC). This is the standard Java/JavaScript timestamp format. > [!NOTE] > > **Polyline Encoding:** The `short_encoded` field uses Google's Polyline Encoding Algorithm. You can decode this using standard libraries to get the full GPS path with all waypoints. > [!TIP] > > **Distance Units:** All distances are in **meters**. Divide by 1000 to get kilometers, or multiply by 0.000621371 to get miles. > [!TIP] > > **Speed Units:** All speeds are in **km/h**. Multiply by 0.621371 for mph. ### Related Endpoints * [Locate](/api-reference/endpoint/locate) - Get current real-time locations * [Create Report](/api-reference/endpoint/createreport) - Generate mileage and activity reports * [Get Members](/api-reference/endpoint/getaccounts) - Retrieve member information # Locate Source: https://api-docs.hellotracks.com/api-reference/endpoint/locate POST https://api.hellotracks.com/api/locate Get real-time location of members in your organization. Retrieve the current real-time location and status of members. This endpoint provides a lightweight response focused on location data, unlike `/getaccounts` which returns complete member profiles. ### REQUEST **Locate specific members by UID or username:** ```shell theme={null} POST https://api.hellotracks.com/api/locate { "data": { "withAddress": true, "withDetails": false, "accounts": { "": {}, "": {} } } } ``` **Or locate all members in specific teams:** ```shell theme={null} POST https://api.hellotracks.com/api/locate { "data": { "withAddress": false, "withDetails": true, "teams": [1, 2, 3] } } ``` **accounts** `object` Object with member UIDs or usernames as keys. Each key maps to an empty object `{}`. Use this to locate specific members. Example: `{"worker1uid": {}, "worker2@example.com": {}}` **teams** `array` Array of team numbers (integers) to locate all members in those teams. **Alternative to `accounts`** for team-based location retrieval. * If array is provided with team numbers: Returns members from those specific teams * If array is empty: Returns no team-selected members * If omitted: Only members explicitly listed in `accounts` are returned * To locate all company employees, send `teams` as a non-array value such as `true` Example: `[1, 2, 5]` **withAddress** `boolean` (default: false) Include reverse-geocoded address for each location. * `true`: Adds `address` field with human-readable address * `false`: No address field (faster response) **withDetails** `boolean` (default: false) Include detailed device and connection information. * `true`: Adds device fields like `connection_type`, `android_id`, `loc_gps_on`, `tracking_status` * `false`: Basic location data only **signal** `string` Optional signal command to send to devices. * `"ping"`: Sends a ping signal to all devices, requesting them to update their location immediately * Devices that are online with internet connection will respond with fresh location data * `signal_ts` in response shows when device last received a ping ### RESPONSE ```shell theme={null} { "status": 0, "accounts": [ { "uid": "a1b2c3", "usr": "worker@example.com", "name": "John Doe", "email": "john@example.com", "phone": "+14155551234", "lat": 37.801205, "lng": -122.43143, "ts": 1396985826428, "acc": 4, "dir": 10, "spd": 0, "elv": 20, "bat": 78, "teams": [{"name": "Zone G", "number": 4}], // If withAddress: true "address": "Chestnut Street, San Francisco, CA", // If withDetails: true "connection_type": 1, "android_id": "0123456789abcdef", "loc_gps_on": true, "loc_net_on": true, "tracking_status": true, "signal_ts": 1454894511000 } ] } ``` **status** `integer` *required* Status code. `0` indicates success. **accounts** `array` *required* Array of location objects, one per member. Each contains: **Core Identity:** * `uid` (string): Member unique identifier * `usr` (string): Username/email * `name` (string): Full name * `email` (string): Email address * `phone` (string): Phone number * `teams` (array): Array of team objects with `name` and `number` **Location Data:** * `lat` (double): Latitude * `lng` (double): Longitude * `ts` (long): Location timestamp in milliseconds (Unix epoch) * `acc` (integer): GPS accuracy in meters * `dir` (integer): Direction heading (0-360 degrees) * `spd` (integer): Speed in km/h (-1 if unknown) * `elv` (integer): Elevation/altitude * `bat` (integer): Battery level percentage (0-100) **Optional Fields (withAddress: true):** * `address` (string): Reverse-geocoded street address **Optional Fields (withDetails: true):** * `connection_type` (integer): Device internet connection type * `android_id` (string): Android device identifier * `loc_gps_on` (boolean): GPS enabled on device * `loc_net_on` (boolean): Network location enabled * `tracking_status` (boolean): HelloTracks tracking enabled * `signal_ts` (long): Timestamp of last ping signal received ### Use Cases **Fleet Tracking:** Monitor real-time positions of all field workers to optimize dispatching and provide customer ETAs. **Team Location:** View locations of specific team members working in a particular zone or on specific projects. **Live Map Display:** Build a live map dashboard showing current positions of all active workers. **Ping for Updates:** Request immediate location updates from devices by adding `"signal": "ping"` parameter. ### Examples ```bash Locate Specific Members theme={null} curl -X POST https://api.hellotracks.com/api/locate \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "withAddress": true, "accounts": { "worker1uid": {}, "worker2@example.com": {} } } }' ``` ```bash Locate Team with Ping theme={null} curl -X POST https://api.hellotracks.com/api/locate \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "teams": [1, 2], "signal": "ping", "withDetails": true } }' ``` ```bash Locate All Employees theme={null} curl -X POST https://api.hellotracks.com/api/locate \ --header 'API-Key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ -d '{ "data": { "teams": true, "withAddress": true } }' ``` > [!NOTE] > > **Timestamps:** All timestamps are in milliseconds since Unix epoch (January 1, 1970 UTC). This is the standard Java/JavaScript timestamp format. > [!NOTE] > > **Ping Signal:** When using `"signal": "ping"`, only devices that are currently online with internet connectivity will respond with updated location. Offline devices will not update. > [!TIP] > > **Performance:** For frequent location polling, use this endpoint instead of `/getaccounts` as it returns a lighter payload focused on location data. ### Related Endpoints * [Get Members](/api-reference/endpoint/getaccounts) - Full member profiles with all properties * [Get Tracks](/api-reference/endpoint/gettracks) - Historical GPS track data * [Member Object](/api-reference/member-object) - Complete member data structure # Restore Jobs Source: https://api-docs.hellotracks.com/api-reference/endpoint/restorejobs POST https://api.hellotracks.com/api/restorejobs Restore one or multiple previously archived jobs. You can restore previously archived jobs via the `/restorejobs` endpoint. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/restorejobs { data: { jobs: [ "", "", ... "" ] } } ``` **jobs** `array` *required* An array of job IDs to restore from archived status. Restored jobs will be returned to active status and visible in normal job lists. If successful, you'll get `status:0` and the restored job objects in the response. ### RESPONSE ```shell theme={null} { status: 0, jobs: [ { }, { } ] } ``` # Route Optimization Source: https://api-docs.hellotracks.com/api-reference/endpoint/routeoptimization POST https://api.hellotracks.com/api/optimizeroute Endpoint to optimize routes ## Optimize Route by Distance This API call enables the optimization of an individual's daily route. It intelligently reorders jobs to create an optimized route, focusing on minimizing travel distance while prioritizing high-priority jobs. This optimization process is immediate, requiring no additional saving or editing actions. ### Key Features: * **Priority and Distance Focused**: Prioritizes high-priority jobs while minimizing the overall travel distance. * **Dynamic Route Start/End Points**: * Primarily, the worker's specified start/end locations are used. * If not set, the team's start location is considered. * In the absence of both, the first and last jobs of the day determine the route's endpoints. * **Route Start Time**: Determined based on the worker's specified working hours. * **Travel mode**: Determined based on the worker's travel mode setting (Car, Bicycle, Pedestrian, Truck, Van, Motorcycle). ### Note: * Simple optimization (`solve: false`) optimizes primarily by route order and distance. Constraint-based solving (`solve: true`) can honor time windows, skills, capacity, and working-hours constraints. * Route optimization naturally only works if all jobs are accessible via car or any vehicle. * Also see: `/distributejobs` and `/autoassign` endpoints. ### REQUEST ```shell theme={null} POST https://api.hellotracks.com/api/optimizeroute { data: { day: 20221125, account: , solve: (optional), index: (optional), count: (optional), constraints: { working_hours: , time_window: , skills: , capacity: , max_jobs: } (optional) } } ``` **day** `number` *required* The date in number format: YYYYMMDD, e.g. 20221125 equals to Nov 25, 2022. **account** `string` *required* Worker's UID or username. **solve** `boolean` (default: false) If `true`, uses advanced route solving with constraints (time windows, skills, capacity). If `false`, performs simple distance-based optimization. Solving mode may result in some jobs being unassigned if constraints cannot be satisfied. **index** `number` Starting index for partial route optimization. Use with `count` to optimize only a subset of jobs in the route. **count** `number` Number of jobs to include in partial route optimization, starting from `index`. **constraints** `object` Constraint configuration for route solving (only applies when `solve: true`): * `working_hours` (boolean, default: true): Respect worker's working hours * `time_window` (boolean, default: true): Honor job time windows * `skills` (boolean, default: true): Match required skills with worker capabilities * `capacity` (boolean, default: true): Consider pickup/dropoff capacity limits * `max_jobs` (number, default: 1000): Maximum number of jobs to process ### RESPONSE ```shell theme={null} { status: 0, jobs: [{}, {} ... ], original_order: ["", "" ... ], unassigned: ["", "" ... ], route_updated: , abort_reason: (only present if solving failed), route_reason: (only present if route calculation failed without an abort reason) } ``` **status** `number` *required* Status code. `0` indicates success, other values indicate errors (e.g., permission denied). **jobs** `array` The newly arranged jobs representing the optimized route (includes full job objects). Missing when the route could not be optimized. **original\_order** `array` Array of job IDs in their original order before optimization. Useful for implementing undo functionality. **unassigned** `array` Array of job IDs that could not be placed on the route (empty unless `solve: true` drops jobs). These jobs couldn't be included due to constraint violations (e.g., time windows, capacity, skills mismatch). **route\_updated** `boolean` *required* `true` if a route optimization was successfully calculated and applied. **abort\_reason** `string` Only present when route solving fails. Possible values: * `no_region`: No routing region available for the location * `impossible_route`: Route cannot be calculated with given constraints * `internal_error`: Server-side error during optimization * `input_error:
`: Invalid input parameters * `routing_error:
`: Error from routing service **route\_reason** `string` Present when route calculation fails and no `abort_reason` was returned. ### Permissions Route optimization requires appropriate permissions: * Administrators and company owners can always optimize routes * Dispatchers can optimize routes for their team members * Workers can optimize their own routes if the `workers_optimize_route` setting is enabled ### Caching & Throttling * Recently optimized routes (within 3 hours) may be returned from cache for worker requests * Reduces unnecessary recomputation when multiple optimization requests are made # Job API Object Source: https://api-docs.hellotracks.com/api-reference/job-object Properties of the Job API object. Here you can find detailed information on each property, its data type, read/write permissions, and a brief description. ### Job API Object | Property | Type | R/W | Description | | - | - | - | - | | id | TEXT | R | Job unique ID | | uidSecondary | TEXT | RW | Secondary unique identifier (custom external ID) | | type | INT | RW | Job Type: `0=Work`, `1=Pickup`, `2=Dropoff` | | teamId | INT | RW | Team Id `0-n` (the number of the team). Defaults to `0` (no specific team). | | destinationName | TEXT | RW | Title of this job (1-line description) | | destinationLat | DOUBLE | RW | Latitude | | destinationLng | DOUBLE | RW | Longitude | | destinationText | TEXT | RW | Location Address | | destinationUrl | TEXT | R | Location map URL | | textDispatcher | TEXT | RW | Dispatcher additional info text (multi-line). Can also use `notes` field. | | notes | TEXT | RW | Alias for `textDispatcher` - dispatcher notes/instructions | | textReceiver | TEXT | RW | Worker's reply text | | contactName | TEXT | RW | Name of contact at job's location | | contactPhone | TEXT | RW | Phone number of contact at job's location | | contactEmail | TEXT | RW | Email of contact at job's location | | fileNumber | TEXT | W | File number or reference code (not returned in responses) | | day | INT | RW | Date for job as YYYYMMDD or 0 (e.g. 20150530) | | priority | INT | RW | Priority min:0-max:10 | | number | INT | RW | Sequence number for ordering | | onSiteSeconds | INT | RW | The assumed onsite-time in seconds (e.g. 10min on site: 600) | | windowStart | INT | RW | Format: HHMM or 0 (e.g 704 = 7:04am) | | windowEnd | INT | RW | Format: HHMM or 0 (e.g 1724 = 5:24pm) | | orderId | LONG | RW | Optional Order ID as a long integer number | | dispatcherUid | TEXT | RW | UID of dispatcher account | | dispatcherName | TEXT | R | Name of Dispatcher | | dispatcherUrl | TEXT | R | URL for dispatcher icon image | | placeUid | TEXT | RW | UID of place to visit or "" | | placeName | TEXT | R | Name of place/location | | placeUrl | TEXT | R | URL for place icon image | | radius | INT | R | Radius for check-in/out in meter (place-radius or default-radius) | | worker | TEXT | RW | User name of assigned worker | | receiverUid | TEXT | RW | UID of assigned worker (alternative to `worker`) | | workerName | TEXT | R | Full name of assigned worker | | workerEmail | TEXT | R | Email address of assigned worker | | workerPhone | TEXT | R | Phone number of assigned worker | | assigneeName | TEXT | R | Legacy alias for `workerName` (deprecated, use `workerName`) | | assigneeUsername | TEXT | R | Legacy alias for `worker` (deprecated, use `worker`) | | itemsToDropoff | INT | RW | Number of items to drop off | | itemsToPickup | INT | RW | Number of items to pick up | | carryOver | INT | RW | Days left to carry over (use `1` for default carry-over days) | | labels | TEXT | RW | Comma-separated labels for categorization | | zipcode | INT | W | Zip/postal code for the job location (not returned in responses) | | status | TEXT | R | `archived` or `deleted`, omitted for normal jobs | ### Job Status attributes (progress) The job status attributes hold the timestamp when an event has occurred or `0` if it does not apply. *Note: Timestamps are milliseconds, between the current time and midnight, January 1, 1970 UTC (Java timestamps)* E.g.: `1430580377000` = `Sat, 02 May 2015 15:26:17 GMT` | Property | Type | R/W | Description | | - | - | - | - | | tsCreated | LONG | RW | Timestamp in millis for job creation | | tsSaved | LONG | R | Timestamp in millis when job was last saved | | tsAssigned | LONG | R | Timestamp in millis for job assigned to worker | | tsAccepted | LONG | RW | Timestamp in millis for job accepted by worker | | tsRejected | LONG | RW | Timestamp in millis for job rejected by worker | | tsScheduled | LONG | RW | Timestamp in millis for job scheduled | | tsDoneSuccess | LONG | RW | Timestamp in millis for job marked as success by worker | | tsDoneFailed | LONG | RW | Timestamp in millis for job marked as issue by worker | | tsCheckIn | LONG | RW | Timestamp in millis for auto check-in by worker | | tsCheckOut | LONG | RW | Timestamp in millis for auto check-out by worker | | tsCheckNFC1 | LONG | R | Timestamp in millis for first check with NFC | | tsCheckNFC2 | LONG | R | Timestamp in millis for second check with NFC | | tsTripStarted | LONG | R | Timestamp in millis when trip to job location started | | tsSignature | LONG | RW | Timestamp in millis when signature was captured | ### Scheduling & Windows: | Property | Type | R/W | Description | | - | - | - | - | | scheduledStart | INT | R | Scheduled start time calculated by route optimizer | | scheduledEnd | INT | R | Scheduled end time calculated by route optimizer | ### Signature & Digital Forms: | Property | Type | R/W | Description | | - | - | - | - | | signatureName | TEXT | RW | Name of person who signed | | signatureSvg | TEXT | RW | SVG data for signature (clears signaturePdf) | | signaturePdf | TEXT | RW | PDF data for signature (clears signatureSvg) | | keymap | TEXT | W | Key mapping configuration (not returned) | | manualChecks | TEXT | RW | Manual check data | | linkedZones | TEXT | RW | Linked zone IDs | | linkedForms | TEXT | RW | Linked form IDs | | submittedForms | TEXT | R | Submitted form data (read-only) | | inputFormConfig | TEXT | RW | Input form configuration | | formConfig | TEXT | R | Complete form configuration (compact mode only) | | confirmationEmails | TEXT | RW | Confirmation email addresses | | comments | TEXT | RW | Job comments data | | associatedJobId | TEXT | RW | Associated job identifier | | requiredSkills | TEXT | RW | Required skills for this job | | requiredEquipment | TEXT | RW | Required equipment for this job | ### History & Tracking: | Property | Type | R/W | Description | | - | - | - | - | | createdBy | TEXT | R | UID of user who created this job | | createdVia | TEXT | R | Source of job creation (web, mobile, api) | | assigneeHistory | TEXT | R | History of worker assignments | | progressStatusHistory | TEXT | R | History of status changes | | tripId | TEXT | R | Associated trip identifier | ### Template & Sequence Metadata: | Property | Type | R/W | Description | | - | - | - | - | | isTemplate | BOOLEAN | R | True if this is a job template | | isPartOfSequence | BOOLEAN | R | True if job belongs to a sequence | | sequenceId | TEXT | R | ID of the sequence this job belongs to | | jobType | TEXT | R | Human-readable job type name | ### Customizable Attributes: | Property | Type | R/W | Description | | - | - | - | - | | custom\_\$ | TEXT | RW | Request shorthand for one custom field (`custom_$`: value) | | customFields | ARRAY | RW | Array of `{ "key": "...", "val": "..." }` objects | | extra\_number\_\$\_key | TEXT | R | Worker input number field label where \$ is 1-10 | | extra\_number\_\$\_val | INT | RW | Worker input number value where \$ is 1-10 | | extra\_text\_\$\_key | TEXT | R | Worker input text field label where \$ is 1-20 | | extra\_text\_\$\_val | TEXT | RW | Worker input text value where \$ is 1-20 | | extra\_number\_types | TEXT | R | JSON metadata describing number field types | | extra\_text\_types | TEXT | R | JSON metadata describing text field types | | url\_\$ | TEXT | RW | URL field where \$ is 1-n (multiple URLs supported) | **Note on Form Fields:** * Field labels (`extra_number_$_key`, `extra_text_$_key`) are read-only and configured via `inputFormConfig` * If a field name starts with `*`, it indicates a required field * Types metadata contains JSON like `{"2":"bool","4":"decimal"}` to specify special input types * Supported types: `bool` (checkbox), `decimal`, `number` (default), `text` (default) ### Custom Fields Format Use `customFields` when reading or writing custom fields: ```json theme={null} "customFields": [ { "key": "PO_Number", "val": "PO-2026-1234" }, { "key": "Department", "val": "Facilities" } ] ``` Behavior note: * In `/editjobs`, setting `customFields` clears and replaces all existing custom fields on that job. * In `/createjobs`, the same replacement behavior applies when the request updates an existing job via matching `uidSecondary`. ```json Example theme={null} { "assigneeName":"David Miller", "assigneeUsername":"david.miller", "carryOver":1, "contactEmail":"", "contactName":"", "contactPhone":"", "confirmationEmails":"", "customFields":[], "day":20230813, "destinationLat":37.785967, "destinationLng":-122.414136, "destinationName":"Pickup at Matteo", "destinationText":"Matteo", "dispatcherName":"", "dispatcherUid":"", "dispatcherUrl":"", "extra_number_1_key":"This is for number", "extra_number_1_val":0, "extra_number_2_key":"This is for checkbox", "extra_number_2_val":0, "extra_number_3_key":"This is for number 2", "extra_number_3_val":0, "extra_number_4_key":"This is for checkbox 2", "extra_number_4_val":0, "extra_number_types":"{\"2\":\"bool\",\"4\":\"bool\",\"6\":\"bool\",\"7\":\"bool\"}", "extra_text_1_key":"This is for text", "extra_text_1_val":"", "extra_text_2_key":"This is for decimal", "extra_text_2_val":"", "extra_text_3_key":"This is for text 2", "extra_text_3_val":"", "extra_text_4_key":"This is for decimal 2", "extra_text_4_val":"", "extra_text_types":"{\"2\":\"decimal\",\"4\":\"decimal\",\"6\":\"decimal\"}", "id":"650000000000000000000001", "inputFormConfig":"", "itemsToDropoff":0, "itemsToPickup":0, "labels":"", "linkedForms":"", "linkedZones":"", "manualChecks":"", "number":1, "onSiteSeconds":720, "orderId":0, "placeName":"Pickup at Matteo", "placeUid":"p1q2r3", "placeUrl":"https://hellotracks.com/img/accounts/p1q2r3/portrait_example_thumb.jpg", "priority":5, "radius":100, "receiverUid":"d4e5f6", "scheduledEnd":0, "scheduledStart":0, "signatureName":"", "signaturePdf":"", "signatureSvg":"", "submittedForms":"", "teamId":0, "textDispatcher":"", "textReceiver":"", "tsAccepted":0, "tsAssigned":0, "tsCheckIn":0, "tsCheckNFC1":0, "tsCheckNFC2":0, "tsCheckOut":0, "tsCreated":1691877605307, "tsDoneFailed":0, "tsDoneSuccess":0, "tsRejected":0, "tsSaved":1691877605307, "tsScheduled":0, "tsSignature":0, "type":1, "url_1":"https://example.com/forms/safety-check", "url_2":"https://google.com", "windowEnd":2400, "windowStart":0, "worker":"david.miller", "workerEmail":"david.miller@example.com", "workerName":"David Miller", "workerPhone":"" } ``` # Member API Object Source: https://api-docs.hellotracks.com/api-reference/member-object Properties of the Member (Person) object. Here you can find detailed information on each property, its data type, read/write permissions, and a brief description. The Member object represents a person/user in your HelloTracks organization. This includes field workers, dispatchers, and administrators. > [!NOTE] > > **Creating Members:** Use [/createaccount](/api-reference/endpoint/createaccount) endpoint\ > **Editing Members:** Use [/editaccount](/api-reference/endpoint/editaccount) endpoint\ > **Getting Members:** Use [/getaccounts](/api-reference/endpoint/getaccounts) endpoint > [!NOTE] > > The R/W column below refers to the `/api` member endpoints. The public REST `/v1/members` endpoints use a smaller camelCase request schema and do not accept every writable `/api` field. ## Core Properties | Property | Type | R/W | Description | | - | - | - | - | | id | TEXT | R | Unique identifier (same as `uid`) | | uid | TEXT | R | The user's unique identifier | | username | TEXT | R | The username/email address for login | | name | TEXT | RW | The display name of the user | | email | TEXT | RW | The user's email address | | email\_verified | BOOLEAN | R | Whether the user's email has been verified | | phone | TEXT | RW | The user's phone number | | phone\_verified | BOOLEAN | R | Whether the user's phone number has been verified | | type | TEXT | R | Always "person" for member objects | | color | TEXT | RW | Designated color code in hexadecimal format (e.g., "#22c328") | | portrait | TEXT | R | URL to the user's portrait/avatar image thumbnail | | portrait\_ts | LONG | R | Timestamp when portrait was last updated | ## Role & Permissions | Property | Type | R/W | Description | | - | - | - | - | | role | TEXT | RW | User role: "worker", "operator" (dispatcher), or "admin" (superuser) | | active\_status | TEXT | R | Account status if not normal (e.g., suspended, deactivated) | | teams | ARRAY | RW | Array of team IDs (numbers) the user belongs to. Use [Get Company](/api-reference/endpoint/getcompany) to map IDs to team names. | | scim\_data | TEXT | RW | SCIM provisioning data (for enterprise SSO integrations) | ## Location & Tracking | Property | Type | R/W | Description | | - | - | - | - | | location | OBJECT | R | Current location object (see structure below) | | states | OBJECT | R | Various state indicators (see structure below) | | timestamps | OBJECT | R | Important timestamps (see structure below) | | battery\_level | INTEGER | R | Current device battery level (0-100 percentage) | | battery\_plugged | BOOLEAN | R | Whether device is plugged into power source | | status\_label | TEXT | RW | Custom status label (e.g., "On Break", "Vacation") | | status\_label\_ts | LONG | R | Timestamp when status label was last updated | | current\_trip\_id | TEXT | R | ID of currently active trip (if any) | ## Route & Navigation | Property | Type | R/W | Description | | - | - | - | - | | route\_start\_lat | DOUBLE | RW | Latitude of route start location | | route\_start\_lng | DOUBLE | RW | Longitude of route start location | | route\_end\_lat | DOUBLE | RW | Latitude of route end location | | route\_end\_lng | DOUBLE | RW | Longitude of route end location | | route\_start\_time | INTEGER | RW | Route start time (HHMM format), -1 if using team default | | travel\_mode | TEXT | RW | Mode of travel: "car", "bicycle", "pedestrian", "truck", "van", "motorcycle" | | vehicle\_capacity | INTEGER | RW | Capacity of vehicle for pickup/dropoff calculations | ## Working Hours & Availability | Property | Type | R/W | Description | | - | - | - | - | | working\_hours | OBJECT | RW | Working hours for each day of week (see structure below) | | working\_hours\_overrides | OBJECT | RW | Date-specific working-hours overrides | | ignore\_working\_hours\_until\_ts | LONG | RW | Timestamp until which working hours are ignored | ## Localization & Preferences | Property | Type | R/W | Description | | - | - | - | - | | language | TEXT | RW | Language preference (ISO code, e.g., "en", "de", "es") | | timezone | TEXT | RW | Timezone (region/city format, e.g., "Europe/Vienna", "America/New\_York") | | unit\_distance | TEXT | RW | Distance unit system: "SI" (metric) or "US" (imperial) | | unit\_time | TEXT | RW | Time format: "12" or "24" hour | | unit\_date | TEXT | RW | Date format pattern (e.g., "dd.MM.yyyy", "MM/dd/yyyy") | ## Skills & Capabilities | Property | Type | R/W | Description | | - | - | - | - | | skills | ARRAY | RW | Array of skill tags for job matching (JSON array string) | | expertise | TEXT | RW | Expertise level or description | ## Device Information | Property | Type | R/W | Description | | - | - | - | - | | device | OBJECT | R | Device details object (see structure below) | ## Security & Authentication | Property | Type | R/W | Description | | - | - | - | - | | twofactor\_auth\_enabled | BOOLEAN | RW | Whether two-factor authentication is enabled | | google\_calendar | BOOLEAN | R | Whether Google Calendar integration is enabled | *** ## Nested Object Structures ### location Object | Field | Type | Description | | - | - | - | | lat | DOUBLE | Latitude | | lng | DOUBLE | Longitude | | ts | LONG | Timestamp of location fix (milliseconds) | | head | INTEGER | Heading/bearing in degrees (0-360) | | accuracy | INTEGER | Location accuracy in meters | | speed | INTEGER | Speed in km/h (-1 if unknown) | ### states Object | Field | Type | Description | | - | - | - | | moving | TEXT | Movement state: "halted", "idling", "ontheway", "offduty" | | tracking\_status | BOOLEAN | Whether tracking is currently active | | location\_services | BOOLEAN | Whether device location services are enabled | | login\_status | BOOLEAN | Whether user is currently logged in to app | | battery\_save | BOOLEAN | Whether battery save mode is active | | off\_trackrecording | BOOLEAN | Whether track recording is disabled | | ignoring\_battery\_optimization | BOOLEAN | Whether app ignores battery optimization | | off\_gps\_stationary | BOOLEAN | Whether GPS is off while stationary | | location\_permission | BOOLEAN | Whether app has location permissions | ### timestamps Object | Field | Type | Description | | - | - | - | | signal | LONG | Last signal/heartbeat timestamp | | created | LONG | Account creation timestamp | | login | LONG | Last login status change timestamp | | sync | LONG | Last app sync timestamp | | tracking | LONG | Last tracking status change timestamp | | suspended | LONG | Device suspension timestamp (if applicable) | | recovered | LONG | Device recovery timestamp (if applicable) | ### device Object | Field | Type | Description | | - | - | - | | model | TEXT | Device model (e.g., "Pixel 7a") | | manufacturer | TEXT | Device manufacturer (e.g., "Google") | | os | TEXT | Operating system (e.g., "Android 14", "iOS 17") | | app\_launches | INTEGER | Number of times app has been launched | | app\_version | INTEGER | App version number (internal) | | app\_version\_name | TEXT | App version name (e.g., "7.3.3") | | id | TEXT | Unique device identifier | | mode | INTEGER | Device mode (tracking configuration) | | diagnostics\_path | TEXT | Path to diagnostics file (if available) | | name | TEXT | Custom device name (if set) | ### working\_hours Object Each day (monday-sunday) contains: | Field | Type | Description | | - | - | - | | start | INTEGER | Start time as HHMM (e.g., 800 = 8:00 AM) | | end | INTEGER | End time as HHMM (e.g., 1700 = 5:00 PM) | | source | TEXT | "individual", "team" or "default": where the hours come from | **Example:** ```json theme={null} { "monday": { "start": 800, "end": 1700 }, "tuesday": { "start": 800, "end": 1700 }, "wednesday": { "start": 0, "end": 0 }, "source": "individual" } ``` *Note: `start: 0` and `end: 0` indicates a day off* ### working\_hours\_overrides Object Working-hours overrides are keyed by date in `YYYYMMDD` format. Each value contains `start` and `end` as HHMM: ```json theme={null} { "20260629": { "start": 900, "end": 1500 } } ``` ```json Example theme={null} { "status_label_ts":1668530288557, "role":"admin", "color":"#22c328", "route_start_lng":-122.4194, "route_start_time":-1, "timezone":"America/Los_Angeles", "timestamps":{ "created":1334218991087, "login":1699521431189, "signal":1699521425482, "tracking":1699259010889 }, "language":"en", "vehicle_capacity":0, "type":"person", "states":{ "login_status":false, "location_services":true, "battery_save":false, "tracking_status":true, "off_trackrecording":false, "location_permission":true, "moving":"halted", "off_gps_stationary":false }, "uid":"a1b2c3", "route_start_lat":37.7749, "id":"a1b2c3", "unit_date":"MM/dd/yyyy", "email":"alex.rivera@example.com", "email_verified":true, "battery_level":89, "teams":[ 1 ], "battery_plugged":false, "portrait":"https://hellotracks.com/img/accounts/a1b2c3/portrait_example_thumb.jpg", "twofactor_auth_enabled":false, "google_calendar":false, "unit_time":"12", "status_label":"On site", "route_end_lat":37.7749, "unit_distance":"SI", "phone_verified":true, "travel_mode":"car", "phone":"+14155550123", "working_hours":{ "sunday":{ "start":800, "end":1700 }, "saturday":{ "start":800, "end":1700 }, "tuesday":{ "start":800, "end":1700 }, "wednesday":{ "start":800, "end":1700 }, "thursday":{ "start":0, "end":0 }, "friday":{ "start":800, "end":1700 }, "source":"individual", "monday":{ "start":800, "end":1700 } }, "name":"Alex Rivera", "location":{ "head":243, "lng":-122.4192, "accuracy":96, "lat":37.7793, "speed":2, "ts":1699472445000 }, "device":{ "mode":1, "diagnostics_path":"/img/attachments/a1b2c3/diagnostics/00000000-0000-0000-0000-000000000000.json", "os":"Android 14", "app_version":245, "model":"Pixel 7a", "id":"0123456789abcdef", "app_launches":3, "app_version_name":"7.3.3", "manufacturer":"Google" }, "username":"alex.rivera", "route_end_lng":-122.4194 } ``` # JSON API overview Source: https://api-docs.hellotracks.com/api-reference/overview The Hellotracks JSON API: POST requests to /api with a JSON body. Build an integration in code, one JSON request per action. > [!NOTE] > > **Last Updated:** June 29, 2026 > **Current API Version:** 2\ > **Questions?** Contact [api@hellotracks.com](mailto:api@hellotracks.com) Every endpoint is a `POST` to `https://api.hellotracks.com/api/` with a JSON body. It covers jobs, dispatch and routing, live locations, members, places, reports and webhooks, and most existing integrations use it. > [!NOTE] > > Building a tool or automation on plain REST resources? See the [REST API](/v1/overview). Working from a terminal or with an AI agent? See the [CLI](/cli/overview). ## 🚀 Quick Start ### 1. Get Your API Key 1. Log in to [https://live.hellotracks.com](https://live.hellotracks.com) 2. Navigate to **More** → **API & Integrations** 3. Enable APIs in the API section 4. Copy your API key > [!WARNING] > > Keep your API key secure! Never commit it to version control or expose it in client-side code. ### 2. Make Your First Request `/api` requests use the `POST` method with JSON payloads. Connector endpoints under `/v1` use REST methods such as `GET`, `POST`, `PATCH`, `PUT`, and `DELETE`. ```bash theme={null} curl -X POST https://api.hellotracks.com/api/getjobs \ --header 'API-Key: YOUR_API_KEY_HERE' \ --header 'Content-Type: application/json' \ -d '{ "data": { "day": 20251008, "worker": "*" } }' ``` ### 3. Explore Common Use Cases > [card] [Job Management](/api-reference/endpoint/createjobs) > > Create, assign, and track jobs for your field workers > [card] [Route Optimization](/api-reference/endpoint/routeoptimization) > > Optimize routes to minimize travel time and distance > [card] [Location Tracking](/api-reference/endpoint/gettracks) > > Retrieve real-time and historical location data > [card] [Reports](/api-reference/endpoint/createreport) > > Generate comprehensive reports (jobs, mileage, timesheet, etc.) ## 🔐 Authentication Every API request requires authentication via the `API-Key` header: ```bash theme={null} --header 'API-Key: YOUR_KEY_ID.YOUR_SECRET' ``` See the [Authentication](/api-reference/authentication) page for complete details. ## 📡 API Basics ### Base URL ``` https://api.hellotracks.com/api/ ``` ### Request Format `/api` requests use **POST** with a JSON body: ```json theme={null} { "data": { "day": 20251008 } } ``` Endpoint-specific parameters go inside `data`. ### Response Format Most `/api` responses return JSON with a `status` field. Report generation streams the requested file content on success. ```json theme={null} { "status": 0 } ``` `status` is `0` on success and negative on errors (see below); errors also carry an `errorMsg`. Endpoint-specific fields come next to `status`. ### The API is Stateless Each request is independent. No session management is required. ## ✅ Status Codes ### HTTP Status Codes | Code | Type | Description | | - | - | - | | 200 | OK | Request successfully processed | | 500, 502, 503 | Server Error | Temporary server issues - retry with backoff | | 504 | Timeout | Request took too long - try reducing data size | ### Application Status Codes The `status` field in the response indicates operation success: | Status | Meaning | Description | | - | - | - | | 0 | Success | Request completed successfully | | -1 | Format Error | Invalid or malformed request data | | -2 | User Unknown | Login with an unknown username | | -3 | Authentication | Invalid username/password or login token | | -4 | User Already Exists | Username already exists | | -5 | Permission Denied | Account lacks required permissions | | -6 | Unregistered | Device or account is unregistered | | -7 | Not Ready | Temporary not-ready state; retry later | | -8 | Invalid API Key | Invalid, missing, or disabled API key | | -9 | Throttling | Rate limit exceeded - slow down requests | | -10 | Clock Mismatch | Clock mismatch in request timestamp | | -11 | Data Error | Request data is incorrect | | -12 | Unknown Account | A requested user/account could not be found, or the session is no longer valid | | -99 | Unknown Request | Unknown or unsupported request | > [!TIP] > > Always check the `status` field in responses, even when HTTP status is 200. ## 🎯 Best Practices ### Rate Limiting & Performance > [!WARNING] > > **Don't poll aggressively!** Use [Webhooks](/api-reference/webhooks) for real-time updates instead. * **Reasonable Polling:** If polling is necessary, use 30-60 second intervals minimum * **Batch Operations:** Use batch endpoints (e.g., create multiple jobs at once) when possible * **Webhooks:** Subscribe to webhooks for instant notifications about job, clock, check-in/out, and alert events. * **Pagination:** Use the `sort` parameter with `limit` and `skip` for large datasets ### Error Handling Implement robust error handling: ```javascript theme={null} try { const response = await fetch('https://api.hellotracks.com/api/getjobs', { method: 'POST', headers: { 'API-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ data: { day: 20251008, worker: '*' } }) }); const result = await response.json(); if (result.status !== 0) { // Handle application error console.error('API Error:', result.status, result.errorMsg); } else { // Success - process result console.log('Jobs:', result.jobs); } } catch (error) { // Handle network/HTTP error console.error('Network error:', error); } ``` ### Date Formats * **Day Format:** YYYYMMDD integer (e.g., `20251008` for October 8, 2025) * **Timestamps:** Unix timestamps in milliseconds (e.g., `1619568000000`) * **Time Windows:** HHMM format (e.g., `1430` for 2:30 PM) ### Timezone Handling All date/time values are interpreted in the account's configured timezone. Make sure your account timezone matches your operational timezone in the Hellotracks web app. ## 🔗 Common Workflows ### Create and Assign Jobs 1. [Create jobs](/api-reference/endpoint/createjobs) with location and details 2. Optional: [Auto-assign](/api-reference/endpoint/autoassign) to optimize worker allocation 3. Optional: [Optimize route](/api-reference/endpoint/routeoptimization) for each worker 4. Workers receive notifications on their mobile apps ### Track Job Progress 1. [Get jobs](/api-reference/endpoint/getjobs) for a specific day/worker 2. Check status timestamps (`tsAccepted`, `tsCheckIn`, `tsDoneSuccess`, etc.) 3. Or use [Webhooks](/api-reference/webhooks) for real-time updates ### Generate Reports 1. [Create report](/api-reference/endpoint/createreport) with desired type and date range 2. Specify a format supported by the selected report type (for example xlsx, csv, pdf, geojson, or zip) 3. Download binary response and save as file ## 📖 Key Resources > [card] [Job Object Reference](/api-reference/job-object) > > Complete field reference for Job objects (50+ fields) > [card] [Member Object Reference](/api-reference/member-object) > > Complete field reference for Member/Account objects > [card] [Webhooks](/api-reference/webhooks) > > Real-time notifications for events > [card] [Authentication Details](/api-reference/authentication) > > Comprehensive authentication guide ## 💡 Need Help? * **Email Support:** [api@hellotracks.com](mailto:api@hellotracks.com) * **Feature Requests:** Contact us to discuss your integration needs * **Bug Reports:** Email us with request/response details ## 🔄 API Versioning The current API version is **2**. There is no version to send: requests always use the current version. We maintain backward compatibility and will announce breaking changes well in advance. *** > [!NOTE] > > Ready to build? Start with [Authentication](/api-reference/authentication), then pick an endpoint from the menu. # Place API Object Source: https://api-docs.hellotracks.com/api-reference/place-object Complete reference for the Place object structure used in API responses and requests. The Place object represents a fixed location such as customer sites, warehouses, offices, or service locations. Places are used for job assignments, check-ins, and territory management. ## Place Object Structure ```json theme={null} { "uid": "p1q2r3", "name": "East Beach Station", "address": "1199 East Beach Road", "city": "San Francisco", "state": "California", "postalcode": "94129", "country_code": "US", "phone": "+14155551234", "email": "station@example.com", "location": { "lat": 37.8059467, "lng": -122.449046 }, "radius": 50, "color": "#22c328", "linkedForms": "form1,form2", "creator": "Acme Dispatch", "data": [ {"manager": "John Doe"}, {"capacity": "50"} ] } ``` ## Core Properties **uid** `string` *required* **Read-only.** Unique identifier for the place. Automatically generated by the system. **name** `string` *required* **Read/Write.** Name of the place. This is the only required field when creating a place. Example: `"Downtown Office"`, `"Customer Site #101"` **creator** `string` **Read-only.** Name of the user or company that created this place, when available. ## Location & Address **location** `object` **Read/Write.** Geographic coordinates of the place. * `lat` (DOUBLE): Latitude * `lng` (DOUBLE): Longitude If not provided during creation, the system will attempt to geocode based on address fields. **address** `string` **Read/Write.** Street address. Example: `"123 Main Street"`, `"Suite 400, 456 Market Street"` **city** `string` **Read/Write.** City name. **state** `string` **Read/Write.** State, province, or region. Example: `"California"`, `"CA"`, `"Ontario"` **postalcode** `string` **Read/Write.** Postal code or ZIP code. **country\_code** `string` **Read/Write.** ISO country code (2 letters). Example: `"US"`, `"GB"`, `"DE"`, `"CA"` **radius** `integer` **Read/Write.** Check-in radius in meters. Determines how close a worker needs to be to check in at this location. Default: `0` Common values: `50`, `100`, `200` ## Contact Information **phone** `string` **Read/Write.** Contact phone number for this location. Example: `"+14155551234"` **email** `string` **Read/Write.** Contact email address for this location. Example: `"contact@location.com"` ## Visual & Configuration **color** `string` **Read/Write.** Color code in hexadecimal format for display in maps and lists. Example: `"#22c328"`, `"#FF5733"` **linkedForms** `string` **Read/Write.** Comma-separated list of form IDs linked to this place. When a job is created at this location, these forms can be automatically attached. Example: `"form1,form2,form3"` ## Team Assignment & Access Places can be assigned to specific teams within your organization. This is managed through: * **teams** (ARRAY of integers): Team numbers that have access to this place * Team-based filtering applies when retrieving places * Workers may only see places from their assigned teams (based on company settings) ## Custom Data Fields **data** `array` **Read-only response field.** Array of custom key-value objects returned by the `/api/getplaces` and `/api/createplace` response object. Each object contains one custom field name and its value: ```json theme={null} [ {"manager": "John Smith"}, {"capacity": "50"}, {"hours": "9AM-5PM"}, {"notes": "Ring doorbell"} ] ``` Use this for storing: * Manager or contact names * Operating hours * Capacity information * Special instructions * Custom business data **extended\_data** `array` **Write-only for place create/edit requests.** Send custom data as key/value objects, for example `[{"key": "manager", "val": "John Smith"}]`. The `/api` place response serializes those values back as `data`. ## Usage in API Endpoints ### Creating Places When creating a place with [`/api/createplace`](/api-reference/endpoint/createplace): * Only `name` is required * If `location` coordinates are not provided, geocoding will attempt to resolve them from address fields * Send `extended_data` for custom place data; the response returns those fields under `data` ### Editing Places When editing with [`/api/editplace`](/api-reference/endpoint/editplace): * Include only the fields you want to update * Use `uid` to identify the place * Or use `uids` array for batch updates ### Retrieving Places When retrieving with [`/api/getplaces`](/api-reference/endpoint/getplaces): * Returns array of complete place objects * Automatically filtered by permissions and teams * Sorted by distance from your location ## Permissions & Visibility Place visibility and access is controlled by: 1. **Company Settings:** * `workers_create_places`: Controls if workers can create new places * `workers_view_places`: Controls if workers can see all places or only team-assigned ones 2. **Team Assignment:** * Places can be restricted to specific teams * Workers only see places from their teams (when restricted) 3. **Personal vs. Company Places:** * Company places belong to the organization * Personal places are managed by the owning account and can be visible through existing network/place relationships ## Common Use Cases ### Customer Sites ```json theme={null} { "name": "Acme Corp HQ", "address": "123 Business Ave", "city": "San Francisco", "radius": 100, "extended_data": [ {"key": "contact", "val": "Jane Smith"}, {"key": "access_code", "val": "1234"} ] } ``` ### Service Locations ```json theme={null} { "name": "Maintenance Zone 5", "location": {"lat": 37.7749, "lng": -122.4194}, "radius": 500, "linkedForms": "inspection_form", "extended_data": [ {"key": "zone_manager", "val": "Bob Johnson"}, {"key": "equipment", "val": "HVAC"} ] } ``` ### Warehouses ```json theme={null} { "name": "Distribution Center North", "address": "456 Industrial Pkwy", "radius": 200, "phone": "+14155559999", "extended_data": [ {"key": "manager", "val": "Mike Davis"}, {"key": "capacity", "val": "10000 sq ft"}, {"key": "dock_doors", "val": "12"} ] } ``` ## Related Endpoints * [Get Places](/api-reference/endpoint/getplaces) - Retrieve places * [Create Place](/api-reference/endpoint/createplace) - Create a new place * [Edit Place](/api-reference/endpoint/editplace) - Update place properties * [Get Jobs](/api-reference/endpoint/getjobs) - Jobs can be associated with places ## Notes > [!NOTE] > > **Geocoding:** When creating places without coordinates, provide at least `address + city + country_code` or `city + state + country_code` for best geocoding results. > [!NOTE] > > **Custom Data:** In `/api` place create/edit requests, send `extended_data` with objects containing `key` and `val` properties. Place responses return the same data under `data`. > [!TIP] > > **Check-in Radius:** Set an appropriate radius for your use case. Smaller radii (50-100m) for precise locations, larger radii (200-500m) for general areas or zones. # Webhooks Source: https://api-docs.hellotracks.com/api-reference/webhooks Hellotracks provides webhooks for job, clock, place/check, and alert events with custom callbacks. With webhooks you get immediate updates from Hellotracks without frequent polling. Hellotracks sends webhook callbacks to your configured endpoint when matching events occur. ## Webhook Setup You can configure API-managed webhook endpoints with `/api/setwebhooks` or the public REST API. ### `/api` Webhook API Use `/getwebhooks` to read the current configuration and `/setwebhooks` to update one or more endpoints. ```bash theme={null} curl -X POST https://api.hellotracks.com/api/getwebhooks \ --header "API-Key: YOUR_API_KEY" \ --header "Content-Type: application/json" \ -d '{ "data": {} }' ``` ```bash theme={null} curl -X POST https://api.hellotracks.com/api/setwebhooks \ --header "API-Key: YOUR_API_KEY" \ --header "Content-Type: application/json" \ -d '{ "data": { "alert_triggered": { "url": "https://example.com/hellotracks/alerts", "header": { "Authorization": "Bearer YOUR_WEBHOOK_SECRET" } } } }' ``` `/api/setwebhooks` uses these API-managed webhook keys: * `job_created` * `job_updated` * `job_completed` * `job_archived` * `job_deleted` * `job_checked` * `place_checked` * `clock_in_out` * `alert_triggered` For job check-in/out webhooks, set `data.job_checked.url` and optionally `data.job_checked.header`. For place check-in/out webhooks, set `data.place_checked.url` and optionally `data.place_checked.header`. For clock-in/out webhooks, set `data.clock_in_out.url` and optionally `data.clock_in_out.header`. For alert webhooks, set `data.alert_triggered.url` and optionally `data.alert_triggered.header`. Each key accepts: * `url`: The HTTPS endpoint Hellotracks should call. * `header`: Optional object of custom HTTP headers to include with the callback. ### Public REST API No-code connectors and REST integrations can configure webhooks through `/v1/webhooks`. ```bash theme={null} curl https://api.hellotracks.com/v1/webhooks \ --header "API-Key: YOUR_API_KEY" ``` ```bash theme={null} curl -X PUT https://api.hellotracks.com/v1/webhooks \ --header "API-Key: YOUR_API_KEY" \ --header "Content-Type: application/json" \ -d '{ "webhooks": { "alert_triggered": { "url": "https://example.com/hellotracks/alerts", "headers": { "Authorization": "Bearer YOUR_WEBHOOK_SECRET" } } } }' ``` The public REST API accepts the webhook keys listed above. For check and clock webhooks, set the matching key under `webhooks`, for example `webhooks.job_checked.url`, `webhooks.place_checked.url`, or `webhooks.clock_in_out.url`. Use `headers` for optional custom callback headers. Use `headers` in `/v1/webhooks` requests; `/api/setwebhooks` uses `header`. ## Webhook Event Summary | Configuration | Delivered action(s) | Payload section | | - | - | - | | `job_created` | `jobcreated` | [Job Webhook Payload](#job-webhook-payload) | | `job_updated` | `jobupdated` | [Job Webhook Payload](#job-webhook-payload) | | `job_completed` | `jobcompleted` | [Job Webhook Payload](#job-webhook-payload) | | `job_archived` | `jobarchived` | [Job Webhook Payload](#job-webhook-payload) | | `job_deleted` | `jobdeleted` | [Job Webhook Payload](#job-webhook-payload) | | `job_checked` | `jobcheckin`, `jobcheckout` | [Job Webhook Payload](#job-webhook-payload) | | `clock_in_out` | `clockin`, `clockout` | [Clock In/Out Webhook Payload](#clock-inout-webhook-payload) | | `place_checked` | `placecheckin`, `placecheckout` | [Place Check Webhook Payload](#place-check-webhook-payload) | | `alert_triggered` | `alerttriggered` | [Alert Webhook Payload](#alert-webhook-payload) | ## Delivery Format Hellotracks calls your endpoint with a `POST` request. For standard webhook callbacks, the POST body contains form parameters: * `account`: The company account username. * `id`: The event identifier. For job events this is the job ID. For clock events this includes the member UID, timestamp, and action. For alert events this is the alert instance ID. * `data`: JSON string with event-specific data. * `action`: The delivered action. * `reason`: Same value as `action`. ```http theme={null} POST https:// ``` Supported delivered actions: * `jobcreated`: called when a job is newly created * `jobupdated`: called when an existing job is updated * `jobcompleted`: called when a job is marked as completed, either with success or failure * `jobarchived`: called when a job is marked as archived * `jobdeleted`: called when a job is deleted * `jobcheckin`: called when a job is checked in * `jobcheckout`: called when a job is checked out * `clockin`: called when a worker turns tracking on, which is treated as clock-in * `clockout`: called when a worker turns tracking off, which is treated as clock-out * `placecheckin`: called when a member automatically checks in at a place * `placecheckout`: called when a member automatically checks out from a place * `alerttriggered`: called when an alert configuration triggers ## Job Webhook Payload Job webhooks send the job ID as `id` and a compact job array as `data`. ```shell theme={null} account= id= data=[{}] action= reason= ``` The job action is one of `jobcreated`, `jobupdated`, `jobcompleted`, `jobarchived`, `jobdeleted`, `jobcheckin`, or `jobcheckout`. See [Job API Object](/api-reference/job-object) for job fields. ## Clock In/Out Webhook Payload Clock in/out webhooks use the API-managed `clock_in_out` key. Hellotracks sends `action=clockin` when a worker turns tracking on and `action=clockout` when a worker turns tracking off. ```shell theme={null} account= id=--clockin data={ "who": { "uid": "", "name": "", "username": "" }, "tracking": true, "ts": , "location": { "lat": 37.7749, "lng": -122.4194 } } action=clockin reason=clockin ``` For clock-out events, `action` and `reason` are `clockout`, `id` ends with `clockout`, and `data.tracking` is `false`. Clock payload fields: * `who`: Member who changed tracking state. * `tracking`: `true` for tracking on / clock-in, `false` for tracking off / clock-out. * `ts`: Event timestamp in milliseconds. * `location`: Optional latitude/longitude object. It is omitted when Hellotracks did not receive a valid location for the tracking-state event. > [!NOTE] > > Clock in/out webhooks are sent when a worker changes tracking on or off from the mobile app and that event is accepted as the worker's current tracking state. Admin or manual timesheet changes, such as adding or correcting a clock entry in the web app, update the timesheet data but do not trigger clock in/out webhooks. ## Place Check Webhook Payload Place check webhooks send a unique check event ID as `id` and place/member/timestamp details as `data`. ```shell theme={null} account= id=-- data={ "place": { }, "who": { "uid": "", "name": "", "username": "" }, "ts": } action=placecheckin reason=placecheckin ``` For check-out events, `action` and `reason` are `placecheckout`. See [Place API Object](/api-reference/place-object) for place fields. ## Alert Webhook Payload Alert webhooks use `action=alerttriggered` and `reason=alerttriggered`. The `id` field is the alert instance ID. ```shell theme={null} account= id= data={ "alert": { "id": "", "config": "", "companyUid": "", "title": "Late arrival", "description": "Notify dispatch when a worker checks in late", "message": "Alert: Late arrival - (Worker Name) checks in at (Customer Site) Time: 05/19/2026 09:15", "action": "checks_in", "actionCode": 1, "type": 1, "interval": 0, "tsCreated": 1779174900000 }, "member": { "uid": "", "username": "", "name": "" }, "place": { }, "zone": { "id": 123, "name": "Warehouse Zone" }, "checkType": "IN" } action=alerttriggered reason=alerttriggered ``` Alert payload fields: * `alert.id`: Alert instance ID. * `alert.config`: Alert configuration ID. * `alert.companyUid`: Company UID. * `alert.title`: Alert configuration title. * `alert.description`: Alert configuration description. * `alert.message`: Human-readable alert message generated by Hellotracks. * `alert.action`: Alert action name. * `alert.actionCode`: Numeric alert action code. * `alert.type`: Numeric alert type. * `alert.interval`: Alert interval in milliseconds, if configured. * `alert.tsCreated`: Alert instance timestamp in milliseconds. * `member`: Member who triggered or violated the alert. * `place`: Optional place object when the alert is place-related. * `zone`: Optional zone object when the alert is zone-related. * `checkType`: Optional check direction, `IN` or `OUT`. Alert action names: * `checks_in` * `checks_out` * `checks_any` * `no_check_in` * `no_check_out` * `no_check_any` * `idle` * `enters_zone` * `leaves_zone` * `no_connection_to_device` * `enters_danger_zone` * `battery_low` * `none` # Command reference Source: https://api-docs.hellotracks.com/cli/commands Every ht command and its options. `ht` is the operational CLI for the Hellotracks public API. It is designed for dispatch operators, platform teams, CI jobs, and automation workflows. ## Global Flags * `--profile ` selects a local profile. * `--api-url ` overrides the public API base URL. * `--api-key-stdin` reads the API key from stdin. `--api-key ` works too but shows the key in shell history and process lists; prefer stdin or `HELLOTRACKS_API_KEY_FILE`. * `--json` is short for `--output json`. * `--output pretty|table|json|yaml|csv|ndjson` selects output format. * `--fields ` projects array output to specific fields. * `--sort ` sorts array output; prefix with `-` for descending. * `--request-id ` sends an `X-Request-ID` header. * `--confirm-profile ` fails unless the selected profile matches. * `--yes` skips destructive confirmations. * `--no-input` disables prompts. * `--quiet` hides notices on stderr. `--verbose` logs each HTTP request on stderr (never the key) and adds read-only details to human output. * `--no-update-check` skips the daily check for a newer release. Date options accept `YYYY-MM-DD`, `today`, `yesterday`, and `tomorrow`, as your computer's local day. Files for `import` and `sync` need `YYYY-MM-DD`. ## Output, Errors, And Exit Codes Without `--json` or `--output`, output is meant for people and may change between releases. `--json` and `--output json|yaml|ndjson|csv` print the public API objects unchanged. With `--json` (or `--output json|yaml|ndjson`) errors are one JSON line on stderr. Mistyped commands and options are the exception: they print the usual plain-text usage error and exit 1. ```json theme={null} {"error":{"code":"not_found","message":"Job not found: job-123","status":404,"exitCode":4}} ``` | Exit code | Meaning | | - | - | | 0 | Done | | 1 | Any other error: invalid flags, `network_error` (API unreachable), `request_timeout` | | 2 | Missing or invalid API key (HTTP 401) | | 3 | Invalid request (HTTP 400) | | 4 | Not found (HTTP 404) | | 5 | Conflict (HTTP 409) | | 6 | Rate limited (HTTP 429); wait and retry | | 7 | A bulk `import` or `sync` finished, but some records failed; the report lists them under `errors` | | 10 | Server error (HTTP 5xx); safe to retry reads | Reads (GET) are retried a few times on timeouts, 429 with `Retry-After`, and 5xx before `ht` gives up; writes are never retried, so a failed write may or may not have happened. Check before repeating it. ## Sign Up And Sign In Without A Key ```bash theme={null} ht signup --email sam@acme.com --name "Sam Lee" --company "Acme Plumbing" --address "1 Ferry Building, San Francisco" --accept-terms ht signup --code 482913 ht auth login --email sam@acme.com ht auth login --email sam@acme.com --code 482913 --key-file ci/ht.key ``` These four calls are the only ones without an API key (`POST /signup`, `/signup/verify`, `/auth/email-code`, `/auth/email-code/verify`). The code goes to the email, works for 30 minutes and 5 tries, and the API key it gives works for 90 days. Only company admins get a key by email code; `auth login --email` answers the same for any address, so it can't be used to find out who has an account. The API limits sign-ups and code requests per address and per network, and refuses throwaway inboxes. ## Public API Resources * `ht signup` (create a company; `--code` finishes it) * `ht auth login|logout|whoami|validate` (`login --email` signs in with an emailed code) * `ht company show|update` * `ht members list|get|locate|create|update|delete|columns|template|import|export|sync` (`list --query` searches) * `ht places list|get|create|update|delete|columns|template|import|export|sync` * `ht jobs list|get|create|update|archive|restore|delete|columns|template|import|export|sync` (`list --all` reads every page) * `ht routing optimize` * `ht reports catalog|preview|run|status|saved` and the classic `types|describe|columns|generate|jobs|history|recurring` * `ht timesheets list|summary|add|update|delete|export|columns|template` * `ht forms templates|submissions|links|attachments|builder|report` * `ht alerts actions|zones|configs|recent|instances|report` * `ht maps layers|inspect|export|open|share|viewer|shares` * `ht eta create|list|get|update|refresh|events|snippet|revoke` * `ht webhooks list|set` * `ht apikeys list|create|revoke|delete` * `ht profiles list|create|use|doctor` * `ht skills install`, `ht update`, `ht commands` (every command; `--json` adds arguments and options) ## Bulk Commands Bulk commands accept JSON arrays, `{ "items": [...] }`, NDJSON, CSV, and YAML. ```bash theme={null} ht jobs columns ht jobs template > jobs.csv ht jobs import --file jobs.csv --dry-run ht jobs sync --file jobs.csv --upsert-by externalId --continue-on-error ht places columns ht places template > places.csv ht places sync --file places.ndjson --upsert-by name ht members columns ht members template > members.csv ht members sync --file members.yaml --upsert-by username ``` `import` creates records. `sync` creates or updates records using a stable key. Defaults are `externalId` for jobs, `name` for places, and `username` for members. A sync compares against every job and place, not only the first page. Jobs are written 50 per request (`--batch-size`); a batch the API refuses is written again one by one, so the report names each bad row. Members and places are written one at a time. A run stops at the first failed record unless `--continue-on-error` is given. Either way the report's `summary` counts what was created, updated, and failed, and the run exits 7 when anything failed. CSV cells are text. Columns typed `number` or `integer` in `ht columns` are sent as numbers; everything else, `date` included, is sent as written. On a sync, `extendedData.*` columns change only those custom fields of a place; an empty column leaves the field as it is. CSV headers use public API field names. Nested fields use dot notation, for example `contact.name`, `location.lat`, `timeWindow.start`, and `extendedData.customerId`. ## Member Location Use `locate` when you need the latest known GPS payload without the full member profile. ```bash theme={null} ht members locate ht members locate --full ht --json members locate ``` Default output is a compact table with id, name, latitude, longitude, updated time, speed, accuracy, and tracking state. `--full` adds GPS-style fields such as raw `ts`, altitude, heading, sensor, username, and member status. JSON/YAML output returns the full location, normalized GPS fields, states, and timestamps objects. ## Reports The reports from the dashboard's Reports page run in the background. `ht reports run` starts a run, waits, and downloads the files; their links are signed and work for 30 days without an API key. ```bash theme={null} ht reports catalog ht reports preview team-week --period lastWeek ht reports run timesheet --period lastWeek --format xlsx --format pdf --dir reports/ ht reports run jobs --from 2026-10-01 --until 2026-10-31 --member alice --format csv --stdout ht reports run form-answers --form --period lastMonth --format csv ht reports run jobs --period yesterday --no-wait ht reports status --download ``` Periods are `today`, `yesterday`, `thisWeek`, `lastWeek`, `thisMonth`, `lastMonth`, `last7Days`, and `last30Days`, or `--from` and `--until`. Without `--member` or `--team` a report covers everyone. Saved reports keep a report by name, and can send it on a schedule: ```bash theme={null} ht reports saved list ht reports saved create timesheet --name "Weekly hours" --every week --weekday monday --at 07:00 --to alice --format xlsx ht reports saved update --email office@example.com --delivery link ht reports saved send ht reports saved pause ht reports saved delete ``` ### Classic Reports The classic report types still work, and are the only way to the places, members, gpx, activities, and timeline reports. Use their discovery before generating files: ```bash theme={null} ht reports types ht reports describe jobs ht reports columns jobs ``` Generate report files with explicit selectors: ```bash theme={null} ht reports generate jobs --from 2026-05-01 --until 2026-05-28 --format csv --all-members --file jobs.csv ht reports generate timesheet --date today --member alice --format xlsx ht reports generate checkins --date yesterday --all-members --option mode=manual ht reports generate places --format csv --background --file places.csv ht reports jobs list ht reports jobs get --download ``` `--background` makes the file on the server without the two-minute request limit and waits for it. Manage recurring report schedules: ```bash theme={null} ht reports recurring list ht reports recurring create --name "Weekly jobs" --type jobs --frame week --weekday monday --format xlsx --all-members ht reports recurring pause ht reports recurring resume ht reports recurring delete ``` ## Timesheets `ht timesheets` manages raw clock-in/clock-out entries. For official PDF/XLSX timesheet files, keep using `ht reports generate timesheet`. ```bash theme={null} ht timesheets list --date today ht timesheets list --from 2026-05-01 --until 2026-05-28 --member alice ht timesheets summary --date today ht timesheets add --member alice --date today --in 08:30 --out 17:15 ht timesheets update --in 08:45 --out 17:00 ht timesheets delete --yes ht timesheets export --from 2026-05-01 --until 2026-05-28 --output csv ``` Use `ht timesheets columns` to see export columns and `ht timesheets template` for a CSV starter. Member selectors accept member id, username, email, or exact name. `list` output includes the `entryId` used by `update` and `delete`; raw API objects remain available with `--json` or `--output yaml`. ## Forms `ht forms` manages form templates, submission data, attachments, and job/place links. The canonical authoring format is JSON or YAML using Hellotracks `FormContent`. Template workflow: ```bash theme={null} ht forms templates fields ht forms templates template --format yaml > safety-check.yaml ht forms templates validate --file safety-check.yaml ht forms templates create --file safety-check.yaml ht forms templates list ht forms templates get "Safety check" ht forms templates update --file safety-check.yaml ``` Submission workflow: ```bash theme={null} ht forms submissions template --format yaml > answers.yaml ht forms submissions submit --values answers.yaml --member alice --job job-123 ht forms submissions list --template --from today --until today ht forms submissions get ht forms submissions export --template --from 2026-05-01 --until 2026-05-28 --output csv ``` Attachments and links: ```bash theme={null} ht forms attachments upload --file signature.png --field customer_signature ht forms links attach --job job-123 ht forms links list --job job-123 ht forms links detach --job job-123 --yes ``` Use `ht forms report --from ... --until ... --format csv|xlsx --file ...` as a convenience wrapper around `ht reports generate formsubmissions`. The focused `ht forms builder` command is a line-oriented draft editor; use file-based commands for CI and agent automation. ## Alerts `ht alerts` manages alert rule configs and triggered alert instances. Use `ht webhooks` for alert-triggered webhook delivery; alert commands do not configure webhooks. Discover supported triggers and zone ids before creating configs: ```bash theme={null} ht alerts actions ht alerts zones ht alerts configs template no-check-out --format yaml > missing-checkout-alert.yaml ht alerts configs validate --file missing-checkout-alert.yaml ``` Create and maintain alert configs: ```bash theme={null} ht alerts configs create --title "Missing check-out" --action no_check_out --member alice --email ops@example.com --time-start 08:00 --time-end 18:00 ht alerts configs list ht alerts configs get ht alerts configs update --weekday monday --weekday tuesday --time-start 08:00 --time-end 18:00 ht alerts configs pause ht alerts configs resume ht alerts configs delete --yes ``` Inspect triggered alerts and export history: ```bash theme={null} ht alerts recent --limit 20 ht alerts instances get ht alerts instances ack --yes ht alerts instances archive --yes ht alerts instances export --from 2026-05-01 --until 2026-05-28 --output csv ht alerts report --from 2026-05-01 --until 2026-05-28 --format csv --file alerts.csv ``` Selectors accept repeated `--member`, `--place`, and `--zone` values. Members resolve by id, username, email, or exact name; places and zones resolve by id or exact title/name. Raw API objects remain available with `--json` or `--output yaml`. ## ETA Pages `ht eta` creates public, no-login arrival pages at `https://eta.page/...` for Hellotracks jobs. The CLI does not send SMS or WhatsApp; use snippets, CRM fields, portals, email, or an existing messaging provider to distribute the link. ETA Email Notifications are configured in Hellotracks Job Settings; when those emails include `{etaPageUrl}`, Hellotracks can create the ETA Page automatically as the email is sent. ```bash theme={null} ht eta create --job job-123 --title "Service visit" ht eta list --date today ht eta get eta_123 ht eta snippet eta_123 --format email ht eta update eta_123 --show-worker-name --show-map --expires 30d ht eta events eta_123 ht eta revoke eta_123 --yes ``` Omit visibility flags on create to use company ETA Page defaults. Use `--show-worker-name`, `--hide-worker-name`, `--show-map`, and `--hide-map` to override visibility for a specific page. Default output is compact for operators; use `--json` or `--output yaml` for raw API objects. ## Maps `ht maps` creates operational map snapshots. Share links are expiring backend-stored snapshots; exported GeoJSON files are durable local archives that can be opened later in the hosted viewer. ```bash theme={null} ht maps layers ht maps share members places jobs --title "Snapshot June 6" ht maps export members places jobs --file snapshot-june-6.geojson ht maps viewer ht maps open members places --title "Current operations" ht maps export trips --member alice --date today --file alice-trips.geojson ht maps share heatmap --from 2026-05-01 --until 2026-05-28 --title "May coverage" ht maps shares list ht maps shares revoke --yes ``` `viewer` opens `https://live.hellotracks.com/share/maps/viewer`; the browser reads a dropped or selected `.geojson` file locally and does not upload it. Use `trips` as the public CLI name for trip history. # CLI overview Source: https://api-docs.hellotracks.com/cli/overview Run Hellotracks from a shell, a CI runner or an AI agent. Install with one line and sign up from the terminal. `ht`, the Hellotracks command line, runs Hellotracks from a shell, a CI runner or a coding agent: jobs, routes, people, places, timesheets, forms, alerts, reports, ETA pages, maps, webhooks and API keys. It talks to the [REST API](/v1/overview) and nothing else. ```bash theme={null} ht jobs sync --file work-orders.csv --upsert-by externalId --dry-run ht routing optimize --account alice@example.com --date today --solve ht reports run timesheet --period lastWeek --format xlsx ``` ## Install macOS and Linux, arm64 and x64: ```bash theme={null} curl -fsSL https://cli.hellotracks.org/install.sh | bash ``` The installer puts `ht` in `~/.local/bin` with its own Node.js runtime and checks the download's SHA-256 first. `ht update` installs a newer release. ## Sign up or sign in New to Hellotracks? Create a company from the terminal. A 6-digit code sent to your email proves the address; no password is needed, and the API key is stored for you: ```bash theme={null} ht signup --email sam@acme.com --name "Sam Lee" --company "Acme Plumbing" \ --address "1 Ferry Building, San Francisco" --accept-terms ht signup --code 482913 ``` Already have an account? Sign in with an emailed code, or paste an API key from the dashboard: ```bash theme={null} ht auth login --email sam@acme.com ht auth whoami ``` On macOS the key is kept in the Keychain; on Linux in a file only you can read. ## What it does | Command | For | | - | - | | `ht jobs` | List, create, update, archive, import, export and sync jobs | | `ht routing optimize` | Put a member's day in the best order | | `ht members`, `ht places` | People and places, including `members locate` for last positions | | `ht timesheets` | Clock-in and clock-out entries | | `ht reports` | Run, preview, save and schedule reports | | `ht forms` | Form templates, submissions and attachments | | `ht alerts` | Alert rules and the alerts they raised | | `ht eta` | Live arrival pages for the people a job is for | | `ht maps` | Map snapshots and share links | | `ht webhooks`, `ht apikeys`, `ht company` | Integration settings | | `ht skills install` | Teach Codex and Claude Code how to use `ht` | Every command explains itself: `ht --help`. See the [command reference](/cli/commands) and [automation recipes](/cli/recipes). ## For scripts and agents * `ht commands --json` lists every command with its arguments and options. * `--json` prints the API's own objects. Errors are JSON on stderr too, with stable exit codes. * `--dry-run` shows what `import` and `sync` would change; `--no-input` never prompts. AI agents: see [For AI agents](/agents). # Automation recipes Source: https://api-docs.hellotracks.com/cli/recipes Worked examples for nightly syncs, exports and webhooks. ## Work Orders Into Hellotracks Jobs ```bash theme={null} ht jobs columns ht jobs template > work-orders.csv ht jobs sync \ --file work-orders.csv \ --upsert-by externalId \ --dry-run ht jobs sync \ --file work-orders.csv \ --upsert-by externalId \ --continue-on-error \ --output json ``` Use `externalId` as the CRM/work-order id. The dry run returns the planned create/update count before touching Hellotracks. ## Import, Assign, And Plan Tomorrow Put the assignee and the day in the file: `assigneeUsername` and `date` (always YYYY-MM-DD in files; the date words only work on the command line). ```bash theme={null} ht jobs template > tomorrow.csv ht jobs import --file tomorrow.csv --dry-run ht jobs import --file tomorrow.csv --continue-on-error --output json > import-report.json ``` The import exits 7 when some rows failed; `import-report.json` lists them under `errors`. Then put each assigned person's day in order: ```bash theme={null} ht --output csv --fields assigneeUsername jobs list --date tomorrow --all | tail -n +2 | sort -u > assignees.txt while read -r member; do ht routing optimize --account "$member" --date tomorrow --solve done < assignees.txt ``` `--solve` honors working hours, time windows, skills, and capacity, and reports jobs it couldn't fit. ## Customer Sites Into Places ```bash theme={null} ht places template > customers.csv ht places sync --file customers.ndjson --upsert-by name --dry-run ht places sync --file customers.ndjson --upsert-by name --continue-on-error ``` Place records can include address, contact fields, radius, teams, location, and `extendedData`. ## Workforce Synchronization ```bash theme={null} ht members template > workforce.csv ht members sync --file workforce.yaml --upsert-by username --dry-run ht members sync --file workforce.yaml --upsert-by username ``` Member records can include role, contact data, teams, vehicle capacity, travel mode, route start/end, and working-hours JSON. ## Daily Route Optimization ```bash theme={null} ht jobs export --date today --output table --fields id,title,assigneeUsername,progress ht routing optimize --account worker-uid --date today --solve --output json ``` ## Webhook-Driven Reporting ```bash theme={null} ht webhooks list ht webhooks set --event job_updated --url https://example.com/hellotracks/job-updated --header "Authorization=Bearer $WEBHOOK_TOKEN" ht jobs export --updated-since 2026-05-20T00:00:00Z --output ndjson ``` ## Form Template And Submission Automation ```bash theme={null} ht forms templates template --format yaml > safety-check.yaml ht forms templates validate --file safety-check.yaml ht forms templates create --file safety-check.yaml ht forms links attach "Safety check" --job job-123 ht forms submissions template "Safety check" --format yaml > answers.yaml ht forms submissions submit "Safety check" --values answers.yaml --member alice --job job-123 ht forms submissions export --template "Safety check" --from today --until today --output csv ``` Use `ht forms attachments upload --file proof.png --field proof_photo` for file/image/signature values. Use `ht forms report --from ... --until ... --format xlsx --file submissions.xlsx` when the output should be an official report file. ## Alert Rule Automation ```bash theme={null} ht alerts actions ht alerts zones ht alerts configs template no-check-out --format yaml > missing-checkout-alert.yaml ht alerts configs validate --file missing-checkout-alert.yaml ht alerts configs create --file missing-checkout-alert.yaml ht alerts recent --limit 20 ht alerts instances export --from 2026-05-01 --until 2026-05-28 --output csv ht alerts report --from 2026-05-01 --until 2026-05-28 --format xlsx --file alerts.xlsx ``` Edit generated config templates before creating them so placeholder member, place, or zone ids resolve in your company. Use templates for repeatable rules like missing check-outs, idle members, battery-low warnings, and zone entry alerts. Keep alert-triggered webhook delivery in `ht webhooks`; alerts commands only manage rules and triggered events. ## API Key Rotation ```bash theme={null} ht apikeys create --label ci-rotation --source github-actions ht apikeys list ht apikeys revoke old-key-id --yes ``` Prefer `HELLOTRACKS_API_KEY_FILE` or `--api-key-stdin` in CI so secrets do not appear in shell history. # Build with Hellotracks Source: https://api-docs.hellotracks.com/introduction Three ways to connect to Hellotracks: the JSON API, the REST API and the ht command line. Hellotracks has three ways in. They reach the same company data: jobs, routes, people, places, timesheets, forms and reports. Pick the one that fits how you work. All three use the same API key, from **More → API & Integrations** in the [dashboard](https://live.hellotracks.com). > [card] [JSON API](/api-reference/overview) > > Build an integration in code, with one JSON request per action. > [card] [REST API](/v1/overview) > > Build tools and automations on plain REST resources. > [card] [CLI](/cli/overview) > > Work from a terminal or let an AI agent run things. One install line. ## The same task three ways List today's jobs for every worker. ```bash JSON API theme={null} curl -X POST https://api.hellotracks.com/api/getjobs \ --header 'API-Key: YOUR_KEY_ID.YOUR_SECRET' \ --header 'Content-Type: application/json' \ -d '{ "data": { "worker": "*" } }' ``` ```bash REST API theme={null} curl "https://api.hellotracks.com/v1/jobs?date=2026-11-02" \ --header 'API-Key: YOUR_KEY_ID.YOUR_SECRET' ``` ```bash CLI theme={null} ht jobs list --date today ``` ## Which one fits | | Good for | Looks like | | - | - | - | | **JSON API** | Integrations written by developers | `POST /api/getjobs` with a JSON body | | **REST API** | Tools, automations and services over HTTP | `GET /v1/jobs` | | **CLI** | Terminals, scripts, CI and AI agents | `ht jobs list` | Each has things the others don't yet: the JSON API has dispatch, live locations and GPS tracks; the REST API and the CLI have timesheets, forms, alerts, ETA pages and maps; the CLI adds bulk import, sync and export. > [!NOTE] > > **AI agents:** read [For AI agents](/agents). In short: use the CLI. If you can only make HTTP requests, use the REST API. ## Help Questions about any of the three: [api@hellotracks.com](mailto:api@hellotracks.com). # No-code connectors Source: https://api-docs.hellotracks.com/v1/no-code-connectors Use the Hellotracks REST API with Zapier, Make, n8n, and other no-code automation tools. Hellotracks no-code connectors use a REST API under `/v1`. This API is designed for automation tools such as Zapier, Make, and n8n. No-code endpoints use REST methods, query strings for filters, and JSON request bodies for create and update actions. ## Base URL ```http theme={null} https://api.hellotracks.com/v1 ``` Use the production base URL above for public Zapier, Make, and n8n workflows. ## Authentication Create an API key in Hellotracks under **More -> API & Integrations**. Send the key in the `API-Key` header. ```bash theme={null} curl "https://api.hellotracks.com/v1/auth/whoami" \ --header "API-Key: YOUR_API_KEY" \ --header "Accept: application/json" ``` All connector requests use JSON and include: ```http theme={null} API-Key: YOUR_API_KEY Accept: application/json Content-Type: application/json ``` ## Response Format List and action responses return a `data` object. Most connector endpoints return an `items` array inside `data`. ```json theme={null} { "data": { "items": [ { "id": "69fdc0f846455e452430b4b5", "externalId": "SRP-4828", "title": "Emergency Exit Lighting Inspection", "progress": "scheduled" } ] } } ``` Connector packages unwrap `data.items` before returning records to Zapier, Make, or n8n. ## Error Format Failed requests return an `error` object. Use `error.code` to handle the failure in code and show `error.message` to people. `meta` echoes the request path and method. ```json theme={null} { "error": { "code": "invalid_api_key", "message": "Invalid Hellotracks API key." }, "meta": { "path": "/v1/jobs", "method": "GET" } } ``` Error codes include `invalid_request`, `invalid_format`, `invalid_data`, `invalid_api_key`, `forbidden`, `not_found`, `already_exists`, `throttled`, `not_ready` and `unknown_error`. Common HTTP statuses: | Status | Meaning | | - | - | | `400` | Invalid request data. | | `401` | Missing or invalid API key. | | `403` | API key does not have access to the requested resource. | | `404` | Unknown route or resource. | | `409` | The record already exists. | | `429` | Rate limit reached. | | `500` | Hellotracks API is temporarily unavailable. | | `503` | Not ready yet; retry later. | ## Authentication Test Use this endpoint to validate that an API key works. ```http theme={null} GET /auth/whoami ``` Example: ```bash theme={null} curl "https://api.hellotracks.com/v1/auth/whoami" \ --header "API-Key: YOUR_API_KEY" ``` ## Jobs ### Watch or list jobs Use `GET /jobs` for polling triggers, job dropdowns, and lookup flows. ```http theme={null} GET /jobs ``` Query parameters: | Parameter | Type | Description | | - | - | - | | `createdSince` | timestamp in milliseconds | Return jobs created since this timestamp. Used by "New Job" polling triggers. | | `updatedSince` | timestamp in milliseconds | Return jobs changed since this timestamp. Used by "Updated Job" and completed-job polling triggers. | | `progress` | string | Optional progress filter, for example `scheduled`, `success`, or `failed`. | | `includeArchived` | boolean | Include archived jobs. Deleted jobs are never returned. Connectors usually send `true` for lookups and polling. | | `limit` | number | Maximum number of jobs to return. Zapier uses `100` for polling and `1` for exact lookup. | | `skip` | number | Offset for pagination. | | `externalId` | string | Find a job by external dedupe ID. | | `assigneeUsername` | string | Filter jobs assigned to a member username. | Examples: ```bash theme={null} curl "https://api.hellotracks.com/v1/jobs?updatedSince=0&includeArchived=true&limit=100" \ --header "API-Key: YOUR_API_KEY" ``` ```bash theme={null} curl "https://api.hellotracks.com/v1/jobs?externalId=SRP-4828&includeArchived=true&limit=1" \ --header "API-Key: YOUR_API_KEY" ``` ### Get a job Use `GET /jobs/{id}` when you already have the Hellotracks job ID. ```http theme={null} GET /jobs/{id} ``` Example: ```bash theme={null} curl "https://api.hellotracks.com/v1/jobs/69fdc0f846455e452430b4b5" \ --header "API-Key: YOUR_API_KEY" ``` ### Create a job Use `POST /jobs` to create a job. If `externalId` matches an existing job, Hellotracks uses it as a stable dedupe key and may update the existing job. ```http theme={null} POST /jobs ``` Request body: ```json theme={null} { "externalId": "SRP-4828", "title": "Emergency Exit Lighting Inspection", "address": "South Road, San Francisco, CA", "notes": "Inspect emergency lighting after reported outage.", "date": "2026-05-10", "assigneeUsername": "worker@example.com", "priority": 7, "contact": { "name": "Olivia Martinez", "phone": "+14155556789", "email": "olivia@example.com" }, "timeWindow": { "start": "09:00", "end": "17:00" } } ``` Supported connector fields: | Field | Type | Description | | - | - | - | | `externalId` | string | Stable ID from the source app. Use this for dedupe and later lookups. | | `title` | string | Job title. Required by the public connectors when creating a job. | | `address` | string | Human-readable job address. Preferred for no-code connectors. | | `notes` | string | Job notes or instructions. | | `date` | string | Job date in `YYYY-MM-DD` format. | | `assigneeUsername` | string | Hellotracks member username, often the member email or login name. | | `priority` | integer | Optional priority from `0` to `10`. | | `contact.name` | string | Contact name. | | `contact.phone` | string | Contact phone. | | `contact.email` | string | Contact email. | | `timeWindow.start` | string | Start time in `HH:mm` format. | | `timeWindow.end` | string | End time in `HH:mm` format. | | `placeId` | string | Optional advanced field for existing Hellotracks places. Prefer `address` in no-code workflows unless you already have a valid place ID. | ### Update a job Use `PATCH /jobs` to update an existing job. Send the Hellotracks job `id` in the JSON body and include only the fields you want to change. ```http theme={null} PATCH /jobs ``` Request body: ```json theme={null} { "id": "69fdc0f846455e452430b4b5", "title": "Emergency Exit Lighting Inspection - Updated", "notes": "Bring a replacement battery pack.", "assigneeUsername": "worker@example.com" } ``` ### Archive a job Use archive when the job should no longer appear in active schedules but should remain recoverable in Hellotracks. ```http theme={null} POST /jobs/{id}/archive ``` Example: ```bash theme={null} curl -X POST "https://api.hellotracks.com/v1/jobs/69fdc0f846455e452430b4b5/archive" \ --header "API-Key: YOUR_API_KEY" ``` ### Delete a job Use delete only for disposable or intentionally removed jobs. ```http theme={null} DELETE /jobs/{id} ``` Example: ```bash theme={null} curl -X DELETE "https://api.hellotracks.com/v1/jobs/69fdc0f846455e452430b4b5" \ --header "API-Key: YOUR_API_KEY" ``` ## Job Object Connector responses include stable job fields. ```json theme={null} { "id": "69fdc0f846455e452430b4b5", "externalId": "SRP-4828", "title": "Emergency Exit Lighting Inspection", "address": "South Road, San Francisco, CA", "date": "2026-05-10", "progress": "scheduled", "createdAt": 1777540000000, "updatedAt": 1777540060000, "assignee": { "id": "ce2fg4", "username": "worker@example.com", "email": "worker@example.com", "name": "Worker Name" }, "contact": { "name": "Olivia Martinez", "phone": "+14155556789", "email": "olivia@example.com" } } ``` ## Members Use members for assignment lookups, dropdowns, and exact-match searches. ```http theme={null} GET /members ``` Query parameters: | Parameter | Type | Description | | - | - | - | | `query` | string | Search text. Can be an email, username, name, or UID. | | `max` | number | Maximum number of members to return. Connectors use `50`. | Example: ```bash theme={null} curl "https://api.hellotracks.com/v1/members?query=worker%40example.com&max=50" \ --header "API-Key: YOUR_API_KEY" ``` Member response fields: | Field | Type | Description | | - | - | - | | `id` | string | Hellotracks member UID. | | `username` | string | Member username. | | `email` | string | Member email address. | | `name` | string | Member display name. | ## Connector Behavior Zapier, Make, and n8n use the same production `/v1` contract: | Connector capability | API request | | - | - | | Validate connection | `GET /auth/whoami` | | New Job trigger | `GET /jobs?createdSince=...&includeArchived=true&limit=100` | | Updated Job trigger | `GET /jobs?updatedSince=...&includeArchived=true&limit=100` | | Completed Job trigger | `GET /jobs?updatedSince=...&includeArchived=true&limit=100`, filtered to `progress: "success"` | | Create Job action | `POST /jobs` | | Update Job action | `PATCH /jobs` with `id` in the JSON body | | Archive Job action | `POST /jobs/{id}/archive` | | Delete Job action | `DELETE /jobs/{id}` | | Find Job search | `GET /jobs?externalId=...&includeArchived=true&limit=1` | | Find Member search | `GET /members?query=...&max=50` | # REST API overview Source: https://api-docs.hellotracks.com/v1/overview Plain REST resources over HTTPS, for tools, automations and services. The REST API lives at `https://api.hellotracks.com/v1`. It uses ordinary HTTP methods on resources, query strings for filters and JSON bodies for changes, which makes it the natural base for tools and automations. Our own [`ht` command line](/cli/overview) and our Zapier, Make and n8n apps are built on it. > [!NOTE] > > Writing an integration in code? See the [JSON API](/api-reference/overview). Working from a terminal or with an AI agent? The [CLI](/cli/overview) wraps this REST API in one command per task. ## Authentication Send your API key, from **More → API & Integrations** in the dashboard, in the `API-Key` header: ```bash theme={null} curl "https://api.hellotracks.com/v1/auth/whoami" \ --header "API-Key: YOUR_KEY_ID.YOUR_SECRET" ``` ## Requests and responses ```bash theme={null} curl "https://api.hellotracks.com/v1/jobs?date=2026-11-02&limit=50" \ --header "API-Key: YOUR_KEY_ID.YOUR_SECRET" ``` ```json theme={null} { "data": { "items": [ { "id": "650000000000000000000001", "title": "Boiler service", "progress": "scheduled" } ], "totalCount": 1, "hasMore": false }, "error": null, "meta": { "path": "/jobs", "method": "GET" } } ``` Failed requests answer with an HTTP error status, `data: null` and an `error` with a `code` for your program and a `message` for people: ```json theme={null} { "data": null, "error": { "code": "invalid_api_key", "message": "Invalid Hellotracks API key." }, "meta": { "path": "/jobs", "method": "GET" } } ``` ## Resources Every route has its own page with parameters, request and response examples. | Resource | What it covers | | - | - | | [Sign-up and sign-in](/v1/reference/sign-up-and-sign-in/create-signup) | Create a company or get an API key by an emailed code, without a key; and check which account a key belongs to | | [Company](/v1/reference/company/get-company) | The company the API key belongs to, with its settings and teams | | [Members](/v1/reference/members/list-members) | The people in the company: admins, operators and workers | | [API keys](/v1/reference/api-keys/list-api-keys) | The company's API keys: list, create, revoke and delete | | [Jobs](/v1/reference/jobs/list-jobs) | Jobs: work at a location on a date, assigned to a member | | [Places](/v1/reference/places/list-places) | Places: customer sites and other saved locations with a check-in radius | | [Zones](/v1/reference/zones/list-zones) | Zones: the company's geofences | | [Routing](/v1/reference/routing/optimize-route) | Route optimization for one member's day | | [ETA pages](/v1/reference/eta-pages/list-eta-sessions) | Live ETA pages (eta.page links) that show a job's recipient when the worker arrives | | [Maps](/v1/reference/maps/list-map-layers) | Rendered maps as GeoJSON, and public map share links | | [Timesheets](/v1/reference/timesheets/list-timesheets) | Clock-in and clock-out entries of members, with totals, and editing them | | [Forms](/v1/reference/forms/list-form-templates) | Form templates, submitted forms, attachments for file and image fields, and forms linked to places and jobs | | [Alerts](/v1/reference/alerts/list-alert-actions) | Alert rules (configs) that watch members, places and zones, and the alerts (instances) they raised | | [Reports](/v1/reference/reports/list-report-catalog) | Reports: the newer reporting API (catalog, preview, run, saved) and the older one (types, generate, jobs, uploads, recurring) | | [Webhooks](/v1/reference/webhooks/list-webhooks) | URLs Hellotracks calls when jobs, check-ins, clock-ins or alerts happen | See [No-code connectors](/v1/no-code-connectors) for what our Zapier, Make and n8n apps send. # Create an alert rule Source: https://api-docs.hellotracks.com/v1/reference/alerts/create-alert-config v1/openapi.json POST /alerts/configs Creates an alert rule. title and action are required; zone actions need zoneIds; an active rule must select at least one company member through memberIds or teamIds. A rule with an andAction becomes type dynamic. When the rule is active and watches zones, the members' phones are told to refresh their geofences. Answers 200 (not 201). Admins, operators and the company key may call it; workers get 403. # Delete an alert rule Source: https://api-docs.hellotracks.com/v1/reference/alerts/delete-alert-config v1/openapi.json DELETE /alerts/configs/{id} Marks the rule deleted (status 2); it stays readable by id and with status=deleted. An unknown or foreign id is answered with 400 invalid_request. Admins, operators and the company key may call it; workers get 403. # Delete an alert Source: https://api-docs.hellotracks.com/v1/reference/alerts/delete-alert-instance v1/openapi.json DELETE /alerts/instances/{id} Marks the alert deleted (status 3). An unknown or foreign id is answered with 400 invalid_request. Admins, operators and the company key may call it; workers get 403. # Get an alert rule Source: https://api-docs.hellotracks.com/v1/reference/alerts/get-alert-config v1/openapi.json GET /alerts/configs/{id} Returns one alert rule of the company, deleted ones included. An unknown or foreign id is answered with 400 invalid_request. Admins, operators and the company key may call it; workers get 403. # Get an alert Source: https://api-docs.hellotracks.com/v1/reference/alerts/get-alert-instance v1/openapi.json GET /alerts/instances/{id} Returns one alert of the company. An unknown or foreign id is answered with 400 invalid_request. Admins, operators and the company key may call it; workers get 403. # List alert actions Source: https://api-docs.hellotracks.com/v1/reference/alerts/list-alert-actions v1/openapi.json GET /alerts/actions Lists every trigger an alert rule can use, with what each one needs (place, duration, zone) and whether it takes a second condition. Admins, operators and the company key may call it; workers get 403. # List alert rules Source: https://api-docs.hellotracks.com/v1/reference/alerts/list-alert-configs v1/openapi.json GET /alerts/configs Lists the company's alert rules. Without status only active rules are returned; all = active and paused (not deleted). Admins, operators and the company key may call it; workers get 403. # List alerts Source: https://api-docs.hellotracks.com/v1/reference/alerts/list-alert-instances v1/openapi.json GET /alerts/instances Lists alerts the company's rules raised, newest first. Only the newest 200 alerts of the company are looked at, then filtered, so older alerts cannot be reached with from/until. Without status, new, acknowledged and archived alerts are returned (not deleted). Admins, operators and the company key may call it; workers get 403. # Update an alert rule Source: https://api-docs.hellotracks.com/v1/reference/alerts/update-alert-config v1/openapi.json PATCH /alerts/configs/{id} Changes the fields sent; the whole rule is checked again afterwards (title, zones, members, time window). Fields the action does not use are cleared. Geofences are refreshed on the phones when the rule watched or now watches zones. An unknown or foreign id is answered with 400 invalid_request. Admins, operators and the company key may call it; workers get 403. # Update an alert Source: https://api-docs.hellotracks.com/v1/reference/alerts/update-alert-instance v1/openapi.json PATCH /alerts/instances/{id} Changes the status of an alert, e.g. to acknowledge it. Only status may be sent. An unknown or foreign id is answered with 400 invalid_request. Admins, operators and the company key may call it; workers get 403. # Create an API key Source: https://api-docs.hellotracks.com/v1/reference/api-keys/create-api-key v1/openapi.json POST /apikeys Creates a new key for the company. The full key is in plainTextKey and is shown only this once. Without expiresAt the key never expires. Admins and company keys only; operators and workers get 403. # Delete an API key Source: https://api-docs.hellotracks.com/v1/reference/api-keys/delete-api-key v1/openapi.json DELETE /apikeys/{id} Deletes a key for good. The legacy key can't be deleted, only revoked (403). A key id not of this company answers 403. Admins and company keys only; operators and workers get 403. # List API keys Source: https://api-docs.hellotracks.com/v1/reference/api-keys/list-api-keys v1/openapi.json GET /apikeys Lists the company's API keys, the legacy key first. Secrets are never returned. Admins and company keys only; operators and workers get 403. # Revoke an API key Source: https://api-docs.hellotracks.com/v1/reference/api-keys/revoke-api-key v1/openapi.json POST /apikeys/{id}/revoke Switches a key off; it stays in the list as inactive. "legacy" switches the legacy key off. A key id not of this company answers 403. Admins and company keys only; operators and workers get 403. # Get the company Source: https://api-docs.hellotracks.com/v1/reference/company/get-company v1/openapi.json GET /company Returns the key's company: contact details, address, location, settings and teams. Any member of the company may call it. # Change the company Source: https://api-docs.hellotracks.com/v1/reference/company/update-company v1/openapi.json PATCH /company Changes the company's name, contact details and settings. Only the fields sent change. Settings are sent flat at the top level, under the same names GET returns inside `settings`. Allowed for admins and company keys; operators and workers get 403, as for API keys and webhooks. Apps are told about the new settings. # Create an ETA session Source: https://api-docs.hellotracks.com/v1/reference/eta-pages/create-eta-session v1/openapi.json POST /eta/sessions Creates a live ETA page (https://eta.page/...) for a job's recipient. If the job already has an active session (not revoked, not expired), that one is returned as it is and the body is ignored. Recipient fields default to the job's contact. Expiry defaults to 30 days, at most 90 days. Status 200, not 201. Workers are refused with 403 (code permission_denied); an unknown job gives 400. # Get an ETA session Source: https://api-docs.hellotracks.com/v1/reference/eta-pages/get-eta-session v1/openapi.json GET /eta/sessions/{id} Returns the session with its status recalculated. Workers are refused with 403 (code permission_denied). An unknown session id gives 400 (invalid_request). # List ETA session events Source: https://api-docs.hellotracks.com/v1/reference/eta-pages/list-eta-session-events v1/openapi.json GET /eta/sessions/{id}/events The session's history, newest first: creation, changes, status changes and what the recipient did. Workers are refused with 403 (code permission_denied). An unknown session id gives 400 (invalid_request). # List ETA sessions Source: https://api-docs.hellotracks.com/v1/reference/eta-pages/list-eta-sessions v1/openapi.json GET /eta/sessions Lists the company's ETA sessions, newest first, revoked ones included; expired ones are removed from time to time. Each session's status is recalculated on read. Workers are refused with 403 (code permission_denied). # Refresh an ETA session Source: https://api-docs.hellotracks.com/v1/reference/eta-pages/refresh-eta-session v1/openapi.json POST /eta/sessions/{id}/refresh Recalculates the session's status and ETA window from the job, the assignee's trip and location, and records an eta_recalculated event. No body. Workers are refused with 403 (code permission_denied). An unknown session id gives 400 (invalid_request). # Revoke an ETA session Source: https://api-docs.hellotracks.com/v1/reference/eta-pages/revoke-eta-session v1/openapi.json DELETE /eta/sessions/{id} Revokes the session: the eta.page link stops working. The session stays in the list with revoked=true. Workers are refused with 403 (code permission_denied). An unknown session id gives 400 (invalid_request). # Update an ETA session Source: https://api-docs.hellotracks.com/v1/reference/eta-pages/update-eta-session v1/openapi.json PATCH /eta/sessions/{id} Changes the fields sent. A new expiresIn counts from now (at most 90 days). Changing showWorkerName or showMap records a visibility_changed event. Workers are refused with 403 (code permission_denied). An unknown session id gives 400 (invalid_request). # Submit a form Source: https://api-docs.hellotracks.com/v1/reference/forms/create-form-submission v1/openapi.json POST /forms/submissions Submits a filled-in form for a template. Required fields (also in follow-ups that are shown) and sections' minAnswers are checked. With jobId the submission is added to the job's submitted forms. The form-submitted notification is sent as when a phone submits. Workers may call it for templates they can see and only as themselves. Answers 200. # Create a form template Source: https://api-docs.hellotracks.com/v1/reference/forms/create-form-template v1/openapi.json POST /forms/templates Creates a form template. Field names must be unique; radio and dropdown need options. Answers 200 with the template and the updated list. Admins, operators and the company key only; workers get 403 permission_denied. # Delete a form template Source: https://api-docs.hellotracks.com/v1/reference/forms/delete-form-template v1/openapi.json DELETE /forms/templates/{id} Marks the template deleted; its submissions stay. An unknown, foreign or deleted id is answered with 400 invalid_request. Admins, operators and the company key only; workers get 403 permission_denied. # Get a form submission Source: https://api-docs.hellotracks.com/v1/reference/forms/get-form-submission v1/openapi.json GET /forms/submissions/{id} Returns one submitted form with its answers. An unknown or foreign id is answered with 400 invalid_request. Admins, operators and the company key only; workers get 403 permission_denied. # Get a form template Source: https://api-docs.hellotracks.com/v1/reference/forms/get-form-template v1/openapi.json GET /forms/templates/{id} Returns one form template. Workers may call it for templates they can see (403 otherwise). An unknown, foreign or deleted id is answered with 400 invalid_request. # Link a form Source: https://api-docs.hellotracks.com/v1/reference/forms/link-form v1/openapi.json POST /forms/links Links a form template to a place or job. Linking one that is already linked changes nothing. Answers 200 with the links. Admins, operators and the company key only; workers get 403 permission_denied. # List linked forms Source: https://api-docs.hellotracks.com/v1/reference/forms/list-form-links v1/openapi.json GET /forms/links Lists the form templates linked to a place or a job (shown to workers there). Admins, operators and the company key only; workers get 403 permission_denied. # List form submissions Source: https://api-docs.hellotracks.com/v1/reference/forms/list-form-submissions v1/openapi.json GET /forms/submissions Lists submitted forms, newest first. limit is applied before the templateId, jobId and placeId filters, so fewer items than limit may come back even when more match. Admins, operators and the company key only; workers get 403 permission_denied. # List form templates Source: https://api-docs.hellotracks.com/v1/reference/forms/list-form-templates v1/openapi.json GET /forms/templates Lists the company's form templates (active and archived). Workers may call it and see only templates linked to places of their teams. # Unlink a form Source: https://api-docs.hellotracks.com/v1/reference/forms/unlink-form v1/openapi.json DELETE /forms/links Removes a form template from a place or job. All three values go in the query. detached is false when it was not linked. Admins, operators and the company key only; workers get 403 permission_denied. # Update a form template Source: https://api-docs.hellotracks.com/v1/reference/forms/update-form-template v1/openapi.json PATCH /forms/templates/{id} Changes the template's fields (content), title, description or status. Sending content replaces all fields. An unknown, foreign or deleted id is answered with 400 invalid_request. Admins, operators and the company key only; workers get 403 permission_denied. # Upload a form attachment Source: https://api-docs.hellotracks.com/v1/reference/forms/upload-form-attachment v1/openapi.json POST /forms/attachments Stores a file for a file, image or signature field and returns value, a JSON text to put as that field's value in POST /forms/submissions. Send multipart/form-data. There is no size or type check in the route; the stored content type follows the file name's extension (unknown = image/jpeg). Admins, operators and the company key only; workers get 403 permission_denied. # Archive a job Source: https://api-docs.hellotracks.com/v1/reference/jobs/archive-job v1/openapi.json POST /jobs/{id}/archive Archives the job: it leaves the lists unless includeArchived=true and can be restored. Returns the job in `items`. An unknown or deleted id gives an empty list: a deleted job stays deleted, and restore is the way back. # Create jobs Source: https://api-docs.hellotracks.com/v1/reference/jobs/create-jobs v1/openapi.json POST /jobs Creates one job (the job object as the body) or several (`{"jobs": [...]}`). A job whose externalId matches an existing job of the company is updated with the fields sent instead of creating a duplicate (upsert), and is set back to normal if it was archived. A job that was deleted in Hellotracks stays deleted: it is not changed, and the answer lists it with `status: "deleted"`. The answer lists one job per job sent, in the same order. Jobs without a location get the location of their place, else their address is geocoded in the background, so the response can still show location 0/0. Jobs that are assigned and dated drop the worker's saved route for that day, workers get the updated jobs, and the company's job webhooks fire. Unknown fields are refused with 400. # Delete a job Source: https://api-docs.hellotracks.com/v1/reference/jobs/delete-job v1/openapi.json DELETE /jobs/{id} Deletes the job; it no longer appears in any list. Workers are refused; dispatchers only when the company allows dispatchers to delete jobs. Returns the deleted job in `items`; an unknown id gives an empty list. # Get a job Source: https://api-docs.hellotracks.com/v1/reference/jobs/get-job v1/openapi.json GET /jobs/{id} Returns the job in `items` (one element), archived ones included. A deleted or unknown job answers 404 (`not_found`, "Job not found"). # List jobs Source: https://api-docs.hellotracks.com/v1/reference/jobs/list-jobs v1/openapi.json GET /jobs Lists the company's jobs. Two modes: - **Day list** (none of limit, skip, createdSince, updatedSince, progress): the jobs of one day, `date` or today in the caller's time zone, ordered by route position, at most 5,000. Archived jobs only with includeArchived=true. - **Paged list** (any of limit, skip, createdSince, updatedSince, progress): all dates unless `date` is given, newest first (by last save, or by creation with createdSince), `limit` default 100, with totalCount and hasMore. Archived jobs are left out unless includeArchived=true. Deleted jobs never come back. Looking up by `id` or `externalId` returns the job whatever its archive status and ignores date and assignee; no match gives an empty list. Workers without the company setting workersViewJobCalendar may only list today (give or take four hours); other dates give 403. # Restore a job Source: https://api-docs.hellotracks.com/v1/reference/jobs/restore-job v1/openapi.json POST /jobs/{id}/restore Sets an archived job back to normal. Returns the job in `items`; an unknown id gives an empty list. # Update a job Source: https://api-docs.hellotracks.com/v1/reference/jobs/update-job v1/openapi.json PATCH /jobs/{id} Updates the job; only the fields sent change. Always notifies the assigned worker and sends route changes; a changed address (without a location) is re-geocoded in the background. An unknown id gives an empty `items` list. Workers may only change today's jobs unless the company allows workersEditJob. # Update jobs Source: https://api-docs.hellotracks.com/v1/reference/jobs/update-jobs v1/openapi.json PATCH /jobs Updates one job (the job fields plus its `id` in the body) or several (`{"jobs": {"": {...}}}`). Only the fields sent change. Always notifies the assigned worker and sends route changes. When the address changes (and no location is sent) the job is re-geocoded in the background. Unknown job ids are skipped and not in the response. Workers may only change today's jobs unless the company allows workersEditJob; their other jobs are skipped, and changing the date without that setting gives 403. # Create a map share Source: https://api-docs.hellotracks.com/v1/reference/maps/create-map-share v1/openapi.json POST /maps/shares Renders the map like POST /maps/render, stores the result as a snapshot and returns a public link that needs no API key. The link lives 7 days by default, at most 30 days. A snapshot over 8 MB is refused with 413 (code too_large_for_share). Status 200, not 201. Workers are refused with 403 (code permission_denied). # Get a map share Source: https://api-docs.hellotracks.com/v1/reference/maps/get-map-share v1/openapi.json GET /maps/shares/{token} Returns the share's details without its GeoJSON (the public apiUrl has the snapshot). Revoked and expired shares are returned with revoked/expired set. An unknown token gives 400 (invalid_request). Workers are refused with 403 (code permission_denied). # List map layers Source: https://api-docs.hellotracks.com/v1/reference/maps/list-map-layers v1/openapi.json GET /maps/layers The layer kinds POST /maps/render and POST /maps/shares accept, with what each needs. Workers are refused with 403 (code permission_denied). # List map shares Source: https://api-docs.hellotracks.com/v1/reference/maps/list-map-shares v1/openapi.json GET /maps/shares The company's map shares, newest first, revoked ones included; expired ones are removed from time to time. Workers are refused with 403 (code permission_denied). # Render a map Source: https://api-docs.hellotracks.com/v1/reference/maps/render-map v1/openapi.json POST /maps/render Renders one or more layers as GeoJSON without saving anything. Kinds: places, members, jobs (today's job destinations), zones, trips, waypoints, dayroute, timeline, heatmap, isochrone. Unknown fields or kinds give 400. Workers are refused with 403 (code permission_denied). # Revoke a map share Source: https://api-docs.hellotracks.com/v1/reference/maps/revoke-map-share v1/openapi.json DELETE /maps/shares/{token} Revokes the share; its public link then answers 410. An unknown token gives 400 (invalid_request). Workers are refused with 403 (code permission_denied). # Add a member Source: https://api-docs.hellotracks.com/v1/reference/members/create-member v1/openapi.json POST /members Adds a person to the company and sends them an invitation by email (and by text message when a phone number is given). username and name are required. All other fields are applied too. Adding a username that belongs to a removed member of the same company brings that member back. Workers can't add members; only admins and company keys may add admins. A company that isn't paying yet can have at most 300 members (403). A taken username answers 409. # Remove a member Source: https://api-docs.hellotracks.com/v1/reference/members/delete-member v1/openapi.json DELETE /members/{id} Removes the member from the company; any group admin roles they held are handed on. Allowed for admins, operators and company keys. An unknown id, the company itself or a member the key may not change answers 403. # Get a member Source: https://api-docs.hellotracks.com/v1/reference/members/get-member v1/openapi.json GET /members/{id} Returns one member in a list of one. An unknown id, or a member the key may not see, answers 404 (`not_found`, "Member not found"). Removed members of the company are returned, with activeStatus. # List members Source: https://api-docs.hellotracks.com/v1/reference/members/list-members v1/openapi.json GET /members Lists the company's active members the key may see: admins and company keys see everyone; operators and workers see what the company's visibility settings allow (for example only their own team). The caller is always included. Removed members appear only when asked for by id. No paging: query and max filter the full list. # Change a member Source: https://api-docs.hellotracks.com/v1/reference/members/update-member v1/openapi.json PATCH /members/{id} Changes only the fields sent. Admins, operators and company keys may change members of their company; a worker only themself. username renames the member (company admins and company keys only; 403 otherwise; the same name is no change; a taken name answers 400); the old name keeps working as an alias. role changes only by admins or company keys, never one's own. Workers may change their own working hours only when the company allows it (workersEditWorkingHours). A field that can't be applied answers 400 (`invalid_data`) with a message naming it, for example "working_hours was not changed: …"; a refused role or working-hours change answers 403. Fields before it may already be saved. `password` is refused with 400: people set their password at live.hellotracks.com with "Forgot password?". The member's apps get the change. # Create a place Source: https://api-docs.hellotracks.com/v1/reference/places/create-place v1/openapi.json POST /places Creates a place for the company. Workers only when the company allows workersCreatePlaces. Without teams the place goes to the creator's teams; without a location the address is geocoded in the background. Visits of the last 30 days that match the new place are labeled with it. # Delete a place Source: https://api-docs.hellotracks.com/v1/reference/places/delete-place v1/openapi.json DELETE /places/{id} Deletes one place of the caller's company. Workers are refused. An unknown id, or one that is not a place of the company, gives 403 with the message 'place not found'. # Get a place Source: https://api-docs.hellotracks.com/v1/reference/places/get-place v1/openapi.json GET /places/{id} Returns the place in `items` (one element). An unknown place, or one the caller cannot see, answers 404 (`not_found`, "Place not found"). # List places Source: https://api-docs.hellotracks.com/v1/reference/places/list-places v1/openapi.json GET /places Lists the places the caller can see. Workers without the company setting workersViewPlaces only see places of their own teams. # Update a place Source: https://api-docs.hellotracks.com/v1/reference/places/update-place v1/openapi.json PATCH /places/{id} Changes the fields sent. extendedData is merged: names sent are set, names sent as null are removed, the others stay. Admins, dispatchers and the company may edit; workers only places they can see when the company allows workersCreatePlaces (403 otherwise). # Create a recurring report Source: https://api-docs.hellotracks.com/v1/reference/reports/create-recurring-report v1/openapi.json POST /reports/recurring Creates an older recurring report that is e-mailed to notifyMemberIds on the chosen weekdays. Answers 200 with the new report and the whole list. This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # Save a report Source: https://api-docs.hellotracks.com/v1/reference/reports/create-saved-report v1/openapi.json POST /reports/saved Saves a report request with formats, an optional schedule and recipients. A scheduled report needs at least one recipient; when its request has no period it gets the schedule's default (day: yesterday, week: lastWeek, month: lastMonth). Scheduled reports are sent by e-mail to the recipients (attached, as a link, or to the inbox). Answers 201. Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # Delete a recurring report Source: https://api-docs.hellotracks.com/v1/reference/reports/delete-recurring-report v1/openapi.json DELETE /reports/recurring/{id} Marks the recurring report deleted (status 2). An unknown, foreign or deleted id is answered with 400 invalid_request. This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # Delete a saved report Source: https://api-docs.hellotracks.com/v1/reference/reports/delete-saved-report v1/openapi.json DELETE /reports/saved/{id} Marks the saved report deleted and stops its schedule. An unknown or foreign id is answered with 403 permission_denied. Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # Generate an older report Source: https://api-docs.hellotracks.com/v1/reference/reports/generate-report v1/openapi.json POST /reports/generate Makes an older report. By default the file itself is the answer (200, not the JSON envelope), with headers X-HT-Report-ID, X-HT-Report-Link, X-HT-Report-Type and X-HT-Report-Format, and a copy is stored (GET /reports/uploads). With async true a report job is queued instead and the answer is 202 with the job (follow it with GET /reports/jobs/{id}). Errors use the JSON envelope; a failure while making the file is 500 report_generation_failed. This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # Get a report job Source: https://api-docs.hellotracks.com/v1/reference/reports/get-report-job v1/openapi.json GET /reports/jobs/{id} Returns one older report job with its status and, when completed, its result link. An unknown or foreign id is answered with 403 permission_denied. This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # Get a report run Source: https://api-docs.hellotracks.com/v1/reference/reports/get-report-run v1/openapi.json GET /reports/run/{id} Returns a run's status and, when done, its files with signed download links (valid 30 days). An unknown or foreign id is answered with 403 permission_denied. Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # List recurring reports Source: https://api-docs.hellotracks.com/v1/reference/reports/list-recurring-reports v1/openapi.json GET /reports/recurring Lists the company's older recurring reports (not deleted). This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # List newer reports Source: https://api-docs.hellotracks.com/v1/reference/reports/list-report-catalog v1/openapi.json GET /reports/catalog Lists the newer reports the company's plan includes, with their views, formats, periods, limits and filters, in the company's language. Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # List open report jobs Source: https://api-docs.hellotracks.com/v1/reference/reports/list-report-jobs v1/openapi.json GET /reports/jobs Lists the company's older report jobs that are still queued or processing (newest first, at most 500). Finished jobs are not listed; read them by id. This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # List older report types Source: https://api-docs.hellotracks.com/v1/reference/reports/list-report-types v1/openapi.json GET /reports/types Lists the older report types with their formats, date limits, columns and options. This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # List report files Source: https://api-docs.hellotracks.com/v1/reference/reports/list-report-uploads v1/openapi.json GET /reports/uploads Lists report files stored for the company by the older reports (dashboard downloads, API, schedules). This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # List saved reports Source: https://api-docs.hellotracks.com/v1/reference/reports/list-saved-reports v1/openapi.json GET /reports/saved Lists the company's saved reports (not deleted) and, separately and read-only, its older recurring reports (classic). Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # Preview a report Source: https://api-docs.hellotracks.com/v1/reference/reports/preview-report v1/openapi.json POST /reports/preview Builds a report right away and returns its model (tables limited to 50 rows) and its first page as HTML; with format csv the HTML is the CSV table. team-week and mileage read only the first 40 people (and 400 places) in a preview; the model says when it was sampled. The body is a ReportRequest, either directly or wrapped as {"request": {...}}. Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # Start a report run Source: https://api-docs.hellotracks.com/v1/reference/reports/run-report v1/openapi.json POST /reports/run Checks the request and starts making the report in the background in up to 3 formats. Answers 202 with the queued run; follow it with GET /reports/run/{id} until status is done (files with signed links) or failed. The body is {request, formats}, or the ReportRequest fields directly. Without formats, request.format or the report's default format is used. Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # Send a saved report now Source: https://api-docs.hellotracks.com/v1/reference/reports/send-saved-report v1/openapi.json POST /reports/saved/{id}/send Runs a saved report now and delivers it to its recipients like a scheduled send. Answers 202 with the queued run (source manual). No body. An unknown or foreign id is answered with 403 permission_denied. Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # Update a recurring report Source: https://api-docs.hellotracks.com/v1/reference/reports/update-recurring-report v1/openapi.json PATCH /reports/recurring/{id} Changes the fields sent. An unknown, foreign or deleted id is answered with 400 invalid_request. This is the older reporting API; for new work use the newer routes (GET /reports/catalog, POST /reports/preview, POST /reports/run, /reports/saved). Admins, operators and the company key may call it; workers get 403 permission_denied. # Replace a saved report Source: https://api-docs.hellotracks.com/v1/reference/reports/update-saved-report v1/openapi.json PATCH /reports/saved/{id} Despite the method, this replaces the saved report: send the whole SavedReportInput, request included (400 without it). name, formats, schedule, recipients and delivery fall back to their defaults when left out; status is kept. An unknown or foreign id is answered with 403 permission_denied. Admins, operators and the company key may call it; workers get 403 permission_denied. jobs, form-answers and visit-report need a Dispatch plan (403 on a Location plan). Same {data, error, meta} envelope; errors here use the codes invalid_request (400), permission_denied (403) and internal_error (500). # Optimize a route Source: https://api-docs.hellotracks.com/v1/reference/routing/optimize-route v1/openapi.json POST /routing/optimize Optimizes the order of one member's jobs on one day and saves the route. Allowed for admins, dispatchers and the company; workers only when the company allows workersOptimizeRoute (403 otherwise, also for a member the caller cannot see). With solve=false a worker's route that was optimized in the last 3 hours is returned unchanged. # Start a sign-up Source: https://api-docs.hellotracks.com/v1/reference/sign-up-and-sign-in/create-signup v1/openapi.json POST /signup Starts a new company account for the person signing up and emails them a 6-digit code; finish with POST /signup/verify. Nothing usable is created before the code is checked. A code is 6 digits and lasts 30 minutes; asking again within 15 minutes resends the same code. Each code allows 5 tries, and an account allows 10 wrong codes a day. If the address already has an unfinished sign-up, a new code is sent; any other existing account answers 409. Throwaway inboxes are refused. Without timezone the account uses UTC; an America/* time zone picks US units (miles, 12h, MM-dd-yyyy). Limited to 5 sign-ups per IP address an hour (429). No API key needed. # Show the key's account Source: https://api-docs.hellotracks.com/v1/reference/sign-up-and-sign-in/get-who-am-i v1/openapi.json GET /auth/whoami Returns the account the API key acts as, its company and the key's id. Any valid key may call it. A wrong, expired, revoked or missing key answers 401. # Email a sign-in code Source: https://api-docs.hellotracks.com/v1/reference/sign-up-and-sign-in/request-email-code v1/openapi.json POST /auth/email-code Emails a 6-digit sign-in code to a company admin; finish with POST /auth/email-code/verify. Only admins of a company get a code, and not those who sign in with an authenticator app (TOTP): they make a key in the dashboard instead. The answer is the same whether or not a code was sent. A code is 6 digits and lasts 30 minutes; asking again within 15 minutes resends the same code. Each code allows 5 tries, and an account allows 10 wrong codes a day. Limited to 10 requests per IP address an hour (429). No API key needed. # Sign in with the code Source: https://api-docs.hellotracks.com/v1/reference/sign-up-and-sign-in/verify-email-code v1/openapi.json POST /auth/email-code/verify Checks the emailed code and returns a new API key for the admin's company, valid for 90 days (source ht_cli). The admin gets an email that a key was made. A wrong or expired code answers 400 and says how many tries are left. Limited to 30 code checks per IP address an hour (429). No API key needed. # Finish a sign-up Source: https://api-docs.hellotracks.com/v1/reference/sign-up-and-sign-in/verify-signup v1/openapi.json POST /signup/verify Checks the emailed code, creates the company and returns an API key valid for 90 days (source ht_cli). The company address is geocoded before the code is used, so a wrong address doesn't use up a try. A wrong or expired code answers 400 and says how many tries are left. Limited to 30 code checks per IP address an hour (429). No API key needed. # Add a timesheet entry Source: https://api-docs.hellotracks.com/v1/reference/timesheets/create-timesheet-entry v1/openapi.json POST /timesheets/entries Adds a clock-in, and optionally a clock-out, for a member, as the dashboard does. clockIn or clockInAt is required; the clock-out must be after the clock-in. Admins, operators and the company key may call it; workers get 403. # Delete a timesheet entry Source: https://api-docs.hellotracks.com/v1/reference/timesheets/delete-timesheet-entry v1/openapi.json DELETE /timesheets/entries/{id} Deletes the entry's clock-in and clock-out records for good. An unknown or foreign entry is answered with 400 invalid_request. Admins, operators and the company key may call it; workers get 403. # List timesheet entries Source: https://api-docs.hellotracks.com/v1/reference/timesheets/list-timesheets v1/openapi.json GET /timesheets Lists clock-in/clock-out entries of the company's members for one day (default today) or a from/until range, with totals. Days are in the caller's time zone; an entry belongs to the day it starts. There is no paging and no limit on the range. Admins, operators and the company key may call it; workers get 403. # Change a timesheet entry Source: https://api-docs.hellotracks.com/v1/reference/timesheets/update-timesheet-entry v1/openapi.json PATCH /timesheets/entries/{id} Moves the clock-in and/or clock-out of an entry, or adds the missing clock-out. At least one time field is required. The answer's entry may have a new id. An unknown or foreign entry is answered with 400 invalid_request. Admins, operators and the company key may call it; workers get 403. # List webhooks Source: https://api-docs.hellotracks.com/v1/reference/webhooks/list-webhooks v1/openapi.json GET /webhooks Returns all nine webhooks with their URL and the names of their extra headers; header values are never returned. Admins and company keys only, because webhooks carry the company's secrets in their headers; operators and workers get 403. # Set webhooks Source: https://api-docs.hellotracks.com/v1/reference/webhooks/set-webhooks v1/openapi.json PUT /webhooks Sets the URL and extra headers of the webhooks sent. Only the webhooks and fields sent change. Private, loopback and localhost URLs are refused with 400 (`invalid_data`), and the message says which webhook and why, for example "webhook job_created: not a public host". Admins and company keys only, because webhooks carry the company's secrets in their headers; operators and workers get 403. # List zones Source: https://api-docs.hellotracks.com/v1/reference/zones/list-zones v1/openapi.json GET /zones Lists the company's zones (geofences). Workers are refused with 403 (code permission_denied).