SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Helper Libraries Do Not Always Provide a 1:1 Mapping for Every REST API Endpoint or Feature

Issue

Developers often need to map Twilio REST API endpoints to a specific Twilio Helper Library (SDK), such as NodeJS, Python, Java, C#, Ruby, or Go. However, the SDKs do not always provide a 1:1 mapping for every REST API endpoint or feature. This can make it difficult to determine whether a feature is unsupported by a specific SDK or simply hard to find in the documentation.

 

Product

REST API and TwiML

 

Environment

Twilio Console

 

Cause

The Twilio Helper Libraries are designed to cover most REST API functionality, but not all endpoints or features are mapped directly in every language. Some advanced or newly released API features may require direct REST calls using the SDK’s generic request methods or a standard HTTP client.

 

Resolution

When trying to use a Twilio REST API endpoint, follow these steps to determine the best method for accessing it:

  1. Check the Twilio REST API Definition:

    Consult the relevant Twilio API documentation to see all available endpoints, features, and their expected parameters. This confirms the feature is available in the API.

     

  2. Validate Support in the Specific SDK:

    Review the reference documentation for the SDK you are using (e.g., NodeJS, Python, Java, C#, Ruby, Go) for dedicated methods and parameters that match the endpoint.

     

  3. Accessing the Endpoint if Support is Not Explicit - Use a Third-Party HTTP Client: 

    If the generic method is insufficient or unavailable, you can use a standard third-party HTTP client in your language (e.g., requests in Python, fetch in JavaScript) to access the endpoint directly.

     

  4. Review the SDK Changelog and Known Issues:

    The SDK's GitHub releases page or documentation often provides a changelog with version history, new features, bug fixes, and a “Known Issues” section highlighting unsupported or deprecated features.

     

  5. Check Regional Product Availability:

    Some features or APIs may not be supported in certain Twilio regions. Refer to the Regional Product and Feature Availability page for details.

     

  6. If Still Uncertain, Ask for Help:

    If you cannot determine whether a feature is missing or just hard to find, reach out to Twilio Support with the specific endpoint or feature in question.

 

Additional Information 

Have more questions? Submit a request
Powered by Zendesk