Hello,
We are experimenting the freshchat api to manage agents from our system.
I obtained the chat api details from here https://<account>.myfreshworks.com/crm/sales/personal-settings/api-settings
.
Following the documentation, I made requests to these endpoints with the api key.
GET /agents
POST /agents
DELETE /agents/{agent_id}
The GET request works as expected and I’m being able to get the list of agents, but the post and delete fails with a 400. Do you have any idea on how to fix this ? Thank you.
curl -X DELETE "https://<account>.freshchat.com/v2/agents/<agentId>"
-H "accept: application/json"
-H "Authorization: Bearer <api-key>"
{
"code": 400,
"status": "BAD_REQUEST",
"message": "Not allowed for this app"
}
*I also tried with https://api.freshchat.com/v2/agents
but got the same response
*Our account is on a trial for enterprise plan