Authentication
My OPSWAT Central Management APIs use the OAuth 2.0 protocol for authentication and authorization. The simplicity of OAuth 2.0 allows developers to start using and developing against My OPSWAT Central Management APIs almost immediately, the only thing which has to be done, before starting integration, is to register your application and obtain an unique set of Client Key and Client Secret from My OPSWAT Central Management OAuth Portal.
This step provides you ways to authorize with our platform to archive an access token which is required in each API as a parameter for security and authentication reasons.
We support authorization through the Client Credentials grant type.
Note that the URL we used in this document is documented based on My OPSWAT Central Management Tenant B. If you are using different My OPSWAT Central Management Tenant, you should replace the My OPSWAT Central Management URLs accordingly
Client Credentials grant type - No log in required from a user
Client credentials grant type is beneficial for use cases such as service calls or calls on behalf of the user who created the client application and has implicit access to the resources.
The client credentials grant type must be used by only confidential clients and has to be always used through a secure connection.
Request Example
Response Example
If you provide invalid client credentials, the server will return the following error: