never mind I seem to have resolved this by logging out and logging in again with the correct token. The original token I used had a trailing space at the end, I suspect this was the issue. Perhaps this is being automatically removed for some functions but not others?