OAuth Access to /api/v2/agents/me in Freshservice — Still Blocked?

Hi Freshworks team and fellow developers,

I’m trying to access the /api/v2/agents/me endpoint in Freshservice using OAuth. While this works fine with Basic Auth, OAuth consistently returns:

{
“code”: “access_denied”,
“message”: “You are not authorized to perform this action.”
}

:white_check_mark: Scope used: freshservice.agents.manage — this works for /api/v2/agents, but not for /agents/me.

:magnifying_glass_tilted_left: Reference thread: Issue in freshservice OAuth — seems to have gone quiet, hoping to revive it.

:pushpin: Questions:

  1. Is /api/v2/agents/me officially supported in Freshservice?

  2. If so, what OAuth scopes are required to access it?

  3. If not, is there a recommended alternative for retrieving the current agent’s identity via OAuth?

Thanks in advance for any updates or guidance!

Hi @Maanaesh,

The endpoint /api/v2/agents/me is not supported via OAuth in Freshservice.

Please use the supported endpoint /api/v2/agents/[id] instead, where [id] is the Agent ID (a number). Your current scope (freshservice.agents.manage) should work with this endpoint.

Ref: Service Desk API for Developers | Freshservice

Let me know if this works for you.