Skip to main content

Create, update and remove Timesheet entries through the API

Read Timesheet Entry Types, create and update entries, and check the limits of the beta removal endpoint.

Written by Logan Bowlby

Overview

Use the Timesheets Public API to read entries and Entry Types, record work time and update selected entry fields. The API also exposes a removal route. Check its identifier handling before you automate deletion.

At a glance

Who can do this

An integration with an API key. Writes require a key that is not Read-only.

Where

/api/customers/timesheets

Works on

Public API

Availability

Public API access is enabled per organization by Mobaro — ask your CSM. The Timesheets API is marked beta and may change.


Before you start

Use HTTPS with the base URL https://app.mobaro.com/api/customers. The examples below use paths under that base URL. Send x-api-key: YOUR_API_KEY on every request. Replace all fictional IDs, dates and key placeholders before use.

Use a Read-only key for reporting. Creation, updates and removal require a key with write access. Create and manage API keys explains setup. An API key acts with Super User access to its organization; it does not inherit its creator’s Role or Location access. Keep it in a secure server-side store. Mobaro API access and limits explains access and limits.

For the complete request and response schemas, open Mobaro API documentation. The images in this article are source-derived examples, not successful live API responses.


Read and create entries

1. Read Entry Types and existing entries

Send GET /api/customers/timesheets/types for Entry Types and GET /api/customers/timesheets for entries. Both use Limit from 1–128, default 128, and Offset from 0. Responses contain offset, amount, total and items.

Entry Types include id, name and isDeleted. Select an active type if you want to classify an entry. Entry records include their full Mobaro ID, external ID, User, Origin, Type, description, start and stop times, their source and isDeleted. Handle deleted records explicitly in your integration.

Entry list parameter

Use

Users / Origins

Filter by full User or Origin IDs.

StartedAfter / StartedBefore

Filter on entry start time, not an overlap with the whole time interval.

UpdatedAfter / UpdatedBefore

Retrieve entries whose update times match the range.

OrderBy

started, stopped or updated; prefix with - for descending order.

The list request schema also declares StoppedAfter and StoppedBefore, but the current list implementation does not apply those filters. Filter stop times in your integration if needed. Date comparisons are strict before/after comparisons; use UTC dates and a reconciliation overlap when collecting incremental changes.

2. Create an entry

Send POST /api/customers/timesheets with JSON. Supply user as a full User ID and started as an ISO 8601 timestamp with a time zone. Optional fields are externalId, description, origin, type and stopped.

POST /api/customers/timesheets
x-api-key: YOUR_WRITE_API_KEY
Content-Type: application/json

{"externalId":"demo-maintenance-001","user":"users/101-A","description":"Cedar Coaster inspection","started":"2027-01-11T08:00:00Z","stopped":"2027-01-11T08:30:00Z"}

Origin, when used, is a full reference to the related Mobaro record, not an arbitrary description. Type is a full Timesheet Entry Type ID. If Stopped is omitted or null, the entry has no stop time. The create response is 200 with an id; store that Mobaro ID for subsequent writes.


Update and verify an entry

3. Update only the intended fields

Use PUT /api/customers/timesheets/{id} with the Mobaro ID suffix, such as 707-A. Send the fields you want to change. Omitted fields keep their values; stopped: null explicitly removes the stop time.

PUT /api/customers/timesheets/707-A
x-api-key: YOUR_WRITE_API_KEY
Content-Type: application/json

{"description":"Inspection and follow-up","stopped":"2027-01-11T08:45:00Z"}

PUT returns 200 without an updated entry. Read it back with GET /api/customers/timesheets/{id} and check the fields. GET can also find an entry by external ID; PUT uses the Mobaro ID. Do not assume an external ID provides upsert or duplicate prevention.

The API sets the source of created start and stop times to API. Changing a time through PUT updates that time’s source. These requests do not approve or reject Timesheet entries. Use Approve and reject Timesheet entries for that workflow.


Remove an entry with verification

4. Check the removal route before automation

The public route is DELETE /api/customers/timesheets/{id}. It uses the write key and no JSON body. Verify the correct identifier handling with Mobaro Support in a test environment before enabling this call in an integration.

⚠️ Heads-up: Known issue: the current DELETE route passes its path identifier to the delete handler without the ID-prefix normalization used by GET and PUT. A shortened ID can return 200 without deleting the entry. No working identifier workaround has been verified for this guide. Do not treat that status code as proof of removal.

The handler marks matching entries as deleted; it does not physically erase them. Read the entry back using its Mobaro ID and inspect isDeleted. Lists can still include deleted entries, so your reporting must handle that field. Allow for indexing before concluding the read-back reflects the latest change.

🛑 Critical: Removal changes the Timesheet record used for time reporting. Confirm the User, interval and intended entry before deletion, and verify the saved result. The public API in this guide does not expose an undelete action.


Best practices

  • Test this beta API before connecting time or payroll reporting. Recheck its schema when updating an integration.

  • Keep a mapping from your external IDs to returned Mobaro IDs. Check for existing entries before retrying a create after an uncertain response.

  • Use explicit time zones, check isDeleted, and compare saved values after every write. Stay below 10 requests per second per key and back off on 429.


Frequently asked questions

Why did DELETE return 200 but the entry is still active?

The current delete route does not normalize a shortened ID like GET and PUT. A 200 response can be a no-op. Verify identifier handling with Mobaro Support in a test environment and inspect isDeleted before automating removal.

Why don’t StoppedAfter and StoppedBefore filter my list?

The current request schema declares them, but the list implementation does not apply them. Use supported start or update filters to narrow the data, then filter stop times in your integration.

Can I use an external ID for updates?

Use the returned Mobaro ID for PUT. GET also supports external-ID lookup, but the update route does not provide external-ID upsert behavior.

How do I keep a field unchanged or clear the stop time?

Omit a field to keep its current value. Send stopped as JSON null to remove its stop time. Send an ISO 8601 timestamp with a time zone to set a new one.

Does creating an entry approve the time?

No. These API calls record and change entries; they do not expose the approval workflow. Use the Backend’s Timesheet approval process.

Did this answer your question?