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.
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.
Create a random code_verifier (e.g. 32 random bytes, base64url encoded) and store it for the callback.
Create the code_challenge: base64url encoded SHA-256 hash of the verifier.
Redirect to /v1/authorize with code_challenge and code_challenge_method=S256.
Exchange the code at /v1/access_token with the code_verifier instead of the client_secret.
Refresh with /v1/refresh_token without a client_secret.
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
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.
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.
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
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.
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 oneFixedRateTaskRecord. 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
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.