I'm attempting to obtain the authentication token for Centreon's REST API using the ARC client API. Currently, I'm running Centreon version 22.10 and referring to the API documentation (https://docs.centreon.com/docs/22.10/api/rest-api-v1/).
I'm simply including my credentials in the body of my POST query in JSON format like this:
{
"username": "user_name",
"password": "admin_passwd"
}
the url i used is 'https://local_domain/centreon/api/index.php?action=authenticate'
However, I'm receiving a 'bad parameters' error response, which I'm unsure how to resolve. I've already checked the syntax using a JSON checker.
I've also tried using Postman with the v2 API, but encountered the same error. Could anyone provide assistance?