The e-allocator web and mobile apps all use the same JSON API. Members can use the part described here from their own scripts, tools and AI assistants: to see their group's resources and time slots, check what is free, and make, change and cancel their own bookings. It also reads the noticeboard and personal messages, and sends messages.
You sign in as a member of a group, with the same group ID, user ID and password as in the app, and you can do exactly what that member can do in the app: no more. Each group is private, so you only ever see your own group. To try it without an account, use the public demo group: group DEMO, user ID DEMO, password DEMO. Everyone who tries the demo shares it, so put nothing private in it.
The member API is described in OpenAPI 3.1: openapi.yaml. Its introduction explains how groups, resources, time slots and bookings fit together, and walks through checking availability and making a booking. Import it into Postman, Insomnia or any other OpenAPI tool, generate a client from it, or give its address to an AI assistant that can make web requests.
The apps people already have installed use this same API, so it only changes in ways that keep existing clients working.
Sign in to the demo group, keeping the session cookie in a file, then look around:
API=https://www.e-allocator.com/api/v1
# Sign in: the response sets the session cookie, kept in cookies.txt
curl -s -c cookies.txt -H 'Content-Type: application/json' \
-d '{"groupname": "DEMO", "username": "DEMO", "password": "DEMO"}' \
$API/sessions
# What can be booked, and when (day_of_week 1 is Sunday)
curl -s -b cookies.txt $API/resources
curl -s -b cookies.txt $API/time_slots
# What is booked around 15 January 2027 (filter by booking_date)
curl -s -b cookies.txt $API/booked_time_slots/day/2027/1/15
curl -s -b cookies.txt $API/bookings/day/2027/1/15
To book, first get the booked time slot for the date and time slot you want (POST /booked_time_slots), then book a resource in it (POST /bookings). The specification shows each step.
POST /sessions sets a cookie named session. Send it with every request: most HTTP clients do this when they keep cookies."remember_me": true.403: sign in again.429). Sign in once and keep the session, rather than signing in for every request.Content-Type: application/json.Errors are JSON: {"error": "..."}. A booking that breaks one of the group's rules (how far ahead, how many a day, how many upcoming) is refused with 400, "booking_rule": true and a message to show the member. Any other refusal is a 400 with "Bad request"; 403 means you are not signed in, and 404 that the item doesn't exist.
Group administration (members, resources, time slots, settings) and billing are not part of the member API. If you need something it doesn't do, tell us.
New to e-allocator? Find out what it is, or start a free 30-day trial for your group.
Back