By Seymen Pek
I’ve deployed FreePBX business app to DO droplet server.
As I was following this guide (https://sangomakb.atlassian.net/wiki/spaces/PG/pages/25690223/REST+API) I could not get new access token. It gives me an eror “invalid client”.
Here is my configuration in Postman.
I could not fill the available token input (bearer token). I am not sure where I can get it. New token configuration has same data with one in my FreePBX web admin panel. Please let me know what I’ve missed.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there!
This error typically points to an issue with the OAuth client credentials or the configuration in Postman. Here are a few things that I would recommend checking:
Ensure that the OAuth client credentials used in Postman match exactly with those configured in FreePBX. These credentials are usually set up in the FreePBX administration interface.
In Postman, setting up the request for an access token should be done carefully:
POST.http(s)://<your-freepbx-server>/admin/api/api/token).x-www-form-urlencoded.grant_type: should be set to client_credentials.client_id: your OAuth client ID.client_secret: your OAuth client secret.Make sure that the redirect URI in your OAuth client configuration in FreePBX matches with any URI you’re using in Postman. Sometimes, even if not used, a mismatch can cause issues.
Ensure that your FreePBX instance is properly configured to handle REST API requests:
Carefully examine the response you’re getting from the server:
Also, make sure that there are no network issues or firewalls blocking your request from Postman to your FreePBX server.
On another note, sometimes, simply refreshing the settings or restarting the FreePBX server can resolve unexpected glitches.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.