Errors
A request that fails answers with a 4xx or 5xx status and one JSON shape, whatever went wrong:
json
{
"code": "VALIDATION",
"message": "Some fields are invalid",
"details": {
"issues": [{ "path": ["endAt"], "message": "End must be after start", "code": "custom" }]
}
}| Field | What it is |
|---|---|
code |
A name for the problem, such as VERSION_CONFLICT. Branch on this: it never changes within v1. |
message |
A plain sentence, safe to show a person. It may be reworded, so don't match on it. |
details |
Optional. Facts that belong to this code, listed below. |
Status codes
| Status | Means |
|---|---|
400, 422 |
The request isn't valid: a field is missing, malformed or breaks a rule. Fix the request; repeating it won't help. |
401 |
No key, or the key is wrong, revoked or expired. See Authentication. |
402 |
The workspace's plan doesn't include this (PLAN_REQUIRED), or it has no seats left (SEATS_FULL). |
403 |
The key's owner may not do this, or the endpoint isn't open to keys. |
404 |
Not found — or not visible to this key, which looks the same on purpose. |
409 |
The request is fine but the state isn't: someone changed the record first, the period is locked, a timer is already running… |
413, 415 |
A file is too large, or of a type we don't take. |
423 |
The workspace is suspended. |
429 |
Too many requests. See Rate limits. |
5xx |
Our fault. Retry with back-off; if it persists, tell us the time and the path. |
Codes you'll meet most
| Code | Status | What happened | What to do |
|---|---|---|---|
VALIDATION |
422 | A field is invalid. details.issues lists each one with its path. |
Fix the fields named |
REQUIRED_FIELD_MISSING |
422 | The workspace requires a project, task, tag or description on time entries. | Supply it |
UNAUTHENTICATED |
401 | See above. | Check the key |
FORBIDDEN |
403 | Not allowed. details.reason says why when it's about the key. |
Use a key whose owner may do it |
NOT_FOUND |
404 | No such record, or you can't see it. | Check the id and the workspace |
VERSION_CONFLICT |
409 | The record changed since you read it. details.current holds how it is now. |
Re-apply your change to details.current and send its version |
TIMER_RUNNING |
409 | This needs the running timer stopped first. | Stop the timer, then repeat |
OVERLAP_BLOCKED |
409 | The workspace forbids overlapping time entries. | Pick times that don't overlap |
ENTRY_LOCKED |
409 | The entry is before the workspace's lock date. | An owner or admin can change it |
ENTRY_APPROVED, PERIOD_APPROVED, PERIOD_LOCKED |
409 | The time has been approved, or its period locked. | Ask an approver to reopen it |
PLAN_REQUIRED |
402 | The plan lacks the feature. details.feature and details.requiredPlan say which. |
Upgrade the workspace |
RATE_LIMITED |
429 | Over the limit. details.retryAfterS matches Retry-After. |
Wait, then repeat |
INTERNAL |
500 | Something broke on our side. | Retry with back-off |
Every operation in the API reference lists the full set of codes under its error response.
Updating safely: version
Records you can change carry a version, a number that goes up with every change. An update sends the version it last read:
json
{ "version": 3, "description": "Design review (follow-up)" }If somebody changed the record since, the update is refused with 409 VERSION_CONFLICT instead of quietly overwriting their work, and details.current holds the record as it is now. Merge your change into it and send again with its version.
Warnings
Some writes succeed but have something worth knowing. They answer 2xx with a warnings list next to the result:
json
{
"entry": { "id": "01929a4b-…", "version": 1 },
"warnings": [
{
"code": "OVERLAP",
"message": "This entry overlaps another entry",
"details": { "entryIds": ["01929a3f-…"] }
}
]
}| Warning | Means |
|---|---|
OVERLAP |
The entry overlaps another of the same person's |
NOT_ASSIGNEE |
The person isn't assigned to the task |
LONG_DURATION |
The entry is unusually long |
SEATS_NEARLY_FULL |
The workspace is close to its seat limit |
A warning never undoes the write. Show it, log it or ignore it.