Forum Posts

Error 403: disallowed_useragent

When trying to open oauth inside Android application web view with shouldOverrideUrlLoading it gives error "Authorization ErrorError 403: disallowed_useragent"and lands on screen shown in screenshot with this link.

invalid_grant error when requesting for oauth2 token

Hello!I was able to access the access_token last week from from since yesterday even with new authorisation code I still keep getting    { "errors": [ { "errorType": "invalid_grant", "message": "Authorization code invalid: 3D68e6124cc72f5d42f4b8ec98a...

youbs by Recovery Runner
  • 337 Views
  • 2 replies
  • 0 votes

Resolved! Problem with date ranges

I'm trying to integrate WebAPI into an App, but I'm getting errors in the FitBit API Explorer Swagger for any date format I try. Any ideas what I might be doing wrong? Example:Request URL:https://api.fitbit.com/1/user/-/body/log/fat/date/2019-04-01/2...

ale_dev by Jogger
  • 1212 Views
  • 6 replies
  • 2 votes

Resolved! Error "invalid_grant" while trying to get access token

Getting the following error while make the call to get token. {    "errors": [        {            "errorType": "invalid_grant",            "message": "Authorization code invalid: <code> Visit https://dev.fitbit.com/docs/oauth2 for more information o...

Resolved! Access and refresh token cycle

Hi Team, I have an application where once the user has been authorized into the app we start collecting data from FITBIT API.Here once a user logs in we collected both AUTHORIZATION and REFRESH tokens. Here, once an AUTH token expires we can refresh ...

Dhivakhar by Recovery Runner
  • 313 Views
  • 1 replies
  • 1 votes

Resolved! postman error ,errortype:invalid_grant??

(I'm Taiwanese,my grammar maybe not correct ><)These days I've been learned how to use fitbit api~Also,I watched some instructional video in youtube to help me understand how fitbit api work.But today I encounter a problem in postman.I import these i...

Sammmmmi by Recovery Runner
  • 1628 Views
  • 1 replies
  • 0 votes

Resolved! Cannot get HRV data through WebAPI

I requested the form and got granted for getting intraday data. But when I request the HRV intraday by date, I still get the response  "API client is not authorized by Fitbit to access the resource requested." The heartrate scope is granted. And I ca...

suzuki4 by Recovery Runner
  • 395 Views
  • 2 replies
  • 1 votes

Resolved! Fitbit API Integration With Integromat (Make)

I've been searching all over the web for a tutorial on how to connect Fitbit with Integromat. Unfortunately, I haven't had much luck! Integromat (now called Make) allows you to create an OAuth 2.0 Request through their system to interact with virtual...

SLDev by Jogger
  • 412 Views
  • 1 replies
  • 0 votes

Refreshing Tokens with Application Type Client

Hello  The authorization process works fine (I am using Authorization Code Grant Flow with PKCE and application type is client) and I can also get data correctly. But I just can't figure out how to refresh the tokens with the application type being c...

lutired by Jogger
  • 398 Views
  • 7 replies
  • 0 votes

Resolved! Increasing token lifetime

Hi, I'm working on FitBit API integration via Implicit grand flow and trying to increase token lifetime to one year but it always returns same value near `604800` whenever I pass on `expires_in` parameter.Here is link example `https://www.fitbit.com/...

VoloHA by Jogger
  • 438 Views
  • 8 replies
  • 0 votes

Resolved! SPO2 API

Hi All, just testing out the spo2 API and I cant connect by my normal means. All other api's still work however the spo2 API gives me this error ... API client is not authorized by Fitbit to access the resource requested. Visit https://dev.fitbit.com...

Resolved! Authorization code verifier invalid

I checked the related topics already but found no solution.Initial authorization with https://www.fitbit.com/oauth2/authorize?client_id=.... is OK.When I try to get the tokens withcurl -X POST "https://api.fitbit.com/oauth2/token" -H "accept: applica...

mim2503 by Jogger
  • 433 Views
  • 1 replies
  • 0 votes

Authorization Token

My company has a third-party App with Fitbit. I have been using my Surge for multiple years and things have been running very smoothly. I recently upgraded to a Versa 3, and now I am not receiving my data via my App. Does this have to do with my Auth...

jczero2 by Jogger
  • 270 Views
  • 1 replies
  • 0 votes

Resolved! Refresh Token Invalid

Hi Fitbit Team, I have 3 users in our app that on May 26th that began returning the error message upon automatic access token refresh - existing users that have been getting data / refreshing token for quite a while: Response: {"errors":[{"errorType"...

Request failed with status code 429

Hello,I've started to have 'Request failed with status code 429' sometimes.As I understood it means that I'm out of limit 150 requests per user per hour.But I do need more than 150 r/h sometimes.How can I solve this?

Resolved! API OAuth login using Facebook or Google

I noticed in the api docs here: https://dev.fitbit.com/docs/oauth2/#authorization-errors that it appears we can authenticate users with the Fitbit api using Facebook or Google based on the potential error responses:Facebook account used is not associ...

mrph by Jogger
  • 3225 Views
  • 10 replies
  • 3 votes

User gets unexpected user_id

Our OAuth flow works fine for most users. One has found that despite resetting, and making new accounts, we consistently get a user_id from the Fitbit API that does not match the one that the user expects (and uses with their devices). It's the same ...

fitbit plug-in in bubble.io

Hi everyone  I have try to follow the Logging a user in through Fitbit follow this link: https://manual.bubble.io/core-resources/bubble-made-plugins/fitbit but I’ve got the problem with the massage Developer information: invalid_request - Invalid red...

Issues approving accounts using OAuth2 tutorial page

Hi,  We have a browser app which we have previously used to collect data from watches used in research studies.  I've been having some difficulties doing the same today:  1.) Using the link provided on the OAuth2 tutorial page I can sometimes get to ...

Obtaining auth code from redirect URL (auth with PKCE)

Hello,I am building a web api based app from Flutter and I am quite confused on the process of obtaining the auth code from the redirect URL. I created the code verifier, got the code challenge and implemented intent filters in the android manifest. ...

Vaji by Recovery Runner
  • 347 Views
  • 1 replies
  • 4 votes

Invalid refresh token for one user

I have an application which is using the fitbit web API and it works great, expect for one user. The refresh token is not valid, so the user has to redo the auth process one per day. The refresh token works for all other users, so i think my code is ...

jknut84 by Jogger
  • 382 Views
  • 1 replies
  • 0 votes

Resolved! Make Request with PostMan to get Heartrate

Hello, I'm trying to make a simple request on the API to get back heartrate scope. I red API documentations and many subjects and the forum but i sill do not understand how to do it. here where i am: Set in API an new app to be able to get the requir...

dsalerne by Recovery Runner
  • 4592 Views
  • 11 replies
  • 0 votes

Skip refresh token for personal use.

Is there a way to use the Fitbit api without needing to refresh the access token after a certain period?I want to use to api just for my own fitbit account.

Hugo1 by Recovery Runner
  • 419 Views
  • 1 replies
  • 0 votes

Personal application and refresh tokens

I’m trying to use the web api with an app called Shortcuts.I don't have much experience of api:s, so I used the authorization process from this shortcut to get an access key. The shortcut I linked uses the “personal” application setting in applicatio...

Hugo1 by Recovery Runner
  • 470 Views
  • 1 replies
  • 0 votes

Enquiries on Webhook and fitbit activities APIs

Hi,Refer to my attachment below, Currently, the number of end users whom are using Fitbit device is 686 users. But our backend system received Fitbit calls with more than 800 requests per hour via “POST /v1/fitbit/webhook” endpoint even when it is 2 ...

Chart.png
g.siang by Recovery Runner
  • 876 Views
  • 5 replies
  • 0 votes

Resolved! Insufficient Permissions | 403 Error

Hi ,I am facing an issue where I have authorized the user with my application and currently I am trying to access my personal data only. I am only able to access user profile data i.e.,  https://api.fitbit.com/1/user/-/profile.json   I am not able to...

voliotDev by Recovery Runner
  • 923 Views
  • 3 replies
  • 0 votes

Error Code 1008

My app has recently started to get an error code 1008 in the body when using the request token to get the access token and refresh token. Any idea what this means? Nothing has changed in the code. It just started doing it. 

vanmepper by Recovery Runner
  • 1438 Views
  • 4 replies
  • 2 votes