Tyme Public API Documentation

Getting Started

To get access to the API, please drop us a message, tell us what you want to do with it and provide a redirect_uri.

  • API Endpoint: https://api.tyme-app.com
  • All dates & times exchanged in GMT+0.
  • Date Format: Y-m-d H:i:s Example: 2025-12-31 23:59:59
  • The exchange format is JSON. Send the parameters of POST and DELETE requests as a JSON body (Content-Type: application/json), the parameters of GET requests as query parameters.
  • You need to have a team and be a team admin. You can create a new team in Tyme > File > Login > Create Team.
  • The authentication endpoints are versioned (/v1/...), the data endpoints are not.

Authentication

Tyme uses the OAuth v2 standard for authenticating users. To make yourself familiar with OAuth, please take a look at the rfc6749.

Send the access token with every request in the Authorization header:

Authorization: Bearer <access_token>
  • An auth code is valid for 10 minutes.
  • An access token is valid for 2 hours. Use the refresh token to get a new one.
  • A refresh token can only be used once. Every refresh returns a new access & refresh token, store both.
  • If the access token is missing, invalid or expired, the API responds with 401 and the error access_denied.

Token Response

{
  "token_type": "Bearer",
  "expires_in": 7200,
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOi...",
  "refresh_token": "def50200a4c3...",
  "user_id": "5881f10158f22",
  "team_id": "5881f10158f36",
  "team_name": "My Team"
}

Auth Endpoint

Login form to log the user in and redirect them to your app

GET /v1/authorize
Parameter Type Description
response_type String Must be code
client_id String Your client ID
state String Your state
redirect_uri String Your redirect_uri
code_challenge String? PKCE only, see PKCE
code_challenge_method String? PKCE only, must be S256
l String? Language of the login form: en or de

Access Token Endpoint

Exchange the authcode with an access & refresh token

POST /v1/access_token
Parameter Type Description
grant_type String Must be authorization_code
code String Your auth code
redirect_uri String Your redirect_uri
client_id String Your client ID
client_secret String? Your client secret. Not used with PKCE
code_verifier String? PKCE only, the verifier of your code challenge

Refresh Token Endpoint

Exchange the refresh token with a new access & refresh token

POST /v1/refresh_token
Parameter Type Description
grant_type String Must be refresh_token
refresh_token String Your refresh token
client_id String Your client ID
client_secret String? Your client secret. Not used with PKCE

The token endpoints follow the OAuth standard: send the parameters form encoded (Content-Type: application/x-www-form-urlencoded).

PKCE

Instead of a client secret, you can use the more modern PKCE flow (rfc7636). Use it for apps that can't keep a secret, e.g. single page apps, mobile & desktop apps. Let us know which flow you want to use when requesting access: your client ID is set up for one of them.

  1. Create a random code_verifier (e.g. 32 random bytes, base64url encoded) and store it for the callback.
  2. Create the code_challenge: base64url encoded SHA-256 hash of the verifier.
  3. Redirect to /v1/authorize with code_challenge and code_challenge_method=S256.
  4. Exchange the code at /v1/access_token with the code_verifier instead of the client_secret.
  5. Refresh with /v1/refresh_token without a client_secret.
$verifier = rtrim(strtr(base64_encode(random_bytes(32)), '+/', '-_'), '=');
$challenge = rtrim(strtr(base64_encode(hash('sha256', $verifier, true)), '+/', '-_'), '=');

Rate Limits

You're allowed to make up to 60 requests per minute.

  • The limit is counted per access token (per IP address for requests without a token).
  • The minute starts with your first request. After it has passed, the counter is reset.
  • Every request you make while you're over the limit extends the block by another 60 seconds. Wait the given retry_after_seconds before sending the next request.
  • There are no rate limit headers. Instead of sending a request for every single change, use the sync endpoint to send many changes at once.

If you exceed the limit, the API will send a 429 with the following data:

Parameter Type Value
error String rate_limit_reached
retry_after_seconds Int Seconds to wait until making another request

Bidirectional Sync

POST /v1/sync

Tyme offers a full bidirectional sync. Based on a revision, the API delivers only the changes you've not yet received. After each call to the sync endpoint, store the new revision and send it along with the next request. For details about the different entities that you can modify, see Inserting & Updating.

Parameter Type Description
revision String The revision of your last sync. Initial revision: 0.0.0.0
project_updates Array Category, project or task data, that should be created or updated
project_deletions Array Category, project or task IDs that should be deleted
time_updates Array Time entry data that should be created or updated
time_deletions Array Time entry IDs that should be deleted
max_sync_revisions Int? Maximum number of entities you want back per call. Default & max: 800
all_assignments Array? User assignments, see Assignments
  • The entities use the same properties as described in Inserting & Updating. Every update needs an id and a type. Generate your own unique IDs for new entities, e.g. a UUID.
  • Always send project_updates together with project_deletions and time_updates together with time_deletions, use empty arrays if there is nothing to send. Otherwise your changes are ignored.
  • Updates are partial, only the values you send are changed.
  • The last write wins. There is no conflict detection, the values you send overwrite the values on the server.
  • Updates are applied in the order of the hierarchy (categories first, then projects, tasks, ...), so you can create an entity together with its parent in one call.
  • Your own changes are part of the response, with the values as they have been stored.

Response

Parameter Type Description
revision String The new revision. Store it and send it with your next sync
project_updates Array Categories, projects and tasks that have been created or updated since your revision
project_deletions Array Deleted categories, projects and tasks: { "id": ..., "type": ... }
time_updates Array Time entries that have been created or updated since your revision
time_deletions Array Deleted time entries: { "id": ..., "type": ... }
follow_up_sync Bool true: there are more changes. Sync again with the new revision
follow_up_count Int Approximate number of follow-up syncs needed
users Array? All team members incl. their assignments, only if users or assignments changed since
your revision. Otherwise null. See Assignments
team Object? The team, only if it changed since your revision. Otherwise null

Deletions are also sent for entities you are no longer allowed to see, e.g. when you've been unassigned.

Paging

A sync returns up to 800 entities per type. If follow_up_sync is true, call the sync again with the new revision (and empty update arrays) until it is false. For the very first sync, start with 0.0.0.0.

Assignments

Regular users only see the projects & tasks they are assigned to. To change the assignments, send all_assignments as a team admin: the user ID as key, the complete list of assigned entity IDs as value. Entity IDs that are missing in the list are unassigned.

{
  "all_assignments": {
    "t123897987987": [
      "t1234567890",
      "t1234567891"
    ]
  }
}

If the assignments changed, the response contains users: all users of the team, each with their assigned entity IDs in assigned. A regular user only receives their own user.

{
  "users": [
    {
      "id": "t123897987987",
      "name": "Hans",
      "role": 0,
      "assigned": [
        "t1234567890",
        "t1234567891"
      ],
      "...": "..."
    }
  ]
}

Example

{
  "revision": "0.0.0.0",
  "project_updates": [
    {
      "id": "8F1C2A3B-4D5E-4F60-8A7B-9C0D1E2F3A4B",
      "type": "Project",
      "name": "Website Relaunch",
      "default_hourly_rate": 95
    },
    {
      "id": "2B3C4D5E-6F70-4A8B-9C0D-1E2F3A4B5C6D",
      "type": "TimedTask",
      "name": "Design",
      "related_id": "8F1C2A3B-4D5E-4F60-8A7B-9C0D1E2F3A4B"
    }
  ],
  "project_deletions": [],
  "time_updates": [
    {
      "id": "6D7E8F90-A1B2-4C3D-8E4F-5A6B7C8D9E0F",
      "type": "TimedTaskRecord",
      "related_id": "2B3C4D5E-6F70-4A8B-9C0D-1E2F3A4B5C6D",
      "time_start": "2026-11-02 08:00:00",
      "time_end": "2026-11-02 10:30:00",
      "note": "First draft"
    }
  ],
  "time_deletions": []
}

Response (shortened):

{
  "project_updates": [
    {
      "id": "8F1C2A3B-4D5E-4F60-8A7B-9C0D1E2F3A4B",
      "type": "Project",
      "name": "Website Relaunch",
      "default_hourly_rate": 95,
      "...": "..."
    },
    {
      "id": "2B3C4D5E-6F70-4A8B-9C0D-1E2F3A4B5C6D",
      "type": "TimedTask",
      "name": "Design",
      "hourly_rate": 95,
      "...": "..."
    }
  ],
  "project_deletions": [],
  "time_updates": [
    {
      "id": "6D7E8F90-A1B2-4C3D-8E4F-5A6B7C8D9E0F",
      "type": "TimedTaskRecord",
      "...": "..."
    }
  ],
  "time_deletions": [],
  "follow_up_sync": false,
  "follow_up_count": 0,
  "users": null,
  "team": null,
  "revision": "12.40.1873.5521"
}

Webhooks

You can use webhooks to subscribe for realtime notifications. The webhook sends a POST with an array of the created entities. Webhook calls are not retried: if your endpoint is not reachable, the notification is lost. Use the sync endpoint to catch up.

The following notifications are available:

  • New category created
  • New project created
  • New task created
  • New sub-task created
  • New time entry created
  • Stopped time entry

Subscribing to a webhook

POST /webhooks/subscribe
Parameter Type Description
hook_url String The URL that should be called from the webhook
trigger_type String category, project, task, subtask, time or stopped_time

Response

Status Code Parameter Value
200 status success
403 error not_allowed
400 error hook_url_missing
400 error hook_url_invalid
400 error trigger_type_missing

Your response when your webhook is called

Status Code Description
200 OK
410 Webhook subscription inactive, stop sending data

Webhook Example POST output

[
  {
    "id": "D16DB305-DACB-471E-833F-29330C913E45-46205-00000AB867F3D867",
    "team_id": "5881f10158f36",
    "modified": "2024-04-26 11:25:21",
    "created": "2024-07-18 08:25:32",
    "user_id": "5881f10158f22",
    "related_id": "FE323534-642E-44BC-9EA8-F1F92146D626-46205-00000AAF8E02124C",
    "type": "TimedTaskRecord",
    "time_start": "2017-04-26 10:25:00",
    "time_end": "2017-04-26 11:25:00",
    "billing_state": 0,
    "note": "",
    "task_id": "FE323534-642E-44BC-9EA8-F1F92146D626-46205-00000AAF8E02124C",
    "task_name": "A Task",
    "duration": 3600,
    "duration_rounded": 3600,
    "revenue": 100,
    "project_id": "AEA5BFD8-06E5-43AD-9B4F-DECB15143176-46205-00000AA8CBE4B44B",
    "project_name": "New Project",
    "category_id": "t199489890",
    "category_name": "Category",
    "full_name": "Category: New Project: A Task"
  },
  {
    "id": "AEA5BFD8-06E5-43AD-9B4F-DECB15143176-46205-00000AA8CBE4B44B",
    "team_id": "5881f10158f36",
    "modified": "2024-04-26 11:25:59",
    "related_id": "t199489890",
    "type": "Project",
    "rounding_method": 1,
    "rounding_minutes": 1,
    "default_hourly_rate": 100,
    "name": "New Project",
    "planned_budget": 0,
    "planned_duration": 36000,
    "created_date": "2024-04-26 11:24:03",
    "color": 10342999,
    "billable": 1,
    "fixed_rate": 0,
    "quantity": 0,
    "start_date": null,
    "due_date": null,
    "kilometer_rate": 0,
    "completed_date": null,
    "tracking_mode": 0,
    "modifier_flags": 0,
    "recurring_period": 0,
    "note": null,
    "cached_total": 0,
    "project_id": "AEA5BFD8-06E5-43AD-9B4F-DECB15143176-46205-00000AA8CBE4B44B",
    "project_name": "New Project",
    "category_id": "t199489890",
    "category_name": "Category",
    "full_name": "Category: New Project"
  }
]

Unsubscribing from a webhook

DELETE /webhooks/unsubscribe
Parameter Type Description
hook_url String The URL that should be called from the webhook
trigger_type String category, project, task, subtask, time or stopped_time

Response

Status Code Parameter Value
200 status success
403 error not_allowed
400 error hook_url_missing
400 error trigger_type_missing

Searching for entities

GET /data/search_entity
Parameter Type Description
type String ProjectCategory, Project, TimedTask, TimedSubTask, FixedRateTask,
FixedRateSubTask or MileageTask
name String? Name to search for. Case-insensitive, matches parts of the name
related_id String? ID of the parent entity. For example a project ID when searching for a task

Returns a single entity: the first match, sorted by name. If nothing is found, an empty object {} is returned.

Response

Status Code Parameter Value
200 Object the found entity or {}
403 error not_allowed
400 error type_missing

Result

{
  "id": "tsub67891",
  "team_id": "5881f10158f36",
  "modified": "2024-03-21 08:13:11",
  "related_id": "t1234567891",
  "type": "TimedSubTask",
  "hourly_rate": 75,
  "rounding_method": 1,
  "rounding_minutes": 30,
  "default_hourly_rate": 0,
  "name": "subtask of task1",
  "planned_budget": 0,
  "planned_duration": 0,
  "created_date": "2024-04-20 13:33:59",
  "color": 0,
  "billable": 1,
  "fixed_rate": 0,
  "quantity": 0,
  "start_date": null,
  "due_date": null,
  "kilometer_rate": 0,
  "completed_date": "2024-04-20 13:33:59",
  "tracking_mode": 0,
  "modifier_flags": 0,
  "recurring_period": 0,
  "note": null,
  "cached_total": 0,
  "subtask_id": "tsub67891",
  "subtask_name": "subtask of task1",
  "task_id": "t1234567891",
  "task_name": "task1",
  "project_id": "t1234567890",
  "project_name": "project",
  "category_id": "AAF8E02-BFD8-06E5-43AD-9B4F-DECB15143176",
  "category_name": "category",
  "full_name": "category: project: task1: subtask of task1"
}

Inserting & Updating

POST /data/update_entity

Creates a new entity or updates an existing one. If an entity with the given id exists, it is updated, otherwise it is created.

  • Updates are partial: only the parameters you send are changed. All other values stay as they are.
  • Money values (rates, budgets) are sent and returned as decimal numbers in your currency, e.g. 75.5. They are stored with 4 decimals.
  • Parent: If the parent (related_id) doesn't exist, the API responds with parent_entity_not_found.
  • Assignments: new entities are assigned to you and to all users assigned to the parent.
  • A ? behind the type means the value can be null.

Required on create

Type Required
ProjectCategory type, name
Project type, name
All tasks & sub-tasks type, name, related_id
TimedTaskRecord, FixedRateTaskRecord, type, related_id, time_start
MileageTaskRecord
NonWorkingRecord type, subtype, time_start

On update, only type and id are required.

Example

{
  "type": "TimedTask",
  "name": "Design",
  "related_id": "8F1C2A3B-4D5E-4F60-8A7B-9C0D1E2F3A4B",
  "planned_duration": 36000
}

Response (shortened). The hourly rate is taken from the project, the planned budget is calculated:

{
  "status": "success",
  "data": {
    "id": "2B3C4D5E-6F70-4A8B-9C0D-1E2F3A4B5C6D",
    "type": "TimedTask",
    "name": "Design",
    "related_id": "8F1C2A3B-4D5E-4F60-8A7B-9C0D1E2F3A4B",
    "hourly_rate": 95,
    "planned_duration": 36000,
    "planned_budget": 950,
    "...": "..."
  }
}

To update the task later, send its id and only the values that change:

{
  "id": "2B3C4D5E-6F70-4A8B-9C0D-1E2F3A4B5C6D",
  "type": "TimedTask",
  "name": "Design & Review"
}

Supported types and their parents

Type Parent (related_id)
ProjectCategory none
Project ProjectCategory or none
TimedTask Project
TimedSubTask TimedTask
FixedRateTask Project
FixedRateSubTask FixedRateTask
MileageTask Project
TimedTaskRecord TimedTask or TimedSubTask
FixedRateTaskRecord FixedRateSubTask
MileageTaskRecord MileageTask
NonWorkingRecord none

Calculated values

The following values are calculated by Tyme, if you don't send them:

  • Defaults from the parent (TimedTask & TimedSubTask, only on create): hourly_rate, rounding_method, rounding_minutes, billable, kilometer_rate and recurring_period are taken from the parent. For a project as parent, its default_hourly_rate is used as hourly rate.
  • modifier_flags (TimedTask & TimedSubTask): set for every value that differs from the parent. Sub-tasks always use the rounding of their parent task. You normally don't need to send modifier_flags, just send the values (hourly_rate, rounding_method, rounding_minutes) and Tyme calculates the flags for you.
  • planned_budget / planned_duration (Project, TimedTask & TimedSubTask): if you only send one of them, the other one is calculated from the hourly rate (default_hourly_rate for projects). Example: a planned duration of 7200 seconds at an hourly rate of 75 results in a planned budget of 150.

If you send modifier_flags, or both planned_budget and planned_duration, they are stored as sent.

Common values

Parameter Type Description
recurring_period Int Resets the totals periodically:
none = 0
daily = 100
weekly = 200 + weekday (1 = Sunday ... 7 = Saturday)
monthly = 300 + day of the month (1-28)
yearly = 400 + month (1-12)
Example: 305 = monthly, on the 5th
Tasks should use the period of their project
rounding_method Int Down = 0, Nearest = 1, Up = 2
You can also send DOWN, NEAREST or UP
completed_date DateTime? A set date means: archived, if still active, set to null

ProjectCategory

Parameter Type Description
type String Must be ProjectCategory
id String? ID of the category. If not provided, Tyme will generate a unique ID
name String Name of the category
color Int? Decimal RGB value, e.g. 16750848 (= 0xFF9900)
completed_date DateTime? A set date means: archived, if still active, set to null

Project

Parameter Type Description
type String Must be Project
id String? ID of the project. If not provided, Tyme will generate a unique ID
name String Name of the project
note String? Note of the project
color Int? Decimal RGB value, e.g. 16750848 (= 0xFF9900)
related_id String? ID of the parent category
default_hourly_rate Float Default hourly rate for new tasks. hourly_rate is accepted as well
rounding_method Int Down = 0, Nearest = 1, Up = 2
rounding_minutes Int Minutes the rounding is applied to
planned_duration Int Duration in seconds
planned_budget Float Budget
recurring_period Int See Common values
tracking_mode Int Slot = 0, Cluster = 1
completed_date DateTime? A set date means: archived, if still active, set to null
start_date DateTime? null or planned time start date
due_date DateTime? null or planned time due date

TimedTask

Parameter Type Description
type String Must be TimedTask
id String? ID of the task. If not provided, Tyme will generate a unique ID
name String Name of the task
note String? Note of the task
related_id String ID of the parent project
billable Int 1 = billable, 0 = not billable
hourly_rate Float Hourly rate
rounding_method Int Down = 0, Nearest = 1, Up = 2
rounding_minutes Int Minutes the rounding is applied to
planned_duration Int Duration in seconds
planned_budget Float Budget
recurring_period Int See Common values
completed_date DateTime? A set date means: archived, if still active, set to null
start_date DateTime? null or planned time start date
due_date DateTime? null or planned time due date
modifier_flags Int Bitflag: 1=custom hourly rate, 2=custom rounding method,
4=custom rounding minutes
Calculated automatically, normally you don't need to send it

TimedSubTask

Parameter Type Description
type String Must be TimedSubTask
id String? ID of the sub-task. If not provided, Tyme will generate a unique ID
name String Name of the sub-task
note String? Note of the sub-task
related_id String ID of the parent task
billable Int 1 = billable, 0 = not billable
hourly_rate Float Hourly rate
rounding_method Int Read-only. Taken from the parent task
rounding_minutes Int Read-only. Taken from the parent task
planned_duration Int Duration in seconds
planned_budget Float Budget
recurring_period Int Read-only. See Common values
completed_date DateTime? A set date means: archived, if still active, set to null
start_date DateTime? null or planned time start date
due_date DateTime? null or planned time due date
modifier_flags Int Bitflag: 1=custom hourly rate
Calculated automatically, normally you don't need to send it

FixedRateTask

A fixed rate task groups fixed rate sub-tasks. The prices are set on the sub-tasks.

Parameter Type Description
type String Must be FixedRateTask
id String? ID of the task. If not provided, Tyme will generate a unique ID
name String Name of the task
note String? Note of the task
related_id String ID of the parent project
completed_date DateTime? A set date means: archived, if still active, set to null

FixedRateSubTask

A fixed rate sub-task has a fixed price instead of an hourly rate. Its revenue is fixed_rate × quantity. It can only be assigned to one user. Assigning it to a user also moves its entries to that user.

Every fixed rate sub-task needs exactly one FixedRateTaskRecord. Create it together with the sub-task and keep both in sync: due_date of the sub-task = time_start and time_end of the record, note of the sub-task = note of the record.

Parameter Type Description
type String Must be FixedRateSubTask
id String? ID of the sub-task. If not provided, Tyme will generate a unique ID
name String Name of the sub-task
note String? Note of the sub-task
related_id String ID of the parent fixed rate task
billable Int 1 = billable, 0 = not billable
fixed_rate Float Price per unit
quantity Float Number of units
due_date DateTime Date of the sub-task, e.g. the purchase date
completed_date DateTime? A set date means: archived, if still active, set to null

MileageTask

A mileage task tracks traveled distances. Its revenue is distance in km × kilometer_rate.

Parameter Type Description
type String Must be MileageTask
id String? ID of the task. If not provided, Tyme will generate a unique ID
name String Name of the task
note String? Note of the task
related_id String ID of the parent project
billable Int 1 = billable, 0 = not billable
kilometer_rate Float Rate per kilometer. Convert, if you're using miles
planned_budget Float Budget
recurring_period Int See Common values
completed_date DateTime? A set date means: archived, if still active, set to null
due_date DateTime? null or due date

TimedTaskRecord

Parameter Type Description
type String Must be TimedTaskRecord
id String? ID of the time entry. If not provided, Tyme will generate a unique ID
related_id String ID of the parent task or sub-task
time_start DateTime Start time
time_end DateTime? End time. null while running. A user can have several running
time entries at the same time
note String Note of the time entry
user_id String? User ID the entry belongs to. If not provided on create: your user ID
billing_state Int unbilled=0, billed=1, paid=2
locked Int 1 = locked, can't be changed by regular users

FixedRateTaskRecord

The single entry of a FixedRateSubTask. The amount comes from the sub-task (fixed_rate × quantity).

Parameter Type Description
type String Must be FixedRateTaskRecord
id String? ID of the entry. If not provided, Tyme will generate a unique ID
related_id String ID of the parent fixed rate sub-task
time_start DateTime Same as due_date of the sub-task
time_end DateTime Same as due_date of the sub-task
note String Same as the note of the sub-task
user_id String? The user the sub-task is assigned to. If not provided: yours
billing_state Int unbilled=0, billed=1, paid=2
locked Int 1 = locked, can't be changed by regular users

MileageTaskRecord

Parameter Type Description
type String Must be MileageTaskRecord
id String? ID of the entry. If not provided, Tyme will generate a unique ID
related_id String ID of the parent mileage task
time_start DateTime Start time of the trip
time_end DateTime? End time of the trip
traveled_distance Int Traveled distance in meters
note String Note of the entry
user_id String? User ID the entry belongs to. If not provided on create: yours
billing_state Int unbilled=0, billed=1, paid=2
locked Int 1 = locked, can't be changed by regular users

NonWorkingRecord

Parameter Type Description
type String Must be NonWorkingRecord
subtype Int vacation=0, sick=1, other=2, publicHoliday=3, overtimeCompensation=4, specialLeave=5
id String? ID of the entry. If not provided, Tyme will generate a unique ID
time_start DateTime Start time
time_end DateTime? End time
note String Note
user_id String? User ID the entry belongs to. If not provided on create: your user ID
Use ALL_USERS for an entry of the whole team, e.g. a public holiday

Response

Status Code Parameter Value
200 status success
data the entity
403 error not_allowed
400 error type_missing
400 error parent_entity_not_found
400 error entity_not_found

Deleting

DELETE /data/entity
Parameter Type Description
project_ids Array Array of entity ids (can be a project, task, sub-task, etc.)
time_ids Array Array of time entry ids
  • Only the given entities are deleted, there is no cascade. To delete a project with all its tasks and time entries, send their IDs as well.
  • Unknown IDs are ignored.
  • Deleted entities are sent as deletions in the next sync.

Response

Status Code Parameter Value
200 status success
403 error not_allowed

Task Summary

GET /data/summary
Parameter Type Description
from DateTime Start of the time frame
to DateTime End of the time frame
user_id String? Optional, filter by user

The time frame can be up to 400 days.

Response

Status Code Parameter Value
200 summary summary data
403 error not_allowed
400 error from_missing
400 error to_missing
400 error date_range_too_large

Summary Data Response

{
  "summary": [
    {
      "id": "FE323534-642E-44BC-9EA8-F1F92146D626-46205-00000AAF8E02124C",
      "type": "TimedTask",
      "name": "Some Task",
      "full_name": "Category: New Project: Some Task",
      "category_name": "Category",
      "category_id": "AAF8E02-BFD8-06E5-43AD-9B4F-DECB15143176",
      "project_name": "New Project",
      "project_id": "AEA5BFD8-06E5-43AD-9B4F-DECB15143176-46205-00000AA8CBE4B44B",
      "task_name": "Some Task",
      "task_id": "FE323534-642E-44BC-9EA8-F1F92146D626-46205-00000AAF8E02124C",
      "subtask_name": null,
      "subtask_id": null,
      "time": 3600,
      "revenue": 100
    }
  ]
}

Get Team Members

GET /data/members/:user_id
Parameter Type Description
user_id String? Use me for yourself. Omit for all users

Response

Status Code Parameter Value
200 data user data
403 error not_allowed

User Data Response

{
  "data": [
    {
      "id": "t123897987987",
      "team_id": "5881f10158f36",
      "name": "Hans",
      "email": "some@email.de",
      "role": 0,
      "working_times": "0,28800,28800,28800,28800,28800,0",
      "historic_working_times": null,
      "last_sync": "2017-01-20 14:00:49",
      "created": "2017-01-20 14:00:49",
      "assigned": []
    }
  ]
}

Get Times

GET /data/times
Parameter Type Description
from DateTime Start of the time frame
to DateTime End of the time frame
start Int? Paging start parameter
user_id String? Filter by user
billing_state Int? Filter by billing state (0=unbilled, 1=billed, 2=paid)
  • The time frame can be up to 400 days.
  • The entries are sorted by time_start and returned in pages of up to 800 entries. The response contains start, limit and total. To fetch the next page, send start = previous start + limit, until start + limit >= total.

Response

Status Code Parameter Value
200 data times data
403 error not_allowed
400 error from_missing
400 error to_missing
400 error date_range_too_large

Times Response Data

{
  "data": [
    {
      "id": "D16DB305-DACB-471E-833F-29330C913E45-46205-00000AB867F3D867",
      "team_id": "5881f10158f36",
      "modified": "2024-04-26 11:25:21",
      "created": "2024-07-18 08:43:24",
      "user_id": "5881f10158f22",
      "related_id": "FE323534-642E-44BC-9EA8-F1F92146D626-46205-00000AAF8E02124C",
      "type": "TimedTaskRecord",
      "locked": 0,
      "subtype": 0,
      "traveled_distance": 0,
      "time_start": "2024-04-26 10:25:00",
      "time_end": "2024-04-26 11:25:00",
      "billing_state": 0,
      "note": "",
      "task_id": "FE323534-642E-44BC-9EA8-F1F92146D626-46205-00000AAF8E02124C",
      "task_name": "A Task",
      "duration": 3600,
      "duration_rounded": 3600,
      "revenue": 100,
      "project_id": "AEA5BFD8-06E5-43AD-9B4F-DECB15143176-46205-00000AA8CBE4B44B",
      "project_name": "New Project",
      "category_id": "AAF8E02-BFD8-06E5-43AD-9B4F-DECB15143176",
      "category_name": "Category",
      "full_name": "Category: New Project: A Task"
    }
  ],
  "start": 0,
  "limit": 800,
  "total": 11
}