Get GHL Contact Tool Error: 422 Request failed wit...
# support
l
I get the 422 error when running the inbuild tool "GoHighLevel Contact Get"
v
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](https://discord.com/channels/1211482211119796234/1332510949940133960). 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](https://discord.com/channels/1211482211119796234/1332510949940133960)
l
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
k
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: .
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.
l
Thanks for your suggestion Kyle. It does have the country code.
v
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](https://discord.com/channels/1211482211119796234/1332510949940133960) - [GoHighLevel Tool Configurations](https://docs.vapi.ai/tools/go-high-level#gohighlevel-get-contact-tool)
l
I have deleted the tool and recreated it. It appears to be working now.
v
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](https://docs.vapi.ai/tools/go-high-level#gohighlevel-get-contact-tool) for required fields and best practices. Source: - [GoHighLevel Tool Configurations](https://docs.vapi.ai/tools/go-high-level#gohighlevel-get-contact-tool)
k
Marking this ticket as Solved ✅