Control the board's timer
Runs the board's shared countdown, which everyone on the board sees:
action |
What it does |
|---|---|
start |
Starts a countdown of minutes (1–120), replacing any timer. |
pause |
Pauses a running countdown that has time left. |
resume |
Resumes a paused countdown. |
add_minute |
Adds a minute to a running or paused countdown; one that reached zero restarts from now. |
stop |
Clears the timer. |
An action the timer is not in a state for answers 409
TIMER_STATE. The board must be active. The answer is the timer
afterwards; count down against server_time rather than your own
clock.
Requires the retro:board:write scope.
Authorization
Parameters
Path parameters
boardIDstring requiredThe board's ID.
Request body required
actionstring requiredminutesintegerThe countdown's length; required forstart, ignored otherwise.
Responses
200
The timer.
successbooleandataTimerShow Timer properties
statestringA running timer whose end has passed staysrunningwithremaining_ms0 until it is stopped.ends_atstring (date-time)When a running countdown ends; left out otherwise.remaining_msinteger (int64)Time left, in milliseconds.server_timestring (date-time)The server's clock when the timer was read.
400
The body is not JSON (INVALID_BODY), action is unknown (INVALID_ACTION), or start has minutes outside 1–120 (INVALID_MINUTES).
successbooleanSent by Retro itself; refusals before the request reaches Retro (401, 429) carry onlyerror.errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
successbooleanSent by Retro itself; refusals before the request reaches Retro (401, 429) carry onlyerror.errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks the scope this endpoint needs (FORBIDDEN).
successbooleanSent by Retro itself; refusals before the request reaches Retro (401, 429) carry onlyerror.errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
404
The board does not exist, or the caller cannot see it (NOT_FOUND).
successbooleanSent by Retro itself; refusals before the request reaches Retro (401, 429) carry onlyerror.errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
409
The board is closed (BOARD_CLOSED), or the timer cannot take this action now (TIMER_STATE).
successbooleanSent by Retro itself; refusals before the request reaches Retro (401, 429) carry onlyerror.errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
successbooleanSent by Retro itself; refusals before the request reaches Retro (401, 429) carry onlyerror.errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
successbooleanSent by Retro itself; refusals before the request reaches Retro (401, 429) carry onlyerror.errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X POST 'https://evohub.io/api/v1/retro/boards/brd_3f9a1c7e2b8d4a60/timer' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"action": "start",
"minutes": 5
}'
