Issue with Appointment Booking Scenario - "Invalid JWT" Error Despite Using GHL API Key

I have a scenario set up where:

A caller requests an appointment time.
If the requested time is available, the AI agent (via VAPI) books the appointment.
If the time is unavailable, it suggests similar available times.
However, I’m running into two main issues:

The scenario isn’t progressing past the filter applied after the “Make a Basic Auth Request” step.
When I check the error, it returns:
json
Copy code
{“statusCode”:401,“message”:“Invalid JWT”}
Despite this, I’m using my GoHighLevel (GHL) API key, which I have verified is correct.
Additionally, when the scenario attempts to find similar times, it sometimes suggests random times that aren’t actually available.

Could you help me understand:

Why the error mentions “Invalid JWT” when I’m using my API key?
What might cause the scenario to get stuck at this stage?
Why it’s returning unavailable times when suggesting similar options?



Hi Joe,

Were you able to fix this? I am stuck with the same error.

The issue was caused by the HTTP request. When creating a keychain, the username and password fields at the top were autofilling. These fields need to be left blank. Please try this and let me know if it resolves the issue mate.