# Stagetimer: guide for AI agents

Last updated: 2026-11-24. Human version: https://stagetimer.io/docs/ai-agents/

You help a user set up a show in Stagetimer, and optionally change it or control it through the API. Read this whole file before you act. Everything you need is here. The links at the end are for details only.

## What Stagetimer is

Stagetimer is a remote-controlled countdown timer for live events. A **room** holds a **rundown**: an ordered list of **timers** (one per segment), with headings, groups and end-of-day rows between them. A room also holds **messages** that the operator sends to the presenter's screen. The operator controls the room from the **controller**. Presenters and crew see the room on **outputs** (fullscreen timer, agenda, moderator view) in any browser.

## The workflow

1. **Ask the user about the show.** Get the agenda in any form: a pasted text, a PDF, a spreadsheet, an email. Ask only for what is missing (see "What to ask the user").
2. **Write a room JSON file** in the format below. Give it to the user as a file, or as one code block they save as `something.json`.
3. **The user imports it.** On the dashboard: **New → Import JSON**. In the desktop app: the import button in the room list. The import always creates a new room. The room name gets " (Imported)" added.
4. **Optional: changes and live control through the API.** Ask the user for the room's API details (see "Get API access"). Then use the API.

Use the JSON import to set up a show. It sets everything at once: timers, headings, groups, end-of-day rows, the event date, messages, settings and outputs. The API cannot create a room, headings, groups or end-of-day rows, and it cannot set the room date.

## Plans

- JSON import and the API need a paid license: Pro, Premium, or a 30-day event license. The free plan cannot import or use the API. Tell the user this before you write the file.
- Planned for Q1 2027: setting up a room through the API becomes free. A paid plan is then needed only for premium features during the show. This is not live yet.
- The desktop app (Windows, macOS, Linux) imports the same JSON files and runs offline.

## What to ask the user

Ask only for what you cannot read from their material:
- The event date, and the timezone of the venue (IANA name, for example `Europe/Berlin`, `America/New_York`).
- For each segment: title, speaker, and either a duration or a start time.
- Which segments must start at a fixed clock time. All other segments start when the operator presses start.
- Optional: notes for the operator, groups of segments (for example "Keynotes"), messages to prepare for the presenter.

Do not invent segments, speakers or times. If the material is complete enough, write the file at once and list your assumptions in the handover. Ask about real gaps, for example a time that nobody fills before lunch. Do not fill a gap with a made-up timer: the controller shows gaps and overlaps between planned times, and the operator resolves them there.

If the user did not name their plan, tell them that import needs a paid plan.

## Room JSON format (version 6)

A complete example: https://stagetimer.io/files/stagetimer-room-sample.json. Read it. It imports as it is.

### Top level

| Key | Required | Value |
|---|---|---|
| `version` | yes | `6` (number). Always write 6. |
| `name` | yes | Room name, string. |
| `date` | no | First day of the show, `"YYYY-MM-DD"`, or `null` for no date. Scheduled timers start only in a room with a date. |
| `settings` | no | Object. Write at least `{ "timezone": "<IANA name>" }`. See "Settings". |
| `timers` | yes | Array of timer objects. Can be empty. |
| `messages` | yes | Array of message objects. Can be empty. |
| `rundown` | yes | Array that sets the order of the timers and the rows between them. See "Rundown". |
| `target` | no | Show end. Leave it out. |
| `outputs` | no | Leave it out. The room then gets the default outputs: Viewer, Agenda and Moderator. See "Outputs and styling". |

### Timer object

| Key | Default | Value |
|---|---|---|
| `index` | **required** | Number. Write the position in the `timers` array: 0, 1, 2, … |
| `name` | `""` | Segment title. |
| `extra` | `""` | **The speaker.** In the JSON the speaker field is called `extra`. |
| `notes` | `""` | Notes for the operator. |
| `type` | `"DURATION"` | `"DURATION"`: runs for `hours`/`minutes`/`seconds`. `"FINISH_TIME"`: counts down to `finishTime`. |
| `hours`, `minutes`, `seconds` | `0`, `10`, `0` | Duration. Integers. Write all three. A 1 h 30 min segment is `1`, `30`, `0`. |
| `finishTime` | `null` | Only for `type: "FINISH_TIME"`. Date-time, see "Times". |
| `trigger` | `"MANUAL"` | `"MANUAL"`: the operator starts it. `"LINKED"`: starts when the timer before it ends. `"SCHEDULED"`: starts at `startTime` (needs a room `date`). |
| `startTime` | `null` | Required for `"SCHEDULED"`. On other timers it is optional: a planned start that the controller uses to show if the show runs over or under. Date-time, see "Times". |
| `yellow` | `60000` | Wrap-up warning: the timer turns yellow this many **milliseconds** before zero. 2 minutes = `120000`. |
| `red` | `15000` | The timer turns red this many **milliseconds** before zero. Smaller than `yellow`. |
| `appearance` | `"COUNTDOWN"` | `"COUNTDOWN"`, `"COUNTUP"`, `"TOD"` (time of day), `"COUNTDOWN_TOD"`, `"COUNTUP_TOD"`, `"HIDDEN"`. |
| `labels` | `[]` | Colored tags on the controller: `[{ "name": "VT", "color": "#F44336" }]`. Both keys required, color as hex. |
| `fields` | `null` | Custom data, any JSON object, up to 4 KB per timer. Outputs show a value with `$CURRENT_FIELD[key]`. |
| `chime` | all `"NONE"` | Sound at four moments: `{ "start", "yellow", "red", "zero" }`. Values: `NONE`, `BEEP1X`, `BEEP2X`, `BEEP`, `BELL`, `BELL2X`, `BELL3X`, `DING`, `DING2X`, `DING3X`, `GONG`, `BUZZER`, `ITSTIME`, `SHIPBELL`, `SHIPHORNSINGLE`, `SHIPHORN`, `WINDCHIME`, `SILENCE`, `SHORT440HZ1X`–`3X`, `SHORT880HZ1X`–`3X`, `LONG440HZ1X`–`3X`, `LONG880HZ1X`–`3X`. Paid feature. |
| `flash` | all `0` | Flash the timer at the same four moments: `0` (no), `1`, `2`, `3` times, or `-1` (until it stops). `yellow` and `red` are the moments the timer turns that color, `zero` is the moment it reaches zero. "Flash when over" is `"zero": -1`. Paid feature. |

Leave out a key to get its default. Do not write `_id`, `roomPid`, `createdAt` or keys not in this table.

### Choose the trigger

| The material says | Write |
|---|---|
| A fixed clock start: "9:00 sharp", "must start 12:30" | `"trigger": "SCHEDULED"` with `startTime`. At that time it starts and replaces the running timer, also when that timer runs over. |
| A hard end: "ends 4:30 pm" | `"type": "FINISH_TIME"` with `finishTime`. It counts down to that time from whenever it starts. Leave out `hours`, `minutes`, `seconds`. |
| A start time that is only the plan | `"trigger": "MANUAL"` with `startTime`. The controller uses it to show over/under. |
| "Straight into the next one", no pause | `"trigger": "LINKED"`. Use it only when the user wants no operator step between the two. |
| Nothing | `"trigger": "MANUAL"`. |

Wrap-up warnings: if the user gives only one warning ("2 min warning"), set `yellow` and keep the default `red`. After zero the timer keeps counting as overtime with the `overtimePrefix`.

### Message object

| Key | Default | Value |
|---|---|---|
| `index` | **required** | Position in the `messages` array: 0, 1, 2, … |
| `text` | `""` | The message. |
| `color` | `"white"` | `"white"`, `"green"` or `"red"`. |
| `bold` | `false` | Boolean. |
| `uppercase` | `false` | Boolean. |

### Rundown

The `rundown` array sets the order of everything in the controller. Each entry is one row:

| Entry | Meaning |
|---|---|
| `{ "type": "timer", "timerIndex": 0 }` | Places a timer. `timerIndex` is the position in the `timers` array, starting at 0. |
| `{ "type": "section", "title": "Keynotes", "color": "violet" }` | Opens a heading. `color` is optional. |
| `{ "type": "section-end" }` | Closes the section above it. |
| `{ "type": "marker", "markerType": "END_OF_DAY", "time": "…" }` | Ends a day. Timers below it are on the next day. `time` is the planned end of that day. The controller counts the day's over/under against it. `null`: Stagetimer calculates it from the timers. |

Rules. The import rejects a missing timer and an unclosed section. It accepts the other mistakes, and the room then behaves wrong. Follow all of them:
- Place every timer exactly once. Do not place a timer that is not in `timers`.
- Close every `section` with one `section-end`. Sections do not nest.
- **Heading:** a `section` followed directly by its `section-end`. It is a label row, for example "Day 2" or "Afternoon".
- **Group:** a `section` with timers between it and its `section-end`. The controller numbers group timers 2.1, 2.2, … A group cannot contain an `END_OF_DAY` marker.
- Section titles: 120 characters at most.
- Section colors: `slate`, `wine`, `pink`, `fuchsia`, `violet`, `indigo`, `cyan`, `stone`, `brown`, `orange`, `mustard`, `olive`, `green`, `emerald`, `teal`. Leave `color` out for neutral gray.
- Multi-day show: put one `END_OF_DAY` marker after the last timer of each day except the last day. The room `date` is day 1. A heading like "Day 2" after the marker is optional; it only helps the operator read the rundown.

### Times

`startTime`, `finishTime` and a marker `time` are ISO 8601 date-times **with the UTC offset of the room timezone**:
- 9:00 in Berlin in March: `"2027-03-04T09:00:00+01:00"`. In July: `"2027-07-04T09:00:00+02:00"` (summer time).
- 9:00 in New York in March after the DST change: `"2027-03-15T09:00:00-04:00"`.
- Check if daylight saving time is in effect on the date of each day. US clocks change on the second Sunday of March and the first Sunday of November. EU clocks change on the last Sunday of March and October.
- Only the time of day counts. The day comes from the position in the rundown and the `END_OF_DAY` markers. Still write the real date of that day, so the offset is right.
- Always set `settings.timezone`. Without it, times can show in the wrong zone.

### Settings

Write `"settings": { "timezone": "Europe/Berlin" }`. Other useful keys:

| Key | Default | Value |
|---|---|---|
| `timezone` | none | IANA timezone of the venue. |
| `todFormat` | `"AUTO"` | Time-of-day format: `"AUTO"`, `"AUTO_HHMM"`, `"H:mm:ss"`, `"H:mm"`, `"HH:mm:ss"`, `"HH:mm"`, `"h:mm:ss aa"`, `"h:mm aa"`. |
| `overtimePrefix` | `"+"` | Sign before overtime: `"+"` or `"-"`. |
| `tolerance` | `60000` | How far, in milliseconds, the show may run over or under before the controller shows it as late or early. |

### Outputs and styling

Leave `outputs` and all styling settings (logo, fonts, theme, background) out. The room then gets default outputs and the default look, which the user changes in the app.

To reuse a look, ask the user to export a styled room (**Room → Export → JSON**) and send you the file. Copy its `settings` and `outputs` unchanged into your file. Do not write output elements by hand.

### Checklist before you hand over the file

- `version` is `6`. Every timer and message has `index`.
- Every timer is in `rundown` once. `timerIndex` values match array positions.
- Every `section` has its `section-end`. No markers inside a group.
- `yellow` and `red` are in milliseconds. The speaker is in `extra`.
- Every `SCHEDULED` timer has a `startTime`, and the room has a `date`.
- Times carry the right UTC offset for the timezone and date.
- Every enum value is spelled exactly as in the tables. The import does not check them.
- The JSON is valid: no comments, no trailing commas.

## Get API access

Ask the user for this. Do not guess a key.

> Open the room in Stagetimer. Click **Room → API**. If there is no key, click **Generate** (only the room owner can). Click **Copy all** and paste the text here.

The pasted text has the room ID, the API key, the base URL and the docs links. A room key works for this room only. A team key (dashboard → Team → API keys) works for every room of the team.

## API

- Base URL: `https://api.stagetimer.io/v1/`
- Auth: `api_key` query parameter, or header `Authorization: Bearer <key>`. Always send `room_id`.
- Every endpoint is a GET with query parameters. Exception: `POST /update_timer` with a JSON body, to write `fields`.
- Response: `{ "ok": true, "message": "…", "data": … }`. Errors: 400, 401, 404, 429.
- Rate limit: 100 requests per minute (per room for a room key, shared for a team key). Space out bulk edits.
- Spec with every parameter: https://storage.googleapis.com/stagetimer-prod.appspot.com/public/stagetimer-api-v1-spec.yaml

**Field names differ from the JSON file.** In the API the speaker is `speaker` (not `extra`), and `wrap_up_yellow` / `wrap_up_red` are in **seconds** (not milliseconds).

**Target a timer** with `timer_id`, or with `index` as the controller shows it: `"3"`, or `"2.1"` for the first timer in group 2. Messages: `message_id`, or `index` from 1.

| Task | Endpoint |
|---|---|
| Check the key | `/test_auth` |
| Read the room, the timers, the messages | `/get_room`, `/get_all_timers`, `/get_timer`, `/get_all_messages` |
| Read what is running | `/get_status` |
| Add, change, delete a timer | `/create_timer` (adds at the end), `/update_timer`, `/delete_timer` |
| Add, change, delete a message | `/create_message`, `/update_message`, `/delete_message` |
| Get the output links | `/get_output_links` |
| Transport | `/start`, `/stop`, `/start_or_stop`, `/next`, `/previous`, `/reset`, `/start_timer`, `/select_timer` |
| Change the running time | `/add_time?amount=1m`, `/subtract_time?amount=30s` |
| Messages on screen | `/show_message`, `/hide_message` (`focus=true` shows it fullscreen) |
| Screen | `/start_flashing`, `/stop_flashing`, `/enable_blackout`, `/disable_blackout`, `/enable_on_air`, `/disable_on_air` |

Examples:

```
curl "https://api.stagetimer.io/v1/get_all_timers?room_id=ROOM_ID&api_key=API_KEY"
curl "https://api.stagetimer.io/v1/update_timer?room_id=ROOM_ID&api_key=API_KEY&index=3&minutes=25&speaker=Sam%20Rivera"
curl "https://api.stagetimer.io/v1/create_message?room_id=ROOM_ID&api_key=API_KEY&text=5%20minutes%20left&color=red"
```

## Live control

The API can run the show: start, next, add time, messages. You can use it to test a room before the event, for example start a timer, check the status, then reset. During the event the operator usually runs the show from the controller or a Stream Deck. Do not start, stop or skip timers unless the user asks for that action. A wrong call is visible on stage at once.

## Links

- Sample room JSON: https://stagetimer.io/files/stagetimer-room-sample.json
- API docs: https://stagetimer.io/docs/api-v1/
- OpenAPI spec: https://storage.googleapis.com/stagetimer-prod.appspot.com/public/stagetimer-api-v1-spec.yaml
- Timers, headings and groups: https://stagetimer.io/docs/timers/
- Multi-day shows and show timing: https://stagetimer.io/docs/show-timing/
- Import and export: https://stagetimer.io/docs/import-export/
- Product overview: https://stagetimer.io/llms.txt
