Docs
Quick Start
  • Getting Started Guide
  • Postman Collection
  • Booking Workflow Guide
Endpoints
  • Events
  • Venues
  • Spaces
  • Bookings
  • Availability
  • Event Categories
  • Event Types
  • BMS
  • Authentication
  1. Home
  2. Docs
  3. BMS

BMS

Building management feed: events, spaces and scenarios

BMS feed

Read-only endpoints for building-management consumers. They answer in a PascalCase contract ({Events|Spaces|Scenarios} plus Meta), need the bms.read scope, and every call needs a venue_idinside the key's venue restriction. Errors use the v1 envelope (400 INVALID_PARAMS, 403 FORBIDDEN). The same handlers are also served under /api/bms for the Booka front end; integrations should use /api/external/bms.

List BMS events

GET/api/external/bms/events

Events with their space functions (bookings) in a window, for a venue.

Required scope: bms.read · Headers: X-API-Key (staging also X-Tenant)

Query parameters

NameTypeRequiredDescription
venue_idintegerYesVenue to read.
start_dateISO 8601NoWindow start. Default: one week ago.
end_dateISO 8601NoWindow end. Default: four weeks ahead.
changed_sinceISO 8601NoOnly events changed on or after this time.

Example request

curl -X GET "$BASE_URL/api/external/bms/events?venue_id=1&start_date=2027-04-01T00:00:00Z&end_date=2027-05-01T00:00:00Z" \
  -H "X-API-Key: $API_KEY" \
  -H "X-Tenant: $TENANT" \
  -H "Accept: application/json"

Responses

200 Events plus Meta (total, dateRange, generatedAt, venueId, venueName).

{
  "Events": [
    {
      "EventName": "Autumn Expo",
      "EventID": "2",
      "EventDescription": "Trade expo",
      "EventVenue": "Harbour Arena",
      "VenueIds": [
        "1"
      ],
      "Tier": "5",
      "EventStartDateTime": "2027-04-09T23:00:00+00:00",
      "EventEndDateTime": "2027-04-10T07:00:00+00:00",
      "TriggerAnchor": {
        "Source": "gates",
        "Time": null
      },
      "EventTimeZone": "Australia/Sydney",
      "EventCategory": "Tier 5 Event",
      "EventType": "Conference",
      "EventDaysDuration": 1,
      "EventConfidential": false,
      "EventStatus": "A",
      "EventMainSpace": "Main Hall",
      "EventAllSpaces": [
        "Main Hall"
      ],
      "EventFunctions": {
        "Main Hall": [
          {
            "FunctionID": "1",
            "SpaceID": "1",
            "BMSZoneCode": null,
            "StartTime": "2027-04-09T23:00:00+00:00",
            "EndTime": "2027-04-10T07:00:00+00:00",
            "Status": "confirmed",
            "Notes": null,
            "LinkedSpaces": [],
            "BMSScenario": null
          }
        ]
      },
      "BMSScenario": null,
      "...": "further Entered/Changed timestamps and gate times"
    }
  ],
  "Meta": {
    "total": 1,
    "dateRange": {
      "start": "2027-04-01T00:00:00Z",
      "end": "2027-05-01T00:00:00Z"
    },
    "generatedAt": "2026-11-24T07:16:11.265181Z",
    "venueId": 1,
    "venueName": "Harbour Arena"
  }
}

400 Validation failed (this route uses the v1 error envelope).

{
  "error": "Bad Request",
  "message": "The from field is required. (and 1 more error)",
  "code": "INVALID_PARAMS",
  "timestamp": "2026-11-24T07:16:04Z",
  "details": {
    "venue_id": [
      "The venue id field is required."
    ]
  }
}

401 Missing, unknown, inactive or expired API key.

{
  "error": "Unauthorized",
  "message": "Invalid or expired API key.",
  "code": "UNAUTHORIZED",
  "timestamp": "2026-11-24T07:16:04Z"
}

403 The key lacks the required scope, or the venue is outside the key's venue restriction.

{
  "error": "Forbidden",
  "message": "This API key is not permitted to read bms.",
  "code": "FORBIDDEN",
  "timestamp": "2026-11-24T07:16:04Z"
}

429 The key's per-minute rate limit was exceeded. Wait retry_after seconds.

{
  "error": "Too Many Requests",
  "message": "Rate limit exceeded.",
  "code": "TOO_MANY_REQUESTS",
  "timestamp": "2026-11-24T07:16:04Z",
  "retry_after": 42
}

List BMS spaces

GET/api/external/bms/spaces

Spaces in a venue, with their zone codes and child spaces.

Required scope: bms.read · Headers: X-API-Key (staging also X-Tenant)

Query parameters

NameTypeRequiredDescription
venue_idintegerYesVenue to read.
include_inactivebooleanNoInclude inactive spaces. Default false.

Example request

curl -X GET "$BASE_URL/api/external/bms/spaces?venue_id=1" \
  -H "X-API-Key: $API_KEY" \
  -H "X-Tenant: $TENANT" \
  -H "Accept: application/json"

Responses

200 Spaces plus Meta.

{
  "Spaces": [
    {
      "SpaceID": "1",
      "LegacySpaceID": null,
      "SpaceName": "Main Hall",
      "SpaceCode": null,
      "SpaceType": null,
      "VenueID": "1",
      "VenueName": "Harbour Arena",
      "ParentSpaceID": null,
      "IsBookable": true,
      "IsActive": true,
      "IsComposite": false,
      "CapacitySeated": null,
      "CapacityStanding": null,
      "BMSZoneCode": null,
      "ChildSpaces": []
    }
  ],
  "Meta": {
    "total": 2,
    "generatedAt": "2026-11-24T07:16:11.385748Z",
    "venueId": 1,
    "venueName": "Harbour Arena"
  }
}

400 Validation failed (this route uses the v1 error envelope).

{
  "error": "Bad Request",
  "message": "The from field is required. (and 1 more error)",
  "code": "INVALID_PARAMS",
  "timestamp": "2026-11-24T07:16:04Z",
  "details": {
    "venue_id": [
      "The venue id field is required."
    ]
  }
}

401 Missing, unknown, inactive or expired API key.

{
  "error": "Unauthorized",
  "message": "Invalid or expired API key.",
  "code": "UNAUTHORIZED",
  "timestamp": "2026-11-24T07:16:04Z"
}

403 The key lacks the required scope, or the venue is outside the key's venue restriction.

{
  "error": "Forbidden",
  "message": "This API key is not permitted to read bms.",
  "code": "FORBIDDEN",
  "timestamp": "2026-11-24T07:16:04Z"
}

429 The key's per-minute rate limit was exceeded. Wait retry_after seconds.

{
  "error": "Too Many Requests",
  "message": "Rate limit exceeded.",
  "code": "TOO_MANY_REQUESTS",
  "timestamp": "2026-11-24T07:16:04Z",
  "retry_after": 42
}

List BMS scenarios

GET/api/external/bms/scenarios

The venue's active BMS scenarios and their trigger rules. Empty until the venue has scenarios configured.

Required scope: bms.read · Headers: X-API-Key (staging also X-Tenant)

Query parameters

NameTypeRequiredDescription
venue_idintegerYesVenue to read.

Example request

curl -X GET "$BASE_URL/api/external/bms/scenarios?venue_id=1" \
  -H "X-API-Key: $API_KEY" \
  -H "X-Tenant: $TENANT" \
  -H "Accept: application/json"

Responses

200 Scenarios plus Meta.

{
  "Scenarios": [],
  "Meta": {
    "total": 0,
    "generatedAt": "2026-11-24T07:16:11.507062Z",
    "venueId": 1,
    "venueName": "Harbour Arena"
  }
}

400 Validation failed (this route uses the v1 error envelope).

{
  "error": "Bad Request",
  "message": "The from field is required. (and 1 more error)",
  "code": "INVALID_PARAMS",
  "timestamp": "2026-11-24T07:16:04Z",
  "details": {
    "venue_id": [
      "The venue id field is required."
    ]
  }
}

401 Missing, unknown, inactive or expired API key.

{
  "error": "Unauthorized",
  "message": "Invalid or expired API key.",
  "code": "UNAUTHORIZED",
  "timestamp": "2026-11-24T07:16:04Z"
}

403 The key lacks the required scope, or the venue is outside the key's venue restriction.

{
  "error": "Forbidden",
  "message": "This API key is not permitted to read bms.",
  "code": "FORBIDDEN",
  "timestamp": "2026-11-24T07:16:04Z"
}

429 The key's per-minute rate limit was exceeded. Wait retry_after seconds.

{
  "error": "Too Many Requests",
  "message": "Rate limit exceeded.",
  "code": "TOO_MANY_REQUESTS",
  "timestamp": "2026-11-24T07:16:04Z",
  "retry_after": 42
}