Activity Messenger Help Center
Shared booking availability
See API introduction for authentication, request conventions, rate limits, and errors.
Let a partner, such as a sports facility marketplace, show when your booking packages (for example court rentals) are free, for which lengths and at what price. Customers then follow the package's booking link to book and pay on your own site. The partner cannot create bookings, and it never receives client names, contact details, bookings, invoices or payments.
How it works
- You choose which booking packages to share.
- You create an API key limited to shared availability and send it to the partner.
- The partner lists your shared packages, then reads the free times of each one.
- A customer who picks a time on the partner's site is sent to your booking page to complete the booking.
Availability follows the same rules as your public booking calendar for a visitor who is not signed in: opening hours and prices, offered lengths and time steps, buffers, existing bookings, closures, holidays, overlapping resources, and how far in advance and how close to the start a booking can be made.
Share a booking package
- Open E-Commerce → Booking packages and edit a booking package.
- Turn on Share availability with partners. This switch appears only on booking packages and is off by default.
- Save the package.
A shared package must also be visible and not disabled. Hiding, disabling or deleting a package removes it from the partner immediately, without changing the switch. Turn the switch off to stop sharing a package. A duplicated package is never shared until you turn the switch on.
Create a key for the partner
Only account owners and organization owners can create API keys.
- Open Organization settings → Web & integrations → API keys / MCP tokens.
- Click Add a key / token and choose API key.
- Enter a Name that identifies the partner.
- Set Allowed endpoints to Shared availability only (read-only).
- Set Validity in days, from 1 to 365. The default is 365 days.
- Click Add a key / token, then send the key to the partner over a secure channel.
A key limited to shared availability works only with the two endpoints below; every other endpoint rejects it with HTTP 401. It cannot have partner-network access. Create a separate key for each partner so you can revoke one without affecting the others. Before the key expires, create a replacement, send it to the partner, then revoke the old key. Revoking a key stops the partner's access immediately.
A key with the full organization API also works with these endpoints, but it grants much broader access. Do not give one to a partner.
Requests
Send the X-Activity-Messenger-Api-Key header on every request. These endpoints are limited to 120 requests per minute; above that, the API returns HTTP 429. Request each package separately: list the shared packages once, then request the availability of each package.
GET /api/v1/organization/{organization}/shared_packages
Lists the shared packages as a data array, without pagination, in the same order as the administration interface. Each package contains these fields:
id: numeric package ID; the stable key. Use it in the availability endpoint.name,short_description: display text, in the organization's language.category:{ "id", "name" }of the package category, or null.lengths: booking lengths offered, in minutes, from shortest to longest.default_length: the length the calendar shows first, in minutes, or null.resources: the resources the package reserves, such as courts, as{ "id", "name" }. Disabled resources are omitted.requires_coupon:truewhen the package can only be booked with a coupon. Its prices are then null.plus_tax:truewhen taxes are added at checkout.timezone: the organization's IANA timezone.currency: currency code of the prices, for exampleCAD.booking_url: the public page where customers book the package.
GET /api/v1/organization/1234/shared_packages
{
"data": [
{
"id": 42,
"name": "Pickleball court rental",
"short_description": "Indoor courts",
"category": { "id": 7, "name": "Courts" },
"lengths": [60, 90, 120],
"default_length": 60,
"resources": [
{ "id": 11, "name": "Court 1" },
{ "id": 12, "name": "Court 2" }
],
"requires_coupon": false,
"plus_tax": true,
"timezone": "America/Winnipeg",
"currency": "CAD",
"booking_url": "https://activitymessenger.com/org/1234/package/42"
}
]
}
GET /api/v1/organization/{organization}/shared_packages/{package}/availability
Returns the start times a customer can book now, for each requested length.
Query parameters:
from: optional first day,YYYY-MM-DD, in the organization's timezone. Defaults to today.to: optional last day, inclusive,YYYY-MM-DD. Defaults to 7 days in all. It must be on or afterfrom, and the range cannot exceed 31 days.durations[]: optional lengths in minutes, each one of the package'slengths. Defaults to every offered length.
The response contains the package (same fields as the list), the from and to dates used, and a lengths array with one entry per length. Each entry has minutes and a slots array sorted by time; an empty array means nothing can be booked for that length. Each slot contains:
start,end: ISO 8601 timestamps with the organization's UTC offset.available_count: how many of this slot can still be booked, for example the number of free courts. Always at least 1.price: the public price for this start and length. Seeplus_tax. Null when the package requires a coupon.resources: the free resources for this start, as{ "id", "name" }.
GET /api/v1/organization/1234/shared_packages/42/availability?from=2026-12-04&to=2026-12-05&durations[]=60
{
"package": { "id": 42, "name": "Pickleball court rental" },
"from": "2026-12-04",
"to": "2026-12-05",
"lengths": [
{
"minutes": 60,
"slots": [
{
"start": "2026-12-04T18:00:00-06:00",
"end": "2026-12-04T19:00:00-06:00",
"available_count": 2,
"price": 40,
"resources": [
{ "id": 11, "name": "Court 1" },
{ "id": 12, "name": "Court 2" }
]
}
]
}
]
}
The package object in this example is shortened; the response contains every field of the list endpoint.
Limits
- Prices and times are those of a visitor who is not signed in. Member prices and member-only booking windows are not included.
- Taxes added at checkout, add-ons, coupons and booking fees are calculated on your site during checkout.
- Times beyond the booking window are not returned, even when your calendar displays them.
- Availability can change at any moment. Your site confirms it when the customer books.
Errors
401: the key is missing, invalid, expired or revoked, or it belongs to another organization.404: the package does not exist, belongs to another organization, was deleted, is not shared, is hidden or is disabled.422: a parameter is invalid, for example a badly formatted date, a range longer than 31 days, or a length the package does not offer. The body lists the errors inerrors.429: too many requests. Wait before trying again.