Skip to content

Failed Sending : Invalid phone number type #173

Answered by capcom6
sweru asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

Please try to use skipPhoneValidation=true query parameter as described here: https://docs.sms-gate.app/faq/general/#can-i-use-long-or-non-standard-phone-numbers

Example:

curl -X POST -u <username>:<password> \
  -H "Content-Type: application/json" \
  -d '{ "message": "Hello, doctors!", "phoneNumbers": ["+19162255887", "+19162255888"] }' \
  https://api.sms-gate.app/3rdparty/v1/message?skipPhoneValidation=true

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sweru
Comment options

Answer selected by sweru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants