twilio / twilio-node

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

Health-check of Twilio API using SDK #955

Closed vinitshahdeo closed 3 months ago

vinitshahdeo commented 10 months ago

Issue Summary

I encountered a challenge while attempting to assess the operational health of the Twilio service due to a lack of a health-check endpoint. Did I miss something?

Workaround

As an alternative approach, we can utilize the Phone Number Lookup feature to verify the operational status of Twilio. An important consideration is whether this action will contribute to usage costs and pricing.

I am seeking guidance on the most effective method to assess the operational health of Twilio using its API or SDK.

jassent commented 6 months ago

I wrote this post on Stackoverflow explaining how I do a health check using the Account endpoint.

I use the Account endpoint to do a health check. This confirms that you can reach the Twilio REST Api, that the Twilio REST Api is responding, and that the account is active. For example, if your credit card expired your account could become suspended. Checking the Account endpoint will confirm that your account is working from a technical and billing perspective.