twilio / twilio-node

Node.js helper library
MIT License
1.37k stars 495 forks source link

Missing messaging.v1.tollfreeVerifications endpoint, unable to create toll free verification using this library #947

Open uncvrd opened 11 months ago

uncvrd commented 11 months ago

Hi there! I'd like to note that there is a mismatch in documentation to what this node library provides. Following the Messaging Compliance API for Toll-Free Onboarding Guide, I would like to use the node api to create a Toll Free Number verification using messaging.v1.tollfreeVerifications.create, however tollfreeVerifications does not exist on v1.

I guess I should just use the REST API directly for now instead of the helper library?

This is just misleading given that there are node examples and also the change logs for v4 of this library on GitHub indicate that these endpoints were added on this release https://github.com/twilio/twilio-node/releases/tag/4.0.0-rc.1

Not sure what to believe! Let me know how I can help. Thanks!

Technical details:

AsabuHere commented 11 months ago

Hi @uncvrd, Thank you for raising this issue. tollfreeVerification is available on the latest version of twilio-node 4.14.0 https://github.com/twilio/twilio-node/blob/main/src/rest/messaging/v1/tollfreeVerification.ts

You can use this guide https://www.twilio.com/docs/sms/a2p-tollfree-messaging-compliance-api-onboarding-guide#2-submit-a-toll-free-verification-request to create one

If this is still not working for you, please share the code you are using to create this, after removing personal details

bradleyy1012 commented 8 months ago

Looks like now it's missing the messaging.v1.tollfreeVerifications(tollFreeVerificationSid).remove() endpoint.