Jayraj Vala
Jayraj Vala

Reputation: 224

Need a key name for display sender name or number in twilio API for OTP

Currently i need to display sender name or number in text message which was sent using twilio API for OTP..

I am not able to find "key" to send in parameters.. i searched in Twilio official Docs.

I am using Twilio API for OTP: https://api.authy.com/protected/json/phones/verification/

in header i am sending my API key

and parameters like this:

    `let parameters: [String: Any] = [
        "api_key": _twiloAPIKey,
        "via": "sms",
        "country_code": countryCode,
        "phone_number": phone,
        "code_length": 6,
    ]`

how to send Alphanumeric value in parameters?

i.e. I want to send "APPNAME" so that display app name on SMS.

Upvotes: 2

Views: 1108

Answers (1)

philnash
philnash

Reputation: 73037

Twilio developer evangelist here.

You can't choose the sender name in the OTP API. We have worked to register an alphanumeric sender ID "AUTHMSG" that works in 79 countries and helps to improve deliverability rates and recognition.

Take a read of this blog post on the AUTHMSG sender ID to find out more.

Upvotes: 2

Related Questions