Is it possible to somehow configure a custom message in Auth0 for fails in a custom SMS gateway.
My gateway will throw 400 if it fails to send sms (invalid phone number for example).
And the default message doesn't help users. (Unexpected response while calling the SMS gateway)
I see here that it will not read the body but maybe you have any ideas to workaround it.
https://auth0.com/docs/authenticate/passwordless/authentication-methods/use-sms-gateway-passwordless#error-handling
Related
We are encountering a 401 error when making basic authenticated API calls to the X2CRM endpoints (index.php/api2/Contacts). Unauthenticated API calls to other X2CRM VoIP endpoints are successful without issue, and basic authentication works on a test page in the same directory using the same PHP-FPM pool. API calls previously working successfully.
The problem is that API calls to index.php/api2/Contacts or similar endpoints in the X2CRM system are returning a 401 error with "missing user credentials." Basic authentication is working correctly on a test page in the same directory and using the same PHP-FPM pool, and unauthenticated API calls to other X2CRM voip endpoints index.php/api/voip/data/(phone number) are successful without issue. The credentials for the API calls are confirmed to be present in the database
We tried making basic authenticated API calls to the X2CRM endpoints (index.php/api2/Contacts, etc.) using Postman and cURL. We expected the API calls to be successful and return the expected data. However, we encountered a 401 error and the response stated "Missing user credentials". We confirmed that the credentials being used are valid and present in the database. We also tested a basic authentication on a test page in the same directory and it was successful, allowing entry into the directory. We need help resolving the issue with the basic authenticated API calls.
The response that you have shared
Missing user credentials
means that the credentials that you are trying to send are not being sent with the request.
If those credentials were being sent correctly, then, the error would have been:
Invalid user credentials
or, something else in the response.
Furthermore, the index.php/api is different from index.php/api2 so you will need to verify it in the api2 controller. You can send a request to the following Endpoint to verify if your credentials work with the builtin APIs:
https://<YOUR_CRM_DOMAIN>/index.php/api2/appInfo.json
Moreover, the documentation clearly indicates that 401 error is related to Authorization, so you will need to fix that first.
I have to schedule an API call which is Oauth 2.0 authenticated.
If I run the API call manually by accessing the token on Postman, the API call gets successfully hit.
Now I want to schedule this API call to monitor its response time and check whether it is up or not.
So, I used Postman monitor for it and added a collection which has OAuth details as well as the request. But somehow monitor is not working and it is throwing Unauthorised error.
I want to know what am I missing in Postman monitor to schedule the API or Is there any tool or method available for free where I can schedule API call and get the email notification on its failure.
I have configured a twilio number. Now I want to send an SMS from rest API to this twilio number. An incoming message to a twilio number. I am very new to twilio. So any help would be appreciated. Thanks
Twilio developer evangelist here.
When you have a Twilio number you can send messages from the Twilio number using the REST API. You would normally receive messages sent to the Twilio number from users using their messaging app on their mobile device.
To understand further I recommend you follow some Twilio tutorials:
Here is a quickstart guide for sending and receiving SMS with Twilio
A guide on sending SMS messages with Twilio
The API's Message resource reference
An overview of TwiML and receiving messages sent to your Twilio number
Hopefully they get you started on a path to understanding.
Please help me and suggest me some sms gateways that provide two way sms in Nigeria.
I have created a web application. I need to send and receive sms through this application and maintain a log about the same in my db.
Thanks
You can use Twilio as SMS Gateway.
URL: https://www.twilio.com/sms, https://www.twilio.com/sms/pricing/ng
I'm using twilio with the test credentials and I send a simple sms from the test number +15005550006 to my twilio number. When I execute it I get an sid. On my twilio number I have set up a request url to receive the twiml request but it never gets hit. I'm able to access that url from the internet (not localhost) myself but never when sending a test sms.
Since I am using test credentials, is twilio sending a request to my url? And is there a way to see from the twilio report/alert to see if it is actually trying to connect to that url?
Twilio developer evangelist here.
The test credentials won't deliver any SMS messages. Think of it as having the ability to exercise any requests, but not actually making them for real. Test credentials are useful for developing if you're concerned about making API requests.
To get the messages delivered you will need to use you real credentials.
Let me know if you have any questions.