Partner Zone

Advanced API returns unauthorized_client when getting token using resource owner password credentials flow

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
jameslin
3 Posts
User

3Posts

0Kudos

0Solutions

Advanced API returns unauthorized_client when getting token using resource owner password credentials flow

{
    'client_id': "xxxxxxx@company",
    'client_secret': "xxxxxxxxxx",
    'grant_type': 'client_credentials',
    # 'grant_type': 'password',
    'scope': "api",
    'username': 'xxxx',
    'password': 'xxxx',
}

This is the body I am sending, but I am getting `{'error': 'unauthorized_client'}` what am I missing?

Secondly, the documentation says the grant_type must set to `password`, but if I do that, I get `invalid_grant`

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post