unwilling-turquoise
unwilling-turquoise6mo ago

Get GHL Contact Tool Error: 422 Request failed with status code 422

I get the 422 error when running the inbuild tool "GoHighLevel Contact Get"
8 Replies
Vapi
Vapi6mo ago
Based on the information I found, a 422 error typically means the request body is missing required fields or does not match the expected schema—often due to a missing parameters field or incorrect property keys (e.g., keys should match the pattern ^[a-zA-Z0-9_-]{1,64}$) source. Could you share the exact request body or input you are sending to the "GoHighLevel Contact Get" tool? This will help identify if any required fields are missing or incorrectly formatted. Source: - Discord discussion on 422 error and JSON schema
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
unwilling-turquoise
unwilling-turquoiseOP6mo ago
This is the toolcallid and information: { "name": "get_duplicate_contact", "role": "tool_call_result", "time": 1747348829861, "result": "[\n {\n "type": "text",\n "text": "Error: API Error: 422 Request failed with status code 422"\n }\n]", "toolCallId": "call_rtp3GKnPSynqRylnuv23X62V", "secondsFromStart": 73.372 } This is the callid: b8bbb834-7210-45e4-8b5f-e4476eb5535e
Shubham Bajaj
Shubham Bajaj6mo ago
Hey, Could you please schedule a brief call at your convenience so we can discuss this matter in detail? Kindly use the following link to book a suitable time: https://calendly.com/shubham-vapi/chat-30m. Please add the country code to the number in E165 format (for example, +1XXXXXXXXXX) and ensure the result is on one line without any newlines. Let me know if that helps.
unwilling-turquoise
unwilling-turquoiseOP5mo ago
Thanks for your suggestion Kyle. It does have the country code.
Vapi
Vapi5mo ago
To help resolve the 422 error, could you please share the exact request body (including the email or phone field) that you are sending to the "GoHighLevel Contact Get" tool? This will help identify if any required fields are missing or incorrectly formatted. Sources: - Discord discussion on 422 error and JSON schema - GoHighLevel Tool Configurations
unwilling-turquoise
unwilling-turquoiseOP5mo ago
I have deleted the tool and recreated it. It appears to be working now.
Vapi
Vapi5mo ago
Great to hear that recreating the "GoHighLevel Contact Get" tool resolved your 422 error! If you encounter similar issues in the future, double-check that your request includes either the email or phone field and that all values are properly formatted. For reference, you can review the GoHighLevel Tool Configurations for required fields and best practices. Source: - GoHighLevel Tool Configurations
Shubham Bajaj
Shubham Bajaj5mo ago
Marking this ticket as Solved ✅

Did you find this page helpful?