Hi
I am unable to reply to a forward. We are getting the error -
You are not authorized to perform this action on behalf of this user. id:1070031356870, name:sprint 10
Can someone please help me with this?
Hi
I am unable to reply to a forward. We are getting the error -
You are not authorized to perform this action on behalf of this user. id:1070031356870, name:sprint 10
Can someone please help me with this?
Hi @nagajyothi1722 ,
Greetings!
Could you please share the endpoint in curl format? Providing more details will help us debug further.
Thanks,
Anish
Hi @Anish
Please find the curl below. And the response that we are receiving. The api key that we are using is of account admin.
{
"code": "invalid_user",
"message": "You are not authorized to perform this action on behalf of this user. id:1070031356870, name:sprint 10"
}
curl 'https://<<domain>>.freshdesk.com/api/v2/tickets/17/reply_to_forward' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
-H 'authorization: Basic <<token>>' \
-H 'content-type: application/json' \
-H 'origin: http://localhost:4200' \
-H 'priority: u=1, i' \
-H 'referer: http://localhost:4200/' \
-H 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \
--data-raw '{"body":"Hi","user_id":1070031356870,"to_emails":["support@test.com"]}'
Hi @nagajyothi1722,
I tested the same endpoint mentioned in the documentation with different users, including both an agent and a user, and it worked for me.
You might want to try omitting the user_id or testing with a different user_id, as the one you’re using might have restricted access.
Hope this helps!