Skip to content

Start a new timer

POST
/timer/start
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/timer/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "externalLinkUrl": "https://example.com", "orderActivityTypeId": "example", "orderId": "example", "tagIds": [ "example" ], "taskId": "example" }'

Starts a running timer for the caller, optionally on a task. Requires the time.track_own permission. Fails when a timer is already running, when the order is archived, or when workspace entry rules (required notes or external link) are not met.

Media typeapplication/json
object
description
string
externalLinkUrl
string format: uri
orderActivityTypeId

The order activity type to log against. Omit it and the member’s default activity type is used when the order offers it; otherwise the entry has none.

string
orderId
required
string
>= 1 characters
tagIds
Array<string>
taskId

The task the timer is logged against. A task that is missing, Personal or out of the caller’s reach answers 404. Omit it and a Chelsea task link in externalLinkUrl supplies the task when the caller can reach it; otherwise the timer starts without a task.

string

Example generated

{
"description": "example",
"externalLinkUrl": "https://example.com",
"orderActivityTypeId": "example",
"orderId": "example",
"tagIds": [
"example"
],
"taskId": "example"
}

Timer started (data is null).

Media typeapplication/json
object
data
required
null

Example generated

{
"data": "example"
}

Invalid body, archived order, or workspace entry rules not met.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

The task named by taskId is missing, in a Personal project or outside the caller’s reach. The answer is the same in every case.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

A timer is already running.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.