Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Http 403 error while calling /apiSubscriptions API

Hi Community, I am facing below error while calling subscription API. I have added subscribers endpoint in Application setting.
URL : "https://api.fitbit.com/1/user/-/userRevokedAccess/apiSubscriptions/6462e07f.json"

Reposens : 

{
"errors": [
{
"errorType": "insufficient_permissions",
"message": "API client is not authorized by the resource owner to access the resource requested. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
}
],
"success": false
}
Best Answer
0 Votes
2 REPLIES 2

Hi @Web-Api,

 

Is that the exact syntax that you're executing?   I cannot find that call in our logs to investigate further.   Can you tell me what scopes this user consented to?   Also, do you have a subscriber configured and verified for this application?

 

Gordon

 

 

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

@GordonFitbit I am still getting same error. User has given 3 permission (heartrate, activity, sleep ). configured subscriber endpoint is verified.

Request Curl :   curl --location --request POST 'https://api.fitbit.com/1/user/-/userRevokedAccess/apiSubscriptions/2e07f.json' \
--header 'Authorization: Basic *************************'

 

Response. : 

{
"errors": [
{
"errorType": "insufficient_permissions",
"message": "API client is not authorized by the resource owner to access the resource requested. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
}
],
"success": false
}
Best Answer
0 Votes