Skip to content

What the lab's simulator intends in a window

GET
/lab/calendar
curl --request GET \
--url 'https://example.com/api/v1/lab/calendar?start=2026-04-15T12%3A00%3A00Z&end=2026-04-15T12%3A00%3A00Z'

The lab calendar (#2757) for a window: the meetings and scripted problems every simulated room acts out, the ground truth to lay beside what Omniglass detected. Derived from the lab’s scenario and seed (the same calendar the simulator computes), never stored or learned from collected data. Lab only: a server that is not a lab answers 404. Gated by simulation:read; entries are limited to rooms whose system is in the caller’s system read scope. The window is at most 31 days; a wider one is a 422. site, building, room and system narrow it further.

start
required

Start of the window (RFC 3339).

string format: date-time

Start of the window (RFC 3339).

end
required

End of the window (RFC 3339), after start and at most 31 days past it.

string format: date-time

End of the window (RFC 3339), after start and at most 31 days past it.

site

Only rooms at this site.

string

Only rooms at this site.

building

Only rooms in this building.

string

Only rooms in this building.

room

Only this room.

string

Only this room.

system

Only the room of this system, by name.

string

Only the room of this system, by name.

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
end
required
string format: date-time
entries
required

What the simulator intends in the window, in start order, for the rooms whose system the caller may read.

Array<object>
object
building
required
string
end
required

When it ends.

string format: date-time
kind
required

What the entry is: meeting, or a scripted problem (#2769).

string
payload
required

The entry’s own fields, by kind. A meeting carries origin (booked or walk-in), organizer, expected, actual, outcome (held, no-show, ended-early, ended-late), slot_start, slot_end and recorded. A problem carries name, role, unplugged, loss_pct and, when it pins a path, pin_path and pin_value.

object
key
additional properties
room
required
string
site
required
string
start
required

When the entry begins on the simulator’s clock.

string format: date-time
system
required

The system built in the room.

string
start
required
string format: date-time

Example

{
"$schema": "/api/v1/schemas/LabCalendarOutputBody.json"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}