Skip to main content
Post Closed as "Duplicate" by Brock Adams
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited body; edited tags
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

I have followed the documentationthe documentation and used explicit OAuth 2.0 flow for access_token generation.

And I have gone through all 4 steps defined under explicit OAuth 2.0 flow with scope=no_expiry. Then I got the access_token.

When I am using applicationKey and access_token for fetch data through Stack Exchange API, I am getting following error :

{
     "error_id": 403,
     "error_message": "`key` is not valid for passed `access_token`, token notfound.",
     "error_name": "access_denied"
}

I initially thought that there is something wrong with applicationKey. Then iI found that using same applicationKey (used for access_token generation) in request are working fine for other API Methods where access_token is not required.

I have followed the documentation and used explicit OAuth 2.0 flow for access_token generation.

And I have gone through all 4 steps defined under explicit OAuth 2.0 flow with scope=no_expiry. Then I got the access_token.

When I am using applicationKey and access_token for fetch data through Stack Exchange API, I am getting following error :

{
     "error_id": 403,
     "error_message": "`key` is not valid for passed `access_token`, token notfound.",
     "error_name": "access_denied"
}

I initially thought that there is something wrong with applicationKey. Then i found that using same applicationKey (used for access_token generation) in request are working fine for other API Methods where access_token is not required.

I have followed the documentation and used explicit OAuth 2.0 flow for access_token generation.

And I have gone through all 4 steps defined under explicit OAuth 2.0 flow with scope=no_expiry. Then I got the access_token.

When I am using applicationKey and access_token for fetch data through Stack Exchange API, I am getting following error :

{
     "error_id": 403,
     "error_message": "`key` is not valid for passed `access_token`, token notfound.",
     "error_name": "access_denied"
}

I initially thought that there is something wrong with applicationKey. Then I found that using same applicationKey (used for access_token generation) in request are working fine for other API Methods where access_token is not required.

I am having issue while using access_token in my request.

I have followed following Docthe documentation and used explicit OAuth 2.0 flow for access_tokenaccess_token generation.

https://api.stackexchange.com/docs/authentication

And I have gone through all 4 steps defined under explicit OAuth 2.0 flow with scope=no_expiry scope=no_expiry.Then Then I got the access_tokenaccess_token.

When I am using applicationKeyapplicationKey and access_tokenaccess_token for fetch data through stach ExachangeStack Exchange API, I am getinggetting following error :

{
 "error_id":403,
 "error_message":"`key` is not valid for passed `access_token`, token notfound.",
 "error_name":"access_denied"
}
{
     "error_id": 403,
     "error_message": "`key` is not valid for passed `access_token`, token notfound.",
     "error_name": "access_denied"
}

I initially thought that there is something wrong with applicationKeyapplicationKey. Then i found that using same applicationKeyapplicationKey (used for access_tokenaccess_token generation) in request are working fine for other API Methods where access_tokenaccess_token is not required.

Any help highly appreciated.

I am having issue while using access_token in my request.

I have followed following Doc and used explicit OAuth 2.0 flow for access_token generation.

https://api.stackexchange.com/docs/authentication

And I have gone through all 4 steps defined under explicit OAuth 2.0 flow with scope=no_expiry .Then I got the access_token.

When I am using applicationKey and access_token for fetch data through stach Exachange API, I am geting following error :

{
 "error_id":403,
 "error_message":"`key` is not valid for passed `access_token`, token notfound.",
 "error_name":"access_denied"
}

I initially thought that there is something wrong with applicationKey. Then i found that using same applicationKey(used for access_token generation) in request are working fine for other API Methods where access_token is not required.

Any help highly appreciated.

I have followed the documentation and used explicit OAuth 2.0 flow for access_token generation.

And I have gone through all 4 steps defined under explicit OAuth 2.0 flow with scope=no_expiry. Then I got the access_token.

When I am using applicationKey and access_token for fetch data through Stack Exchange API, I am getting following error :

{
     "error_id": 403,
     "error_message": "`key` is not valid for passed `access_token`, token notfound.",
     "error_name": "access_denied"
}

I initially thought that there is something wrong with applicationKey. Then i found that using same applicationKey (used for access_token generation) in request are working fine for other API Methods where access_token is not required.

edited title
Link
Sanjiv
  • 325
  • 1
  • 9

Combination of Application Key and AccessToken inare not working for Stack Exchange API?

Source Link
Sanjiv
  • 325
  • 1
  • 9
Loading