Call id
39735a87-203b-4808-ba0a-8a7a22f505ca
This is an example of trying to use the resspone of POST request = 'option_request_id'
And using it in a subsequent POST request, but it fails to populate the 'option_request_id' in the arguments
1st post and result
{
"role": "tool_calls",
"time": 1749669826730,
"message": "",
"toolCalls": [
{
"id": "818d8956",
"type": "function",
"function": {
"name": "get_events_vapi",
"arguments": "{\n \"lead_id\": \"recMFOShg13366Zki\",\n \"language_id\": \"recvr7LEEosjFtclE\",\n \"option_request_id\": \"\"\n}"
}
}
],
"secondsFromStart": 31.027
}
{
"name": "get_events_vapi",
"role": "tool_call_result",
"time": 1749669835831,
"result": "{\"option_request_id\": \"recBZVOpg2C6464Mg\"}",
"toolCallId": "818d8956",
"secondsFromStart": 40.128
}
2ND POST and result (fail to populate)
{
"role": "tool_calls",
"time": 1749669838627,
"message": "",
"toolCalls": [
{
"id": "582e12b2",
"type": "function",
"function": {
"name": "Check_options",
"arguments": "{\"option_request_id\": \"\"}"
}
}
],
"secondsFromStart": 42.924
}
ERROR result from my server
{
"name": "Check_options",
"role": "tool_call_result",
"time": 1749669841188,
"result": "[\n {\n \"error_code\": 400,\n \"error_field\": null,\n \"error_kind\": \"validation\",\n \"error_message\": \"Missing option_request_id in request body\",\n \"error_type\": \"ValidationError\",\n \"request_data\": \"{\\\"option_request_id\\\": \\\"\\\"}\",\n \"request_headers\": \"{\\\"Content-