You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you buy a phone from vapi and then try to update/delete it from the sdk you get Validation errors because the API response does not have twilio_account_side and twilio_auth_token, both of which are required for TwilioPhoneNumber pydantic model - source
If you directly run the update/delete endpoints, you can verify the response only contains the following parameters:
I suggest the following fix of simply making both these fields optional and defaulting to None:
twilio_account_sid: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="twilioAccountSid")] = (
pydantic.Field(default=None)
)
"""
This is the Twilio Account SID for the phone number.
"""
twilio_auth_token: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="twilioAuthToken")] = (
pydantic.Field(default=None)
)
"""
This is the Twilio Auth Token for the phone number.
"""
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
If you buy a phone from vapi and then try to update/delete it from the sdk you get Validation errors because the API response does not have
twilio_account_side
andtwilio_auth_token
, both of which are required forTwilioPhoneNumber
pydantic model - sourceIf you directly run the update/delete endpoints, you can verify the response only contains the following parameters:
I suggest the following fix of simply making both these fields optional and defaulting to None:
The text was updated successfully, but these errors were encountered: