{{customer.phone}} is not accessible in tool.
# support
r
I am trying to call api tool with payload phone :{{customer.phone}} pass but not able to show in payload this.
v
Use
{{customer.number}}
instead of
{{customer.phone}}
in your tool payload.
For example, your payload should look like:
Copy code
json
{
  "phone": "{{customer.number}}"
}
This will correctly populate the customer's phone number in your tool, as
{{customer.number}}
is the default variable for this purpose according to the documentation you have found. See the [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables) for more details. Source: - [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables)
c
Hi Ridham Golakiya, For your API tool, ensure you use
{{customer.number}}
instead of
{{customer.phone}}
to correctly capture the caller’s phone number. Here's how your payload should look:
Copy code
json
{
  "phone": "{{customer.number}}"
}
This adjustment should resolve the issue and ensure the phone number is correctly included in the payload. You can refer to the [Personalization with user information documentation](https://docs.vapi.ai/assistants/personalization) for more details on using dynamic variables.
r
Thank you!! it works
c
Thanks for getting back to us. We are delighted to know your issue has been resolved. Please do let us know if you need further assistance. We will be closing this for now and have a great day ahead!