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