Core resources
Administration
Booking flow
With the Bookingmood API you can access and manage your data in a programmatic way, using HTTP requests. The structure of the Bookingmood API is based on PostgREST v11.1 .
The Bookingmood API uses api keys for authentication. You can create and manage API keys from the bottom of settings page of your organization in the admin dashboard .
Once you have an API key simply provide it in the HTTP Authorization header as bearer token.
curl -X GET "https://api.bookingmood.com/v1/products" \ -H "Authorization: Bearer YOUR_API_KEY"
For each endpoint, you can select which columns you want to retrieve by using the select
query parameter. Besides the columns of the resource itself, you can also select columns from related resources. For more advanced selection options refer to the PostgREST documentation .
curl -X GET "https://api.bookingmood.com/v1/products?select=*" \ -H "Authorization: Bearer YOUR_API_KEY"
curl -X GET "https://api.bookingmood.com/v1/products?select=id,name" \ -H "Authorization: Bearer YOUR_API_KEY"
curl -X GET "https://api.bookingmood.com/v1/products?select=name,capacities(*)" \ -H "Authorization: Bearer YOUR_API_KEY"
Filters can be applied on each list, update and delete request, to restrict the rows affected by the request. For a complete list of filters refer to the PostgREST documentation .
curl -X GET "https://api.bookingmood.com/v1/calendar_events?status=eq.CONFIRMED" \ -H "Authorization: Bearer YOUR_API_KEY"
curl -X GET "https://api.bookingmood.com/v1/calendar_events?status=eq.CONFIRMED&type=eq.booking" \ -H "Authorization: Bearer YOUR_API_KEY"
curl -X DELETE "https://api.bookingmood.com/v1/contacts?email=like.%test.com" \ -H "Authorization: Bearer YOUR_API_KEY"
By default, results are sorted by the primary key of the underlying table. You can change the sorting by using the order
query parameter. To limit the number of results, use the limit
and offset
query parameters. The API will return at most 1000 results per request. For more advanced sorting and pagination options refer to the PostgREST documentation .
curl -X GET "https://api.bookingmood.com/v1/products?order=created_at.desc" \ -H "Authorization: Bearer YOUR_API_KEY"
curl -X GET "https://api.bookingmood.com/v1/products?limit=10&offset=10" \ -H "Authorization: Bearer YOUR_API_KEY"