You have to enable password access to the api in zendesk or token access. These options can be found in administrator > API.