This guide explains the ideas behind the e-allocator member API, for a developer deciding whether and how to use it. For every endpoint and field, see the specification, openapi.yaml. To try the API in a minute, see the developers page.
Members see their group's bookings as a grid, one day at a time, in the web and mobile apps. The API is built around the same grid, so it is the quickest way in.
primary_flag true). A group can also have secondary resources (primary_flag false), such as an instructor, which are only ever booked together with a primary resource, in the same slot, like the instructor with booking 912345.day_of_week runs from 1 for Sunday to 7 for Saturday. A slot's description is free text chosen by the group, usually its times, in the group's timezone.block_uuid, so they can be changed or cancelled together.A booking doesn't contain its date or time. Its booked_time_slot_id leads to the booked time slot, which has the booking_date and the time_slot_id, and the time slot has the times. GET /bookings/range does that joining for you: it returns each booking with its booking_date, time_slot_id, time_slot_description and resource_description.
Figure 2 shows each kind of object the member API returns, with its main fields, and how they refer to one another. Each one is a schema of the same name in the specification.
resource_id → Resource holds the id of a Resource. Each line joins one object (the end with a bar) to many (the end with three prongs). Open full size| Object | Read with | Change with |
|---|---|---|
| Me (the caller) | GET /me | |
| Group | GET /groups/{group_id} | |
| Member | GET /usersGET /users/{user_id} | |
| Resource | GET /resourcesGET /resources/{resource_id} | |
| Time slot | GET /time_slotsGET /time_slots/{time_slot_id} | |
| Booked time slot | GET /booked_time_slots/day/{year}/{month}/{day}GET /booked_time_slots/week/{year}/{month}/{day}GET /booked_time_slots/month/{year}/{month}GET /booked_time_slots/{booked_time_slot_id} | POST /booked_time_slots (gets or creates) |
| Booking | GET /bookings/range (with dates)GET /bookings/day/{year}/{month}/{day}GET /bookings/week/{year}/{month}/{day}GET /bookings/month/{year}/{month}GET /bookings/{booking_id} | POST /bookingsPUT /bookings/{booking_id}DELETE /bookings/{booking_id}POST /utilities/delete_block/{block_uuid} |
| Notice | GET /noticesGET /notices/{notice_id} |
A group's administrators manage its members, resources, time slots and settings in the app, and notices are posted in the app. Those endpoints are not part of the member API, so through it these can only be read.
Figure 3 shows how a client checks that aircraft G-ABCD (resource 3301) is free from 08:00 on Tuesday 15 December 2026 (time slot 1201), then books it: this is how booking 912345 in figure 1 was made.
POST /sessions and keep the session cookie it sets. Or, instead, send a member's access key with every request.GET /bookings/range?from=2026-12-15&to=2026-12-15 returns that day's bookings, each with its time_slot_id. The resource is free unless one of them has resource_id 3301 and time_slot_id 1201.POST /booked_time_slots returns the booked time slot, creating it if needed; asking twice is harmless. Then POST /bookings with the resource_id and booked_time_slot_id.Checking first shows the member what is free, but it doesn't reserve anything: if someone else books the resource in the meantime, POST /bookings is refused with 400.
A booking that breaks one of the group's rules for members (booking too far ahead, too many bookings on one day, or too many upcoming bookings) is refused with 400, "booking_rule": true and a message to show the member. The limits are the group's max_advance_booking_days, max_bookings_per_day and max_future_bookings, where 0 means no limit. They don't apply to administrators, except when an administrator's access key is used.
To change a booking's description, or move it to another resource in the same slot, use PUT /bookings/{booking_id}. To move it to another date or time, cancel it with DELETE /bookings/{booking_id} and book again. Cancelling a primary booking also cancels the secondary resources booked with it, and POST /utilities/delete_block/{block_uuid} cancels a whole block.
YYYY-MM-DD. Timestamps, such as when a notice was posted, are YYYY-MM-DD HH:MM:SS in UTC, with a space rather than a T.GET /bookings/range?from=…&to=… returns exactly the dates you ask for, both included, up to 92 days at a time, with each booking's date and time slot.booked_time_slot_id in the booked time slots for the same period, and filter by booking_date.booking_date falls on its time slot's day_of_week, so pick a time slot whose day matches the date.You act as the member you signed in as, or whose access key you use, with exactly that member's permissions (and never more than an ordinary member's with a key). GET /me tells you who that is and whether you can book now. Read the member's permissions with GET /users/{user_id} (your own user_id, from GET /me or signing in) and the group's with GET /groups/{group_id}.
| Every member | Reads the group's resources, time slots, bookings, members and notices. Makes, changes and cancels their own bookings, within the group's rules. |
|---|---|
allow_edits false | Can only look: cannot make, change or cancel bookings. |
allow_alter_others true | Can also change and cancel other members' bookings. |
administrator true | Is not limited by the group's booking rules, and sees every member's details. |
Group on_hold | Nobody can make, change or cancel bookings. |
| An access key | Acts as its member, but as an ordinary member even when an administrator made it: the booking rules apply, and other members are listed without their email addresses. A look-only key cannot make, change or cancel bookings. See Using an access key. |
member_details_private) appears in GET /users with only their user ID, except to administrators and to themselves.redact_booking_text is true, other members' bookings show the group's redact_booking_text in place of their description.Ready to try it? The developers page has a quick start against the public demo group, and openapi.yaml has every endpoint. If the API doesn't do something you need, tell us.
Back