web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Business Central to Twilio API Request Error

(0) ShareShare
ReportReport
Posted on by 25

Hello Experts,

i am trying to send request  from business central to Twilio (Send SMS)  i want to send SMS(text message to phone number) .i use my Twilio SID and Token no .which i created and get from my Twilio account.. ,i am sending the Post request as in below screenshot 1. screenshot2 is always i get error as 401. although same credentials works fine on Postman and i am able to send SMS without any issue.

1. so it is the correct format and the way i am using to send POST(Json format) request ?

2. if it is wrong one then what is the right way to send request to Twilio 

let me know if need more information.

ScreenShot1 1

6330.png

Screenshot 2.

pastedimage1660759218968v1.png

Thanks in Advance

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Try adding all your headers after you have filled in the httpcontent.

    Filling the httpcontent often deletes the headers you added prior to adding the content,

    A little perk of the AL httpclient.

  • Ashok Kumar Rajput Profile Picture
    25 on at

    i tried, but no luck.

  • Suggested answer
    Brad_P Profile Picture
    1,551 on at

    Hi,

    A quick look, if you're using Basic Auth you'll need to Base64Enconde the User:Token value and pass that for authorization

  • Ashok Kumar Rajput Profile Picture
    25 on at

    i tried, but no luck.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 720 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 436 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 409 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans