Create Time Entry
Logs a time-worked entry, optionally creating the client / project / deliverable if missing.
Authentication: X-API-KEY header (see Authentication).
Request body
| Field | Type | Description |
|---|---|---|
| timerStart | datetime | Start timestamp. |
| timerEnd | datetime | End timestamp. |
| clientName | string | Client name. |
| projectName | string | Project name. |
| deliverableName | string | Deliverable name. |
| notes | string | Notes. |
| userEmail | string | User the time is logged for. |
| createClient | boolean | Create the client if it does not exist. |
| createProject | boolean | Create the project if it does not exist. |
| createDeliverable | boolean | Create the deliverable if it does not exist. |
Request
curl -X POST https://api.withmoxie.com/public/action/timeWorked/create \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"timerStart": "2026-07-08T09:00:00Z", "timerEnd": "2026-07-08T10:30:00Z", "clientName": "Acme Kft.", "projectName": "Website Redesign", "userEmail": "jane@acme.example"}'
Response
Returns the created TimerEvent.
{
"id": "66b0f7f6c3a9e40012ab7200",
"accountId": 10016,
"clientId": "66b0f2a1c3a9e40012ab34cd",
"projectId": "66b0f4c3c3a9e40012ab6611",
"deliverableName": "Design homepage",
"timerStart": "2026-07-08T09:00:00Z",
"timerEnd": "2026-07-08T10:30:00Z",
"notes": null,
"userId": 5567,
"invoiceId": null
}