TimeDesk REST API Reference
Last updated: November 8, 2026
TimeDesk exposes worklogs, reports and master data through Atlassian Forge app REST APIs. Atlassian handles sign-in with OAuth 2.0 (3LO). Every call runs with the rights of the calling user.
Personal access (every user, no admin)
Create a personal API token at https://id.atlassian.com/manage-profile/security/api-tokens and use the Jira REST API with Basic auth (email:token). TimeDesk entries are native Jira worklogs: POST /rest/api/3/issue/{key}/worklog logs time, GET reads it, TimeDesk data is in the worklog property timedesk. An organization admin can disable API tokens by policy. Copy-ready examples: TimeDesk → Preferences → API access. The API below is for company integrations.
Getting started
- A site or org admin enables the API. Atlassian Administration → Apps → Sites → your site → Connected apps → TimeDesk → Details → turn on App REST APIs. App REST APIs are off by default; turning them off stops all calls.
- Create an OAuth 2.0 (3LO) integration in the Atlassian developer console (only members of the site where TimeDesk is installed can do this). Permissions → Add Marketplace or custom app → select your site, TimeDesk and its environment. Select the TimeDesk scopes you need (section 3) and
read:forge-app:jira. Withoutread:forge-app:jiraevery call fails with401 Unauthorized; scope does not match. Authorization → set a callback URL, open the authorization URL, consent, and exchange thecodefor an access token as described in OAuth 2.0 (3LO) apps. - Call the API with
Authorization: Bearer <access token>.
Base URL
https://api.atlassian.com/svc/jira/<cloud-id>/apps/<app-id>_<env-id>/v1
https://<your-site>.atlassian.net/gateway/api/svc/jira/apps/<app-id>_<env-id>/v1<cloud-id>: fromhttps://<your-site>.atlassian.net/_edge/tenant_info.<app-id>_<env-id>: shown in Connected apps next to the REST API toggle, and in the 3LO permission screen. For TimeDesk:<app-id>=2481111a-3e96-4934-af4e-f0244463e81e;<env-id>is shown in Connected apps once the production version is installed.
curl --request GET \
--url "https://api.atlassian.com/svc/jira/$CLOUD_ID/apps/$APP_ENV/v1/worklogs?from=2026-11-01&to=2026-11-30" \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Accept: application/json"Conventions
| Topic | Rule |
|---|---|
| Format | JSON only (Accept/Content-Type: application/json) |
| Dates | ISO YYYY-MM-DD (work dates in the worker's day); timestamps ISO 8601 UTC (2026-11-09T08:00:00.000Z) |
| Durations | Seconds (timeSpentSeconds, requiredSeconds, …) |
| Users | Atlassian account ids |
| Paging | limit (1–1000, default 100) and opaque cursor. Responses carry nextCursor (null on the last page). Pages may hold fewer than limit rows when rows are hidden by permissions; keep following nextCursor |
| Lists | Multi-value query parameters may repeat (tag=a&tag=b) or be comma-separated (tag=a,b) |
| Idempotency | POST /worklogs accepts Idempotency-Key: <1–255 chars>. Retrying with the same key (same user) and the same body within 24 hours returns the first worklog with Idempotent-Replayed: true instead of creating a second one. The same key with a different body → 422 IDEMPOTENCY_KEY_REUSED. After 24 h the key is forgotten (daily cleanup) and may create a new worklog |
| Rate limit | 60 requests per minute per user → 429 with Retry-After (seconds). Soft limit: requests running in parallel may pass a few over it. Atlassian's own platform limits apply on top |
| Versioning | All paths start with /v1. Breaking changes get a new prefix |
Scopes
| Scope | Grants | Endpoints |
|---|---|---|
| read:timedesk-worklog:custom | Read worklogs with TimeDesk data and own absences | GET /v1/worklogs, GET /v1/worklogs/{id}, GET /v1/absences |
| write:timedesk-worklog:custom | Create worklogs, edit and delete own worklogs | POST /v1/worklogs, PUT /v1/worklogs/{id}, DELETE /v1/worklogs/{id} |
| read:timedesk-report:custom | Details report and required-vs-logged time | GET and POST /v1/reports/details, GET /v1/reports/fill |
| read:timedesk-config:custom | Master data | GET /v1/accounts, /v1/tags, /v1/attributes, /v1/teams, /v1/holidays, /v1/schedules, /v1/nonworking |
| write:timedesk-config:custom | Change master data (needs the matching TimeDesk role) | POST, PUT /{id}, DELETE /{id}, POST /{id}/archive, POST /{id}/restore on /v1/accounts, /v1/tags, /v1/attributes, /v1/teams |
Every integration also needs read:forge-app:jira. Scopes only open the door: the caller's TimeDesk roles and Jira permissions still decide what they see and change.
Endpoints
Worklog object
{
"id": "50001",
"issueId": "10001",
"projectId": "100",
"authorAccountId": "5b10ac8d82e05b22cc7d4ef5",
"workerAccountId": "5b10ac8d82e05b22cc7d4ef5",
"started": "2026-11-09T08:00:00.000Z",
"workDate": "2026-11-09",
"timeSpentSeconds": 1800,
"billable": true,
"account": "ACME-SUPPORT",
"teamId": 7,
"tags": ["meeting"],
"attributes": { "location": "remote" }
}workerAccountId is the person the time belongs to; authorAccountId is who wrote it (TimeDesk writes API worklogs as the app, so the worker is always recorded). Descriptions stay in Jira (GET /rest/api/3/issue/{id}/worklog/{id}).
GET /v1/worklogs - list worklogs · read:timedesk-worklog:custom
| Parameter | Required | Description |
|---|---|---|
| from, to | yes | Work-date range |
| accountId | no | Another worker; needs the TimeDesk role "report other users", admin, or team lead of that person |
| limit, cursor | no | Paging |
Worklogs on issues the caller cannot browse (project permission and issue security level, checked per issue), and Jira-restricted worklogs (admins only), are left out.
{ "values": [ { "id": "50001", "...": "worklog object" } ], "nextCursor": "MTAw" }GET /v1/worklogs/{id} - one worklog · read:timedesk-worklog:custom
200 worklog object · 403 someone else's worklog without view rights · 404 unknown, deleted or not visible.
POST /v1/worklogs - create · write:timedesk-worklog:custom
Header Idempotency-Key (optional, recommended for imports).
| Field | Required | Description |
|---|---|---|
| issue | yes | Issue key or id |
| date | yes | Work date |
| timeSpentSeconds | yes | Duration in seconds |
| startTime | no | HH:mm (UTC) |
| description | no | Worklog comment |
| billable | no | Default from project/settings |
| account | no | Account key, null = none |
| tags | no | Tag names (unknown tags need the "manage tags" role) |
| attributes | no | { "<attribute key>": value } |
| teamId | no | TimeDesk team of the worklog; default: project default team, else the worker's team |
| workerAccountId | no | Log for someone else: TimeDesk admin, team lead of that person, or the Jira project permission "Log work for others (TimeDesk)" |
curl -X POST "$BASE/v1/worklogs" -H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" -H "Idempotency-Key: import-2026-11-09-42" \
-d '{"issue":"PRJ-1","date":"2026-11-09","timeSpentSeconds":1800,"billable":true,"tags":["meeting"]}'201 worklog object. Checks: Jira "Browse projects" + "Work on issues", TimeDesk rules (max hours, mandatory description, past/future limits, required account/attributes), period locks (409 CONFLICT, details.reason: "PERIOD_LOCKED").
PUT /v1/worklogs/{id} - update own worklog · write:timedesk-worklog:custom
Body: any of date, timeSpentSeconds, startTime, description, billable, account, teamId, tags, attributes. Only the caller's own worklogs; needs Jira "Work on issues" and "Edit own/all worklogs". 200 worklog object.
DELETE /v1/worklogs/{id} - delete own worklog · write:timedesk-worklog:custom
Same rules with "Delete own/all worklogs". 204 no body.
GET /v1/absences - own absences · read:timedesk-worklog:custom
from, to required. { "values": [ { "id": "7", "typeId": "1", "date": "2026-11-12", "fraction": 1, "reducesTarget": true, "sensitive": false } ] }
GET /v1/reports/details - details report · read:timedesk-report:custom
Needs the TimeDesk "reporting" role. Without "report other users"/admin the rows are limited to the caller and the members of teams they lead.
| Parameter | Description |
|---|---|
| from, to | Required work-date range |
| projectId | Jira project ids (multi) |
| accountId | Workers (multi) |
| groupId | Jira group ids (multi); members add up with accountId |
| teamId | TimeDesk team ids (multi) |
| account, accountCategoryId | Account keys, account category ids (multi) |
| tag | Tag names (multi) |
| attributeWithout | Attribute keys whose worklogs have no value (multi) |
| billable, withoutTag, withoutTeam, withoutAccount | true / false |
| nonWorking | exclude or only (non-working projects and issues) |
| jql | Only worklogs of issues matching this JQL. Runs as the app: currentUser() is replaced by the caller's account id; functions that need the caller's own Jira context (issueHistory(), watchedIssues(), votedIssues(), currentLogin(), lastLogin(), approvals, and watcher/voter = currentUser()) → 400 with details.reason: JQL_USER_FUNCTION; membersOf() works. Issues the caller cannot browse are dropped before the limit of 20,000 issues is counted (JQL_TOO_LARGE) |
| orderBy | date (default), duration, issue, worker; prefix - for descending |
| limit, cursor | Paging |
Response: { "values": [worklog objects], "nextCursor": "…" | null }.
POST /v1/reports/details - details report with a JSON body · read:timedesk-report:custom
Same filters as the GET variant, as JSON with list values (accountIds, groupIds, projectIds, teamIds, accounts, accountCategoryIds, tags, attributesWithout) plus attributes: { "<key>": value }, limit and cursor. Use it for long filter lists.
curl -X POST "$BASE/v1/reports/details" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
-d '{"from":"2026-11-01","to":"2026-11-30","groupIds":["…"],"jql":"project = PRJ","attributes":{"location":"remote"},"orderBy":"-duration"}'GET /v1/reports/fill - required vs. logged · read:timedesk-report:custom
from, to (max 62 days), optional accountId and groupId (multi, max 100 people; default: the caller), optional projectId (multi: only time in these projects counts). Same view rules as above.
{ "values": [ { "accountId": "5b10…", "date": "2026-11-09", "requiredSeconds": 28800, "loggedSeconds": 25200, "missingSeconds": 3600, "nonWorkSeconds": 1800 } ] }Required time comes from the person's work schedule, holidays and absences. loggedSeconds is real work; nonWorkSeconds is time on non-working projects and issues.
Master data · read:timedesk-config:custom
| Endpoint | Response values[] |
|---|---|
| GET /v1/accounts | id, key, name, customerId, categoryId, status, global, projectIds, defaultForProjectIds |
| GET /v1/tags | id, name, color, archived |
| GET /v1/attributes | Attribute definitions with type, options, required flag and projects |
| GET /v1/teams | id, name, members[] { accountId, role, validFrom, validTo } |
| GET /v1/holidays?year=2026 | Holiday calendars id, code, name, builtin, isDefault, days[] { date, name, factor } |
| GET /v1/schedules | Work schedules id, name, minutes[7] (Mon–Sun), isDefault |
| GET /v1/nonworking | { projectIds, issueIds, compensationIssueIds } (not under values) |
Master data writes · write:timedesk-config:custom
| Endpoint | Body / effect | Role |
|---|---|---|
| POST /v1/tags, PUT /v1/tags/{id} | name, color, description, archived (as in the admin page) | "manage tags" |
| POST /v1/accounts, PUT /v1/accounts/{id} | key, name, description, customerId, categoryId, leadId, status, global, projectIds, defaultForProjectIds, issueIds | "manage accounts" |
| POST /v1/attributes, PUT /v1/attributes/{id} | key, name, type, required, description, defaultValue, options[], projects[] (max 20 attributes) | "manage attributes" |
| POST /v1/teams, PUT /v1/teams/{id} | name, description, jiraGroupId, approverId, members[] { accountId, role, title, primary, validFrom, validTo } | "manage teams" |
| POST /v1/{entity}/{id}/archive, /restore | Archive or restore (accounts: status archived/open) | as above |
| DELETE /v1/{entity}/{id} | Delete; accounts and attributes still used by worklogs → 409 CONFLICT (IN_USE), archive them instead | as above |
POST → 201 { "id": "…" }, PUT/archive/restore → 200 { "id": "…" }, DELETE → 204. PUT replaces the whole object (send all fields). Every write is in the TimeDesk audit log (api.<entity>.<action>).
Errors
{ "error": { "code": "FORBIDDEN", "message": "forbidden", "details": { "reason": "JIRA_PERMISSION" }, "correlationId": "01M6…" } }| HTTP | code | When |
|---|---|---|
| 400 | VALIDATION, JIRA_FIELD_NOT_ON_SCREEN | Bad parameter/body/cursor (details.fields) |
| 401 | UNAUTHENTICATED | No caller in the request (Atlassian rejects missing/invalid tokens before TimeDesk with its own 401) |
| 402 | LICENSE_INACTIVE | TimeDesk licence inactive |
| 403 | FORBIDDEN, NOT_ENABLED | Missing TimeDesk role or Jira permission (details.reason) |
| 404 | NOT_FOUND | Unknown route or object, or not visible |
| 409 | CONFLICT | Locked period, concurrent change |
| 422 | IDEMPOTENCY_KEY_REUSED | Idempotency-Key already used with a different request body |
| 429 | RATE_LIMITED | Rate limit; see Retry-After |
| 500 | INTERNAL | Unexpected; quote the correlationId to support |
| 502 | UPSTREAM | Jira failed |
| 503 | MAINTENANCE | Database migration running; retry later |
| 504 | TIMEOUT | Jira timed out |
Without the TimeDesk API
Worklogs are native Jira worklogs. TimeDesk data is stored in the worklog property timedesk (worker, billable, account, tags, attrs), readable with Jira's REST API and an ordinary API token: GET /rest/api/3/worklog/updated?since=… then POST /rest/api/3/worklog/list?expand=properties.