Twilio SMS API calling issue in service node

I am trying to call Twilio SMS API using service node in my bot using “BasicAuth” but I have having multiple issues while doing the same:

  1. even after putting correct account SID and AuthToken, it is giving me the error
    {
    “statusCode”: 401,
    “body”: {
    “code”: 20003,
    “detail”: “Your AccountSid or AuthToken was incorrect.”,
    “message”: “Authentication Error - No credentials provided”,
    “more_info”: “Error 20003 | Twilio”,
    “status”: 401
    }.
    It is working fine in postman with same URL and SID & AuthToken but not in service node.

  2. when my bot conversation reaches to above mentioned service node, it asks me to login in my kore.ai account again and then process the API.

Could anyone help me on these above issues?

Thanks,
Sumit Gupta

@sumitgupta4
Can you please share the working postman curl with me at swagata.sengupta@kore.com ?

@swagata.sengupta

Below is the curl command of postman.
curl --location --request POST ‘https://api.twilio.com/2010-04-01/Accounts/****/Messages.json’ \

–header ‘Authorization: Basic ****’ \

–header ‘Content-Type: application/x-www-form-urlencoded’ \

–data-urlencode ‘To=+****’ \

–data-urlencode ‘From=+****’ \

–data-urlencode ‘Body=HI, Test API’

Also… 1st problem is already resolved but I am still facing the second issue mentioned in the post which is:
“when my bot conversation (voice conversation) reaches to above mentioned service node, it asks me to login in my kore.ai account again and then process the API.”

1 Like