An AI agent locked out of the booking system by an IP check
A booking platform blocked my agent's server login by IP and 2FA. An API user key fixed it for good, and why the agent can't live in a CRM without a messaging API.
An art school in Barcelona runs its bookings on SimplyBook and its messages on Kommo, and I am building the AI agent that sits between them: it answers people on WhatsApp, checks class times and passes, and books. To read and change things in the booking system, the agent logs in as an admin.
That login kept failing on the server. SimplyBook checks the IP address and 2FA for admin logins. It worked from my laptop and broke on Railway, where the agent runs and where the IP can change on every deploy.
The fix
The obvious idea was an IP whitelist. It would break the first time Railway changed the address, and I would find out from an angry message.
SimplyBook also offers an API user key, separate from the admin password and the public API key. With it, the agent’s server login skips the IP check and 2FA and works from any host. I switched the login function to the key, added a fallback with a loud warning if someone puts a password where the key should go, and wrote the setup into the runbook. There are three different keys in that account, and picking the wrong one is the easiest mistake to make.
To prove write access I fixed four real text defects in the school’s membership plans: a Cyrillic letter hiding inside a Spanish word, and trailing spaces in three plan names. Then I compared all 24 plans with the backup taken before the edit: zero changes to prices, limits, services or visibility.
The numbers that decided the platform
The school had been looking at moving bookings to another platform. I pulled the live baseline first: 51 clients, 136 bookings in 90 days, about 45 a month, 24 membership plans.
- One alternative costs $119 a month. At 45 bookings that is about €2.50 per booking just for the tool.
- The current plan costs €29.90 a month and covers up to 500 bookings, about ten times today’s volume.
- The other candidate has no way for an agent to read or send messages: no inbound webhook, no send endpoint. An AI agent cannot work inside a system it cannot talk through.
So for now the school stays where it is, and the agent gets a stable login.
Worth stealing
Before migrating anything, pull the real volume and divide the price by it. And for any server that logs into a SaaS as an admin, look for a dedicated API key before you reach for an IP whitelist.