Image recognition error code 1

79 views
Skip to first unread message

John Regisseur

unread,
Mar 28, 2025, 12:22:30 PM3/28/25
to fatsecret Platform API
Hello,

We've been given limited test acces to the image recognition API for implementation prior to deployment. When calling the API however we get the following response:

{
  "error": {
    "code": "14",
    "message": "Missing scope: scope 'image-recognition'"
  }
}

This is our request:
{
  "method": "POST",
  "url": "https://platform.fatsecret.com/rest/image-recognition/v1",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer [auth_token]"
  },
  "body": {
    "image_b64": "[image base64 encoded] ",
    "region": "US",
    "language": "en",
    "include_food_data": "true"
  }
}

seba...@fatsecret.com

unread,
Mar 28, 2025, 12:23:57 PM3/28/25
to fatsecret Platform API
Thanks for reaching out. The below error would imply that you either didn't pass through the correct scope when using OAuth 2.0 (you can use OAuth1.0 for testing where no scope is required) or the API key you are using is not provisioned with this capability in which case you can reach out to to our support team to have this enabled

DJ Chris White GB

unread,
Mar 28, 2025, 4:25:25 PM3/28/25
to fatsecret-p...@googlegroups.com
Hi John I am not sure this is for me, however I have requested limited access to Image Recognition and spoke to Sebastian earlier today requesting some sort of development access. Is this something you can help me with?

Chris 

Gymbo Team 


 ________________________________________

 Contact          : 07521 886841

_______________________________________




--
You received this message because you are subscribed to the Google Groups "fatsecret Platform API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fatsecret-platfor...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fatsecret-platform-api/c44f5fef-34bd-4a26-8b7d-55d3e505035dn%40googlegroups.com.

seba...@fatsecret.com

unread,
Mar 28, 2025, 4:26:43 PM3/28/25
to fatsecret Platform API
Thanks, please try using OAuth1.0 and if the same error persists please double check your API key. When you log into your Platform API account, all available scopes and methods will be displayed. Otherwise you can contact our support team at
Reply all
Reply to author
Forward
0 new messages