08-13-2021
08:16
- last edited on
08-20-2021
12:24
by
JohnFitbit
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-13-2021
08:16
- last edited on
08-20-2021
12:24
by
JohnFitbit
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi Team,
I'm facing invalid grant_type error while fetching token from code
API URL - https://api.fitbit.com/oauth2/token
Param :
{
grant_type:authorization_code,
client_id:XXXXX,
code:XXXXXXXXXXX,
redirect_uri:fitmoji://,
}
header :
Authorization:Basic {REDACTED}
08-20-2021 12:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



08-20-2021 12:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @prashanttrivedi ,
Welcome to the forums!
For security reasons, I've redacted your Basic Token. Please refrain from sharing this information publicly in the future.
As for the error you are encountering, can you please provide me with the error message associated to the error code you are receiving so I can provide you with the appropriate resolution? As you can see here, there are a few invalid_grant errors you can encounter: https://dev.fitbit.com/build/reference/web-api/troubleshooting-guide/error-messages/#400-bad-request
Thanks!

