I’am currently working to do some statistics of every company account ( reservation rate, …) using power bi.
To do that I would like to use the cluster company api token endpoint to get a token per company using loop.
But currently, I’ve an issue.
: Get a cluster token (work well) :
Request :
curl --location ‘https://cluster-api.simplybook.pro/auth’ \
–header ‘Content-Type: application/json’ \
–header ‘X-Cluster: alfredconciergerie’ \
–data '{
“key”: “csk_XXXXXXXXXXXXX”
}’
Response :
{
“token”: “ctk_XXXXXX”
}
I tested the cluster token using companies listing endpoint ( it work well) :
curl --location --globoff ‘https://cluster-api.simplybook.pro/companies?filter\[status\]=active’ \
–header ‘Content-Type: application/json’ \
–header ‘X-Cluster: alfredconciergerie’ \
–header ‘X-Token: ctk_XXXXXXX’ \
–data ‘’
I want to get a company company token using following request :
curl --location --request POST 'https://cluster-api.simplybook.pro/companies/lorealcampuschevilly/api-token' \
–header ‘Content-Type: application/json’ \
–header ‘X-Cluster: alfredconciergerie’ \
–header 'X-Token: ctk_XXXXXXXXXX \
–data ‘’
But the api reponded following response :
{
“code”: 403,
“message”: “Access disabled”,
“data”: ,
“message_data”:
}
Is there anything to activate on the account ? Or have I missed anything in my request ?
Thx