Anyone use Twilio to send and receive SMS messages

why the eff is it so hard to get a webhook to trigger when a number receives an SMS message? been trying for a couple days and it does no worky work. Can anyone please help 😭
Solution:
my A2P campaign isnt approved :mikebruh:
Jump to solution
68 Replies
zitter
zitter7mo ago
I have. Do you have a number bought and your account balance right?
Rohan
RohanOP7mo ago
can you please help :pepe_pray: I am trying to get my twilio messages to trigger an amazon api that triggers a lambda
zitter
zitter7mo ago
Javascript right
Rohan
RohanOP7mo ago
the lambda is written in JS yes
zitter
zitter7mo ago
Can you open the sms number?
Rohan
RohanOP7mo ago
wdym by open the sms number?
zitter
zitter7mo ago
have you set the callbacks to the domain yet? or is there a way for you to share your screen on this server ?
Rohan
RohanOP7mo ago
so i tried doing this with the default number twilio gives you and it didnt work i can try it with the number i bought but based on the documentation, it should have worked with the number twilio gave
Rohan
RohanOP7mo ago
Also im confussed on what all these different verifications are
No description
Rohan
RohanOP7mo ago
then for the default number i had this warning
Rohan
RohanOP7mo ago
No description
zitter
zitter7mo ago
default? you have to buy a number
Rohan
RohanOP7mo ago
twilio gives you a number by default
zitter
zitter7mo ago
okay
Rohan
RohanOP7mo ago
or it bought it for me 💀
zitter
zitter7mo ago
This is for a new (ish) to be compliant so you can send and recieve phone numbers
Rohan
RohanOP7mo ago
oh ok so i setup this i think
zitter
zitter7mo ago
it sounds like you bought a number
Rohan
RohanOP7mo ago
yes. because the default one wasnt working i setup the A2P "license" lemme set it up and try again
zitter
zitter7mo ago
there is no default i think you might mean you are using the number in the tutorial i'm not sure
Rohan
RohanOP7mo ago
so ive been redoing this shit like a fool this entire time :facepalm: im dumb i can figure out AWS lambdas but not twilio console 💀 have you done the toll free verification?
zitter
zitter7mo ago
yes
zitter
zitter7mo ago
No description
Rohan
RohanOP7mo ago
oh wow
zitter
zitter7mo ago
if you are in develop click the develop part and then open overview
Rohan
RohanOP7mo ago
i should probably hide the link
zitter
zitter7mo ago
uh delete the image it does look right if your endpoint accepts HTTP post
Rohan
RohanOP7mo ago
it accepts everything for now 💀
zitter
zitter7mo ago
when you click phone numbers you have at least one active number with that aws lambda tied with it right like this?
Rohan
RohanOP7mo ago
i dont have the default conversation service though i got the sole properitaor thingy
zitter
zitter7mo ago
ok but you do have a webhook for your aws lambda that is accepting a http post and you have a phone number like above right?
Rohan
RohanOP7mo ago
yes i do
zitter
zitter7mo ago
go to your accounts dashboard
Rohan
RohanOP7mo ago
ok
zitter
zitter7mo ago
click monitor
Rohan
RohanOP7mo ago
done
zitter
zitter7mo ago
click error logs is there anything there also check on messaging logs
Rohan
RohanOP7mo ago
i think i figured it out. lemme test it real quick
zitter
zitter7mo ago
ok cool what did you have to do
Rohan
RohanOP7mo ago
wait so im trying to test the webhook when a message is received from the twilio phone number how do i test that do i just use my personal phone?
zitter
zitter7mo ago
no you need to buy a number
Rohan
RohanOP7mo ago
i already did
zitter
zitter7mo ago
oh yea you use your phone to sms the number
Rohan
RohanOP7mo ago
ok
zitter
zitter7mo ago
once you do that you should be able to see it in twilio logs if it isn't accepting HTTP posts it will show an error or if something is wrong
Solution
Rohan
Rohan7mo ago
my A2P campaign isnt approved :mikebruh:
zitter
zitter7mo ago
yea that sounds like it
Rohan
RohanOP7mo ago
how do i get the default message services?
Rohan
RohanOP7mo ago
i want this
No description
zitter
zitter7mo ago
uh i think you still have to go through a2p
Rohan
RohanOP7mo ago
😭
zitter
zitter7mo ago
Finding the Default: The default Messaging Service can be located within the Twilio Console under "Messaging > Services > Default Conversations Service" nvm you just have to setup a default message service but i had to do this when they setup a2p so default message service is not a workaround a2p is annoying i agree i had to set it up with a working program before a confrence i gave a talk to go to messaging and then regulatory compliance read the overview and qualitfy for sole properitor package
Rohan
RohanOP7mo ago
i dont think i have to connect it to a campaign
zitter
zitter7mo ago
no thats what you definately have to do IIRC you could ask twilio support if you are being blocked by a2p
Rohan
RohanOP7mo ago
my campagin is still being verified thats why its not working
zitter
zitter7mo ago
oh yea just wait a few weeks
Rohan
RohanOP7mo ago
weeks? how long does the toll free verification take
zitter
zitter7mo ago
i think it was 1-2 weeks for me it was less than a month
Rohan
RohanOP7mo ago
so i just have to wait now
zitter
zitter7mo ago
because my confrence talk was 1 month before a2p compliance came into 100% effect yea unless you made a mistake on the form most likely you didn't
Rohan
RohanOP7mo ago
campaign stuff is in progress i just submitted the toll free stuff
zitter
zitter7mo ago
yup yea good luck
Rohan
RohanOP7mo ago
you were of great help thank you so much
zitter
zitter7mo ago
NP
Rohan
RohanOP7mo ago
:catJAM:
Rohan
RohanOP6mo ago
Update: I finally got the toll free verification. I failed the first time cuz I didn’t add a way to stop communication. The A2P campaign wasn’t approved. It’s a $15 fee to redo it :konk: Imma just use the toll free number for now
zitter
zitter6mo ago
did you say what it was doing ? that it was for an app
Rohan
RohanOP6mo ago
Yes. I just didn’t add the thing “Reply with STOP to stop getting these messages” when it asked for sample communication with the customer. If I don’t have it, it seems like there is no way that the customer can opt out of this which is against the campaign rules.

Did you find this page helpful?