example call object with phone number details
# support
m
Looking through docs and can't find an example object with a callers phone number Where do I find it
v
message has been deleted
@mercury I'm here to help! The object you're looking for is the
customer
object, which includes the caller's phone number. Here's an example of what that object looks like:
Copy code
json
{
  "customer": {
    "number": "123-456-7890",
    "name": "John Doe",
    "extension": "123"
  }
}
In this example,
customer.number
is the field where you would put the caller's phone number. If you need further assistance or examples, please let me know!
You can continue this conversation by mentioning me in the message.
m
Is there an example of a server event containing this
c
Are you trying to have Vapi remember?
If so it super simple, the docs explain - you need an account server. When someone calls the server it will get pinged with an object- which is assistant request.
Read this
m
I read the docs - can you point out the exact keys I should be focusing on that show the phone number for a user that dials in
m
Ty
I'm out front