Getting started
The Milo Partner API lets your app show a club's free courts, book them for your players, and keep those bookings up to date. A club connects your app itself, in its Milo admin, with OAuth 2. Players pay you; Milo charges no fee on these bookings and no money passes through Milo.
What Milo sets up
There is no self-service sign-up. Mail hallo@bookwithmilo.com with your company name and Milo registers you as a partner. Milo then gives you, each shown once:
| What | Used for |
|---|---|
| Client id and client secret | The OAuth connect and the token endpoint. The secret is 64 hex characters; keep it on your server. |
| Redirect URIs | Registered by Milo on request, matched exactly. A live client accepts https only. |
Webhook endpoint and its secret (whsec_...) |
Where Milo sends booking events. Registered by Milo on request. |
Send Milo the redirect URIs and the webhook URL you want, and ask again whenever they change. Milo can also issue a static token (mk_live_...) for a club Milo grants you directly; most partners only need OAuth.
The sandbox
Ask Milo to create your sandbox. You receive a second client (its own id and secret) and the login of a sandbox club's owner, each shown once.
- The sandbox club is called "
sandbox": two indoor padel courts, Padel 1 and Padel 2, open 08:00 to 23:00 every day, bookable for 60, 90 or 120 minutes. - It is hidden: no public club page, not in Milo's player widget. Only your API calls reach it.
- The sandbox client connects sandbox clubs only, and your live client never connects one.
- Its redirect URIs may also be
http://localhostorhttp://127.0.0.1on any port. - Bookings there send webhooks to the endpoints Milo registered as sandbox endpoints only; live bookings never go there.
Log in at https://bookwithmilo.com/admin/login with the owner's email and password whenever the connect flow asks for the club's owner.
Your first request
Every API call goes to https://bookwithmilo.com/api/external/v1 with the token in the Authorization header. Once a club connected, ask who your token is:
curl https://bookwithmilo.com/api/external/v1/me \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"partner": { "id": "01938a70-1b2c-7d3e-8f4a-5b6c7d8e9fa0", "name": "Example Sports" },
"scopes": ["read", "write"],
"clubs": [{ "id": "01938a7e-5b1c-7d2e-8f3a-4b5c6d7e8f90", "name": "Example sandbox", "timezone": "Europe/Amsterdam" }],
"credential": null
}
Then book a court. Every endpoint, field and answer is in the API reference.