Picture of iqbal
Registered 5 years 278 days
iqbal Thursday, 27 June 2024, 08:08 AM
Setting App access grants programmatically and handling unauthorized API requests
Hi

I have a couple of questions regarding app access to PBX APIs.
  • Programmatic Grant of App Access: Currently, when we need to provide API access for a new feature, we manually grant App API access on the PBX. However, I’m curious if it’s possible to automate this process through code. Is there a way to programmatically grant app access to specific APIs?
  • Handling Unauthorized API Requests: Suppose an app attempts to use an API (e.g., the “rcc” API) that hasn’t been granted access on the PBX. In such cases, the PBX doesn’t respond to the request. Is it feasible to modify this behavior? Specifically, could the PBX send a “not authorized” response so that the app can handle this situation gracefully?
Best regards,
Iqbal
Picture of Peter Stock (innovaphone)
Moderator Registered 1 year 57 days
Peter Stock (innovaphone) Monday, 8 July 2024, 01:43 PM
Re: Setting App access grants programmatically and handling unauthorized API requests
Hello Iqbal,

  • at the moment you can only specifiy the API in the manager.js Plugin of your app. Then the Administrator has to click again on the App Instance in PBX Manager.
  • I will discuss "unauthorized" API Requests internally. Seems to be useful and you are not the only one who is asking for this.
Best Regards,

Peter
← You can define your color theme preference here