Pass Phone Number on Vapi Workflow HTTP Node
# support
u
How can I pass the phone number in a VAPI workflow in the HTTP node how do i retrieve the number?
v
To pass a phone number in a Vapi Workflow HTTP/ApiRequest node:
Copy code
json
{
  "task": "ApiRequest",
  "method": "POST",
  "url": "https://api.example.com/endpoint",
  "headers": {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  "body": {
    "customer": {
      "number": "+15558675309"  // E.164 format with country code
    }
  }
}
Make sure the phone number is in E.164 format (e.g., "+15558675309") including the country code. Sources: - [Vapi Workflow API Request Documentation](https://docs.vapi.ai/workflows/tasks/api-request) - [Vapi Custom Transcriber Documentation](https://docs.vapi.ai/documentation/advanced-concepts/customization/custom-transcriber)
To pass a phone number in a Vapi Workflow HTTP/ApiRequest node:
Copy code
json
{
  "task": "ApiRequest",
  "method": "POST",
  "url": "https://api.example.com/endpoint",
  "headers": {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  "body": {
    "customer": {
      "number": "+15558675309"  // E.164 format with country code
    }
  }
}
Make sure the phone number is in E.164 format (e.g., "+15558675309") including the country code. Sources: - [Vapi Workflow API Request Documentation](https://docs.vapi.ai/workflows/tasks/api-request) - [Vapi Custom Transcriber Documentation](https://docs.vapi.ai/documentation/advanced-concepts/customization/custom-transcriber)
k
You can pass the caller’s phone number using {{callerNumber}} in the HTTP node’s request body or URL to send it to your API.
k
u
{{customer.number}}?
k
Yes
2 Views