Here is the issue we are having. We are trying to get a token to impersonate a user to open a request on their behalf. From what we understand we need to call:
https://thiswayglobal.zendesk.com/api/v2/oauth/tokens.json
with this body:
{
"token":{
"client_id": "my_company_name",
"scopes": "impersonate"
}
}
We are using Basic Auth with the admin email and the API token as the password. Also the Content-Type is "application/json".
When we submit we get a 400 Bad Request with the following message:
{
"error": {
"title": "Invalid attribute",
"message": "You passed an invalid value for the token.client_id attribute. Invalid parameter: token.client_id must be an integer from zendesk/o_auth/api/v2/tokens/create"
}
}
Can you explain what is going on?