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
65 Replies
zitterbewegung
zitterbewegung•4d ago
I have. Do you have a number bought and your account balance right?
Rohan
RohanOP•4d ago
can you please help :pepe_pray: I am trying to get my twilio messages to trigger an amazon api that triggers a lambda
zitterbewegung
zitterbewegung•4d ago
Javascript right
Rohan
RohanOP•4d ago
the lambda is written in JS yes
zitterbewegung
zitterbewegung•4d ago
Can you open the sms number?
Rohan
RohanOP•4d ago
wdym by open the sms number?
zitterbewegung
zitterbewegung•4d 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
RohanOP•4d 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
RohanOP•4d ago
Also im confussed on what all these different verifications are
No description
Rohan
RohanOP•4d ago
then for the default number i had this warning
Rohan
RohanOP•4d ago
No description
zitterbewegung
zitterbewegung•4d ago
default? you have to buy a number
Rohan
RohanOP•4d ago
twilio gives you a number by default
zitterbewegung
zitterbewegung•4d ago
okay
Rohan
RohanOP•4d ago
or it bought it for me 💀
zitterbewegung
zitterbewegung•4d ago
This is for a new (ish) to be compliant so you can send and recieve phone numbers
Rohan
RohanOP•4d ago
oh ok so i setup this i think
zitterbewegung
zitterbewegung•4d ago
it sounds like you bought a number
Rohan
RohanOP•4d ago
yes. because the default one wasnt working i setup the A2P "license" lemme set it up and try again
zitterbewegung
zitterbewegung•4d ago
there is no default i think you might mean you are using the number in the tutorial i'm not sure
Rohan
RohanOP•4d 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?
zitterbewegung
zitterbewegung•4d ago
yes
zitterbewegung
zitterbewegung•4d ago
No description
Rohan
RohanOP•4d ago
oh wow
zitterbewegung
zitterbewegung•4d ago
if you are in develop click the develop part and then open overview
Rohan
RohanOP•4d ago
i should probably hide the link
zitterbewegung
zitterbewegung•4d ago
uh delete the image it does look right if your endpoint accepts HTTP post
Rohan
RohanOP•4d ago
it accepts everything for now 💀
zitterbewegung
zitterbewegung•4d ago
when you click phone numbers you have at least one active number with that aws lambda tied with it right like this?
Rohan
RohanOP•4d ago
i dont have the default conversation service though i got the sole properitaor thingy
zitterbewegung
zitterbewegung•4d 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
RohanOP•4d ago
yes i do
zitterbewegung
zitterbewegung•4d ago
go to your accounts dashboard
Rohan
RohanOP•4d ago
ok
zitterbewegung
zitterbewegung•4d ago
click monitor
Rohan
RohanOP•4d ago
done
zitterbewegung
zitterbewegung•4d ago
click error logs is there anything there also check on messaging logs
Rohan
RohanOP•4d ago
i think i figured it out. lemme test it real quick
zitterbewegung
zitterbewegung•4d ago
ok cool what did you have to do
Rohan
RohanOP•4d 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?
zitterbewegung
zitterbewegung•4d ago
no you need to buy a number
Rohan
RohanOP•4d ago
i already did
zitterbewegung
zitterbewegung•4d ago
oh yea you use your phone to sms the number
Rohan
RohanOP•4d ago
ok
zitterbewegung
zitterbewegung•4d 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
Rohan•4d ago
my A2P campaign isnt approved :mikebruh:
zitterbewegung
zitterbewegung•4d ago
yea that sounds like it
Rohan
RohanOP•4d ago
how do i get the default message services?
Rohan
RohanOP•4d ago
i want this
No description
zitterbewegung
zitterbewegung•4d ago
uh i think you still have to go through a2p
Rohan
RohanOP•4d ago
😭
zitterbewegung
zitterbewegung•4d 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
RohanOP•4d ago
i dont think i have to connect it to a campaign
zitterbewegung
zitterbewegung•4d ago
no thats what you definately have to do IIRC you could ask twilio support if you are being blocked by a2p
Rohan
RohanOP•4d ago
my campagin is still being verified thats why its not working
zitterbewegung
zitterbewegung•4d ago
oh yea just wait a few weeks
Rohan
RohanOP•4d ago
weeks? how long does the toll free verification take
zitterbewegung
zitterbewegung•4d ago
i think it was 1-2 weeks for me it was less than a month
Rohan
RohanOP•4d ago
so i just have to wait now
zitterbewegung
zitterbewegung•4d 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
RohanOP•4d ago
campaign stuff is in progress i just submitted the toll free stuff
zitterbewegung
zitterbewegung•4d ago
yup yea good luck
Rohan
RohanOP•4d ago
you were of great help thank you so much
zitterbewegung
zitterbewegung•4d ago
NP
Rohan
RohanOP•4d ago
:catJAM:

Did you find this page helpful?