How to invoke Platform Management APIs with OAuth2 Tokens?

The platform allows you to invoke the APIs with the user's own tokens, or with an OAuth2 token.

This token can be consulted at the top of the main page, within the APIs section:

These APIs are generic and are designed for users of the platform to develop external apps.

By way of example, you can carry out a JOIN query with the platform. To do this, by clicking on the APIs section described above, you will see a pop-up similar to the following one:

 

Which includes the OAuth2 token that you will be need to use (not to be confused with the token of the APIs section) and a series of predefined APIs to be able to work with them.

In this case, and to authenticate using the OAuth2 token against the platform, in the APIs section, select Control Panel, which will redirect you to the basic Swagger created for the operations of this module:

Same as in the previous case, access within the login-management-controller block, and there you find several POST and GET calls to perform different operations, such as authentication against the platform (/api-ops/login). The operation is similar to those seen in previous sections, but in this case, the token automatically takes it from the platform, since it is unique. The obtained answer is similar to this, returning a sessionkey that you can use in the rest of calls (you must take into account that the session may expire after a certain time, and you have to renew it):

Using this access token, you can perform many operations and invocations to the platform.