quanto
11/17/2025, 9:42 PM{
"metadata": {
"userId": "<stack-user-id>",
"tenantId": "<uuid>",
"phoneNumber": "+1415…",
"source": "pstn"
}
We see the PATCH succeeding (200 OK) on our side.
Despite that, subsequent tool calls still arrive without call.metadata.userId, so our auth layer continues to fall back.
Questions
- Is PATCH /call/{id} the correct way to inject identity for PSTN calls, or should we be using a different endpoint (e.g., squadding a tool that runs before the first utterance)?
- Is there a newer webhook/event we should subscribe to that replaces assistant-request for server-side metadata injection?
- Are there known limitations when patching metadata mid-call that would prevent tool payloads from picking up the new fields?
- If you have an example of the recommended flow for associating a Telnyx DID with a user account, we’d love to follow it: this feels like a common use case.
Any pointers would be hugely appreciated.Chiranjeet Mishra
11/19/2025, 7:40 PMsip.vapi.ai with port 5060.
- Assign your Telnyx phone number to the SIP trunk and adjust voice settings as necessary ([integration guide](https://docs.vapi.ai/advanced/sip/telnyx)).
- Create authentication credentials in Vapi for using Telnyx.
- Use Vapi API for additional configuration ([API setup example](https://docs.vapi.ai/advanced/sip/sip-trunk)).
Be sure to check your configuration and permissions on both platforms to facilitate a smooth integration.