Please copy your secret as you will not be able to retrieve it later
Client Secret :46cd058cf8be20431eda700a4be2cb93
I’d like to get token to show rest methods.
grant_type=authorization_code??? not sure how to get grant type here(password or code)
Your PBX supports two API types: Restful and GraphQL .
Most, if not all, PBX modules have been written to use GraphQL, however any module can also be extended to use standard Restful calls as well
So while there are no existing RESTful methods in the API as it stands, it can be extended to do so and there is nothing in the documents I see so far that covers how to do such extensions to the API for RESTful calls.
To me this means people will look at see that it supports RESTful but only to discover that when they go to use it, no RESTful methods are configured to be used and there is nothing to show how to do such methods.
This then all goes back to the question of “How does one configure the supported RESTful method to use it?”.
I’ve already tried that way. Unfortunately have error
token was received, but something strange with scopes
select scopes from api_access_tokens where token = ‘token’;
| scopes |
|  |
Thank you. Finally I’ve got first response from REST FreePBX API with version. My main idea is avoid communicate with FreePBX directly.First step I’d like to add extensions and trunks via Rest API. For now as I’ve already understood there are no methods that allow add trunks and extensions, but I can write them by myself using internal FreePBX methods. Like getVersion(). etc. And that methods I can find from sources. Am I right?