TimeDesk · REST API

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.

01

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.

02

Getting started

  1. 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.
  2. 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. Without read:forge-app:jira every call fails with 401 Unauthorized; scope does not match. Authorization → set a callback URL, open the authorization URL, consent, and exchange the code for an access token as described in OAuth 2.0 (3LO) apps.
  3. 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>: from https://<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"
03

Conventions

TopicRule
FormatJSON only (Accept/Content-Type: application/json)
DatesISO YYYY-MM-DD (work dates in the worker's day); timestamps ISO 8601 UTC (2026-11-09T08:00:00.000Z)
DurationsSeconds (timeSpentSeconds, requiredSeconds, …)
UsersAtlassian account ids
Paginglimit (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
ListsMulti-value query parameters may repeat (tag=a&tag=b) or be comma-separated (tag=a,b)
IdempotencyPOST /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 limit60 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
VersioningAll paths start with /v1. Breaking changes get a new prefix
04

Scopes

ScopeGrantsEndpoints
read:timedesk-worklog:customRead worklogs with TimeDesk data and own absencesGET /v1/worklogs, GET /v1/worklogs/{id}, GET /v1/absences
write:timedesk-worklog:customCreate worklogs, edit and delete own worklogsPOST /v1/worklogs, PUT /v1/worklogs/{id}, DELETE /v1/worklogs/{id}
read:timedesk-report:customDetails report and required-vs-logged timeGET and POST /v1/reports/details, GET /v1/reports/fill
read:timedesk-config:customMaster dataGET /v1/accounts, /v1/tags, /v1/attributes, /v1/teams, /v1/holidays, /v1/schedules, /v1/nonworking
write:timedesk-config:customChange 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.

05

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

ParameterRequiredDescription
from, toyesWork-date range
accountIdnoAnother worker; needs the TimeDesk role "report other users", admin, or team lead of that person
limit, cursornoPaging

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).

FieldRequiredDescription
issueyesIssue key or id
dateyesWork date
timeSpentSecondsyesDuration in seconds
startTimenoHH:mm (UTC)
descriptionnoWorklog comment
billablenoDefault from project/settings
accountnoAccount key, null = none
tagsnoTag names (unknown tags need the "manage tags" role)
attributesno{ "<attribute key>": value }
teamIdnoTimeDesk team of the worklog; default: project default team, else the worker's team
workerAccountIdnoLog 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.

ParameterDescription
from, toRequired work-date range
projectIdJira project ids (multi)
accountIdWorkers (multi)
groupIdJira group ids (multi); members add up with accountId
teamIdTimeDesk team ids (multi)
account, accountCategoryIdAccount keys, account category ids (multi)
tagTag names (multi)
attributeWithoutAttribute keys whose worklogs have no value (multi)
billable, withoutTag, withoutTeam, withoutAccounttrue / false
nonWorkingexclude or only (non-working projects and issues)
jqlOnly 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)
orderBydate (default), duration, issue, worker; prefix - for descending
limit, cursorPaging

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

EndpointResponse values[]
GET /v1/accountsid, key, name, customerId, categoryId, status, global, projectIds, defaultForProjectIds
GET /v1/tagsid, name, color, archived
GET /v1/attributesAttribute definitions with type, options, required flag and projects
GET /v1/teamsid, name, members[] { accountId, role, validFrom, validTo }
GET /v1/holidays?year=2026Holiday calendars id, code, name, builtin, isDefault, days[] { date, name, factor }
GET /v1/schedulesWork schedules id, name, minutes[7] (Mon–Sun), isDefault
GET /v1/nonworking{ projectIds, issueIds, compensationIssueIds } (not under values)

Master data writes · write:timedesk-config:custom

EndpointBody / effectRole
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, /restoreArchive 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 insteadas 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>).

06

Errors

{ "error": { "code": "FORBIDDEN", "message": "forbidden", "details": { "reason": "JIRA_PERMISSION" }, "correlationId": "01M6…" } }
HTTPcodeWhen
400VALIDATION, JIRA_FIELD_NOT_ON_SCREENBad parameter/body/cursor (details.fields)
401UNAUTHENTICATEDNo caller in the request (Atlassian rejects missing/invalid tokens before TimeDesk with its own 401)
402LICENSE_INACTIVETimeDesk licence inactive
403FORBIDDEN, NOT_ENABLEDMissing TimeDesk role or Jira permission (details.reason)
404NOT_FOUNDUnknown route or object, or not visible
409CONFLICTLocked period, concurrent change
422IDEMPOTENCY_KEY_REUSEDIdempotency-Key already used with a different request body
429RATE_LIMITEDRate limit; see Retry-After
500INTERNALUnexpected; quote the correlationId to support
502UPSTREAMJira failed
503MAINTENANCEDatabase migration running; retry later
504TIMEOUTJira timed out
07

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.

esc