To carry out the API operations, it is necessary to obtain a session token that will expire randomly throughout the session. The operation that allows to obtain it is**/api/1.0/getToken** with the results:
{
"info_code": 0,
"info_desc": "OK",
"data": [
{
"token": "28a9e96167a6ee0f84bb9c46e8a3b381032f7d9de59ce882539db044e4ee691f"
}
]
}
The authentication process is based on client digital certificates. To carry out tests and later go to production, the client must complete the documentation provided in which the necessary data of the company that is going to consume the services is requested. The certificate will be issued by the PKI of the platform and physically delivered to the person responsible for it.
In case of not having permissions both in this operation and in the sending of events, a message of the type will be returned
{
"info_code": 99,
"info_desc": "Authorization error",
"data": []
}