api help beginner

The 401 means “Unauthorized”, which could result in one of the following issues:
(1) The one-time-password (OTP) is not correct or not available
(2) Your API key+secret is invalid

It’s likely (1) above. If you generated and send OTP and still has the problem, check if your computer clock is properly synchronized because correct OTP requires synchronized clock.

I finally found the error and feel like a complete idiot now. I had a spacebar between the = and KEY/TOTP.

rl_sample.js finally worked. Thanks for pointing out that something was wrong with my Key.

1 Like

If you ever get the API set up I’d love to see how you did it

Hello Guys,

The API has started to give Authentication Errors by itself. Is anyone else having this problem?

I get the error : ==== ERROR ForbiddenError: Request failed with status code 403
at GfApi._apiRequest