For developers
One API for your agency's whole catalogue
Trips, departures, pages, posts, media, bookings and enquiries — all of it, from one documented API. Your website asks for what it needs and gets the answer.
// Your website, in ten lines
const res = await fetch(
"https://wepiloapi.basilpot.com/api/v1/activities",
{ headers: { "x-api-key": process.env.WEPILO_KEY } },
);
const { data } = await res.json();
for (const trip of data) {
console.log(trip.title, trip.price);
}It reads like the API you already know
JSON in and out, ordinary pagination, and errors that say what went wrong. A full guide is served as plain text at /llms.txt, so your coding assistant can read it too.
- Published content only. Drafts never reach the public API.
- Rate limits on public forms, with a Retry-After header.
- The website API keeps answering for 15 days if a subscription lapses.
The endpoints you will actually use
Two ways independing on where the code runs
Every request has to say which agency it is for. Use a key on the server, or a slug from the browser.
x-api-key
For server-side code: Next.js, Astro, Nuxt, or a build script. Generate the key under Settings → API keys and keep it out of the browser.
x-tenant-slug
For browser-side calls where a secret cannot be kept, such as a contact form posting straight from the visitor's browser.
And an AI connectorfor the tools you write with
Wepilo speaks the Model Context Protocol over OAuth. Connect Claude, ChatGPT, Cursor or a site builder like Lovable, and it can read your catalogue and make safe changes inside your workspace — with the same roles and limits as your team.
- Sign in with your Wepilo login and choose Allow. No passwords shared.
- It cannot publish, delete, email travellers or touch billing.
- Disconnect any app from Settings → API keys.
MCP endpoint
https://wepiloapi.basilpot.com/mcp
Tools
- ·list_trips
- ·get_trip
- ·create_trip_draft
- ·update_trip
- ·list_departures
- ·list_bookings
- ·list_inquiries
- ·today_summary
Stop juggling five toolsrun your agency with Wepilo
One dashboard for the sales desk and one API for the website. Start with a trip, and the rest follows.