I'm trying to update agents via API starting from the User record (creation of a new user) and running into some challenges. It looks like there is an Agent ID which is different from the User ID, so I first tried using the GET /api/v2/agents endpoint to show all agents, which I assumed would help me find the ID. This API call fails with a message 'You do not have access to this page. Please contact the account owner of this help desk for further help.' I'm the owner of the help desk and the account I'm using is a full admin for Zendesk as well, so I'm not sure why this call doesn't work (I tried the same thing using my own account and got the same error).
Since I couldn't make that work, I tried using GET /api/v2/agents/email/{email}. This also fails, with an error 'InvalidEndpoint'. I'd searched in the support forum for this error and it looks like it has happened when the request type is wrong, however using PUT or POST returns the same error. Other API calls work so I know the format and authentication is good. Has anyone been able to make either of these endpoints work as documented?
